Skip to content

Agentic AI Engineer interview questions

100 real questions with model answers and explanations for Junior candidates.

See a Agentic AI Engineer resume example

Practice with flashcards

Spaced repetition · Hunter Pass

Questions

agents

A chatbot mainly produces conversational replies, while an agent can choose actions and use tools to pursue a task.

  • A support chatbot may explain a refund policy; an agent may also look up the order and submit an approved refund.
  • The agent keeps task state across several steps and uses tool observations to decide what to do next.
  • Tool access creates real failure and safety risks, so an agent needs permissions, budgets, and stop conditions.

Why interviewers ask this: The interviewer checks whether you define agency through actions, state, and control boundaries rather than through conversational style.

agents

A run should use explicit statuses such as queued, running, waiting, succeeded, failed, and canceled, with one defined meaning for each.

  • Queued means accepted but not started, while running means work may still produce actions and events.
  • Waiting is nonterminal and must record what can resume the run, such as user input, approval, or a scheduled retry.
  • Only the runtime should apply validated status transitions, and terminal statuses must record the reason and completion time.

Why interviewers ask this: The interviewer checks whether you model a run lifecycle precisely enough for recovery, monitoring, and safe orchestration.

agents

An autonomy boundary states which decisions and actions the agent may take without human approval.

  • A travel agent may search and draft an itinerary but require approval before spending money or booking a nonrefundable ticket.
  • The boundary should name allowed tools, data scopes, monetary limits, and actions that always escalate.
  • Enforcement belongs in application code and permissions, not only in a prompt the model can ignore.

Why interviewers ask this: The interviewer evaluates whether you can turn a vague autonomy requirement into enforceable capabilities and escalation rules.

agents

A proposal is inert data describing what the model wants to do, while dispatch is the trusted step that may change an external system.

  • Store the exact operation, target, arguments, and proposal version before any policy or approval decision.
  • Authorization must bind the principal, permitted action, proposal version, and expiry so a changed proposal needs a new decision.
  • Only the dispatcher executes, and it must reject missing, stale, or mismatched authorization even if the model asks confidently.

Why interviewers ask this: A strong answer keeps model intent separate from the trusted authority that permits and performs a real action.

react

ReAct interleaves reasoning about the next step, an action, and the resulting observation so the agent can adjust from evidence.

  • A research agent may record a short plan to verify a claim, call search, and use the returned sources to choose a narrower query.
  • I would trace tool names, validated arguments, observations, and concise decision summaries that explain observable choices.
  • I would never request or store private chain-of-thought because short plans and decision summaries provide useful debugging evidence without hidden reasoning.

Why interviewers ask this: A strong answer covers reasoning, acting, and observation while keeping private chain-of-thought out of logs.

agentssessions

A stable run ID identifies one execution of one task, while user and session IDs identify an actor or conversation that may contain many runs.

  • Pauses, resumes, and step retries keep the same run ID, while a new independent task receives a new one.
  • Each child step or delegated task gets its own ID linked to the parent run, preventing its state and results from being attached to another run.
  • These IDs establish ownership and lineage, not authority, so every action still needs a separate permission check for the acting principal and scope.

Why interviewers ask this: The interviewer checks whether you separate task identity from user and conversation identity while keeping child work attributable without turning identifiers into permissions.

agents

A state machine makes the agent's allowed stages and transitions explicit instead of leaving the whole flow to free-form generation.

  • A support task can move through identify customer, inspect order, propose action, await approval, and complete.
  • Invalid transitions, such as refund before identity verification, can be rejected by code.
  • Explicit states make retries, tests, and recovery easier because each run has a known current position.

Why interviewers ask this: The interviewer evaluates whether you can add deterministic structure around uncertain model decisions.

agents

An observation is model-facing context about what appeared to happen, while a durable receipt is authoritative evidence recorded by the executor or external service.

  • A receipt should identify the run, logical action, idempotency key, outcome, timestamp, and external operation ID when available.
  • Tool text, streamed progress, or a model summary can be incomplete and must not replace that receipt in operational state.
  • Recovery should read the receipt or query the external operation before deciding whether to retry a side effect.

Why interviewers ask this: The interviewer checks whether you distinguish conversational evidence from durable proof of an external action.

agents

State-dependent exposure limits the model to capabilities that are valid for the run's verified stage instead of advertising every tool throughout the task.

  • Before identity verification, a support agent may see verification tools but not refund or account-change tools.
  • After a state transition, the runtime recomputes the active tool set and removes capabilities whose approval or temporary scope has expired.
  • Remembering a hidden tool name grants nothing because the dispatcher still checks current state and authority.

