Cracking ML Interviews

Open in the interactive study hub

The Agentic AI Engineer Roadmap

A complete, layered curriculum for becoming a production-grade Agentic AI Engineer: from Python foundations to frontier topics like agent platforms and self-improving agents.

This is an interview-prep guide, so every topic follows the same shape:

How to use this: Work top-to-bottom, the layers are ordered by dependency. The final section, What Actually Gets You Hired, is the judgment senior interviews really probe.


Table of Contents

Foundation Layer

  1. Python for AI Engineering
  2. LLM Fundamentals
  3. Prompt Engineering
  4. LLM APIs

Core Agentic Layer 5. Tool Use / Function Calling 6. Agent Loops 7. Memory Systems 8. RAG 9. Frameworks

Intermediate Agentic Layer 10. Multi-Agent Systems 11. MCP 12. Planning & Task Decomposition 13. Structured Outputs & Validation 14. Long-Context Management 15. Agent State Management

Advanced Agentic Layer 16. LangGraph / Workflows as Graphs 17. Human-in-the-Loop 18. Tool Design & Ecosystems 19. Evaluation & Testing 20. Observability & Tracing 21. Code Execution Agents 22. Browser & Computer Use

Production & Senior Layer 23. Reliability & Failure Modes 24. Latency Optimization 25. Cost Management at Scale 26. Security for Agentic Systems 27. Deployment Patterns 28. Agentic Architecture Patterns

Expert / Frontier Layer 29. Fine-tuning for Agentic Behavior 30. Reasoning Models 31. Multi-Modal Agents 32. Agent Communication Standards 33. Building Agent Platforms 34. Self-Improving Agents / Meta-Agents


Foundation Layer

1. Python for AI Engineering

What it is. The everyday Python that LLM apps and agents are built from: concurrency for parallel API calls, type hints and Pydantic for schemas/validation, clean dependency/secret management, and robust error handling + logging. It's listed first because weak Python here surfaces immediately as flaky, slow, unobservable agents.

Key points:

Interview questions:

  1. When do you reach for async in an AI app? For I/O-bound concurrency: parallel model/tool/DB calls. Use asyncio.gather, cap with a semaphore for rate limits. Not for CPU-bound work (use processes).
  2. Why Pydantic in an LLM pipeline? It validates/coerces data at the boundary, auto-generates JSON schemas for tools, and loads typed config, so the rest of the code can trust its types.
  3. How do you handle a 429 vs a 400? Retry 429 (and 5xx) with exponential backoff + jitter; never retry 400: it's a client error, fix the request.

Read more: Python for AI Engineering · Pydantic · FastAPI

2. LLM Fundamentals

What it is. How the model you're orchestrating actually behaves. A modern LLM is a decoder-only transformer that predicts the next token autoregressively; self-attention lets each token weigh every other token in the context. Everything you do: prompting, tools, RAG: is shaping that next-token prediction.

Key points:

Interview questions:

  1. Explain self-attention in one sentence. A mechanism that lets each token compute a weighted combination of all other tokens' representations, so context flows between positions.
  2. What is a context window and why does it matter? The max tokens a model can attend to per request; exceed it and you must truncate, summarize, or retrieve.
  3. temperature vs top_p? Both control randomness; temperature scales the whole distribution, top_p truncates it to the smallest set covering probability p. Tune one.
  4. Why do LLMs hallucinate? They predict plausible tokens, not verified facts; with no grounding they'll confidently fill gaps. Mitigate with RAG, citations, lower temperature.

Read more: LLM Fundamentals · Transformers

3. Prompt Engineering

What it is. The practice of structuring instructions, context, and examples to get reliable behavior out of an LLM: the cheapest, fastest lever on quality before you reach for tools or fine-tuning.

Key points:

