AI Agent Interview Questions
332 AI agent interview questions with worked answers, across the 19 topics agent engineering loops test, from the loop and its harness through tool calling, context, memory, evals, durable execution, sandboxes and protocols to the system design and live build rounds. Every answer finds where the failure enters, draws the line between what the model decides and what the harness enforces, and ends with how a panel scores it. The first 5 in every topic are free to read.
- questions
- 332
- topics
- 19
- company guides
- 27
- updated
- 2026
Worked answers that trace the run, put each decision on the right side of the authority line, and end with the follow-ups and scoring a panel applies.
What AI agent interviews test
Most agent loops combine a few kinds of round, chosen by employer and role. Whether you may use an AI assistant varies by round too, and some employers now say so for each format.
Agent harness coding
Write a tool-calling loop with validation, error results, budgets and parallel calls, then extend it under a changed constraint. Scored on control flow, failure handling and tests.
Agentic system design
Design an agent that acts in the world: autonomy, state, tools, context and cost budgets, failure handling and evaluation. The round that appears in nearly every loop.
Debugging a run
Read a trace, find the first wrong step and fix it in the right place. Scored on method more than speed.
Evals and reliability
Grade a non-deterministic system: outcome against trajectory, pass^k, judge calibration and regressions that appear in a few percent of runs.
Runtime and authority
Durable execution, sandboxes, credentials and delegated identity, approvals and policy outside the model.
AI-assisted build
Build something real with AI tools while someone watches, then explain and defend every line the tool wrote. Sierra has published its own version of this format, and OpenAI's interview guide says tool rules vary by interview (both checked November 2026).
Model API Foundations interview questions
What the harness has to read, build and handle on every model call, before there is a loop at all: the four fields in a response and the stop reason the loop branches on, the message list and the pairing rule for tool results, sampling settings and why temperature zero is not determinism, streaming deltas and tool-call fragments, provider wire differences behind one adapter, rate limits and retries inside a run, per-step deadlines and max_tokens, choosing a model by agent-shaped probes, and the failure modes a capable model still has inside a loop.
- 01Walk me through one model API call: what your code sends, what comes back, and what the harness has to handle.easy
- 02A model reply comes back with empty content and no error. What do you check before calling it a blank answer?easy
- 03Your harness keeps the last ten messages to save tokens, and the provider sometimes returns 400. Debug it.medium
- 04We run every model call at temperature zero, so the agent is deterministic. Agree?easy
- 05A JSON summary sometimes lists one ticket where there were three, with no prompt change. Find the cause.medium
- 06A step has a 12,000-token prompt and a five-second deadline. Estimate its latency and say what you would change.medium
- 07Your streaming harness dispatches a tool as soon as the first delta names it. What goes wrong, and how do you fix the parser?medium
- 08Forty agents each retry a 429 after exactly one second. Design the retry and rate-limit policy for the fleet.medium
- 09Move an agent from one model provider to another without rewriting it. What changes, and how do you prove it still behaves the same?hard
- 10Pick the model for a support agent that calls tools. Walk me through the selection.hard
- 11The agent reversed a correct, tool-grounded answer when the customer pushed back, and proposed a refund. What failed, and where is the fix?hard
- 12The run has thirty seconds. Allocate the time across steps so a cut-off run still returns something useful.medium
- 13Your provider retires the model your agent is pinned to in ninety days. Plan the upgrade.hard
- 14The trace shows a tool result that the tool never produced. Explain how that happens and make it impossible.hard
- 15Design the probe set that would catch a silent model revision changing your agent's tool-calling behaviour.hard
- 16Design the model-call layer of an agent platform that fifty teams will build on: adapters, limits, retries, deadlines and usage accounting.expert
Agent Loop & Harness Interview Questions
The loop at the centre of every agent: call the model, dispatch the tools it asks for, feed the results back, decide when to stop. When a fixed workflow beats an agent, what the harness owns that the model never should, and how to read a run that went wrong.
- 01What is an AI agent? Explain how it differs from a chatbot and from a workflow that happens to call a model.easy
- 02Write the agent loop on the whiteboard, then list every way a run can end.easy
- 03When would you ship a fixed workflow instead of an agent?medium
- 04A weather tool returns a 500 and the agent answers with a temperature anyway. Fix the harness.medium
- 05What does the harness own that the model never should?medium
- 06The agent calls the same tool with the same arguments eight times. Debug it from the trace.medium
- 07The agent says the task is done and it is not. Make completion something the runtime checks.hard
- 08Set the stop conditions and budgets for a research agent with a two-dollar ceiling per task.hard
- 09A model upgrade makes your twelve-stage harness slower and no better. What do you remove?hard
- 10Sketch the state your harness carries between turns, besides the message list.hard
- 11A 300-line custom loop or a framework for a regulated bank's agent: make the call.expert
- 12When should an agent stop and ask the user instead of guessing? Design the rule.medium
- 13Your agent must answer within 30 seconds. How do you design the loop around that budget?medium
- 14Some runs stop after one tool call and return an empty answer. Debug the loop.easy
- 15A user sends a new message while the agent is still working on their previous request. What should the loop do with it?medium
- 16Halfway through a legitimate task, the model refuses to continue. How should the loop handle a refusal?medium
- 17An agent alternated between two tool calls for thirty steps. What should have stopped it at step six, and why must it not fire on polling?medium
Tool Calling & Tool Design Interview Questions
Tools are an interface whose user is a model. Names and descriptions that steer selection, schemas and structured outputs, errors the model can recover from, parallel calls, side effects and idempotency, and what to do when an agent has a hundred tools.
- 01What is tool calling, and what actually happens when a model 'calls a tool'?easy
- 02Design the tool definitions an agent sees for an order-management API.easy
- 03What should a tool return when it fails, and who decides whether to retry?medium
- 04The model emits four parallel tool calls and two of them write the same record. What does the executor do?hard
- 05Tool arguments fail validation 3% of the time under load. Diagnose it.hard
- 06An agent has 120 tools and keeps picking the wrong one. Fix the tool surface.hard
- 07Structured outputs are on. The JSON is valid and the action is still wrong. Why?medium
- 08A tool swallows every exception and returns "ok", and the retry policy stopped firing. Fix the contract.medium
- 09Make a refund tool safe to call twice.medium
- 10When should an agent write code instead of calling tools one at a time?hard
- 11Two tools have overlapping descriptions and the wrong one is chosen 18% of the time. What do you change and how do you measure it?hard
- 12A reporting tool can return 50,000 rows. How do you expose it to an agent?medium
- 13A transfer tool should run alone for small internal moves but need approval for large or external ones. Where does that rule live?medium
- 14A tool starts a data export that takes twenty minutes. How should it look to the agent?medium
- 15You need to add a required field to a tool that agents call thousands of times a day. How do you change the schema without breaking runs?medium
- 16A tool fetches invoices that are PDFs and scanned images. How should those results reach the model?medium
- 17Design a search tool for a support agent over orders, tickets and help articles. One free-text query, or many filters?medium
- 18After a model swap, 4% of turns contain a tool call written in the message text and no real call. Fix the harness without executing prose.medium
- 19Design the test suite for a new refund tool before any model calls it. What runs in CI, and what needs a model?medium
Context Engineering Interview Questions
The context window as a budget the harness spends on every turn. What goes in and in what order, tool-result clearing, compaction and external notes, why long runs degrade before the window is full, and how to keep the prompt prefix cacheable.
- 01What is context engineering, and why does an agent need it when the model already has a 200k-token window?easy
- 02Your agent has a 200k-token window and falls apart at 55k. Why, and what do you change?medium
- 03Clearing tool results, compacting the history, writing notes: when does each one fit?medium
- 04Prompt cache hit rate dropped from 80% to 10% after a release. Find it.hard
- 05Design compaction for a six-hour support session without losing what the customer told you.hard
- 06Documents in the prompt up front, or a tool that fetches them on demand?medium
- 07The agent rereads the same 40 KB config file every fifteen turns. Fix it without blowing the budget.medium
- 08Order the prompt for a long-running agent so the cache holds.medium
- 09After compaction the agent forgets a contractual constraint. Design the fix.hard
- 10Estimate what a forty-turn run costs with and without prompt caching.hard
- 11How would you test a compaction prompt before it ships?expert
- 12A wrong order number from step 3 keeps reappearing for the rest of the run. How do you stop it?medium
- 13A user changed their instruction mid-conversation, but the agent keeps following the original one. Why, and what do you change?medium
- 14Retrieving more documents into the agent's context made its answers worse. Explain and fix.medium
- 15Your research agent fetches web pages and pastes the HTML into its context. What should happen to a page before the model sees it?easy
- 16Your browser agent takes a screenshot every step, and after 30 steps the context is mostly images. How do you manage it?medium
Agent Memory Interview Questions
What an agent keeps between turns, sessions and months. Working, episodic, semantic and procedural memory; when to write and when to read; provenance and forgetting; and why memory, context and retrieval are three different design decisions.
- 01What is agent memory? Name the kinds, and say what is stored, for how long, and who decides to write it.easy
- 02Memory, context and retrieval: draw the difference for an assistant used for months.easy
- 03Design memory for an assistant that works with the same customer for six months.hard
- 04The memory store has filled with conclusions that are wrong. Detect it and clean it up.hard
- 05Where does an agent keep its notes during a task that takes eight hours?medium
- 06When should an agent write to long-term memory, and who is allowed to read it back?medium
- 07A secret was written to memory and later shown to another tenant. What failed?hard
- 08Provenance, expiry and correction: what metadata does every memory record need?medium
- 09Memory makes the agent better on Monday and worse by Friday. How do you find out why?hard
- 10Procedural memory: when should a learned workflow become a skill file?medium
- 11Evaluate whether memory helps at all.expert
- 12A user asks your assistant to forget something they told it last month. What has to happen, and how do you prove it?medium
- 13Design memory for a coding agent that works in the same repository across many sessions.medium
- 14Two agents share a memory store and keep writing contradictory facts about the same customer. Fix the design.hard
- 15Users ask 'What do you remember about me?' Design how they can see, correct and delete what your assistant has stored.medium
- 16A phone support agent remembers past calls by the caller's number. Why is that risky, and how should memory recall be gated?hard
Agent Planning & Control Pattern Interview Questions
How an agent decides what to do next. ReAct, plan-and-execute, reflection, tree search and explicit state graphs, each with the cost, latency and failure it brings, plus replanning when the world changes under a plan.
- 01What is ReAct, and when should an agent plan first instead of reacting one step at a time?easy
- 02ReAct, plan-and-execute, or an explicit state graph: pick one for a refund workflow.medium
- 03A plan-and-execute agent keeps running an obsolete plan after the world changes. Fix it.hard
- 04Reflection doubled the cost and sometimes reinforces a wrong answer. Keep it or kill it?hard
- 05Tree search gives better answers but the latency budget is eight seconds. What do you do?expert
- 06When does a deterministic edge beat letting the model route?medium
- 07How much reasoning effort should each step get?medium
- 08Recover when step four of a seven-step plan fails.medium
- 09Design the replanning triggers for a long migration agent.hard
- 10Your system prompt has grown into a ten-page flowchart. What do you do with it?hard
- 11Move a prototype from a role-based multi-agent chat into a workflow a regulator can audit.expert
- 12When should an agent show its plan to the user and wait for approval before acting?medium
- 13Should the planner and the executor in your agent use the same model? How would you decide?medium
- 14An agent keeps switching between two subgoals, undoing each one's progress. How do you stop it?hard
- 15Your agent can call five lookup tools of very different cost and speed before deciding. How should it choose what to gather first?hard
- 16Your agent writes a plan before acting. What can you check about that plan in code before any step runs?medium
- 17Voting over five samples made the date-arithmetic step worse than one sample. Explain it and fix it.hard
- 18Design the task tree for a procurement agent: quotes from three suppliers, a choice, an order, with fallbacks at each step.hard
- 19The bill tripled after reasoning effort was set to high for the whole coding agent. Design the per-step policy and how to measure it.medium
Agent Evaluation & Observability Interview Questions
Proving an agent works when it behaves differently on every run. Outcome and trajectory grading, pass@k against pass^k, judges calibrated to people, traces that explain a single bad run, and regressions that appear three times in a hundred.
- 01How do you evaluate an AI agent when it does something different on every run?easy
- 02pass@k or pass^k: which one do you report for a customer-service agent, and why?medium
- 03How do you evaluate an agent whose path differs on every run?medium
- 04The eval says 92% and customers are complaining. Explain the gap.hard
- 05Make an LLM judge trustworthy enough to gate a release.hard
- 06Success dropped 8% with no code change. Find the cause.hard
- 07Build the first week of evals for a brand-new agent.medium
- 08The final answer was right but the agent leaked data to an intermediate tool. How would your evals catch that?hard
- 09Design the release gate for an agent that moves money.expert
- 10What do you trace for every model call and tool call, and what stays out of the trace?medium
- 11A regression appears in 3% of runs. Prove it exists and find it.expert
- 12A vendor says their new model scores 6 points higher on SWE-bench Verified. Should your coding agent switch?medium
- 13Your offline evals say the new agent version is better. How do you A/B test it in production before rolling it out?hard
- 14Build an evaluation set for your agent from production traces. What do you sample, how do you label it, and how do you keep it useful?medium
- 15Your support agent handles multi-turn conversations. How do you evaluate it with a simulated user, and how far can you trust the results?hard
- 16A prompt change passed every quality check but doubled cost per task. How do you catch cost and latency regressions before release?medium
- 17Your LLM judge says quality has held at 94% for a month, but escalations to people keep rising. Which do you believe?hard
- 18The release gate dropped 27 points on the refund slice the day after twenty tasks were added. Investigate.medium
- 19Tool-call accuracy is 81% and the team wants a bigger model. Decompose the number and say what to fix first.medium
- 20A prompt change re-recorded twenty replay cassettes and CI went green. What did the suite prove, and what should the process have been?medium
Multi-Agent System Design Interview Questions
When splitting work across agents pays for its token bill. Orchestrator and workers, handoffs, hierarchies and shared state; the contract each agent receives; and how one agent's confident mistake becomes the whole system's answer.
- 01What is a multi-agent system, and what are the main ways agents can be arranged?easy
- 02When does a second agent pay for itself?medium
- 03Design an orchestrator and its workers for a research task. What does each worker receive?hard
- 04Two workers return contradictory findings. What does the system do?hard
- 05Handoff or agent-as-tool: which one, and why?medium
- 06One agent's confident mistake became the whole system's answer. Stop that happening.hard
- 07Parallel workers each write to the same shared state. Prevent lost updates.hard
- 08Estimate the token bill of a five-worker research system.medium
- 09Design the handoff contract so a specialist does not need the whole transcript.hard
- 10A group-chat style prototype resends the entire history every turn. Fix the architecture.medium
- 11Debate between agents: when does it add evidence and when does it only add cost?expert
- 12When would you use map-reduce agents rather than a swarm or group chat?medium
- 13Design a deep research agent that writes cited reports your analysts can trust.hard
- 14An orchestrator waits forever on a worker agent that is stuck. How do you detect it and recover the work?medium
- 15A five-agent pipeline gave a wrong answer. How do you find which agent caused it, and how do you measure that across many runs?hard
- 16Should your agents coordinate through a shared workspace they all read and write, or by sending each other messages?medium
- 17Design the message contract between a lead agent and twenty workers over a queue that can lose, duplicate and delay messages.hard
- 18A planner agent spawned four hundred helpers overnight and the bill arrived in the morning. Write the guards.hard
Long-Running & Durable Agent Interview Questions
Agents that run for hours, survive crashes and wait days for a human. Event histories and replay, idempotent side effects, approvals bound to an exact action, budgets enforced outside the model, drift and loop detection, and deciding when a run is really done.
- 01What does it mean for an agent to be durable, and why can't a normal loop just retry after a crash?easy
- 02A worker crashes after the payment call succeeds and before the result is saved. Design recovery.hard
- 03Human approval may arrive three days later. Design the wait.hard
- 04The API sends wire transfers and has no idempotency key. Design the agent around it.expert
- 05What runs inside a durable workflow and what must run as an activity?hard
- 06Detect a loop where every step looks slightly different.medium
- 07The budget is two thousand rupees or ninety minutes, whichever comes first. Enforce it.medium
- 08A new model ships while two thousand long-running workflows are mid-flight. What happens to them?expert
- 09An overnight bug burned forty thousand dollars. Write the controls.hard
- 10Make a 200-step migration survive context resets and restarts.hard
- 11How does a research agent decide it is finished?medium
- 12Your event-driven agent keeps reacting to events its own actions caused. Fix the architecture.medium
- 13A travel agent has booked the flight and is booking the hotel when the user cancels the trip. What should happen?medium
- 14An approver changes the amount on a paused agent run before approving it. How should the run resume?medium
- 15A weekly agent job summarising each customer's activity missed two runs in an outage. What should happen when the system recovers?medium
- 16An agent workflow fans out 500 sub-tasks, one per supplier, and must combine the results. How do you make it durable when some fail?hard
- 17A worker died six minutes into an agent run and nobody noticed for an hour. Design the queue so that cannot happen again.medium
- 18Define the release unit for your agent, and say what happens to a run that is mid-flight when the next release lands.hard
Agent Runtime & Sandboxing Interview Questions
Where an agent's actions actually execute. Containers, application kernels and microVMs as isolation boundaries; workspaces, snapshots and cold starts; credentials kept out of the sandbox; and the economics of a loop that rereads its context on every step.
- 01What is a sandbox for an agent, and why does code the model wrote need one when your own code does not?easy
- 02Containers, gVisor, Firecracker or Wasm for untrusted generated Python: choose.hard
- 03Your forty-turn agent is slow and expensive. Where do the seconds and dollars go?medium
- 04A code sandbox needs GitHub access and the generated code must never see the token. Design it.hard
- 05Design tenant isolation for twenty thousand concurrent coding sessions.expert
- 06Route between a frontier model and a small one without breaking quality.hard
- 07Keep cold starts out of the user's way at five hundred sessions a minute.hard
- 08The agent storms a downstream API after an outage. Fix the fleet behaviour.hard
- 09Stream agent progress to a web page and a phone. Pick the transport.medium
- 10Persist a sandbox's files across sessions without persisting its secrets.medium
- 11Build or buy the agent runtime.expert
- 12How do you stop a browser or coding agent from reaching your cloud's instance metadata endpoint?medium
- 13Thousands of agent sessions share one model provider quota. How do you keep one tenant from starving the rest?hard
- 14Fifty internal teams run agents on your shared platform. How do you attribute cost to each team accurately enough to charge them?medium
- 15An EU customer requires that their data stays in the EU. What does that mean for every part of your agent's runtime?medium
- 16Agent sessions in your runtime last up to two hours. How do you deploy a new runtime version without killing them?medium
MCP & A2A Interview Questions
The protocols that connect agents to tools, to each other and to the people using them. What MCP standardises and what it leaves to you, including its 2026 stateless revision; delegation with A2A 1.0; streaming a run to a user interface with AG-UI; generative UI with A2UI and MCP Apps; and where authorization sits at each boundary.
- 01Why do agents need protocols at all? Explain what MCP and A2A each standardise and where each one sits in a design.easy
- 02What does MCP standardise, and what does it leave to you?easy
- 03MCP or A2A for connecting your agent to another team's agent?medium
- 04Design a gateway in front of three hundred internal MCP servers.expert
- 05Wrap your internal REST API as MCP tools: one tool per endpoint?medium
- 06A long-running tool takes two hours. How does the protocol carry it?hard
- 07An MCP server asks for a new OAuth scope halfway through a task. What happens?hard
- 08Roll out a new protocol version to twenty servers without a flag day.hard
- 09The specialist agent you delegated to via A2A disappears mid-task. Recover.medium
- 10Where do authorization decisions live in an MCP deployment?hard
- 11Your MCP client follows a redirect while holding a bearer token. What goes wrong?hard
- 12Your MCP server keeps per-session state. How do you migrate it to the stateless 2026-07-28 revision?medium
- 13How would you connect a long-running agent backend to your web app so users see progress and can approve actions?medium
- 14A partner's agent wants to show your users interactive UI inside your app. How do you allow it safely?hard
- 15A partner sends an unsigned A2A Agent Card and says 'we also support ACP'. What do you check?medium
- 16Your team is about to publish an MCP server for other teams' agents. How do you test it before anyone depends on it?medium
- 17Your MCP server answers a tool call with a missing argument by returning a JSON-RPC error. What is wrong, and what should it return?medium
- 18Two of your host's six MCP servers expose a tool called search, and one of them hangs under load. Design the host's hub.hard
Coding Agent & Computer-Use Agent Interview Questions
Agents that change repositories and drive interfaces. Finding the right code in a large repo, applying edits that survive, verification loops built on compilers and tests, reward hacking, and grounding clicks in a page that keeps changing.
- 01How does a coding agent work? Walk through what happens between 'fix this failing test' and the pull request.easy
- 02Find the right code in a two-million-line monorepo without flooding the context.hard
- 03Search-and-replace blocks, unified diffs or whole-file rewrites: choose an edit format.medium
- 04The coding agent makes tests pass by deleting assertions. Stop it.hard
- 05Design the compiler and test feedback loop so it does not spiral.medium
- 06Twelve agents implement twelve features in one repo at once. Prevent the collisions.hard
- 07A browser agent clicks the wrong Approve button after the page reflows. Fix it.hard
- 08Accessibility tree or screenshots for a computer-use agent?medium
- 09The agent rewrites eight hundred lines to fix a two-line bug. What do you change?medium
- 10Measure a coding agent on your own repositories, not a public benchmark.hard
- 11The coding agent can install packages from the internet. Threat-model it.expert
- 12What should have to be true before a coding agent's pull request counts as done?medium
- 13A coding agent is asked to fix a flaky test. How do you stop it 'fixing' it with retries and sleeps?medium
- 14You review a pull request a coding agent opened. What do you check that the tests cannot?easy
- 15A coding agent must change a legacy module that has no tests. How do you make its change verifiable?medium
- 16You need to migrate 300 files from an old internal API to a new one. How do you use a coding agent for it?medium
- 17Your coding agent's shell tool runs each command in a fresh process, and the agent keeps failing after a cd. Redesign the tool.medium
- 18Design the repository map for a coding agent on a 40,000-file monorepo so that its first read is usually the right file.hard
Agent Guardrails, Identity & Policy Interview Questions
Who authorised this action? Delegated identity for agents acting for people, policy decisions made outside the model, approvals that people actually read, the paths data can leave by, and audit trails that answer a regulator.
- 01What are guardrails for an AI agent, and why is an instruction in the system prompt not one?easy
- 02Draw the line between what the model proposes and what the system executes.medium
- 03An email the agent reads tells it to forward every invoice. What stops it?medium
- 04An agent acts for Alice but must not inherit everything Alice can do. Design the delegation.hard
- 05Write the policy for "refunds up to $100 for the customer being served; above that needs approval".hard
- 06How can an agent leak data without a send tool?hard
- 07Which actions need a human, and how do you keep approvals from becoming a rubber stamp?medium
- 08A low-privilege agent hands work to a high-privilege one. Prevent the escalation.expert
- 09Design an audit trail for agent actions that a regulator would accept.hard
- 10Roll out policy enforcement on forty production tools without breaking customers.hard
- 11Where do credentials live in an agent system?medium
- 12What is the difference between an agent's workload identity and the user's delegated token, and when do you need both?medium
- 13Your guardrail checks add 900 ms to every agent turn. Which can run in parallel with the model, and which must stay inline?medium
- 14A guardrail on your agent blocks 12% of legitimate requests. How do you reduce that without letting harmful ones through?medium
- 15Each refund your agent issues is within policy, but it issued 900 in an hour after a bad prompt change. What limit was missing?medium
- 16A reviewer agent approves actions the worker agent proposes. Is that separation of duties, and what would make it real?hard
- 17Prove to an outside auditor that your agent's action log has not been edited since it was written, including by your own operators.hard
Agentic System Design Interview Questions
The design round end to end: scope the autonomy, draw the loop and its state, define the tools, budget context and cost, design for failure and for hostile input, and prove it works before and after launch.
- 01How do you approach an agentic system design interview? Give the method you would use on any prompt.easy
- 02Design a customer support agent that can issue refunds.hard
- 03Design a deep research agent that writes a cited report.hard
- 04Design a background coding agent for ten thousand engineers.expert
- 05Design an agent that helps on-call engineers triage incidents.hard
- 06Design an invoice-to-payment agent with zero tolerance for a wrong amount.expert
- 07Design an email assistant that drafts replies and schedules meetings.hard
- 08Design an agent platform that fifty internal teams will build on.expert
- 09Design a voice agent that books appointments.hard
- 10Design a data-analysis agent that writes and runs SQL against production replicas.hard
- 11You have six weeks to put an agent live at a bank. Plan it.hard
- 12Your company runs forty agents. What makes a kill switch real, and what should the agent registry hold?hard
- 13Design a procurement agent that gets quotes from suppliers' agents and pays for approved orders.expert
- 14Design a browser agent that files insurance claims in a legacy web portal with no API, for a regulated insurer.expert
- 15Design an IT helpdesk agent that can grant employees access to internal applications.expert
- 16Design an agent that reviews incoming supplier contracts for a legal team and flags terms that deviate from the company's standards.expert
- 17Estimate the capacity and cost of a support agent handling 50,000 conversations a day. Walk through your numbers.hard
- 18A caller cut your voice agent off mid-sentence. Later it says "as I mentioned, the fee is waived". What went wrong?medium
- 19Write the playbook the on-call engineer opens when the agent fleet's spend is eight times normal at 2am with no errors in the logs.hard
- 20Design the approval card and the undo path for an agent that sends emails to customers on behalf of support staff.medium
Build-an-Agent Coding Round Questions
The live rounds where you write the harness yourself or steer an AI tool while someone watches: a tool-calling loop with validation and budgets, a dispatcher for parallel calls, a retry policy, a trace you can explain line by line.
- 01What does a build-an-agent coding round test, and how would you prepare for one in a week?easy
- 02Implement a tool-calling loop with validation, a step budget and error results in 45 minutes.medium
- 03Implement a dispatcher that runs independent calls in parallel and dependent ones in order.hard
- 04Implement retries with backoff, jitter and a retry budget for an agent's tools.medium
- 05Implement a loop detector over normalised tool calls.medium
- 06Implement compaction that keeps decisions, open tasks and identifiers.hard
- 07Implement an idempotent write wrapper keyed on business intent.medium
- 08Write the test harness for an agent with a scripted fake model.medium
- 09Implement pass^k measurement with a confidence interval.hard
- 10An AI-assisted build round: how do you steer and verify the tool while someone watches?medium
- 11Extend your loop to stream progress and support cancellation.hard
- 12Implement an approval gate that binds each approval to the exact tool arguments it covers.medium
- 13Implement a tool-result shaper that fits results into a token budget and tells the model what it cut.medium
- 14Implement the intake for an event-driven agent: deduplicate, drop its own echoes, and turn events into one task per business object.medium
- 15Implement a tool-call validator that rejects bad arguments with error messages the model can act on.medium
- 16Implement a checker that verifies a research agent's citations before the answer reaches the user.medium
Agent Payments & Commerce interview questions
How an agent buys something without a person at the checkout. Signed proof of what the user authorised, checkout and delegated payment tokens, paying per request over HTTP, proving to a merchant that a request comes from a real agent, and the limits, receipts and dispute evidence that keep it accountable.
- 01How can an AI agent pay for something? Name the pieces between 'buy this for me' and a settled payment.easy
- 02Design a shopping agent that can complete purchases while the user is away.hard
- 03The user says the agent bought the wrong item. What evidence decides who pays?medium
- 04A large merchant's bot defences block your shopping agent. How do you get it recognised?medium
- 05A research agent with x402 payments spent its whole daily budget overnight. How do you investigate and contain it?medium
- 06Users want the agent to reorder household items without asking each time. What do you let them authorise?medium
- 07Your company wants AI agents to buy from it directly. What must your checkout API provide?medium
- 08A user revokes their shopping agent's authority while it is in the middle of a purchase. What must happen?medium
- 09Should an AI agent ever hold a company card number? What would you give it instead?easy
- 10A shopping agent with a $200 per-purchase limit splits a $600 order into four purchases across merchants. How should limits be designed?medium
- 11The user approved a $480 cart. At payment time the merchant's total is $512. What should the agent do?easy
- 12Finance asks for a monthly report proving every purchase your agents made was authorised. What do you need to have recorded?medium
- 13Your agent pays a per-request API, and after payment the response is empty or useless. How should the agent and the payment layer handle it?medium
- 14Mid-checkout, the card issuer asks for a step-up authentication challenge. The agent cannot complete it. What should happen?medium
- 15How do you test a purchasing agent end to end without moving real money, and still catch the failures that matter?medium
- 16Agent-placed orders at your store are growing and your fraud model flags most of them. How do you accept good agent orders safely?hard
Agent Frameworks & SDKs interview questions
Google ADK, LangChain and LangGraph, Microsoft Agent Framework, CrewAI, and the OpenAI and Claude agent SDKs, read through the same questions: who owns the loop, where state lives, how a run pauses for a person and resumes, how agents hand work to each other, and what each one hides that you will meet in production.
- 01How do you compare agent frameworks? Name what every one of them has in common and the questions that separate them.easy
- 02Why did you choose that agent framework, and what did you still have to build?medium
- 03After adding a human approval step, customers receive every confirmation email twice. Debug it.medium
- 04In an ADK agent, one customer's shipping address appeared in another customer's conversation. How did it happen?hard
- 05Your organisation runs agents on Semantic Kernel and AutoGen. How do you plan the move to Microsoft Agent Framework?medium
- 06Your CrewAI research crew sometimes skips the fact-check task. Fix it without losing what the crew does well.medium
- 07Add a human approval to an OpenAI Agents SDK agent so it survives a server restart.medium
- 08Design the permissions for a Claude Agent SDK agent that works in your company's monorepo.medium
- 09Two parallel LangGraph branches both add findings, but only one branch's findings survive. Debug it.medium
- 10Your agent is built on a framework. How do you test it in CI without calling a real model or real tools?medium
- 11Your framework-based agent behaves oddly and you suspect the prompt the framework builds. How do you see exactly what was sent to the model?easy
- 12Your agent framework released a new major version. How do you upgrade without changing your agent's behaviour unexpectedly?medium
- 13Each turn of your framework-based agent takes four seconds longer than one model call should. Where is the time going?medium
- 14One team built its agent on ADK, another on LangGraph, and they now need to work together. How do you connect them?medium
- 15Should your agent use the framework's built-in memory and session storage, or your own store?medium
- 16Users should see the agent's steps live: tool calls, approvals, progress. How do you stream them from your framework to the UI?medium
- 17Your framework-based agent must return a result your billing system can ingest. How do you guarantee the final output matches the schema?medium
Agent Harnesses interview questions
The complete runtime around a model: the loop, file and shell tools, permissions, the session log, context management, subagents, skills and hooks. How open harnesses such as DeepSeek Harness are built, how research such as Harness² improves a harness without retraining the model, and how to tell whether a harness change actually helped.
- 01What is an agent harness, and how is it different from a framework and from the model?easy
- 02Design the harness for an internal coding agent that fixes failing tests across your company's repositories.hard
- 03A teammate rewrote the agent's tool guidance and says it is better because the demo task now passes. How do you decide?medium
- 04A lead agent shipped a wrong answer built on a subagent's report that turned out to be cut off. What should the harness have done?medium
- 05Release procedure, Jira access, codebase exploration, never push to main: which agent mechanism for each?medium
- 06What belongs in the harness rather than in the system prompt?easy
- 07Design an agent's session log so any failed run can be replayed and explained.medium
- 08An automated optimiser proposes edits to your agent's prompts, tool guidance and subagents. How do you decide whether to accept them?hard
- 09A config change dropped a policy plugin and the agent ran a forbidden command. How do you prevent a repeat?medium
- 10Use a harness hook to stop a coding agent from running destructive shell commands. What can a hook enforce, and what can't it?medium
- 11Your harness spends 30,000 tokens on instructions and tools before a task starts. What should load up front, and what on demand?medium
- 12You want to run your coding agent's harness headless in CI to fix failing builds automatically. What changes from interactive use?medium
- 13Design the permission modes for a coding agent harness, from 'ask before everything' to 'run unattended'. What changes between them?medium
- 14Two hours into a coding session, after compaction, the agent reverses a design decision the user made early. What should the harness keep?medium
- 15Your team wants to reuse its coding agent harness for data analysis work. What carries over, and what has to change?medium
- 16A harness change improves success with one model and lowers it with another. Your harness supports both. What do you do?hard
- 17How should a coding harness show files and command output to the model so that edits are accurate and context stays small?medium
- 18Your harness has a stop hook that keeps the coding agent working until the tests pass. One run went 300 turns overnight. What do you change?medium
Optimizing & Tuning Agents interview questions
Making an agent cheaper, faster and better in the right order: cutting steps and context, fixing tools, caching and routing, optimising prompts against a metric with DSPy, reinforcement learning with verifiable rewards and GRPO, and distilling routers and small models from production traces, each change proven on held-out tasks.
- 01What does an agent task cost? Show where the tokens, the seconds and the money go in one run, and what you would cut first.easy
- 02An agent task costs too much and takes 90 seconds. How do you cut both systematically?medium
- 03A frontier model improves your agent's accuracy by 2 points but triples inference cost. How do you decide?medium
- 04Design the reward for training a coding agent with reinforcement learning. What makes it useful?hard
- 05What does a prompt optimiser like MIPROv2 or GEPA actually search, and when would you use one?medium
- 06Does training a tool-use agent with GRPO necessarily make it better? What would you check?hard
- 07How would you train a router from your frontier agent's traces so easy steps go to a small model safely?medium
- 08When would you train an agent with reinforcement learning rather than optimise its prompts?hard
- 09After a release, your agent's prompt cache hit rate fell from 80% to 20% and cost nearly tripled. Find the cause.medium
- 10Output tokens make up most of your agent's model bill. Where do they come from, and how do you cut them without hurting results?medium
- 11A small model distilled from your large agent matches it on the eval set but fails more often in production. Why, and what do you do?hard
- 12Your agent makes 14 model calls per typical question and users say it is slow. How do you cut round trips without losing accuracy?medium
- 13Your agent succeeds 90% of the time on a task, but customers need it to succeed every time they run it. What do you optimise, and how?hard
- 14A change cut your agent's cost per task by 25%, and the team wants to celebrate. What should you check before you do?easy
- 15Your agents process 40,000 documents each night. How would batch model APIs cut the cost, and what changes in the agent's design?medium
- 16Your agent's prompt has 12 hand-picked examples. How do you decide which examples to include, and should they change per request?medium
- 17Could you cut agent latency by starting likely tool calls before the model asks for them? When is that safe?hard
AI agent interview questions by company
Companies run different rounds and say different amounts about them in public. Each company page separates what the company has published from what candidates report, and says so when there is little evidence either way.
Before the interview: the role itself
AI agent interviews: FAQ
What is asked in an AI agent engineer interview?
Expect a mix of rounds: writing an agent loop or tool dispatcher live, an agentic system design round (a support agent that can refund, a research agent, a background coding agent), debugging a run from its trace, evaluation and reliability (pass@k against pass^k, judges, regressions), and questions on context management, durable execution, sandboxing and authority. Many loops also run a practical build, with AI tools allowed in some formats and banned in others.
How is an agent interview different from an ML or backend interview?
It sits between them. You are not asked to train the model, and the distributed systems knowledge from backend work still applies, but the system now has a component that is stochastic, slow, paid per token and able to take actions. Interviewers listen for whether you put guarantees in code around the model: budgets, idempotent writes, authorization, verification and measurement across repeated runs.
Do I need to know LangGraph, the OpenAI Agents SDK or another framework?
It helps to have used one, but loops rarely test a framework's API. They test whether you understand what every framework implements: the loop, state, checkpoints, tool dispatch, handoffs and guardrails. Candidates who can build the loop without a framework read any framework quickly; candidates who only know a framework struggle when asked what it does underneath.
How should I prepare for an AI agent interview?
Build a small agent by hand, then break it: kill the worker mid-run, make a tool time out, feed it a misleading document, and fix each failure in the harness. Then work through the design round out loud several times, practise reading traces, and learn the measurement vocabulary well enough to compute pass^k on a whiteboard.
Are these real questions from company interviews?
They are the kinds of questions agent engineering loops ask, drawn from public interview guidance, published engineering practice and the failure modes teams report. No question is attributed to a particular company, and company pages label every interview detail as verified, reported or limited public data.
Every answer, worked from the failure up
332 questions across 19 topics, ordered from the loop to staff-level design, each with the follow-ups interviewers hold in reserve and the lines a panel writes in its debrief. The first questions in every topic are free.
All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.
6 months · One payment · No auto-renewal
Employers change their loops, and no two run the same one. Ask your recruiter which rounds you will face, then use this page to plan for those.