Why interviewers ask this: A strong answer uses dynamic capability exposure to reduce invalid or premature actions without relying on model restraint.

agentsvalidation

Pydantic converts untrusted model output into typed Python data or rejects it with structured validation errors.

  • A Pydantic model can require customer_id as a UUID and quantity as an integer greater than zero.
  • Field validators can normalize accepted input, while forbidden extra fields catch invented arguments.
  • A ValidationError should become a concise correction signal or a failed call, never be bypassed with raw input.

Why interviewers ask this: The interviewer checks whether you use Pydantic as a runtime trust boundary rather than only as type hints.

agents

Preconditions are facts that must hold immediately before dispatch, while postconditions are facts or receipts that prove the intended effect afterward.

  • A refund can require a verified customer, a refundable order version, and valid approval before execution.
  • Its postconditions can require a refund receipt with the expected order, amount, currency, and accepted status.
  • If a postcondition cannot be confirmed, the runtime should mark the effect unknown and reconcile it rather than assume success or safe rollback.

Why interviewers ask this: The interviewer evaluates whether you surround actions with explicit checks before execution and evidence after execution.

agents

The runtime should inspect dependencies and side effects before deciding whether the calls may run in parallel or must be ordered.

  • Independent read-only calls can run concurrently when each has its own call ID, timeout, and result slot.
  • Calls that mutate shared state or depend on another result should be serialized in an explicit order rather than launched together.
  • Every result or error must return under the matching call ID, and one failed call must not make the agent assume the others failed or succeeded.

Why interviewers ask this: A strong answer coordinates parallel tool proposals according to dependencies and effects while preserving an unambiguous result for each call.

agents

A parent should delegate a reserved subset of its remaining budget, and the child must never create or exceed additional capacity.

  • The assignment can cap model tokens, tool calls, cost, elapsed time, and delegation depth for that child.
  • Child usage must debit the parent budget atomically, while parallel reservations prevent several children from overspending the same remainder.
  • Unused reservation can return to the parent, but exhaustion makes the child return a partial result and stop further work.

Why interviewers ask this: The interviewer checks whether delegated work inherits enforceable limits instead of multiplying the system's budget.

agents

The agent should classify the error, preserve task state, and choose a bounded recovery path instead of pretending the call succeeded.

  • A validation error can trigger one corrected call using the returned field details.
  • A permission error should stop or escalate because changing arguments must not bypass authorization.
  • A transient timeout can be retried under policy, while an unknown server error should be logged with a trace ID and surfaced safely.

Why interviewers ask this: A strong answer maps different error classes to correction, retry, escalation, or termination.

agents

Bounded retries let an agent recover from temporary failures without entering an expensive or harmful loop.

  • Retry only errors marked transient, such as a 503 or timeout, not invalid credentials or a rejected payment.
  • Use a small limit such as three attempts with exponential backoff and jitter.
  • Record the attempt count in task state, then stop or escalate when the limit is reached.

Why interviewers ask this: The interviewer checks whether you can distinguish controlled recovery from blind repetition.

agentsidempotency

An idempotency key lets repeated requests represent one logical operation, preventing duplicate side effects after retries.

  • Before creating a payment, the agent runtime can derive or store one key for that task and action.
  • The service records the first result and returns it when the same key arrives again instead of charging twice.
  • The key must remain stable across retries but differ for a genuinely new user-approved operation.

Why interviewers ask this: A strong answer connects idempotency keys to real agent retries and duplicate-action prevention.

Read-only tools observe data, while side-effecting tools change external state and therefore need stricter controls.

  • Searching a catalog can often run automatically, but sending email, deleting a file, or charging a card changes the world.
  • Side-effecting calls need explicit permissions, validated targets, audit records, and often user approval.
  • A dry-run or preview can show the proposed change before the committing tool is called.

Why interviewers ask this: The interviewer evaluates whether your safety design reflects the real consequences of tool execution.

agentsleast-privilege

Least privilege gives an agent only the tools and data scopes required for its current role and task.

  • A scheduling agent may read free-busy slots without permission to read email bodies or delete calendar events.
  • Use scoped credentials and per-tool authorization instead of one broad service token shared by every agent.
  • Remove temporary access when the run ends and audit denied calls to find overly broad plans or attacks.

Why interviewers ask this: A strong answer turns least privilege into concrete tool, credential, and data-scope restrictions.

agentsapproval