Interview questions:

  1. What is Chain-of-Thought and when does it help? Prompting the model to show intermediate reasoning; it improves multi-step math/logic/planning tasks.
  2. Zero-shot vs few-shot: trade-off? Few-shot improves format adherence and tricky behavior but costs tokens and can bias toward the examples; zero-shot is cheaper.
  3. What is the ReAct pattern? Reason → Act (call a tool) → Observe (result) → repeat; it lets the model use tools and ground its reasoning in real results.
  4. How do you make a model return strict JSON? Schema-constrained/structured outputs or strict tool mode, plus a retry that feeds the validation error back.

Read more: Prompt Engineering

4. LLM APIs

What it is. The provider interfaces (OpenAI, Anthropic, Google) you call to run a model: you send messages + parameters to a chat/messages endpoint and get content blocks back, optionally streamed. Knowing their tiers, limits, and failure modes is core to building cost-effective, reliable systems.

Key points:

Provider Frontier / reasoning Balanced Fast / cheap
Anthropic claude-fable-5-1, claude-opus-5-5 claude-sonnet-5 claude-haiku-4-5
OpenAI GPT frontier tier GPT mid tier GPT mini/nano tier
Google Gemini Pro/Ultra tier Gemini Flash Gemini Flash-Lite

Confirm current model IDs and pricing from each provider's docs: they change often.

Interview questions:

  1. Why stream responses? Lower perceived latency (tokens appear immediately) and it avoids HTTP timeouts on long outputs.
  2. How do you choose between model tiers? Pick the cheapest tier that clears the quality bar on an eval set; route easy traffic to a small model, escalate hard cases.
  3. How do you handle rate limits gracefully? Exponential backoff + jitter on 429, respect retry-after, cap concurrency with a semaphore, and consider batching.

Read more: Anthropic & Claude API · Multi-Model Orchestration


Core Agentic Layer

5. Tool Use / Function Calling

What it is. The mechanism that lets an LLM do things, not just talk. You give the model tool definitions (name, description, JSON schema). When it wants to act, it returns a tool-use request with arguments; your code executes the tool and feeds the result back into the conversation. This loop is the heartbeat of every agent.

Key points:

Interview questions:

  1. Walk me through one function-calling turn. Send tools + messages → model returns a tool-use block with args → execute the tool → append assistant turn + a tool_result (matching tool_use_id) → call again → model produces the final answer.
  2. Why must parallel tool results go in one message? Splitting them breaks the tool_use_id pairing and trains the model to stop issuing parallel calls.
  3. Does the LLM execute the tool? No: it only emits a structured request; your harness runs the code and returns the result. (Server-side tools are the exception: the provider runs them.)

Read more: Agent Systems & Tool Use

6. Agent Loops

What it is. The control loop that turns a one-shot LLM into an agent: observe → think → act → observe. The model reasons, calls a tool, sees the result, and repeats until the goal is met or a stop condition fires. The simplest concrete form is the ReAct loop.

Key points:

Interview questions:

  1. Describe the basic agent loop. Observe (context/result) → think (model reasons) → act (tool call) → observe (tool result), repeating until a stop condition.
  2. How do you stop an agent from looping forever? Max-iteration and token budgets, loop/repeat-state detection, and explicit stop instructions.
  3. When would you write the loop manually instead of using a framework runner? When you need human-in-the-loop approval, custom logging/tracing, or conditional execution the runner doesn't expose.

Read more: Agentic AI (§ Agent Patterns, § Production Agent Engineering)

7. Memory Systems

What it is. How an agent stores and recalls information across a turn, a session, and multiple sessions. "Memory" isn't one thing: it spans the live context window, conversation history, retrievable facts, and persistent stores. Choosing the right kind for each need is what keeps agents both capable and affordable.

Memory type What it holds Backed by
In-context (working) Current window contents The prompt itself
Episodic Conversation/run history Message log, DB
Semantic Facts & knowledge Vector store (RAG)
Procedural How-to / skills Tools, prompts, skill files
External / long-term Anything beyond the window Vector DB, SQL, files

Key points:

