GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo

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

Make your answer survive a changed constraint1. State the decision: Customer outcome, binding constraint and proposed approach.. 2. Make it testable: Evidence that could reject the design, plus a recovery plan.. 3. Change one condition: Revoke access, lose a tool response, add long inputs or change the budget.. 4. Revise and check: Explain which part changes. Compare your reasoning with the reference.. The attempt moves from decision to evidence, then a changed condition and a revised answer. The five note fields are outcome, constraint, approach, evidence and recovery. Make your answer survive a changed constraint Use the same five-line note for each problem. Attempt first, then compare with a worked reference. 1. State the decision Customer outcome, binding constraint and proposed approach. 2. Make it testable Evidence that could reject the design, plus a recovery plan. 3. Change one condition Revoke access, lose a tool response, add long inputs or change the budget. 4. Revise and check Explain which part changes. Compare your reasoning with the reference. Self-assessment: 0 = missing, 1 = generic, 2 = specific and checkable. Score each of the five lines; the result guides practice, not a hiring prediction.

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 referenceProduceChange the constraint
1. Design RAG for 10 million documentsEstimate 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 answersTrace 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 contractsPreserve 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 retrievalCompare exact identifiers and paraphrases separately.The decisive identifier never appeared in training.
5. Evaluate a rerankerSeparate 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 referenceProduceChange the constraint
6. Reduce LLM cost against a requested 70% targetAttribute 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 latencyBreak down network, queue, retrieval and prefill time.Warm traffic improves, but cold requests still miss the target.
8. Design a semantic cacheDefine the eligibility key, false-hit test and hit-rate denominator.Similar questions have different answers for different tenants.
9. Route between modelsDefine an escalation rule and evaluate each task segment.The cheaper model fails mainly on the rare, expensive mistakes.
10. Serve an open modelBudget 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 referenceProduceChange the constraint
11. Make tool use reliableSpecify argument validation, authority, timeouts and result handling.A write succeeds but its response is lost.
12. Stop an agent loopName a progress signal and separate retryable failures from repeated ineffective actions.Every repeated call returns a slightly different message.
13. Design durable memoryDefine scoped writes, source provenance, retrieval and deletion.A remembered deployment approval has expired.
14. Produce structured outputValidate 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 workflowPreserve 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 referenceProduceChange the constraint
16. Detect hallucinationsBreak the answer into claims and test support against the available evidence.The evidence itself contains an outdated policy.
17. Evaluate a support botSeparate answer, tool-action and escalation checks by intent.Multi-turn address changes fail while single-turn answers pass.
18. Calibrate an LLM judgeBuild a confusion matrix against held-out human labels.Almost every labeled example is a pass.
19. Contain prompt injectionMark untrusted inputs and enforce tool privileges outside the model.A retrieved page asks the agent to export customer records.
20. Minimize and redact PIIMap 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 referenceProduceChange the constraint
21. Choose prompting, RAG or fine-tuningSeparate knowledge freshness from behavior and measure a baseline.The requested facts change daily and carry document-level permissions.
22. Plan LoRA on 5,000 examplesDefine 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 disconnectsTrace cancellation from browser through gateway to inference worker.The tab closes but generation keeps consuming tokens.
24. Roll back a prompt releaseVersion 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 usersDerive 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.

PRACTICE THIS

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.

Discussion (3)

Emily CarterEditor

Try the changed constraint before opening the reference. It reveals whether the design follows from the requirements or from a diagram you remember.

Adam ReyesEditor

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.

Lukas HoffmannEditor

Keep daily users separate from simultaneous generations. Capacity estimates need an arrival pattern and token distribution, not just a large user count.