D1: Workflow vs Agent Architecture
Claude Certified Developer – Foundations exam practice questions · 11 flashcards
Question
Workflow vs agent: what's the difference?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 Workflow vs Agent Architecture practice questions and answers
- Workflow vs agent: what's the difference?Workflow: LLM calls and tools follow predefined code paths. Agent: the LLM dynamically decides its own steps and tool use.
- When should you choose a workflow over an agent?When steps are known in advance, predictability matters, and you want lower cost, latency and easier testing.
- When is an agent the better choice?For open-ended tasks where the number and order of steps can't be predicted and flexible tool use is needed.
- What is Anthropic's core advice before building agents?Start with the simplest solution (a single well-prompted call); add workflow or agent complexity only when it clearly improves results.
- What is the prompt-chaining pattern?A task split into fixed sequential LLM calls, each processing the previous output, optionally with code checks (gates) between steps.
- What is the routing pattern?Classify an input first, then send it to a specialized prompt, tool or model (e.g. easy queries to Haiku, hard ones to Opus).
- What is parallelization (sectioning vs voting)?Sectioning: split a task into independent parts run in parallel. Voting: run the same task several times and combine results.
- What is the evaluator-optimizer pattern?One LLM generates output, another evaluates it and gives feedback, looping until criteria are met.
- What are the trade-offs of agents?More flexibility, but higher cost and latency, compounding errors, and harder testing; they need guardrails and sandboxing.
- Why are agents' errors 'compounding'?Each autonomous step builds on earlier ones, so a single early mistake can propagate through the whole task.
- What makes a task well-suited to an agent?A clear success signal, ability to verify progress (e.g. tests pass), and tolerance for some autonomy within guardrails.