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

Agents and workflows

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.

Agents and workflows

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.

Agents and workflows

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.

Agents and workflows

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.

Agents and workflows

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.

Agents and workflows

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.

Agents and workflows

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.

Agents and workflows

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.

Agents and workflows

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

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.

Who wrote this

Matei Olaru

Matei Olaru

CEO, Your AI Department

Former public-company CEO, corporate attorney, and World Bank consultant. Runs the YAID Network and the partner relationship with Anthropic.

Michael Greenberg

Michael Greenberg

AI Product Lead, Your AI Department

AI at Google, Meta, and Samsung. Six patents. Leads member support and the certification prep guidance.

Claude Partner NetworkYour AI Department is a registered Claude Partner Network company. Our members sit these exams under our partner standing. Facts on this page were last checked on October 15, 2026.