Courseiva
Agents and the Agent SDK →mediumMultiple Choice

CCDV-F Agents and the Agent SDK Practice Question

Which component is responsible for orchestrating the loop between the model's output and the execution of tools in the Anthropic SDK?

⚠ Common exam trap

Candidates often assume that the Anthropic model or the SDK automatically executes the tool calls autonomously without requiring developer-written application code.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

The application code handling the API response cycle.

The orchestration loop is typically managed by the developer's application code using the SDK's response handling logic. The SDK provides the tools and the model generates requests, but the 'loop' itself—checking for tool calls, executing them, and sending the results back—must be implemented in the host application. This pattern is central to building autonomous agents that can process tasks iteratively.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    The Claude model itself.

    Why it's wrong here

    The model generates the tool call request but does not execute the code or manage the loop. It acts as a reasoning engine, while the orchestration must be implemented in the application layer that communicates with the API.

  • ✓

    The application code handling the API response cycle.

    Why this is correct

    The developer writes the loop logic that inspects the model's response for tool-use blocks, executes the corresponding functions, and feeds the results back into the history. This is the standard orchestration pattern for agentic workflows using the Anthropic SDK.

  • ✗

    The Anthropic API server-side logic.

    Why it's wrong here

    The Anthropic API is stateless and does not know about your internal functions or your application's loop. It processes each request independently and waits for the client to provide the subsequent turn, meaning orchestration is entirely the responsibility of the client application.

  • ✗

    The system prompt instructions.

    Why it's wrong here

    System prompts provide guidance but cannot perform the technical orchestration of executing code or managing state across multiple turns. They are for influencing the model's reasoning, not for managing the technical flow of tool execution loops.

About these practice questions

Courseiva writes every CCDV-F question from scratch — 257 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Anthropic exam blueprint

This CCDV-F practice question is part of Courseiva's free Anthropic certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CCDV-F exam.