LearnThatStack Ace your next interview
AI Engineering
AI Agents.
Change topic Change
Practice · Questions

All questions

Showing of 54
Beginner 12
01

What is an AI agent, and how is it different from a single LLM call?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

An AI agent is a system that uses a model to choose and perform actions toward a goal. It can call tools, inspect results, update its plan, and continue until it finishes or reaches a limit.

A single LLM call maps one input to one output. The surrounding application decides what happens next. An agent adds a loop and gives the model some control over the next step.

That flexibility helps with tasks whose steps cannot be fixed in advance, but it adds cost, latency, and risk. Use an agent only when dynamic decisions improve the task. Keep permissions, budgets, approvals, and stopping rules in deterministic code.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

02

Walk me through the reason-act-observe loop that makes a system agentic.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

The loop begins with a goal and the current state. The model decides what information or action is needed, then returns either a tool request or a final answer.

The runtime validates any tool request, executes it, and sends the result back as an observation. The model uses that new evidence to choose another action. This repeats until the task succeeds, the model stops, or the runtime reaches a turn, time, or cost limit.

Reasoning may be hidden or summarized. The important audit trail is observable: input, tool request, policy decision, result, and state change. A failed tool should become a clear observation, not a claim of success.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

03

What is tool use (function calling), and why is it called the foundation of agents?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Tool use lets a model request a function through structured output. The application describes available tools and their argument schemas. The model selects a tool and proposes arguments, but the application performs the real action.

Tools connect a model to live data and capabilities such as search, databases, calculators, code execution, and business APIs. Without them, the model can only generate content from its context.

Tool use is foundational because agents learn from results and decide what to do next. Every request must still pass validation, authorization, timeouts, and approval rules. A model-generated tool call is untrusted input, not permission to execute.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

04

Describe the full round trip of one function call between your application and the model.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

The application sends messages plus tool definitions containing names, descriptions, and argument schemas. The model returns a structured request with a tool name, arguments, and a call ID.

The runtime validates the schema, authenticates the user, checks policy, and executes the function. It records the outcome and sends a tool-result message linked to the same call ID. The model then uses that result to answer or request another tool.

If execution fails, return a safe, useful error instead of pretending the tool succeeded. Side-effectful tools should accept an idempotency key. Log the proposal, policy decision, execution, and response as separate events.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

05

What is the difference between a deterministic workflow and an agentic workflow?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

A deterministic workflow follows steps chosen by application code. Branches may depend on known rules, but the model does not decide the overall path. An agentic workflow lets a model choose actions based on the current state.

Deterministic workflows are easier to test, secure, predict, and price. Agentic workflows handle ambiguous tasks and unexpected intermediate results, but their paths vary and may loop or choose a poor tool.

Use fixed code when the process is known, especially for permissions, payments, and compliance. Add agentic decisions only where the next step truly depends on language understanding or open-ended evidence. Many reliable systems combine a deterministic shell with a small agentic step.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

06

What is ReAct, and why was it influential?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

ReAct is an agent pattern that interleaves reasoning and actions. The model considers the current problem, chooses a tool, observes the result, and continues with updated information.

The pattern was influential because it connected language-model reasoning with external evidence and actions in one understandable loop. It reduced the need for a complete plan before any real information was gathered.

Modern tool APIs may hide private reasoning and represent actions as structured calls, but the core loop remains. Production versions need stronger controls than the original prompting pattern: typed tools, permissions, step limits, idempotency, error handling, and traces of observable actions.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

07

What role does the system prompt play in an agent?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

The system prompt defines the agent's goal, scope, behavior, and tool policy. It can explain when to use tools, when to ask for clarification, when approval is required, and how to handle missing information.

Keep the prompt concise and consistent with tool descriptions. State stopping conditions and require the agent to report failures honestly. Mark external content and tool results as untrusted data.

The prompt guides the model but cannot enforce security. Authentication, authorization, spending limits, sandboxing, and approval gates belong in the runtime. Test conflicts and injection attempts because an agent may read hostile documents while holding useful tools.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

08

What is the Model Context Protocol (MCP), and what problem does it solve?

Part of Pro
09

What kinds of memory can an agent have?

Part of Pro
10

What is a multi-agent system, and why do most teams start with a single agent?

Part of Pro
11

What is human-in-the-loop in agent design, and when is an approval gate required?

Part of Pro
12

Name the major agent frameworks in 2026 and what each is best known for.

