Interview Q&A · questions with model answers
Agents Interview Questions
Part of the study plan for: Native AI Engineer · Forward Deployed Engineer (FDE)
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
Most asked Agents leaf: When should you avoid agents?
Avoid agents when the workflow is fully deterministic, latency or cost budgets are tight, or side effects need strict control. A single LLM call or plain code is often better.
-
Most asked What is the difference between a workflow and an agent?
In a workflow, your code defines the sequence of LLM calls and tools (prompt chaining, routing, parallelisation); in an agent, the model decides the next step dynamically in a loop. Workflows are…
-
Agents leaf: Compare planner-executor vs ReAct.
A planner-executor generates a complete plan upfront then executes each step, while ReAct decides what to do one step at a time. Planners excel at long multi-step tasks; ReAct adapts better to…
-
Agents leaf: Deterministic code vs LLM for a step?
Use deterministic code for parsing, math, authentication, validation, and side effects. Use an LLM for fuzzy language understanding, planning, summarization, and creative generation. Most production…
-
When does a multi-agent system beat a single agent?
When the task splits into independent subtasks that can run in parallel with separate contexts, such as broad research across many sources. An orchestrator assigns each worker a clear objective,…
-
Agents leaf: How do swarm/crew patterns differ from a single agent?
Swarm and crew patterns use multiple role-specialized agents coordinated by a router or manager, trading simplicity for better specialization. They add latency, cost, and coordination complexity…
-
Agents leaf: Compare assistants API threads vs custom orchestration.
Managed assistant APIs (like OpenAI's Assistants API) provide built-in threading, file handling, and tool execution for rapid prototyping. Custom orchestration gives you full control over state…
-
What are parallel tool calls, and when should you use them?
The model requests several independent tool calls in one turn; your code runs them concurrently and returns all results together. Use them for independent lookups (flights, hotels, visa rules) to…
-
Compare ReAct-style agents, plan-and-execute agents, and multi-agent systems. When would you use each?
ReAct interleaves reasoning and tool calls in a loop—good for exploratory tasks with few tools and short horizons.