Interview questions:

  1. What are the types of agent memory? Working (in-context), episodic (history), semantic (facts via vector store), procedural (skills/tools), and external/long-term.
  2. When do you use a vector store vs the context window for memory? Window for the small, hot working set; vector store for a large knowledge base retrieved on demand.
  3. How do you give an agent memory across sessions? Persist state/history/facts to an external store (DB/vector DB/files) and rehydrate on the next session.

Read more: Agentic AI § Agent Memory · Vector Databases

8. RAG (Retrieval-Augmented Generation)

What it is. A pattern that grounds the model in your data: you retrieve relevant chunks from a knowledge base (usually via vector similarity) and put them in the prompt, so the model answers from real sources instead of parametric memory. It's the standard fix for hallucination and stale knowledge.

Key points:

Interview questions:

  1. Explain the RAG pipeline end to end. Ingest → chunk → embed → store; at query time embed the query → similarity search → (rerank) → stuff top-k into the prompt → generate.
  2. Why hybrid search? Dense search misses exact/rare terms (IDs, codes); BM25 catches them. Combining both improves recall.
  3. What does a reranker add? It reorders retrieved candidates with a more accurate cross-encoder so the most relevant chunks reach the limited context, improving precision.
  4. How does RAG reduce hallucination? It supplies grounded source text and you instruct the model to answer only from it, with citations.

Read more: RAG · RAG Engineering · Vector Databases, Advanced

9. Frameworks: LangChain / LlamaIndex / CrewAI / AutoGen

What it is. Libraries that provide ready-made abstractions for LLM apps and agents: chains, tools, memory, retrievers, and orchestration, so you don't rebuild the loop each time. The senior skill is knowing what they give you, what they hide, and when raw SDK code is the better choice.

Framework Sweet spot
LangChain / LangGraph General LLM apps; LangGraph for stateful graph agents
LlamaIndex Data-centric RAG and indexing
CrewAI Role-based multi-agent "crews"
AutoGen Conversational multi-agent (Microsoft)

Key points:

Interview questions:

  1. When would you NOT use a framework? When you need fine-grained control over the loop/prompts, maximum performance, predictable cost, or simple logic a framework over-abstracts: raw SDK is clearer.
  2. What do these frameworks abstract away, and why is that a risk? The agent loop, prompt construction, and token accounting, which makes debugging and cost control harder when something goes wrong inside the abstraction.
  3. LangChain vs LlamaIndex? LangChain is a general orchestration toolkit; LlamaIndex is data/RAG-centric (indexing, retrieval). They overlap and are often combined.

Read more: LangChain · LangGraph · CrewAI · LangChain LCEL/Advanced


Intermediate Agentic Layer

10. Multi-Agent Systems

What it is. Architectures where several specialized agents collaborate instead of one generalist doing everything. A coordinator/orchestrator decomposes the goal and delegates to worker agents (researcher, coder, reviewer), each with its own focused prompt and tools. Specialization typically beats a single overloaded agent on reliability.

Key points:

Interview questions:

  1. Why use multiple agents instead of one? Focused prompts/tools per role give higher reliability and easier debugging than one agent juggling everything.
  2. What is the orchestrator-worker pattern? A coordinator breaks the task into subtasks and delegates each to a specialized worker, then aggregates the results.
  3. How do agents share state? Not automatically: via explicit message passing, a shared store/blackboard, or by writing to a common workspace.

Read more: Multi-Agent Systems

11. MCP (Model Context Protocol)

What it is. An open standard (from Anthropic) for how agents talk to tools and data sources. Instead of bespoke per-tool integrations, you run an MCP server that exposes tools/resources/prompts over a common protocol; any MCP-aware agent can discover and use them: like "USB-C for AI tools."

Key points:

Interview questions:

  1. What problem does MCP solve? It standardizes agent↔tool communication so tools are built once and reused, instead of N bespoke integrations per agent.
  2. What does an MCP server expose? Tools (actions), resources (data/context), and prompts, all discoverable by clients at runtime.
  3. MCP vs a plain function-calling tool? Function calling is in-process per app; MCP is a transport/standard so the same tool server works across many agents/clients.