An approval gate should precede irreversible, costly, sensitive, or policy-significant actions.

  • Before sending a contract, the UI should show the exact recipient, attachment, and message the agent intends to use.
  • Approval must bind to that specific action payload so later model changes cannot alter it silently.
  • Rejection should return the task to a safe state where the user can edit, cancel, or provide a new instruction.

Why interviewers ask this: The interviewer checks whether human oversight is specific, enforceable, and placed before the consequential action.

Terminal accounting must classify every action intent so the final status does not hide work that is still pending or has an unknown external effect.

  • Record which actions were never dispatched, which have durable success or failure receipts, and which remain pending or unknown.
  • Mark a run succeeded only when all required effects are confirmed; a failed or canceled run may still need reconciliation for uncertain effects.
  • The final report should separate confirmed outcomes, skipped work, and unresolved effects with their operation IDs and owners.

Why interviewers ask this: A strong answer makes terminal run status truthful about external work that may outlive or outlast the agent process.

Locked questions

  • 21

    How should a user's identity and authority propagate through delegated agent work?

    agentsdelegation
  • 22

    How does the context window affect an agent?

    contextagents
  • 23

    How does task state differ from chat history?

  • 24

    What is short-term memory in an agent?

    agentsmemory
  • 25

    What is semantic memory for an agent?

    agentsmemory
  • 26

    What is episodic memory for an agent?

    agentsmemory
  • 27

    What should an agent's memory write policy decide?

    agentsmemory
  • 28

    How should an agent retrieve memories for a task?

    agents
  • 29

    Why summarize an agent's memory or history?

    agentsmemory
  • 30

    What is state in a LangGraph application?

    langgraph
  • 31

    How do nodes, edges, and conditional routing work in LangGraph?

    langgraph
  • 32

    What is a checkpoint in an agent workflow?

    agents
  • 33

    How do interrupt and resume work in a LangGraph human-in-the-loop flow?

    langgraph
  • 34

    How do roles and tasks differ in CrewAI?

  • 35

    What do agent messages represent in AutoGen?

    agents
  • 36

    How do an MCP client and MCP server work together?

    mcp
  • 37

    What is an MCP tool?

  • 38

    What is an MCP resource?

  • 39

    What is an MCP prompt?

    prompting
  • 40

    When should a browser agent use DOM or accessibility data instead of a screenshot?

    doma11yagents
  • 41

    What does a sandbox provide for an agent that runs code?

    agents
  • 42

    How should an agent use RAG as one read-only tool?

    ragagents
  • 43

    An MCP server requests roots while the user switches workspaces. How should the host manage the roots lifecycle?

    mcp
  • 44

    What does a coordinator do in a multi-agent system?

    system-designmulti-agentagents
  • 45

    What is shared blackboard state in a multi-agent system?

    system-designmulti-agentagents
  • 46

    How should a multi-agent system resolve conflicting results?

    system-designmulti-agentagents
  • 47

    What does end-to-end task success measure for an agent?

    agentse2e
  • 48

    How would you measure tool-call accuracy?

  • 49

    How do you calculate cost per successful agent task?

    agents
  • 50

    How does LangSmith trajectory tracing help debug an agent?

    agents
  • 51

    An agent uses web search to calculate a refund total even though a calculator tool is available. How would you fix the wrong tool choice?

    web-searchcalculatoragents
  • 52

    The model calls a tool with malformed JSON arguments. What should the agent runtime do?

    agentsjsonruntime
  • 53

    A booking tool accepts an enum for room type and an ISO date, but the agent sends large and next Friday. How would you handle it?

    agentsenum
  • 54

    A calendar tool returns 403 because the connected account lacks the required write scope. What should the agent do?

    agents
  • 55

    A read-only tool returns HTTP 500 during an agent run. How would you respond?

    httpagents
  • 56

    A payment tool succeeds but its response is lost, and the agent retries the call and charges twice. How would you prevent this?

    agentspayments
  • 57

    A tool times out after 20 seconds and the agent cannot tell whether the action completed. What would you do?

    agents
  • 58

    An agent keeps calling the same inventory tool with identical arguments and receives the same empty result. How would you stop the loop?

    agents
  • 59

    An agent reaches its token or tool-call budget before completing a task. How should it finish?

    tokensagentstool-budget
  • 60

    An agent planned to edit three files, but inspection shows the first file no longer exists. What should happen to the plan?

    agents
  • 61

    A log-search tool returns several megabytes and fills the agent's context. How would you redesign the interaction?

    agentslog-search
  • 62

    Agent memory says a customer's plan is Basic, but the billing tool now reports Pro. Which fact should the agent use?

    agentsmemoryagent-memory
  • 63

    The user cancels while an agent is halfway through a multi-step task. How should cancellation work?

    agentsresilience
  • 64

    An agent sends a customer refund even though the workflow required human approval. How would you prevent approval from being skipped?

    agentsapproval
  • 65

    An agent process restarts after completing two of five steps and loses its in-memory state. How would you make recovery safe?

    agentsmemoryconcurrency
  • 66

    A graph routes a support ticket to the refund branch when it should ask a clarification question. How would you debug it?

  • 67

    A LangGraph run paused at an interrupt must resume after a deployment. What information and checks do you need?

    deploymentlanggraph
  • 68

    An agent is about to act on an observation gathered earlier in the same run, but the underlying state may have changed. How would you prevent a stale result from causing the wrong side effect?

    agents
  • 69

    A human answers an agent's clarification request, but the LangGraph run remains paused forever. What would you inspect?

    agentslanggraph
  • 70

    An agent cannot discover tools from an MCP server. How would you troubleshoot it?

    agentsmcp
  • 71

    An MCP tool changes a required argument from city to location, and existing calls begin failing. How would you handle the schema change?

    schema
  • 72

    An agent requests an MCP resource URI that the server says does not exist. What should it do next?

    agents
  • 73

    An MCP tool declares an outputSchema, but its structuredContent disagrees with its human-readable content. What should the client do?

    conflict
  • 74

    A browser agent's CSS selector stops matching after a website redesign. How would you make the step more robust?

    cssagents
  • 75

    A browser click opens a popup or new tab, but the agent continues operating on the old page. How would you fix the flow?

    agents
  • 76

    A browser agent's login session expires in the middle of filling a form. What should happen?

    agentssessionsforms
  • 77

    A browser agent clicks Download, but it is unclear whether a file was actually saved. How would you verify success?

    agents
  • 78

    A browser agent follows a search result through redirects before continuing a task. How should it track navigation provenance?

    agents
  • 79

    A tool result says it needs the user's API key in the next call to continue. What should the agent do?

    agentsapi
  • 80

    A file tool receives ../../etc/passwd as a path from the model. How would you block path traversal?

    path-traversal
  • 81

    You need to give an agent a shell tool for a coding task. How would you sandbox it?

    agents
  • 82

    An MCP tool needs one missing, non-sensitive field before it can continue. How should elicitation pause the agent and resume safely?

    agents
  • 83

    An MCP server asks the client to sample a model response. Who controls the request, and why must the server not inherit the host agent tools?

    agentsownershipmcp
  • 84

    An agent must compute tax on 37 invoice lines. Would you let the model do the arithmetic mentally or call a calculator tool?

    agentscalculator
  • 85

    A user in Berlin asks an agent to book a meeting with someone in New York at 9 AM next Monday. How would you handle the timezone?

    agents
  • 86

    An agent can send email, but product policy requires a draft before every send. How would you implement that flow?

    agents
  • 87

    A computer-use agent is about to click a desktop button using coordinates from an old screenshot. How should it act safely?

    agentscomputer-use
  • 88

    A desktop agent reaches an operating-system file picker that is absent from the webpage DOM. How would you let it select one approved file without exposing the rest of the filesystem?

    agentsrestsystem-design
  • 89

    Two worker agents independently summarize the same 40 documents, doubling cost. How would you prevent duplicate work?

    agents
  • 90

    A coordinator agent waits forever for one worker that crashed. How would you avoid the hang?

    agents
  • 91

    Two agents produce conflicting answers about whether an order was refunded. How should the coordinator decide?

    agents
  • 92

    A research agent hands work to a writer but omits the user's date range and source restrictions. How would you improve the handoff?

    agents
  • 93

    Tool logs exist, but you cannot connect them to the agent run that caused them because trace IDs are missing. How would you fix observability?

    agentsobservability
  • 94

    A prompt change makes an agent fail a previously passing golden trajectory. How would you investigate the regression?

    promptingagents
  • 95

    The same agent evaluation produces different scores on repeated runs. How would you make the result useful?

    agentsllm-eval
  • 96

    An agent completes the user's task but made one unnecessary and incorrect tool call along the way. Should the eval pass?

    agents
  • 97

    An eval batch of 120 agent tasks costs $18 in total, and 90 tasks meet the success criteria. What would you report and investigate?

    agentsbatchfundamentals
  • 98

    A team reports average tool latency, but users still complain about slow agent runs. Why would you examine p95 latency?

    latencyagents
  • 99

    A policy layer blocks an agent action. What should a safety reason code contain and how would you use it?

    agents
  • 100

    How would you explain a junior agent project in an interview using success, cost, and safety results?

    agents