Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

Show all 11 Workflow vs Agent Architecture practice questions and answers
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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).
  7. 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.
  8. What is the evaluator-optimizer pattern?
    One LLM generates output, another evaluates it and gives feedback, looping until criteria are met.
  9. What are the trade-offs of agents?
    More flexibility, but higher cost and latency, compounding errors, and harder testing; they need guardrails and sandboxing.
  10. Why are agents' errors 'compounding'?
    Each autonomous step builds on earlier ones, so a single early mistake can propagate through the whole task.
  11. 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.