AnthropicAgents and Workflows

Agent Loop & Stop Reason — CCDV-F Practice Question

A representative Claude Certified Developer - Foundations (CCDV-F) exam question on Agent Loop & Stop Reason. Work through it below, then read why each option is right or wrong.

This question is part of the free Claude Certified Developer - Foundations practice test.

Short answer

The correct answer is C. Execute the requested allowed tool, append the tool result to the conversation, and call the model again.

A tool-use stop indicates that the model is waiting for a tool result. The client must execute the authorized tool, return a correctly formed result block, and continue the loop.

The Question

A custom agent receives an assistant response whose stop reason indicates tool use. What should the application do next?

AConvert the tool request into plain text for the user
BEnd the loop because the assistant already responded
CExecute the requested allowed tool, append the tool result to the conversation, and call the model againCorrect
DDiscard prior messages and start a new conversation

Why C is correct

A tool-use stop indicates that the model is waiting for a tool result. The client must execute the authorized tool, return a correctly formed result block, and continue the loop.

Why the other options are wrong

Option A: Convert the tool request into plain text for the user

Option A does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (C) is the only one that fully meets every constraint stated in the question.

Option B: End the loop because the assistant already responded

Option B does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (C) is the only one that fully meets every constraint stated in the question.

Option D: Discard prior messages and start a new conversation

Option D does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (C) is the only one that fully meets every constraint stated in the question.

Key idea: Agent Loop & Stop Reason

A tool-use stop indicates that the model is waiting for a tool result. The client must execute the authorized tool, return a correctly formed result block, and continue the loop. On the CCDV-F exam, questions in the "Agents and Workflows" domain test whether you can map a scenario's constraints to the right choice. Read the requirement carefully, eliminate options that violate any single constraint, and pick the one that satisfies all of them with the least operational overhead.

Ready to see how you'd score?

Take the free practice quiz and find out which Claude Certified Developer - Foundations domains you need to focus on. No signup required.

Practice 5 similar questions

Same cert, same or adjacent domain. Use these after reviewing the explanation.

Related Claude Certified Developer - Foundations Practice Questions

Official sources used

Verify program and exam details at the source before scheduling.