Read more: MCP · Agent Communication Standards

12. Planning & Task Decomposition

What it is. Getting an agent to break a complex goal into an ordered set of executable subtasks before (or while) acting. Plan-and-execute generates a plan up front; reactive agents (ReAct) plan step by step. Good planning includes replanning when a step fails.

Key points:

Interview questions:

  1. Plan-and-execute vs ReAct? Plan-and-execute drafts the full plan first (good for complex, parallelizable tasks); ReAct interleaves reason/act step by step (good for exploratory tasks where each step informs the next).
  2. How should an agent handle a failed step? Replan: detect the failure, revise the plan or retry with a different approach, rather than aborting.
  3. Why represent tasks as a DAG? It captures dependencies and lets independent subtasks run in parallel for speed.

Read more: Agentic AI § Agent Patterns · Multi-Agent Systems

13. Structured Outputs & Data Validation

What it is. Techniques to force an LLM to return valid, typed, parseable data (JSON matching a schema) instead of free text: essential when the output feeds code, a database, or another tool. Schema enforcement + validation + retry-on-failure makes the boundary reliable.

Key points:

Interview questions:

  1. How do you guarantee an LLM returns valid JSON? Use the provider's structured- output/strict mode bound to a JSON schema, then validate; on failure, retry feeding back the error.
  2. What does the instructor library do? Wraps the LLM call so you get a validated Pydantic object out, handling schema + retries.
  3. Why validate model output at all? It's probabilistic text: without validation a malformed field can crash or silently corrupt downstream code.

Read more: Structured Outputs · Pydantic

14. Long-Context Management

What it is. Keeping a long-running agent within the model's token budget. As history and tool outputs pile up, you must compress, summarize, or drop content while preserving the goal, key decisions, and open threads.

Key points:

Interview questions:

  1. An agent's conversation exceeds the context window: what do you do? Summarize or prune old turns (sliding window), retrieve only relevant context, and budget tokens; keep the goal and recent state.
  2. What do you keep vs drop when compressing context? Keep the task, constraints, decisions, and current state; drop stale tool dumps and resolved sub-threads.
  3. What is a summarizer agent? A sub-step/agent that condenses prior history into a compact summary so the main agent stays within budget.

Read more: Agentic AI § Context Management · LLM Fundamentals § Token Budgeting

15. Agent State Management

What it is. Persisting an agent's working state: messages, plan, scratchpad, tool results, so it can be paused, resumed, recovered after a crash, or run statelessly across requests. Critical for long-running and production agents.

Key points:

Interview questions:

  1. How do you resume an interrupted agent? Checkpoint state at safe boundaries, persist it, and on restart rehydrate and continue from the last checkpoint.
  2. Stateful vs stateless agents: trade-off? Stateless is easy to scale horizontally but reloads context each call; stateful is cheaper per step but needs durable storage and careful concurrency.
  3. What goes into an agent's serialized state? Message history, current plan/goal, scratchpad/intermediate results, and any tool/session context needed to continue.

Read more: Agentic AI § Production Agent Engineering · LangGraph


Advanced Agentic Layer

16. LangGraph / Agent Workflows as Graphs

What it is. Modeling an agent as an explicit state machine / graph rather than a free-form loop. Nodes do work, edges define transitions, conditionals branch on state, and cycles enable iterate-until-done, giving you controllable, debuggable, resumable agents.

Key points:

Interview questions:

  1. Why model an agent as a graph? Explicit control flow, deterministic branching, built-in persistence/resumption, and easier debugging than an opaque loop.
  2. How do cycles help in an agent graph? They let a node loop (retry/iterate) until a condition is met: e.g., refine until the eval passes.
  3. Where does human-in-the-loop fit in LangGraph? As a node that interrupts the graph and waits for human input/approval before continuing.

