Skip to content
Tech Interview Prep

Agentic AI Engineer Interview Prep

Overview

An Agentic AI Engineer builds bounded, observable foundation-model systems that plan, use tools, retain state, and complete workflows under explicit safety and cost limits.

Curated: · Written: · Reviewed:

Interview Q&A
104
Practice MCQs
110

The role in one line

You build the loop that lets a model plan, call tools, hold state and finish a workflow, and you own the deterministic code that bounds it: authorization, budgets, approvals and the stop switch.

The interview loop

RoundWhat it scores
Recruiter screenRole fit, production agent experience, notice period
Coding (Python)Data structures, async I/O, idempotent handlers, a small state machine
System design (agent platform)Loop design, tool contracts, trust boundaries, memory, queues, observability
Trajectory debuggingReading a step-level trace, naming the failing step and the fix
Safety and governanceApproval gates, capability scoping, injection defence, deletion requirements
Behavioural / hiring managerScope decisions, incidents you have owned, trade-offs you reversed

Five must-know areas

  1. Model judgment versus deterministic control: which decisions the model proposes and which code enforces.
  2. Tool contracts: typed schemas, validation at the platform boundary, and typed errors the model can act on.
  3. Authorization: per-user, per-tool scoped credentials, so the agent never holds more rights than the requester.
  4. Side effects: idempotency keys, durable queues and compensating actions when a workflow fails midway.
  5. Trajectory evaluation: task success, step traces, cost per completed task, and recovery from injection, drift and budget exhaustion.

Numbers and formulas to have ready

Treat these as definitions you can quote. Actual prices, context limits and retry rates depend on your provider's current price sheet and model documentation, and on your own measured traces. Name that source when you quote a number.

Cost per task, summed over n steps:

Ctask=∑i=1n(tiinpin+tioutpout)C_{task} = \sum_{i=1}^{n} \left( t^{in}_i p^{in} + t^{out}_i p^{out} \right)

where t is tokens in or out for step i and p is the per-token price from the provider's pricing page.

Budget stop, checked before each model call:

Cspent+Cnext>B⇒halt and escalateC_{spent} + C_{next} > B \Rightarrow \text{halt and escalate}

C_next is the estimate for the next call, so the run stops before it overspends rather than after.

Expected attempts for a retried idempotent call, assuming independent transient failures with probability q:

E[attempts]=11−qE[\text{attempts}] = \frac{1}{1-q}

A non-idempotent call has no safe retry, so this formula does not apply to it.

Context fill, checked against the limit stated in the model documentation:

f=Tprompt+Toutput_reserveLcontextf = \frac{T_{prompt} + T_{output\_reserve}}{L_{context}}

Reference architecture

allowed needs approval Requester with scoped identity Orchestrator loop with step and cost caps Model proposes next action Schema validation and policy check Tool gateway with scoped credentials Approval queue Durable state and idempotency log Kill switch and trace store

The model only proposes actions. Validation, the tool gateway and the kill switch are deterministic code. Every tool call carries an idempotency key written to the durable log before execution. Approval pauses the run durably, so it survives a restart. The kill switch can stop one tool scope or one run, not only the whole agent.

Strong vs weak answers

QuestionStrong answer sounds likeWeak answer sounds like
TerminationThe loop stops when a task predicate the code checks is true, or when a step, cost or time cap is hit, whichever comes first.The model says it is done.
RetriesOnly idempotent tools retry, using a stored key, capped at three attempts, with exponential backoff and jitter.We retry on error.
Tool argumentsThe gateway validates against the schema and returns a typed error the model can read and repair.The model is good at formatting arguments.
AuthorizationThe tool runs under the requester's scoped token, and the agent's own service account has no write rights.The agent has admin access so it can do anything it needs.
Partial failureEach committed step has a compensating action in the log, and resume starts from the last committed step.We restart the whole workflow.
Memory writesA write needs a source, a policy check and a deletion path, and retrieval ranks by relevance and recency.We store everything so it remembers.

Interview tips

  1. Open with the task predicate and trust boundaries before naming any framework.
  2. When you debug a trace, name the first step that went wrong before proposing a fix.
  3. Quote one number you measured, and say which inputs it depends on.
  4. When asked about multi-agent designs, argue for the single-agent version first and say what would break it.
  5. Explain how autonomy stops: which trigger, which scope, and who is allowed to pull it.

Last-week checklist

  • Rehearse the Top 100 answers aloud, timed.
  • Rehearse the concept answers in study order, starting with LLM Agents & Tool Use.
  • Prepare one incident story that includes a real step-level trace.
  • Re-derive the cost, budget and retry formulas on paper without notes.
  • Check current provider prices, context limits and rate limits against official documentation.

Feedback on this overview

Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.