Agent workflows and tool safety
Design bounded, observable and recoverable workflows.
Use explicit state, validated tools and human approval for consequential actions.
Interview questions
Choose a question to reveal its answer.
01EasyCoreWhat distinguishes an AI agent from a simple model call?
Answer
What distinguishes an AI agent from a simple model call?
System that selects actions using a model or policy in pursuit of a goal.
Choose which approved tool to call based on task state.
def execute(action, allowed_tools):
if action not in allowed_tools:
raise ValueError('Unauthorized tool')
return allowed_tools[action]()A real system must also validate arguments, permissions and consequential actions.
02EasyCoreWhen is a deterministic workflow preferable to an agent?
Answer
When is a deterministic workflow preferable to an agent?
Explicitly orchestrated sequence or graph of computational steps.
Run extraction, validation and review in a deterministic order.
03EasyCoreVisualHow does the ReAct pattern work?
Answer
How does the ReAct pattern work?
Pattern interleaving reasoning and actions with observations.
Search, inspect the result and decide whether another retrieval is needed.
04MediumHigh priorityWhy validate tool arguments against a schema?
Answer
Why validate tool arguments against a schema?
Typed description of allowed function arguments and behavior.
Validate a search tool's query before executing it.
05MediumHigh priorityWhat state should an agent persist?
Answer
What state should an agent persist?
Persisted or transient representation of workflow variables and progress.
Resume an interrupted task from its recorded step.
06MediumHow can an agent use memory responsibly?
Answer
How can an agent use memory responsibly?
Mechanism to retain relevant context across turns or executions with appropriate controls.
Retrieve a previous user preference when authorized.
07MediumWhen should an agent request human approval?
Answer
When should an agent request human approval?
Explicit user confirmation before a consequential action.
Separate low-risk information retrieval from consequential actions. Before a write or external side effect, validate tool arguments, verify permissions and ask for explicit approval when required. Use idempotency and audit records to manage retries.
Ask for approval before publishing generated content.
08MediumWhy is idempotency important for agent tools?
Answer
Why is idempotency important for agent tools?
Property that repeating an operation has the same intended effect as doing it once.
Retry a request without creating duplicate records.
09HardHow do you bound agent execution cost?
Answer
How do you bound agent execution cost?
Bound on time, tokens, steps or monetary cost for execution.
Stop an agent after a configured number of calls.
10HardWhat problem does MCP solve?
Answer
What problem does MCP solve?
Protocol for connecting applications to tools, resources and prompts through standardized interfaces.
Expose a read-only document search tool through an MCP server.
Priority and difficulty are editorial study recommendations.
Technical reference: Documentation / paper ↗
Try a few practice questions
Explore the questions before creating a free account.
1. A tool can transfer money or merely read account information. What should an agent have by default for a research task?
2. A network timeout occurs after a create-record request. Which property helps safely retry it?
3. What is an appropriate way to prevent endless agent execution?
Agent orchestration and reliability
Continue to the next set of interview questions.