Courseiva

CCDV-F · topic practice

Agents and the Agent SDK practice questions

This domain covers building agents with the Anthropic Agent SDK: MCP server configuration, multi-agent routing and state handoff, and the standardized beta tools for Computer Use. Questions are scenario-based, asking you to pick the correct configuration field, tool set, or architectural component for a described workflow, including restricting an agent to safe operations.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Agents and the Agent SDK

What the exam tests

What to know about Agents and the Agent SDK

Be able to read an MCP config block and identify what each field does, design a Router-to-specialist handoff that preserves state, and select the right Computer Use beta tool. Most important: enforce least privilege, so a database agent is restricted to read-only operations.

MCP server config blocks, including the purpose of fields like 'args' and 'command'

Multi-agent orchestration: how a Router delegates to Research and Writer agents and passes state

The three Anthropic beta tools 'computer', 'text_editor', and 'bash' and their capabilities

Using Agent SDK patterns to constrain an agent to read-only access on a private database

Watch out for

Common Agents and the Agent SDK exam traps

  • ▸Confusing MCP 'args' with environment variables or the server command; 'args' are the command-line arguments passed to launch the server.
  • ▸Assuming agents share memory automatically; state must be explicitly passed or persisted between Router, Research, and Writer.
  • ▸Treating the Computer Use beta tools as one tool; 'computer', 'text_editor', and 'bash' are distinct with separate capabilities.

Practice set

Agents and the Agent SDK questions

20 questions · select your answer, then reveal the explanation

Refer to the exhibit. An agent is consistently failing to use the provided tool. What is the most likely cause based on the provided JSON definition?

Exhibit

{
  "name": "search_tool",
  "description": "Searches the internal documentation.",
  "input_schema": {
    "type": "object",
    "properties": {
      "query": {"type": "string"}
    }
  }
}

When using the 'tool_use' capability in the Anthropic SDK, what is the significance of the 'stop_sequences' parameter?

A developer is building an agent that must coordinate between three different specialized tools. During testing, the agent occasionally enters a loop where it calls the same tool repeatedly with identical arguments. Which architectural pattern within the Agent SDK is most effective for preventing this behavior while maintaining autonomous reasoning?

Which TWO of the following are primary benefits of using the Model Context Protocol (MCP) when building agents with the Anthropic SDK?

A team is building a customer-support agent on the Anthropic SDK. They define three tools with clear descriptions and valid input schemas, yet the agent sometimes answers from memory instead of calling search_knowledge_base, and occasionally invents a tool name that was never registered. The team wants to make tool invocation more reliable. (Choose two.)

An agent developer is building a workflow where an agent must query a private database. To ensure the agent only performs read operations, which component of the Anthropic Agent SDK pattern should be prioritized?

When designing agentic loops with the Anthropic SDK, which TWO practices help prevent infinite tool-use cycles? (Select exactly 2)

You are debugging an agent that often fails to format its final response as JSON, despite being instructed in the system prompt. Which technique is most effective for ensuring consistent output structure?

When sharing state between multiple agent turns, why is it recommended to use a managed session object instead of appending everything to a simple list of messages?

Which THREE of the following are essential components of a well-defined tool for an agent? (Select exactly 3)

What is the primary role of the 'system' role in a message sequence for an agent?

Refer to the exhibit. Which step should you take first to resolve this tool invocation error?

Exhibit

Error: '400 Bad Request: Tool use failed: Invalid schema definition.'

In an agentic flow, what is the impact of providing redundant tool descriptions that overlap in functionality?

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

Why should you avoid including sensitive personal data (PII) in the tool results returned to an agent?

When an agent is asked to perform a complex task, which approach minimizes latency while ensuring accuracy?

Which THREE strategies are effective for improving the reliability of an agent in production environments? (Select exactly 3)

Which of the following is a best practice when providing feedback to an agent after a failed tool call?

Question 19mediummultiple choice
Review the full routing breakdown →

You are designing a multi-agent system where a 'Router' agent directs tasks to a 'Research' agent or a 'Writer' agent. What is the most efficient way to maintain state when the Research agent completes its task and needs to hand back control?

When defining a tool for an agent using the Anthropic SDK, which field is required to ensure the model understands the specific schema of the input arguments?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Agents and the Agent SDK sessions

Start a Agents and the Agent SDK only practice session

Every question in these sessions is drawn from the Agents and the Agent SDK domain — nothing else.

Related practice questions

Related CCDV-F topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the CCDV-F exam test about Agents and the Agent SDK?
Be able to read an MCP config block and identify what each field does, design a Router-to-specialist handoff that preserves state, and select the right Computer Use beta tool. Most important: enforce least privilege, so a database agent is restricted to read-only operations.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Agents and the Agent SDK questions in a focused session?
Yes — the session launcher on this page draws every question from the Agents and the Agent SDK domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other CCDV-F topics?
Use the topic links above to move to related areas, or go back to the CCDV-F question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the CCDV-F exam covers. They are not copied from any real exam or dump site.