Part of Pro
Intermediate 21
13

What makes a good tool definition, and how would you write its description?

Part of Pro
14

How does parallel tool calling work, and what common mistake silently breaks it?

Part of Pro
15

Why do structured outputs matter inside agent steps, and how do the major providers enforce them?

Part of Pro
16

Compare ReAct-style interleaved reasoning with plan-then-execute. When does each win?

Part of Pro
17

What is reflection in agent design, and when does it actually pay off?

Part of Pro
18

Describe the supervisor (orchestrator-workers) pattern and its failure points.

Part of Pro
19

What are handoffs in the OpenAI Agents SDK, and how do they differ from a supervisor calling subagents as tools?

Part of Pro
20

Beyond the supervisor, what orchestration patterns should an engineer know?

Part of Pro
21

Why do long-running agents exhaust their context, and what are the main mitigations?

Part of Pro
22

What are subagents, and how do they help with context management?

Part of Pro
23

How should an agent handle a failing tool call?

Part of Pro
24

Why does idempotency matter for agent tools, and how do you achieve it?

Part of Pro
25

How do you prevent an agent from looping forever?

Part of Pro
26

How does evaluating an agent differ from evaluating a single-prompt LLM feature?

Part of Pro
27

Which benchmarks are commonly used for agents, and what does each actually measure?

Part of Pro
28

What does observability look like for an agent in production?

Part of Pro
29

What levers do you have to control an agent's cost and latency?

Part of Pro
30

When should you skip agent frameworks entirely, and what does the no-framework version look like?

Part of Pro
31

How do you decide which tools and how many to expose to an agent, and what goes wrong with too many?

Part of Pro
32

What is agentic RAG, and how does it differ from classic retrieval-augmented generation?

Part of Pro
33

What is context engineering, and why is it considered the successor to prompt engineering for agents?

Part of Pro
Expert 21
34

How does LangGraph model an agent, and what do checkpointing and interrupts buy you?

Part of Pro
35

Compare LangGraph, CrewAI, and AutoGen (Microsoft Agent Framework). How do you choose?

Part of Pro
36

What does the Claude Agent SDK give you beyond the raw Anthropic API, and when would you use each?

Part of Pro
37

What are the core primitives of the OpenAI Agents SDK, and how do they compose?

Part of Pro
38

How do computer-use agents work, and why are they harder to build reliably than API-based agents?

Part of Pro
39

Compare DOM-based and vision-based browser agents. What risks do browser agents introduce?

Part of Pro
40

How do you sandbox and permission an agent's tools?

Part of Pro
41

What is prompt injection in the agent setting, and what is the lethal trifecta? How do you mitigate it?

Part of Pro
42

Design a long-term memory system for an agent. What are write policies and why do they matter?

Part of Pro
43

How does context compaction work, and what must be preserved for it to be safe?

Part of Pro
44

How do agents in a multi-agent system communicate, and where does Google's A2A protocol fit?

Part of Pro
45

How do you implement guardrails around a production agent?

Part of Pro
46

What are the classic failure modes of deployed agents, and how do you mitigate each?

Part of Pro
47

How do you handle streaming, long turns, and resumability in an agent's execution?

Part of Pro
48

What are the security and trust risks of third-party MCP servers, and how would you vet one?

Part of Pro
49

A product team says "we need an AI agent" for a business process. How do you decide what to actually build?

Part of Pro
50

When does a multi-agent architecture actually beat a single agent, given that it multiplies token cost?

Part of Pro
51

How would you make an agent that runs for hours or days durable against crashes, deploys, and restarts?

Part of Pro
52

How do you build an evaluation pipeline for non-deterministic agent trajectories at scale?

Part of Pro
53

Design the security architecture for an agent that operates with production credentials.

Part of Pro
54

Architect the context management strategy for an agent that must work effectively over multi-day horizons.

Part of Pro

No matches

Try a different filter or search term.

Know someone prepping for AI Agents? Send them this set.
Pro · $10/mo

47 of 54 AI Agents answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime

Change topic

Pick a different technology or stack. Your current topic stays put until you choose a new one.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

Serverless on AWS

Serverless Architecture on AWS

Flutter Mobile

Flutter Cross-Platform Mobile Development

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

AI Engineer

LLMs, RAG, Agents, Evals

AI-Powered Developer

Claude Code, Copilot, Agentic Workflows

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git