The interview problem

Practice prompt

Design a speaker-verification feature that checks a claimed enrolled identity and provides a non-biometric fallback.

Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.

1. Scope and worked approach

Enroll with explicit consent using several sessions, then compare a new utterance embedding with the claimed template. This is one-to-one verification, not searching a crowd. Protect templates, separate enrollment from evaluation speakers, and route uncertain or suspicious attempts to another factor.

2. Trace the design or derivation

Consented enrollment
  → protected template
  → claimed-identity comparison
  → fallback or accept

Choose operating thresholds from application-specific costs and uncertainty, not solely equal-error rate. Deleting an account should remove its template and derived enrollment artifacts. Avoid retaining raw recordings merely because they simplify future retraining.

3. Calculate the example

At a threshold, 2 of 1,000 impostor trials pass and 30 of 1,000 genuine trials fail: FAR 0.2%, FRR 3%. Equal trial counts are an evaluation choice, not a production base-rate claim.

4. Failure cases and trade-offs

Recordings, synthesis and channel changes can defeat a similarity threshold. A good embedding is not liveness proof. Permanent template exposure cannot be fixed like a password reset.

5. Validation, follow-ups and self-review

Test genuine, impostor, replay and device-shift cases separately. Follow-up: how would a higher-risk action change policy? Self-review: distinguish verification, spoof resistance and fallback access.

Sources and related practice

Technical reference: arxiv.org — ECAPA-TDNN speaker-verification embeddings; operational policy is original.

Source publication/update: 2020-05-14; revised 2020-08-10. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.

Continue with When can you trust a probability?; Verify deletion across an AI customer deployment.

Continue your preparation

Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.