Skip to main content

14. Interview Questions & MCQs

Agentic AI MCQ Practice Set

Simple MCQs (30)

  1. Agentic AI systems primarily differ from one-shot GenAI by:
    • Using only larger models
    • Running multi-step loops with tools toward a goal
    • Removing the need for prompts
    • Avoiding any external APIs
    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.

  2. In Observe–Think–Act, “Act” usually means:
    • Only printing tokens
    • Calling a tool or producing a user-facing reply
    • Training a new model
    • Deleting memory
    Show answer

    Correct B. Calling a tool or producing a user-facing reply

    Act is the side-effecting or communicative step after reasoning.

  3. A tool schema for an LLM should include:
    • Only the function source code
    • Name, description, and typed parameters
    • The cloud root password
    • CSS styles
    Show answer

    Correct B. Name, description, and typed parameters

    Clear name/description/parameters help the model propose valid calls.

  4. Who should execute tool calls?
    • The GPU driver
    • Your application runtime after validation
    • The raw model weights
    • The user’s browser only
    Show answer

    Correct B. Your application runtime after validation

    The model proposes; the app validates, authorizes, and executes.

  5. Short-term agent memory is mainly stored in:
    • A cold tape archive
    • The current context window / message list
    • DNS TTL
    • CSS variables
    Show answer

    Correct B. The current context window / message list

    Working memory is the in-prompt conversation and recent tool results.

  6. RAG stands for:
    • Random Agent Guessing
    • Retrieval-Augmented Generation
    • Remote Auto Git
    • Reactive Array Graph
    Show answer

    Correct B. Retrieval-Augmented Generation

    RAG retrieves documents then generates grounded answers.

  7. ReAct pattern means:
    • Rewrite and Compile
    • Reason + Act interleaved with observations
    • REST and Cache
    • Reduce and Aggregate only
    Show answer

    Correct B. Reason + Act interleaved with observations

    ReAct loops thought/action/observation until a final answer.

  8. A good stop condition for agents is:
    • Never stop
    • Max steps / budget / goal done / safety block
    • Only on weekends
    • When the CSS finishes loading
    Show answer

    Correct B. Max steps / budget / goal done / safety block

    Budgets and goal/safety stops prevent infinite loops.

  9. HITL means:
    • High Token Limit
    • Human-in-the-loop approval for risky actions
    • Hash Index Table Lookup
    • Host Intrusion Tool Loop
    Show answer

    Correct B. Human-in-the-loop approval for risky actions

    Humans approve high-impact side effects the agent prepares.

  10. Least privilege for agent tools means:
    • One admin key for everything
    • Each tool gets only the access it needs
    • No authentication ever
    • Sharing passwords in prompts
    Show answer

    Correct B. Each tool gets only the access it needs

    Scoped credentials limit blast radius if the agent is misled.

  11. Prompt injection tries to:
    • Speed up GPUs
    • Override instructions via untrusted text
    • Compress embeddings
    • Fix flaky tests
    Show answer

    Correct B. Override instructions via untrusted text

    Untrusted content can steer the agent into unsafe tool use.

  12. Multi-agent systems are best when:
    • You want more latency for fun
    • Clear specialization beats one mega-agent
    • You have no goals
    • Tools are forbidden
    Show answer

    Correct B. Clear specialization beats one mega-agent

    Split roles when isolation or expertise pays off.

  13. A supervisor agent typically:
    • Only paints UI
    • Plans, assigns work, joins results, escalates
    • Replaces the database
    • Trains embeddings nightly
    Show answer

    Correct B. Plans, assigns work, joins results, escalates

    Supervisors orchestrate workers with scoped tools.

  14. MCP primarily standardizes:
    • CSS themes
    • How hosts discover/call tools and resources on servers
    • SQL dialects
    • Kubernetes YAML only
    Show answer

    Correct B. How hosts discover/call tools and resources on servers

    MCP is a common protocol for tool/resource/prompt access.

  15. LangGraph is especially useful for:
    • Static HTML sites
    • Stateful branching/cyclic agent workflows with checkpoints
    • Replacing Postgres
    • Mobile push certificates
    Show answer

    Correct B. Stateful branching/cyclic agent workflows with checkpoints

    Graphs + state + HITL interrupts fit complex agent control flows.

  16. CrewAI emphasizes:
    • Role-based crews of agents and tasks
    • Only pixel rendering
    • Bare-metal BIOS config
    • CDN cache keys
    Show answer

    Correct A. Role-based crews of agents and tasks

    CrewAI models team-style agents with roles and processes.

  17. Idempotent tool writes help when:
    • Agents never retry
    • Retries might otherwise duplicate side effects
    • Models have no tokens
    • You disable logging
    Show answer

    Correct B. Retries might otherwise duplicate side effects

    Safe retries need create/upsert with idempotency keys.

  18. Evaluating agents should include:
    • Only how poetic the prose is
    • Task success, tool correctness, cost, safety
    • Font choice only
    • Number of emojis
    Show answer

    Correct B. Task success, tool correctness, cost, safety

    Outcomes and safety matter more than fluent text.

  19. A coding agent should prefer:
    • Deleting tests to go green
    • Minimal patches verified by tests under a sandbox
    • Force-pushing to main automatically
    • Committing secrets
    Show answer

    Correct B. Minimal patches verified by tests under a sandbox

    Tests and sandboxes gate autonomy; merges stay HITL.

  20. Long-term memory is often stored in:
    • Only CPU registers
    • External DB / vector store with retrieval
    • The SSL certificate
    • Browser cookies exclusively
    Show answer

    Correct B. External DB / vector store with retrieval

    Durable facts/episodes live outside the context window.

  21. Plan-and-execute means:
    • Never plan
    • Draft a multi-step plan then run steps (with optional replan)
    • Only parallel fan-out forever
    • Skip tool validation
    Show answer

    Correct B. Draft a multi-step plan then run steps (with optional replan)

    Up-front plans are inspectable; replanning handles stale steps.

  22. Guardrails on agents should cover:
    • Only the logo color
    • Input/output checks, allowlists, budgets, HITL
    • Disabling HTTPS
    • Removing all logs
    Show answer

    Correct B. Input/output checks, allowlists, budgets, HITL

    Defense in depth around the whole tool loop.

  23. A2A protocols mainly enable:
    • Agent-to-agent task delegation and discovery
    • Faster SSD writes
    • CSS animations
    • Offline OCR only
    Show answer

    Correct A. Agent-to-agent task delegation and discovery

    A2A connects agents; MCP connects tools/context.

  24. Structured output helps agents by:
    • Making JSON impossible
    • Forcing parseable plans/tool args/final answers
    • Removing types
    • Hiding errors
    Show answer

    Correct B. Forcing parseable plans/tool args/final answers

    Schemas beat brittle free-text scraping.

  25. Which is a read-mostly safe default for new agents?
    • Admin shell on day one
    • Lookup/search tools before enabling writes
    • Auto-transfer money
    • Mass email without consent
    Show answer

    Correct B. Lookup/search tools before enabling writes

    Start read-only; add capped writes with HITL later.

  26. Token/cost budgets exist to:
    • Decorate dashboards only
    • Stop runaway loops and spend
    • Increase injection risk
    • Disable tracing
    Show answer

    Correct B. Stop runaway loops and spend

    Hard caps protect reliability and spend.

  27. Citations in research agents should:
    • Be optional vibes
    • Map claims to retrieved sources
    • Invent URLs when unsure
    • Hide uncertainty
    Show answer

    Correct B. Map claims to retrieved sources

    Provenance makes answers auditable.

  28. Sandboxing code-execution tools means:
    • Running as root on the laptop
    • Isolated runtime with limits and allowlists
    • Sharing the host Docker socket freely
    • Disabling all timeouts
    Show answer

    Correct B. Isolated runtime with limits and allowlists

    Isolation bounds damage from model-proposed commands.

  29. A handoff between agents transfers:
    • GPU ownership forever
    • Conversational control to a specialist agent
    • Only CSS files
    • The TLS private key
    Show answer

    Correct B. Conversational control to a specialist agent

    Specialists take ownership with their tools/instructions.

  30. The best first interview sentence for “What is an AI agent?” is about:
    • A single autocomplete click
    • A goal-directed loop that uses tools under constraints
    • A CSS framework
    • A database index type
    Show answer

    Correct B. A goal-directed loop that uses tools under constraints

    Lead with goals, tools, and bounded autonomy.