Read more: LangGraph

17. Human-in-the-Loop (HITL)

What it is. Deliberately inserting human checkpoints into an agent's execution: approvals, edits, or escalation, because fully autonomous agents often fail on high-stakes or irreversible actions. The art is pausing only where it matters.

Key points:

Interview questions:

  1. When should an agent pause for a human? Before irreversible/destructive or high-stakes actions, or when confidence is low: never for routine, reversible steps.
  2. Why do fully autonomous agents fail in production? Compounding errors, edge cases, and irreversible mistakes; a human checkpoint catches them before damage.
  3. How do you decide what to auto-approve? A confidence threshold + a reversibility/ blast-radius check: auto-run cheap reversible actions, gate expensive irreversible ones.

Read more: LangGraph (HITL nodes) · Evaluation & Guardrails

18. Tool Design & Tool Ecosystems

What it is. Designing the tools an agent uses so it picks and calls them correctly: clear names, strong "call this when…" descriptions, predictable typed outputs, and a manageable set. Bad tools (vague, overlapping, too many) are a top cause of agent failure.

Key points:

Interview questions:

  1. What makes a good agent tool? A clear name, a description that says when to call it, a strict typed schema, and predictable outputs that are easy to act on.
  2. Why can too many tools hurt? It dilutes the model's selection accuracy and bloats context; use tool search/dynamic discovery to load only relevant tools.
  3. How do you evolve a tool without breaking running agents? Version it and keep old versions available, or make changes backward-compatible.

Read more: Agent Tool Use § Advanced Tool-Use Patterns

19. Evaluation & Testing for Agents

What it is. Measuring whether an agent actually works, which standard unit tests can't, because agents are non-deterministic. You evaluate the trajectory (the path of decisions/ tool calls) and outcomes against a curated task suite, often using an LLM as a judge.

Key points:

Interview questions:

  1. Why don't normal unit tests work for agents? Non-determinism: the same input can yield different valid outputs; you must evaluate behavior distributions and trajectories.
  2. What is trajectory evaluation? Grading the sequence of steps/tool calls (did it take a sensible path?), not just the final output.
  3. What is LLM-as-judge and its pitfall? Using a model to score outputs against a rubric; the pitfall is judge bias/miscalibration: validate the judge against human labels.
  4. How do you stop a model upgrade from regressing your agent? Run a fixed eval suite on every change and gate on it (regression testing).

Read more: LLM Evaluation · Testing AI Systems

20. Observability & Tracing

What it is. Instrumentation that lets you see what an agent did: every model call, tool call, and decision as a trace of spans, so you can debug failures, track cost/latency, and monitor quality in production. You can't debug what you can't see.

Key points:

Interview questions:

  1. What do you trace in an agent run? Every model call (model, tokens, cost, latency), every tool call (args, result, error), and the decisions/branches taken.
  2. How do you debug a failed agent run? Pull the end-to-end trace, find the step that went wrong (bad tool args, wrong branch, parse failure), and reproduce/fix it.
  3. Why is per-run cost tracking important? Agentic features can blow up token spend; per-run/per-step cost reveals outliers and unit economics.

Read more: LangSmith · LLMOps · Model Monitoring

21. Code Execution Agents

What it is. Agents that write and run code to solve tasks (data analysis, computation, file work). The code runs in a sandbox (E2B, Docker, gVisor, or a provider-hosted environment), never on the host, because model-generated code is untrusted.

Key points:

Interview questions:

  1. Why must code-execution agents be sandboxed? Model code is untrusted; a sandbox contains it with resource/egress limits and no host access to prevent damage/exfiltration.
  2. What sandboxing options exist? E2B, Docker/gVisor containers, microVMs, or a provider-hosted code-execution tool.
  3. How do you stop a code agent from doing damage? Network egress controls, no host FS, CPU/mem/time limits, and human approval for destructive ops.

