14. Interview Questions & MCQs
Agentic AI MCQ Practice Set
Simple MCQs (30)
- Agentic AI systems primarily differ from one-shot GenAI by:
Show answer
Correct B. Running multi-step loops with tools toward a goal
Agency means observe–decide–act loops with tools, not just a single completion.
- In Observe–Think–Act, “Act” usually means:
Show answer
Correct B. Calling a tool or producing a user-facing reply
Act is the side-effecting or communicative step after reasoning.
- A tool schema for an LLM should include:
Show answer
Correct B. Name, description, and typed parameters
Clear name/description/parameters help the model propose valid calls.
- Who should execute tool calls?
Show answer
Correct B. Your application runtime after validation
The model proposes; the app validates, authorizes, and executes.
- Short-term agent memory is mainly stored in:
Show answer
Correct B. The current context window / message list
Working memory is the in-prompt conversation and recent tool results.
- RAG stands for:
Show answer
Correct B. Retrieval-Augmented Generation
RAG retrieves documents then generates grounded answers.
- ReAct pattern means:
Show answer
Correct B. Reason + Act interleaved with observations
ReAct loops thought/action/observation until a final answer.
- A good stop condition for agents is:
Show answer
Correct B. Max steps / budget / goal done / safety block
Budgets and goal/safety stops prevent infinite loops.
- HITL means:
Show answer
Correct B. Human-in-the-loop approval for risky actions
Humans approve high-impact side effects the agent prepares.
- Least privilege for agent tools means:
Show answer
Correct B. Each tool gets only the access it needs
Scoped credentials limit blast radius if the agent is misled.
- Prompt injection tries to:
Show answer
Correct B. Override instructions via untrusted text
Untrusted content can steer the agent into unsafe tool use.
- Multi-agent systems are best when:
Show answer
Correct B. Clear specialization beats one mega-agent
Split roles when isolation or expertise pays off.
- A supervisor agent typically:
Show answer
Correct B. Plans, assigns work, joins results, escalates
Supervisors orchestrate workers with scoped tools.
- MCP primarily standardizes:
Show answer
Correct B. How hosts discover/call tools and resources on servers
MCP is a common protocol for tool/resource/prompt access.
- LangGraph is especially useful for:
Show answer
Correct B. Stateful branching/cyclic agent workflows with checkpoints
Graphs + state + HITL interrupts fit complex agent control flows.
- CrewAI emphasizes:
Show answer
Correct A. Role-based crews of agents and tasks
CrewAI models team-style agents with roles and processes.
- Idempotent tool writes help when:
Show answer
Correct B. Retries might otherwise duplicate side effects
Safe retries need create/upsert with idempotency keys.
- Evaluating agents should include:
Show answer
Correct B. Task success, tool correctness, cost, safety
Outcomes and safety matter more than fluent text.
- A coding agent should prefer:
Show answer
Correct B. Minimal patches verified by tests under a sandbox
Tests and sandboxes gate autonomy; merges stay HITL.
- Long-term memory is often stored in:
Show answer
Correct B. External DB / vector store with retrieval
Durable facts/episodes live outside the context window.
- Plan-and-execute means:
Show answer
Correct B. Draft a multi-step plan then run steps (with optional replan)
Up-front plans are inspectable; replanning handles stale steps.
- Guardrails on agents should cover:
Show answer
Correct B. Input/output checks, allowlists, budgets, HITL
Defense in depth around the whole tool loop.
- A2A protocols mainly enable:
Show answer
Correct A. Agent-to-agent task delegation and discovery
A2A connects agents; MCP connects tools/context.
- Structured output helps agents by:
Show answer
Correct B. Forcing parseable plans/tool args/final answers
Schemas beat brittle free-text scraping.
- Which is a read-mostly safe default for new agents?
Show answer
Correct B. Lookup/search tools before enabling writes
Start read-only; add capped writes with HITL later.
- Token/cost budgets exist to:
Show answer
Correct B. Stop runaway loops and spend
Hard caps protect reliability and spend.
- Citations in research agents should:
Show answer
Correct B. Map claims to retrieved sources
Provenance makes answers auditable.
- Sandboxing code-execution tools means:
Show answer
Correct B. Isolated runtime with limits and allowlists
Isolation bounds damage from model-proposed commands.
- A handoff between agents transfers:
Show answer
Correct B. Conversational control to a specialist agent
Specialists take ownership with their tools/instructions.
- The best first interview sentence for “What is an AI agent?” is about:
Show answer
Correct B. A goal-directed loop that uses tools under constraints
Lead with goals, tools, and bounded autonomy.
Hard level MCQs (20)
- An agent retries a “create invoice” tool after a gateway timeout. Without idempotency, the main risk is:
Show answer
Correct B. Duplicate invoices / double side effects
Timeouts leave uncertainty; retries need idempotency keys or safe upserts.
- Indirect prompt injection via a webpage is most dangerous when the agent also has:
Show answer
Correct B. Powerful write/send tools and treats page text as instructions
Untrusted text + privileged tools is the classic agent exploit path.
- In LangGraph, a checkpointed interrupt before “refund” mainly enables:
Show answer
Correct B. Durable HITL resume without losing state
Checkpointers persist state so approval can resume safely.
- A multi-agent crew thrash-loops on revise→review. The best control is:
Show answer
Correct B. Cap revision rounds and escalate with artifact history
Bounded rework + escalate beats infinite polish loops.
- For MCP production hardening, which is essential?
Show answer
Correct B. Allowlist servers/tools, validate args, audit calls
Protocol convenience still needs policy and audit.
- Shadow-mode deployment of a support agent means:
Show answer
Correct B. Running the agent without customer-visible side effects while comparing to humans
Shadowing validates quality before enabling writes.
- A coding agent’s path allowlist should block which action by default?
Show answer
Correct B. Writing outside the sandbox / deleting test suites
Escape and “cheat green” behaviors need hard blocks.
- When should you prefer a deterministic workflow over a free-form agent?
Show answer
Correct B. Compliance-critical known steps (e.g., KYC checks)
Known regulated paths need inspectable deterministic control.
- Lost-in-the-middle primarily affects agents by:
Show answer
Correct B. Under-using middle-context facts in long prompts
Long contexts need summarization/retrieval, not endless dumps.
- A finance agent can draft loan packages but must not:
Show answer
Correct B. Make the final credit decision without authorized humans
Credit decisions stay with accountable humans under policy.
- Parallel tool calls are safe when:
Show answer
Correct B. Calls are independent and concurrency is bounded
Independence + limits avoid races and stampedes.
- Trajectory eval for agents checks:
Show answer
Correct B. Whether the right tools/args were used along the path
Process correctness matters as much as the final string.
- Separating enrichment credentials from containment credentials in a SOC agent prevents:
Show answer
Correct B. A misled agent from freely isolating hosts
Least privilege: recommend freely, disrupt only with HITL tokens.
- A2A task states (submitted/working/input-required/completed) mainly help with:
Show answer
Correct B. Reliable cross-agent delegation and resumption
Explicit lifecycles beat ad-hoc chat handoffs.
- Canary publish for a marketing agent should happen:
Show answer
Correct B. On a small cohort with rollback hooks before full send
Small blast radius first; policy and consent always.
- Pydantic/Zod at tool boundaries primarily reduce:
Show answer
Correct B. Silent type/shape bugs in model-proposed args
Runtime schema validation fails closed on bad args.
- If retrieval returns empty for a policy question, the agent should:
Show answer
Correct B. Refuse or escalate rather than hallucinate
No evidence → no fabricated compliance answer.
- Cost spikes after enabling browsing often come from:
Show answer
Correct B. Unbounded page fetches / duplicate searches / large contexts
Hop, size, and cache budgets tame browse spend.
- Dual control on high-value ERP writes means:
Show answer
Correct B. A second authorized human/system must approve before commit
Separation of duties for irreversible money/goods commits.
- The strongest one-line production agent principle is:
Show answer
Correct B. Autonomy is bounded by policy, budgets, allowlists, and HITL on irreversible acts
Useful agency requires explicit control surfaces.