Hard level MCQs (20)

  1. An agent retries a “create invoice” tool after a gateway timeout. Without idempotency, the main risk is:
    • Slightly slower CSS
    • Duplicate invoices / double side effects
    • Better retrieval recall
    • Automatic HITL
    Show answer

    Correct B. Duplicate invoices / double side effects

    Timeouts leave uncertainty; retries need idempotency keys or safe upserts.

  2. Indirect prompt injection via a webpage is most dangerous when the agent also has:
    • Read-only public docs
    • Powerful write/send tools and treats page text as instructions
    • No tools at all
    • A frozen model with zero context
    Show answer

    Correct B. Powerful write/send tools and treats page text as instructions

    Untrusted text + privileged tools is the classic agent exploit path.

  3. In LangGraph, a checkpointed interrupt before “refund” mainly enables:
    • Faster embeddings
    • Durable HITL resume without losing state
    • Deleting the graph
    • Skipping schema validation
    Show answer

    Correct B. Durable HITL resume without losing state

    Checkpointers persist state so approval can resume safely.

  4. A multi-agent crew thrash-loops on revise→review. The best control is:
    • Remove all stop rules
    • Cap revision rounds and escalate with artifact history
    • Give every agent admin AWS keys
    • Disable logging
    Show answer

    Correct B. Cap revision rounds and escalate with artifact history

    Bounded rework + escalate beats infinite polish loops.

  5. For MCP production hardening, which is essential?
    • Allow any server URL the model invents
    • Allowlist servers/tools, validate args, audit calls
    • Put secrets in resource URIs
    • Disable TLS to simplify
    Show answer

    Correct B. Allowlist servers/tools, validate args, audit calls

    Protocol convenience still needs policy and audit.

  6. Shadow-mode deployment of a support agent means:
    • Deleting production tickets
    • Running the agent without customer-visible side effects while comparing to humans
    • Turning off all evals
    • Auto-refunding every chat
    Show answer

    Correct B. Running the agent without customer-visible side effects while comparing to humans

    Shadowing validates quality before enabling writes.

  7. A coding agent’s path allowlist should block which action by default?
    • Reading README in the workspace
    • Writing outside the sandbox / deleting test suites
    • Running unit tests
    • Showing a diff summary
    Show answer

    Correct B. Writing outside the sandbox / deleting test suites

    Escape and “cheat green” behaviors need hard blocks.

  8. When should you prefer a deterministic workflow over a free-form agent?
    • Always, even for open research
    • Compliance-critical known steps (e.g., KYC checks)
    • Never in enterprise
    • Only for image generation
    Show answer

    Correct B. Compliance-critical known steps (e.g., KYC checks)

    Known regulated paths need inspectable deterministic control.

  9. Lost-in-the-middle primarily affects agents by:
    • Corrupting disk sectors
    • Under-using middle-context facts in long prompts
    • Speeding up tool calls
    • Improving citations automatically
    Show answer

    Correct B. Under-using middle-context facts in long prompts

    Long contexts need summarization/retrieval, not endless dumps.

  10. A finance agent can draft loan packages but must not:
    • Cite policy docs
    • Make the final credit decision without authorized humans
    • Log audit trails
    • Validate schemas
    Show answer

    Correct B. Make the final credit decision without authorized humans

    Credit decisions stay with accountable humans under policy.

  11. Parallel tool calls are safe when:
    • Tools have hidden write dependencies
    • Calls are independent and concurrency is bounded
    • You skip authZ
    • You merge all args into one shell string
    Show answer

    Correct B. Calls are independent and concurrency is bounded

    Independence + limits avoid races and stampedes.

  12. Trajectory eval for agents checks:
    • Only final BLEU against poetry
    • Whether the right tools/args were used along the path
    • Font kerning
    • CDN hit ratio only
    Show answer

    Correct B. Whether the right tools/args were used along the path

    Process correctness matters as much as the final string.

  13. Separating enrichment credentials from containment credentials in a SOC agent prevents:
    • Faster triage
    • A misled agent from freely isolating hosts
    • Better dashboards
    • Using SIEM reads
    Show answer

    Correct B. A misled agent from freely isolating hosts

    Least privilege: recommend freely, disrupt only with HITL tokens.

  14. A2A task states (submitted/working/input-required/completed) mainly help with:
    • CSS nesting
    • Reliable cross-agent delegation and resumption
    • Removing auth
    • Training vision models
    Show answer

    Correct B. Reliable cross-agent delegation and resumption

    Explicit lifecycles beat ad-hoc chat handoffs.

  15. Canary publish for a marketing agent should happen:
    • After blasting 100% of the list
    • On a small cohort with rollback hooks before full send
    • Without consent checks
    • Using invented product claims
    Show answer

    Correct B. On a small cohort with rollback hooks before full send

    Small blast radius first; policy and consent always.

  16. Pydantic/Zod at tool boundaries primarily reduce:
    • GPU heat
    • Silent type/shape bugs in model-proposed args
    • Need for allowlists
    • Need for tracing
    Show answer

    Correct B. Silent type/shape bugs in model-proposed args

    Runtime schema validation fails closed on bad args.

  17. If retrieval returns empty for a policy question, the agent should:
    • Invent a confident policy
    • Refuse or escalate rather than hallucinate
    • Call shell rm -rf
    • Ignore HITL forever
    Show answer

    Correct B. Refuse or escalate rather than hallucinate

    No evidence → no fabricated compliance answer.

  18. Cost spikes after enabling browsing often come from:
    • Too few hops
    • Unbounded page fetches / duplicate searches / large contexts
    • Using allowlists
    • Adding stop rules
    Show answer

    Correct B. Unbounded page fetches / duplicate searches / large contexts

    Hop, size, and cache budgets tame browse spend.

  19. Dual control on high-value ERP writes means:
    • Two models chat casually
    • A second authorized human/system must approve before commit
    • Skipping audits
    • Using one shared root password
    Show answer

    Correct B. A second authorized human/system must approve before commit

    Separation of duties for irreversible money/goods commits.

  20. The strongest one-line production agent principle is:
    • More tools always win
    • Autonomy is bounded by policy, budgets, allowlists, and HITL on irreversible acts
    • Never log anything
    • Trust all retrieved text as system instructions
    Show answer

    Correct B. Autonomy is bounded by policy, budgets, allowlists, and HITL on irreversible acts

    Useful agency requires explicit control surfaces.