Read more: Agent Tool Use § Server-Side Tools · Docker

22. Browser & Computer Use Agents

What it is. Agents that operate user interfaces, driving a browser (Playwright/ Puppeteer) or a whole desktop. They either parse the DOM (precise, brittle) or work from screenshots with a vision model that emits mouse/keyboard actions (general, costlier).

Key points:

Interview questions:

  1. DOM parsing vs screenshot-based agents: trade-off? DOM is precise and cheap but brittle to markup changes; vision/screenshot is general and robust to layout but slower, costlier, and less exact.
  2. What is "computer use"? A vision-capable model that views screenshots and emits mouse/keyboard actions to operate a GUI like a human.
  3. What makes browser agents flaky in production? Dynamic content, timing/race conditions, auth, CAPTCHAs, and site changes: handle with waits, retries, and fallbacks.

Read more: Testing AI Systems (Playwright/Puppeteer) · Multimodal AI


Production & Senior Layer

23. Agent Reliability & Failure Modes

What it is. Understanding how agents break in production and engineering so they fail gracefully, not catastrophically. Agentic systems compound small errors, so each failure mode needs a specific mitigation.

Failure mode Mitigation
Prompt brittleness Robust prompts, evals, version prompts
Tool failure cascades Graceful tool errors (is_error), retries, fallbacks
Infinite loops Max-iteration + token budgets; loop detection
Hallucinated tool calls Strict schemas; validate before executing
Context poisoning Treat tool/retrieved content as untrusted data

Interview questions:

  1. What are the most common ways agents fail in production? Prompt brittleness, tool failures cascading, infinite loops, hallucinated/invalid tool calls, and context poisoning.
  2. What is context poisoning? When malicious or wrong content enters the context (via a tool/retrieval) and corrupts subsequent behavior: mitigate by treating it as untrusted data.
  3. How do you make an agent fail gracefully? Budgets/caps, tool-error handling with fallbacks, HITL on irreversible actions, and circuit breakers.

Read more: Agentic AI § Failure Modes & Guardrails · Evaluation & Guardrails

24. Latency Optimization

What it is. Making agents feel fast despite multiple sequential model/tool calls. Techniques range from streaming output to users, to parallelizing calls, to routing sub-tasks to faster models and caching.

Key points:

Interview questions:

  1. An agent feels slow, where do you start? Trace the latency-critical path; parallelize independent calls, stream output, route sub-tasks to faster models, and cache.
  2. How does prompt caching cut latency and cost? A cached stable prefix skips reprocessing (and bills ~10× less on reads), reducing time-to-first-token.
  3. What is speculative execution for agents? Starting likely-needed work (e.g., a probable tool call) before it's confirmed, to hide latency.

Read more: Agentic AI § Cost & Latency · LLM Fundamentals § Prompt Caching

25. Cost Management at Scale

What it is. Controlling the token spend of agentic features so the unit economics work. Agents make many calls, so cost is dominated by model choice, prompt size, and number of steps: all of which you can manage.

Key points:

Interview questions:

  1. Biggest lever on LLM cost at scale? Prompt caching of the stable prefix plus right-sizing the model per task (model routing).
  2. What is model routing? Sending each request to the cheapest model that can handle it, escalating to a frontier model only for hard cases.
  3. How do you estimate an agent's cost before building? tokens × price per step × expected steps, across the trajectory, plus retries.

Read more: LLM Fundamentals § Estimating Cost · Multi-Model Orchestration

26. Security for Agentic Systems

What it is. Defending agents that can take actions. The signature threat is prompt injection, including indirect injection where malicious instructions hide inside retrieved documents or tool outputs. Combined with tools and credentials, an injected agent can do real damage, so least-privilege and sandboxing are essential.

Key points:

