CCDV-F domain drill
CCDV-F practice questions: Agents and workflows.
9 original questions on Agents and workflows, which carries 14.7% of the Claude Certified Developer – Foundations exam per the published guide. Study notes first, then the questions with an explanation for each. When this domain feels solid, take the timed CCDV-F practice exam and check the domain breakdown.
What to know about Agents and workflows
- Implementing the agent loop in code: send messages, detect tool_use blocks, execute, append tool_result blocks, repeat until end_turn.
- Workflow patterns from Anthropic's guidance (chaining, routing, parallelization, orchestrator-workers, evaluator-optimizer) and how to pick one.
- The Claude Agent SDK: what it handles for you (the loop, tools, permissions, hooks, subagents) versus a hand-rolled loop.
- Stop conditions, max turns, and human approval steps.
Agents and workflows questions
Which loop correctly implements a tool-using agent?
Show answer
Answer: Call the model; on tool_use run the tool, append the result, call again; stop on end_turn or a turn cap. The agent loop alternates model turns and tool execution until the model ends its turn or a safety limit stops it. Running tools up front skips the model's decision about which tool to call and with what arguments.
What does the Claude Agent SDK handle for you that a hand-rolled loop does not?
Show answer
Answer: The agent loop, tool execution, permission checks, hooks, and subagents. The Agent SDK packages the agent loop with tools, permission checks, hooks, and subagent support so you do not rebuild them. Retries and typed objects come from the plain client SDK, which still leaves the loop to you.
In a hand-rolled agent loop, what must happen before calling the model again after a tool call?
Show answer
Answer: Append a tool_result block whose tool_use_id matches the tool_use block. Tool results must be returned with the matching id, and the tool_use block stays in history so the pairing is valid.
Which pattern fits 'translate, then have a second call grade the translation, then revise until it passes'?
Show answer
Answer: Evaluator-optimizer loop. Generate, evaluate, refine. Orchestrator-workers splits a task across workers; it does not grade and revise.
What should limit an agent loop besides end_turn?
Show answer
Answer: A maximum number of iterations plus a time or cost budget. Hard caps prevent runaway loops. Letting the context window fill is a crash, not a limit.
The Claude Agent SDK's hooks are useful for:
Show answer
Answer: Running deterministic checks around tool calls, such as blocking a dangerous command. Hooks wrap tool calls with your own logic, such as blocking or transforming a call. Model switching and prompt rewriting are not what hooks are for.
A workflow has a step that sometimes needs human input. How should the code model it?
Show answer
Answer: A pause state that persists progress and resumes when the input arrives. Human-in-the-loop steps need durable pause and resume. Polling holds resources open, and restarting repeats work already done.
Which is true about subagents in the SDK?
Show answer
Answer: They run with their own context and return a result to the parent. Subagents isolate context; the parent gets back a result, not the subagent's transcript.
Why give each workflow step one responsibility?
Show answer
Answer: Each step becomes testable on its own and failures are easier to localize. Single-purpose steps are debuggable. Token savings are not guaranteed, and the API has no such rule.
Next
- Timed CCDV-F practice exam: 53 questions in 120 minutes, scored against the 720 pass mark.
- All CCDV-F practice questions with a domain filter.
- The CCDV-F exam page: format, weights, registration, study path.
Other CCDV-F domains
FAQ
How much of the CCDV-F exam is agents and workflows?+
14.7% of the marks, per the published CCDV-F exam guide. The full domain list with weights is on the CCDV-F exam page.
Are these real CCDV-F exam questions?+
No. They are 9 original scenario questions written from the blueprint for this domain. Reproducing exam content would violate the candidate agreement.
How should I study agents and workflows for CCDV-F?+
Read the domain notes on this page, answer the questions with explanations hidden, then take the timed CCDV-F practice exam and check the per-domain breakdown for this domain.



