Agentic AI interviews test control, not theatrical autonomy. A strong candidate can separate deterministic workflows from model-selected actions, authorize tools, preserve state, recover from uncertainty, and stop safely.
The expanded 2026 bank adds idempotent actions, human approval, prompt injection, memory poisoning, durable execution, MCP trust boundaries, trajectory evaluation, and hard runtime budgets. Decisions are explained through state, evidence, policies, receipts, and outcomes.
This is the expanded interview-preparation version
Current, research-driven questions are shown first so you can immediately see what changed. Each question keeps the detailed answer, example, likely follow-up, and weak-answer warning.
What you will be able to do
- Distinguish agents from workflows
- Design reliable and authorized tools
- Manage context, memory, and state
- Recover durable workflows
- Evaluate safety, cost, latency, and progress
A valid tool call is not yet an authorized action
Every side effect crosses separate gates
The control boundary
A model may propose an action. Deterministic software validates its schema, authorizes the caller and resource, enforces budgets, checks idempotency, executes through the real service, records a receipt, and updates durable state. This boundary is where agent reliability becomes engineering rather than prompting.
21 interview questions with detailed answers
The 9 questions marked 2026 SIGNAL are shown first because they reflect current public big-tech interview patterns. Core fundamentals follow after them.
These were added or elevated from the latest research pass. They are intentionally placed before the older core bank so the update is visible immediately.
Agent interviews increasingly test reliability around real actions, not only reasoning prompts.
How do you make tool calls idempotent so retries do not create duplicate side effects?
Give each intended action a stable idempotency key, persist the result, and make retries return the existing outcome instead of repeating the side effect.
Model calls and networks fail, so retries are normal. Exactly-once execution is difficult across distributed systems; design at-least-once delivery with idempotent business operations, deduplication, and explicit receipts.
Human-in-the-loop design appears in current enterprise-agent and durable-workflow interviews.
Where should human approval sit in an agent workflow?
Place approval before high-impact, irreversible, expensive, or policy-sensitive side effects, and show the human the proposed action plus the evidence needed to judge it.
Do not require approval for every low-risk read because that destroys usability. Risk-tier tools and actions, use policy engines for routine decisions, and require stronger approval for money movement, deletion, external communication, or sensitive-data access.
Security and prompt-injection resistance are now core agent-design topics.
How do you defend an agent from prompt injection in a tool result?
Treat tool output as data, not instructions. Keep policy and tool authority outside the model, label provenance, restrict available actions, validate arguments, and require approval where impact is high.
A browser page, email, PDF, or database field can contain malicious instructions. The orchestration layer should enforce capability boundaries even if the model follows the injected text.
Persistent agent memory creates new security and privacy questions that older chatbot interview guides rarely covered.
What is memory poisoning, and how would you prevent it?
Memory poisoning occurs when false, malicious, or low-quality information is persisted and later trusted as context. Gate writes, store provenance, scope memory by user/task, and allow correction or expiration.
Long-term memory should be a governed data store, not a transcript dump. Separate observations from verified facts, attach confidence and source, and avoid persisting secrets or attacker-controlled instructions by default.
Durable and long-running agents are a current production interview area, especially for enterprise automation.
How would you design retries and checkpoints for a long-running agent?
Persist explicit workflow state after meaningful steps, classify errors as retryable or terminal, use bounded exponential backoff, and resume from the last committed state instead of restarting the whole task.
Side effects need receipts and idempotency. Checkpoint schema must be versioned. Long tasks need deadlines, cancellation, human intervention, and compensating actions when a later step fails.
Current agent evaluation practice focuses increasingly on trajectories, safety, and task success together.
How do you evaluate an agent trajectory, not just the final answer?
Score task success plus the path taken: tool selection, argument correctness, policy compliance, evidence use, unnecessary steps, recovery, cost, and latency.
Two agents can reach the same final answer while one leaks data, makes redundant calls, or succeeds accidentally. Store structured traces and label critical intermediate decisions so regressions can be localized.
Multi-agent questions now test architectural judgment rather than framework memorization.
When does multi-agent architecture make a system worse?
Multi-agent systems can add coordination errors, duplicate work, latency, cost, and ambiguous ownership. Use them only when decomposition creates clear independent roles or parallelism that beats a simpler workflow.
Prefer one agent plus deterministic tools until evidence shows a need for specialization. If multiple agents are used, define handoff contracts, shared-state rules, budgets, conflict resolution, and one accountable orchestrator.
MCP and agent interoperability are now directly relevant to modern AI-engineer interviews.
What trust boundary does MCP create, and what still belongs to the application?
MCP standardizes how an AI application can discover and interact with exposed tools or resources; it does not decide whether a user is authorized, whether a tool is safe, or whether a side effect should be approved.
The host application still owns identity, policy, tool allowlists, consent, secrets, validation, rate limits, logging, and isolation. Treat every external server and returned resource according to its trust level.
Latency/cost/stop-condition questions recur in agentic system-design and production interviews.
How would you budget an agent so it cannot run forever or spend unpredictably?
Set explicit limits on wall-clock time, model tokens, tool calls, recursion depth, fan-out, and monetary cost, and stop when progress stalls or confidence is insufficient.
Budgets should be enforced outside the model and vary by task value. Track remaining budget in state, prefer cheaper steps early, and define graceful degradation such as returning partial evidence or requesting human help.
Agent versus workflow—what is the practical difference?
A workflow follows a mostly predetermined path; an agent lets a model choose among allowed next actions from state and observations.
Use deterministic control where rules are known. Add agentic choice only where flexible interpretation adds enough value to justify uncertainty, cost, and evaluation burden.
What makes a tool reliable?
A reliable tool has a narrow typed schema, explicit semantics, server-side validation and authorization, bounded side effects, idempotency where needed, timeouts, and receipts.
Descriptions help the model choose; they do not enforce policy. Error results should be structured enough for safe recovery.
A tool call is schema-valid but unauthorized. What happens?
Reject it before execution, return a minimal structured denial, record the attempt, and do not let model instructions override identity or policy.
Authorization checks caller, tenant, resource, action, amount, and approval state. Least privilege keeps compromise impact bounded.
How do context engineering and memory differ?
Context engineering chooses what enters the current model call; memory stores information across steps or sessions and must later be retrieved, validated, and budgeted into context.
Classify sources by trust, freshness, relevance, and sensitivity. Summaries can lose details; retrieved content can contain prompt injection.
State, checkpoints, and long-running workflows—why are they needed?
Explicit state records completed actions, pending work, approvals, budgets, versions, and receipts so a workflow can resume without guessing.
A checkpoint must be validated against current external state. Resumption is not simply replay because prior side effects may already exist.
What are planning, ReAct, and reflection useful for?
Planning decomposes goals, ReAct alternates model-visible action and observation, and reflection checks an artifact or trajectory against explicit criteria.
Each needs step, time, and cost budgets plus stop conditions. Reflection without new evidence can become an expensive loop.
An agent repeatedly searches without progress. How do you stop it?
Track novelty and coverage, cap attempts/tokens/time/cost, require a verifier signal, and stop with an explicit incomplete result when progress stalls.
Repeated equivalent queries are observable evidence. Escalate or ask for missing input rather than hiding the loop.
When does multi-agent design help?
It helps when roles have meaningfully different tools, context, permissions, or parallelizable work; otherwise one agent or workflow is simpler.
Handoffs need typed tasks, ownership, shared state, conflict resolution, budgets, and an aggregator that preserves provenance.
What does MCP standardize, and what does it not?
MCP standardizes how clients discover and invoke server-exposed tools/resources/prompts. It does not guarantee the underlying service is safe, authorized, correct, or available.
The host still controls trust, user consent, credentials, isolation, and result handling. Capability discovery should expose only allowed scope.
How do you secure browser/computer-use agents against prompt injection?
Treat webpage text as data, not authority; isolate credentials, restrict tools and destinations, require confirmation for high-impact actions, and verify targets before execution.
Use domain allowlists, read/write separation, sandboxing, content provenance, and policy checks outside the model.
How do you evaluate an agent?
Measure task success, constraint violations, tool correctness, trajectory efficiency, recovery, safety, latency, and cost on versioned scenarios.
Outcome-only scoring can hide unsafe or wasteful paths. Replayable traces show proposals, validations, calls, receipts, state, verifier outcomes, and stops.
Design observability and stopping for an agent in production.
Trace each run and span with versions, inputs, decisions, tool calls, errors, tokens, latency, cost, state changes, and stop reason while redacting sensitive content.
Budgets should be enforced during execution, not measured afterward. Alerts need service, quality, safety, and business context.
Review the deeper lessons
Use these links when an interview question exposes a gap. The interview guide focuses on explanation and decision-making; the linked lesson teaches the full concept.
Keep the answer honest: role boundaries, interview processes, and project outcomes vary. Never invent experience, impact, salary, or certainty to make an answer sound stronger.
Summary / Key Takeaways
- Agentic design allocates bounded model choice inside deterministic controls.
- Tool schemas describe calls; validation, authorization, idempotency, and receipts make actions safe.
- Context is assembled for one call, while memory persists and must later be retrieved and trusted.
- Durable state and checkpoint validation prevent uncertain side effects from being repeated blindly.
- Planning, reflection, and multi-agent coordination need progress metrics, budgets, and stop rules.
- MCP standardizes interaction but does not replace service security or host policy.
- Agent evaluation combines outcome, trajectory, safety, recovery, latency, cost, and explicit stop reasons.