25 AI Engineer Interview Practice Problems, With an FDE Twist
Practice RAG, agents, evals, model serving and production recovery through 25 customer scenarios. Each problem includes a concrete deliverable and a follow-up constraint.
BY EMILY CARTER · FDEINTERVIEWS EDITORIAL · UPDATED NOVEMBER 24, 2026 · 6 MIN READ
PRACTICE THIS:Start with the essential questions ·Practice RAG and agents ·Build your preparation plan
These 25 AI engineering problems cover useful practice across retrieval, agents, evaluation and production serving. Each asks you to produce something reviewable: a budget, a trace, a release rule or a failure diagnosis. The FDE addition is a customer constraint that changes the answer.
Attempt the problem before opening its linked reference. Those links lead to related worked questions or concepts; some require sign-in or membership. The scenarios and practice rubric here are free. This is an editorial exercise set, not a claim that these questions appear in a particular interview or cover a fixed percentage of the field.
Practice a decision, then change a constraint
For each attempt, write five lines: customer outcome, binding constraint, proposed approach, evidence needed and recovery plan. Allow about ten minutes, then spend another five on the changed constraint. Treat those timings as a practice format, not interview rules.
Score each line 0 if absent, 1 if generic, or 2 if specific enough to check. “Monitor quality” earns one; “compare unsupported-claim rate on the same contract questions before and after the change” earns two. A score is a record of your own reasoning, not a hiring prediction.
Retrieval: find the evidence and prove it survived
| Problem and related reference | Produce | Change the constraint |
|---|---|---|
| 1. Design RAG for 10 million documents | Estimate chunks and index size; draw ingestion, ACL enforcement, freshness and query paths. | A revoked document must stop appearing before the next full rebuild. |
| 2. Debug wrong RAG answers | Trace one failure from source passage through retrieval, context assembly and generation. | The correct passage is retrieved but its exception is missing from the prompt. |
| 3. Chunk legal contracts | Preserve clause identifiers and exceptions; define relevance labels for a comparison. | A table on the next page changes the clause's meaning. |
| 4. Choose lexical, dense or hybrid retrieval | Compare exact identifiers and paraphrases separately. | The decisive identifier never appeared in training. |
| 5. Evaluate a reranker | Separate candidate recall from ordering quality and end-to-end latency. | The relevant document is absent from every candidate set. |
Ten million documents is not ten million vectors. State your assumptions about chunks per document, embedding dimensions and storage precision. Include metadata and index overhead separately. For the permission follow-up, explain which component denies access during an index refresh; “we filter later” leaves the information path unspecified.
Cost and latency: keep the useful outcome in the denominator
| Problem and related reference | Produce | Change the constraint |
|---|---|---|
| 6. Reduce LLM cost against a requested 70% target | Attribute cost by step and calculate cost per accepted task, including retries. | Most spend comes from repeated tool output, not expensive final answers. |
| 7. Cut first-token latency | Break down network, queue, retrieval and prefill time. | Warm traffic improves, but cold requests still miss the target. |
| 8. Design a semantic cache | Define the eligibility key, false-hit test and hit-rate denominator. | Similar questions have different answers for different tenants. |
| 9. Route between models | Define an escalation rule and evaluate each task segment. | The cheaper model fails mainly on the rare, expensive mistakes. |
| 10. Serve an open model | Budget weights, KV state and runtime overhead per device. | A few long prompts consume the capacity reserved for ordinary chat. |
A 70% target is a request to investigate, not a promised result. In a synthetic example, a baseline spends $100 on 100 tasks and completes 80 correctly: $1.25 per success. A candidate spends $70 and completes 50 correctly: $1.40 per success. Lower spend has made the useful outcome more expensive. Show that arithmetic before proposing a rollout.
Agents: preserve evidence and control effects
| Problem and related reference | Produce | Change the constraint |
|---|---|---|
| 11. Make tool use reliable | Specify argument validation, authority, timeouts and result handling. | A write succeeds but its response is lost. |
| 12. Stop an agent loop | Name a progress signal and separate retryable failures from repeated ineffective actions. | Every repeated call returns a slightly different message. |
| 13. Design durable memory | Define scoped writes, source provenance, retrieval and deletion. | A remembered deployment approval has expired. |
| 14. Produce structured output | Validate syntax and business rules, with explicit refusal and truncation paths. | Valid JSON requests a refund above the caller's limit. |
| 15. Trace a multi-agent workflow | Preserve causal span links, step outcomes and an end-to-end task result. | One parallel branch retries after another has completed. |
For the lost write response, “retry” needs a reconciliation or idempotency contract. For memory, a stored sentence can guide investigation without authorizing execution. Draw that boundary explicitly. A tool trace should let an operator distinguish an action that failed from an action whose outcome is still unknown.
Evaluation and security: make the failure observable
| Problem and related reference | Produce | Change the constraint |
|---|---|---|
| 16. Detect hallucinations | Break the answer into claims and test support against the available evidence. | The evidence itself contains an outdated policy. |
| 17. Evaluate a support bot | Separate answer, tool-action and escalation checks by intent. | Multi-turn address changes fail while single-turn answers pass. |
| 18. Calibrate an LLM judge | Build a confusion matrix against held-out human labels. | Almost every labeled example is a pass. |
| 19. Contain prompt injection | Mark untrusted inputs and enforce tool privileges outside the model. | A retrieved page asks the agent to export customer records. |
| 20. Minimize and redact PII | Map sensitive data across input, retrieval, tools, logs and output. | An identifier must be restored only for an authorized recipient. |
Worked judge check: among 100 synthetic examples, 95 pass and five fail. A judge that always says PASS has 95% agreement and catches zero failures. Use the failure-catching rate and false-alarm rate to evaluate its release role. Keep the labeled test set out of prompt tuning.
Adaptation and release: explain what happens after the demo
| Problem and related reference | Produce | Change the constraint |
|---|---|---|
| 21. Choose prompting, RAG or fine-tuning | Separate knowledge freshness from behavior and measure a baseline. | The requested facts change daily and carry document-level permissions. |
| 22. Plan LoRA on 5,000 examples | Define deduplication, grouped train/dev/test splits, assistant loss masking and a reload check. | Near-identical tickets from one customer appear across the splits. |
| 23. Handle streaming disconnects | Trace cancellation from browser through gateway to inference worker. | The tab closes but generation keeps consuming tokens. |
| 24. Roll back a prompt release | Version prompt, model settings and tool schemas as one tested release. | The previous prompt expects an older tool response format. |
| 25. Design chat for one million daily users | Derive peak arrivals, in-flight requests, token throughput and failure behavior. | A launch concentrates most arrivals into a short burst. |
For the LoRA plan, choose the held-out customer or time boundaries before fitting. Demonstrate that the saved adapter reloads with the exact base model and tokenizer. A lower training loss is insufficient: compare task success and retained capabilities against the unchanged baseline. Treat 5,000 as a dataset size to inspect, not proof that the data is sufficient.
If your interview is tomorrow
Choose one retrieval diagnosis, one capacity problem, one agent-action failure, one evaluation design and one rollback scenario. Rehearse each aloud with the five-line template. Revisit the weakest one after changing its constraint.
Use the mock interview guide to involve a partner. If the mechanism is still unclear, work through the relevant stage of the Karpathy repository learning path before adding another memorized answer.
Turn it into offers. Work the real questions and concepts this maps to:
FAQ
State the customer outcome and constraints, draw the important boundaries, and choose a measurement that could disprove your design. Then change one constraint and explain how your answer changes. Compare your reasoning with a worked reference after attempting the problem.
One day can expose gaps and improve how you explain familiar work. It cannot replace experience with discovery, implementation and production incidents. Select a few representative problems and complete them deeply instead of memorizing all 25.
These are editorial practice scenarios, not a claim about any company's interview process. The linked question bank provides related worked material. No list guarantees a percentage of interview coverage.
It connects technical choices to the customer's workflow, operating constraints and acceptance criteria. A strong answer includes failure detection, ownership and recovery, alongside the model or architecture.
Discussion (3)
Try the changed constraint before opening the reference. It reveals whether the design follows from the requirements or from a diagram you remember.
For a mock interview, ask the candidate which proposed measurement would make them abandon their preferred solution. That is often more revealing than another architecture component.
Keep daily users separate from simultaneous generations. Capacity estimates need an arrival pattern and token distribution, not just a large user count.