Interview questions:

  1. What is indirect prompt injection? Malicious instructions embedded in content the agent ingests (a web page, a document, a tool result) that hijack its behavior.
  2. How do you defend against prompt injection? Treat all tool/retrieved content as untrusted data (never instructions), least-privilege tools, sandboxing, output filtering, and HITL on sensitive actions.
  3. Why is least privilege critical for agents? It bounds the blast radius: an injected/compromised agent can only do what its limited permissions allow.

Read more: LLM Security

27. Deployment Patterns

What it is. How you run agents in production. Short tasks fit serverless functions; stateful/streaming agents need long-running services; durable jobs use queues; event-driven agents trigger on webhooks: all typically containerized and horizontally scaled.

Key points:

Interview questions:

  1. Serverless vs long-running service for an agent? Serverless for short, stateless tasks; a long-running service for stateful, streaming, or long-horizon agents.
  2. Why run agents through a queue? Durability, retries, backpressure, and decoupling: so a slow/failed agent job doesn't drop work or block the caller.
  3. How do you scale agents horizontally? Containerize, keep them stateless (or externalize state), and run many workers behind a queue/load balancer.

Read more: Backend & System Design for AI · Docker · Kubernetes · FastAPI

28. Agentic Architecture Patterns

What it is. Reusable high-level designs for structuring agentic systems. Recognizing which pattern fits a problem class (and the trade-offs) is what distinguishes senior from junior engineers.

Pattern Use when
Orchestrator-worker A coordinator delegates to specialists
Pipeline Fixed sequential stages
Blackboard Agents share a common workspace/state
Event-driven React to external events
Hub-and-spoke Central router to many tools/agents
Map-reduce Fan out over items, aggregate results

Interview questions:

  1. Which pattern for "summarize 10,000 documents"? Map-reduce: fan out summarization over chunks/docs in parallel, then reduce/aggregate.
  2. When is a simple pipeline better than a dynamic agent? When the steps are fixed and fully specifiable: it's cheaper, faster, and more reliable than a free-roaming agent.
  3. What is the blackboard pattern? Agents read/write a shared workspace; each contributes when it can, useful for collaborative problem-solving without rigid order.

Read more: ML System Design Patterns · Multi-Agent Systems


Expert / Frontier Layer

29. Fine-tuning for Agentic Behavior

What it is. Training a model (or adapter) on agent data when prompting hits a ceiling: to bake in consistent tool-use behavior, niche formats, or to make a smaller, cheaper model behave like a larger one. Done via SFT on trajectories, DPO on preferences, and LoRA/QLoRA for cheap iteration.

Key points:

Interview questions:

  1. When do you fine-tune instead of prompt? When prompting can't get consistent behavior, when a tuned small model is cheaper/faster at scale, or for formats/domains hard to express in a prompt.
  2. Where does training data for an agent come from? Successful agent trajectories (SFT) and preference pairs of good vs bad actions (DPO).
  3. What is LoRA and why use it? Low-Rank Adaptation trains small adapter weights instead of the full model: far cheaper/faster, enabling quick iteration.

Read more: Fine-Tuning (LoRA, QLoRA, RLHF/DPO) · Unsloth

30. Reasoning Models

What it is. Models trained (often with RL) to produce a long internal chain of thought at inference time before answering, spending extra compute to solve hard reasoning/ planning problems. Anthropic exposes this idea as adaptive thinking + an effort control.

Key points:

Interview questions:

  1. What is a reasoning model? One trained to "think" (generate long internal reasoning) before answering, trading inference compute/latency for accuracy on hard problems.
  2. When should you NOT use a reasoning model? Simple/fast tasks (classification, extraction, lookups): it's slower and costlier with no benefit.
  3. How do you combine reasoning and fast models in an agent? Use the reasoning model for planning/hard steps and a fast/cheap model for routine sub-tasks (model routing).

Read more: Anthropic & Claude (extended/adaptive thinking) · LLM Fundamentals

31. Multi-Modal Agents

What it is. Agents that work across modalities beyond text: vision (images, documents, charts), audio, and image generation, using multi-modal models and tools, with memory that can span modalities.

