Skip to main content

14. Interview Questions & MCQs

Agentic AI Theory Interview Questions

Questions and answers

  1. What is Artificial Intelligence in one sentence?

    Answer AI is software that performs tasks that typically need human intelligence — sensing, learning patterns, deciding, or generating outputs — under defined goals and constraints.

  2. What is Generative AI?

    Answer Generative AI creates new content (text, code, images, audio) from prompts or context, instead of only classifying or scoring existing inputs.

  3. What is Agentic AI?

    Answer Agentic AI systems pursue goals over multiple steps by observing context, planning or reasoning, calling tools or taking actions, and looping until done or a stop rule fires — with limited human supervision.

  4. How do GenAI and Agentic AI differ?

    Answer GenAI mainly produces content in one shot. Agentic AI uses models plus tools, memory, and control loops to complete multi-step tasks and act on external systems.

  5. What is an AI agent?

    Answer An AI agent is a system that perceives its environment (prompts, data, tool results), decides the next step, and acts via tools or messages to move toward a goal under budgets and policies.

  6. Explain the Observe–Think–Act loop.

    Answer Observe gathers state (user input, tool results). Think plans or selects the next action. Act executes a tool or reply. Then observe again until success, failure, or a stop condition.

  7. What is the ReAct pattern?

    Answer ReAct interleaves Reason and Act: the model writes a thought, chooses a tool action, receives an observation, and repeats until it produces a final answer — grounding steps in real tool results.

  8. Plan-and-execute vs step-by-step (ReAct) planning?

    Answer Plan-and-execute drafts a multi-step plan then runs it (easier to inspect; can go stale). ReAct picks one action at a time (adapts to surprises; can wander). Production systems often replan after failures.

  9. What are tools in an agent system?

    Answer Tools are callable functions or APIs (search, DB, email, code) described with schemas. The model proposes calls; your runtime validates, authorizes, executes, and returns observations.

  10. Why must tool calls be validated outside the model?

    Answer Models can hallucinate tool names or args. The app must enforce allowlists, schemas, authZ, and HITL so unsafe or invalid calls never reach production systems.

  11. What kinds of memory do agents use?

    Answer Short-term/working memory lives in the context window. Long-term memory stores facts or episodes outside the model (DB/vector store) and is retrieved when relevant. Procedural memory is reusable skills or prompts.

  12. What goes wrong with agent memory?

    Answer Context overflow, lost-in-the-middle, stale or wrong long-term facts, privacy leaks, and failure to forget on user request — all degrade quality or create compliance risk.

  13. RAG vs an agent — how do they relate?

    Answer RAG retrieves documents to ground a generation. An agent may use RAG as one tool inside a multi-step loop with planning, other tools, and stop rules. RAG alone is not full agency.

  14. Single-agent vs multi-agent systems?

    Answer A single agent one policy loop with tools. Multi-agent systems coordinate specialized agents with roles, handoffs, or parallel work. Split only when specialization clearly pays off.

  15. What is a supervisor–worker pattern?

    Answer A supervisor plans, assigns, joins results, and escalates. Workers execute narrow subgoals under scoped tool allowlists and return structured reports.

  16. What are stop conditions for agents?

    Answer Goal achieved, max steps/time/cost reached, repeated no-progress, policy/safety block, or human cancel. Without stop rules, agents can loop forever and burn budget.

  17. What is human-in-the-loop (HITL) for agents?

    Answer HITL requires a human to approve or take high-risk actions (money movement, publish, containment, hire decisions) while the agent prepares drafts and evidence packages.

  18. Name core guardrails for tool-using agents.

    Answer Least privilege, tool allowlists, input/output validation, sandboxes, rate/cost budgets, logging/tracing, PII redaction, and HITL for irreversible side effects.

  19. What is prompt injection in an agent context?

    Answer Untrusted text (user input, web pages, emails, docs) tries to override instructions so the agent misuses tools or leaks data. Defend with separation of trusted instructions, allowlists, and treating retrieved text as data.

  20. What is MCP at a high level?

    Answer Model Context Protocol standardizes how hosts/clients discover and call tools, resources, and prompts on MCP servers — a common wire for agent tool access under policy.

  21. What is A2A at a high level?

    Answer Agent-to-Agent protocols let agents discover peers and delegate tasks with a lifecycle (messages, artifacts, completion/failure) instead of only calling local tools.

  22. How do you evaluate an agent beyond fluent text?

    Answer Measure task success, tool correctness, citation/query integrity, latency, cost, safety blocks, HITL outcomes, and regression suites on fixed scenarios — not prose style alone.

  23. What is reflection or self-critique in agents?

    Answer After an action or draft, the agent (or a critic step) checks quality against a rubric, then retries, revises, or escalates — bounded by retry budgets so critique does not thrash.

  24. Stateful workflow vs free-form agent loop?

    Answer Workflows encode known steps and branches deterministically. Free-form loops let the model choose actions dynamically. Prefer workflows for compliance-critical paths; agents for open-ended exploration under caps.

  25. What should you log for a production agent?

    Answer Request IDs, prompts/tool args (redacted), tool results summaries, decisions, tokens/cost, latency, errors, and HITL outcomes — enough to replay and audit without leaking secrets.

  26. When should you not build an agent?

    Answer When a single LLM call, a form, or a fixed script meets the need. Agents add cost, latency, and failure modes — use them when multi-step tools and adaptation clearly pay off.

  27. Give a crisp interview opener for “What is Agentic AI?”

    Answer “Agentic AI is goal-directed software that loops observe–think–act with tools and memory under budgets and policies, not just one-shot text generation.”

  28. How would you explain autonomy vs control?

    Answer Autonomy is how far the agent may proceed without a human. Control is the set of policies, allowlists, budgets, and HITL gates that bound that autonomy so side effects stay safe.

  29. What is a hallucination risk specific to agents?

    Answer Beyond wrong text, agents can invent tool results, skip verification, or act on fabricated facts — turning fluent mistakes into real-world side effects. Ground actions in tool observations and cite evidence.

  30. How do short answers stay strong in interviews?

    Answer Lead with a one-line definition, add one concrete example, name one failure mode or control, and stop. Interviewers reward clarity more than laundry lists of framework names.