Skip to content

Courses / Agentic AI / Module 17

Module 17: Interview prep: agent system-design rounds

6 h · theory 2 · hands-on 2 · project 1 · revision 1

You will be able to

  • Answer agent concept and debugging questions
  • Do an agent system-design round in 45 minutes
  • Present the capstone in a deep-dive

Capstone increment: Interview kit: one-page brief, architecture diagram and metrics.

Job-description skills: Interview prep · Lab tools: none

1. What agent interviews test

Expect concept questions (the agent loop, tool design, memory, MCP, evals), debugging scenarios (“the agent looped and spent ₹2,000” or “it changed prod without approval”), a system-design round on an unseen brief, and a deep-dive on your project. The strongest signal is judgement: when not to use an agent, where to put humans, and how you’d measure it.

The design round has a shape. Practise it until the order is automatic.

Clarifytask, users, riskEstimateruns, ₹, approvalsAutonomyworkflow or agent?Tools + stateschemas, memorySafetyapproval, sandboxEvals + costsuccess, ₹, limits45 minutes, in this order
The strongest answers start by asking whether an agent is needed at all, and end with how they’d measure it.

2. Concepts to explain cold

Two minutes each, with an example: the agent loop and stop conditions; workflow versus agent; tool schemas and recoverable errors; idempotency; graphs, checkpoints and interrupts; compaction and memory; plan-and-execute and reflection; MCP primitives and transports; supervisor patterns and handoffs; approval by blast radius; prompt injection and least privilege; pass@k versus pass^k; tracing, budgets and loop detection; durable execution.

Attach a number from your capstone to each: “the repeat detector cut wasted steps from 13 to 4 on looping scenarios” ends follow-up questions.

3. Debugging rounds

Use one method every time: get the trace, find the first step that went wrong, classify it (tool error not recovered, missing information, bad plan, wrong tool, model mistake, guardrail gap), fix it at the right layer, and add a scenario so it can’t regress.

Rehearse common cases: a tool error message that didn’t say how to fix the call; compaction dropping a finding; a supervisor handoff missing constraints; an injected instruction in a ticket; a non-idempotent tool duplicating after a retry; a step limit set so high a loop ran for an hour.

Common misconception: “I’d switch to a smarter model.” Name the failing step first. Most agent failures are tool, context or control-flow problems.

4. The design round, worked through

Brief: an agent that handles refunds for an e-commerce company. Clarify (5 minutes): volumes, refund limits, policy sources, fraud signals, who reviews. Estimate (5): runs per day, steps, cost, approvals per day and reviewer hours. Autonomy (5): workflow for clear cases, agent for unclear ones. Tools and state (10): read tools, an idempotent refund tool, policy retrieval, memory per customer. Safety (10): limits, approvals, fraud checks, injection in customer messages. Evals and cost (10): agreement with past human decisions, pass^k, budget.

End with the first metric you’d watch after launch and what would make you widen or narrow the agent’s autonomy.

5. The project deep-dive

Prepare a one-page brief: the problem, your architecture diagram, three decisions with evidence, the metrics table, one failure you found and fixed, and what you’d change for more autonomy. Expect “why not X?” for every choice; your ADRs are the answers.

Practise out loud, timed, at least three times with someone who interrupts. Have the demo and a real trace ready to share.

Tip: Bring a trace screenshot of an approval in action. One picture of a paused run with a diff answers half the safety questions.

Hands-on: coding window

The coding window and the full VS Code lab are available after you sign in.

Sign in to code

Labs

Lab 17.1: Concept round

Record yourself answering 15 concept questions from this course, two minutes each, with a capstone number per answer. Re-record the three weakest.

Expected: 15 recordings and a list of improved answers.

Lab 17.2: Mock design round

Do the refund-agent brief in 45 minutes with a peer or the course’s AI professor as interviewer, following the six-stage shape.

Expected: Your diagram, estimates and the interviewer’s notes.

Lab 17.3: Interview kit (capstone increment)

Write the one-page brief, export the architecture diagram, and gather the metrics table, a trace screenshot and the demo link.

Expected: Interview kit: one-page brief, architecture diagram and metrics.

Go deeper

Videos

Further reading

  • Book Machine Learning Interviews Book · Chip Huyen. How ML interview loops are run, what each round tests and how to prepare.
  • Course The System Design Primer · Donne Martin. The general system-design basics (caching, queues, sharding, back-of-envelope numbers) that every design round assumes.
  • Article Agents · Chip Huyen. Tools, planning, reflection and failure modes of agents, with an engineer's view of the trade-offs.

GitHub repositories

Checkpoint quiz

1. First step in an agent debugging round?
2. Strongest opening in an agent design round?
3. Approvals per day exceed reviewer capacity. What do you propose?
4. Which metric do you report for reliability?
5. How should you end a design round?

Interview questions

  1. Design a refund agent for an e-commerce company in 45 minutes.
  2. An agent changed production config without approval. Debug it.
  3. When would you refuse to build an agent and propose a workflow instead?
  4. Explain MCP and A2A, and when you’d use each.
  5. Walk me through the hardest decision in your capstone and the evidence behind it.

Ask the professor

Sign in to ask questions about this module.

Discussion

Community discussion appears here once giscus is configured (see README).