Key points:

Interview questions:

  1. What is a multi-modal agent? One that perceives/acts across modalities (text + vision + audio), e.g., reading a chart in a PDF and reasoning over it.
  2. How do agents handle documents like PDFs with tables/charts? Vision-capable models parse layout/tables/figures directly, often combined with OCR/extraction tools.
  3. How is image generation used in an agent? As a tool the agent calls to produce images as part of a task.

Read more: Multimodal AI · Computer Vision

32. Agent Communication Standards

What it is. Emerging protocols that let agents and tools interoperate across vendors. MCP standardizes agent↔tool/data communication; A2A (Agent-to-Agent), from Google, standardizes agent↔agent communication: together avoiding bespoke N×M integrations as multi-agent ecosystems grow.

Key points:

Interview questions:

  1. MCP vs A2A? MCP standardizes how an agent talks to tools/data; A2A standardizes how agents talk to each other.
  2. Why do we need agent communication standards? To avoid bespoke per-pair integrations and enable agents/tools from different vendors to interoperate.
  3. What is agent discovery? A mechanism (registry/protocol) for an agent to find and learn the capabilities of available agents/tools at runtime.

Read more: MCP

33. Building Agent Platforms

What it is. Going beyond a single agent to build the infrastructure other teams use to deploy agents safely: SDKs, multi-tenant isolation, permissioning, registries/marketplaces, and audit logging. This is platform engineering applied to agents.

Key points:

Interview questions:

  1. What does an agent platform provide beyond a single agent? → SDKs, multi-tenant isolation, permissioning, registries, observability, and audit logs so many teams can ship agents safely.
  2. How do you isolate tenants on an agent platform? Separate state stores, scoped credentials/secrets, network isolation, and per-tenant resource/permission boundaries.
  3. Why are audit logs essential? Agents take actions; you need a traceable record for debugging, compliance, and incident response.

Read more: Backend & System Design for AI · LLMOps / MLOps Engineering

34. Self-Improving Agents / Meta-Agents

What it is. Agents that improve agents: by optimizing their own prompts against evals, red-teaming other agents, generating/testing new agents, or running reflection (critique-and- revise) loops. Constitutional AI is a related idea: steering behavior with a set of principles rather than only human labels.

Key points:

Interview questions:

  1. What is a reflection loop? An agent critiques its own output against criteria and revises, iterating until it meets the bar.
  2. What is a meta-agent? An agent whose job is to create, evaluate, or improve other agents (or prompts), rather than do the end task directly.
  3. What is Constitutional AI? Training/steering a model to follow a set of written principles (a "constitution") to be helpful, harmless, and honest, reducing reliance on per-case human labels.

Read more: LLM Evaluation · Anthropic (Constitutional AI)


What Actually Gets You Hired

Beyond the stack, senior agentic-AI interviews probe judgment. Be ready to answer:

  1. Can you debug a non-deterministic agent failure with incomplete logs? Reproduce with fixed seeds where possible, replay traces, isolate the failing step, add targeted logging, and reason about distributions, not single runs.
  2. Can you design for graceful (not catastrophic) failure? Budgets/caps, tool-error handling, fallbacks, HITL on irreversible actions, circuit breakers.
  3. Do you understand the autonomy ↔ reliability trade-off? More autonomy = more capability and more failure surface; add human checkpoints where cost-of- error is high.
  4. Have you shipped an agent to real users and handled the edge cases? Concrete war stories: rate limits, injection attempts, cost spikes, weird inputs.
  5. Can you say when NOT to use an agent? If the task is fully specifiable, a deterministic pipeline or single LLM call is cheaper, faster, and more reliable.
  6. Do you have opinions on eval methodology, not just tools? → Trajectory vs outcome evals, judge calibration, dataset curation, regression gating.
  7. Can you estimate cost and latency before building? → Tokens × price per step × expected steps; identify the latency-critical path; plan caching/routing.

View or edit this guide on GitHub