CCDV-F Tools and MCP Integration Practice Question
Exhibit
{
"name": "calculate_tax",
"description": "Calculates sales tax for a given amount and state.",
"input_schema": {
"type": "object",
"properties": {
"amount": {"type": "number"},
"state_code": {"type": "string", "minLength": 2, "maxLength": 2}
},
"required": ["amount"]
}
}Refer to the exhibit. A developer provides this tool definition to Claude. If a user asks 'What is the tax on $100?', how will Claude likely behave based on the provided JSON schema?
⚠ Common exam trap
Candidates frequently assume that if a property is optional in the JSON schema, Claude will fabricate a default value instead of asking the user for clarification.
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
✓
Claude will likely ask the user which state they are in before calling the tool.
The JSON schema defines the contract between the model and the tool. In this exhibit, 'amount' is required, but 'state_code' is not. However, the description implies 'state_code' is necessary for an accurate calculation. Claude will attempt to follow the schema first, but if it identifies that a critical piece of information for the logic is missing, it may ask for clarification.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Claude will trigger an API error because the state_code is missing from the required list.
Why it's wrong here
The API will not error simply because a property is missing from the required list. If the user does not provide the info, Claude is technically allowed to call the tool with just the 'amount'. The error would only occur if the developer's underlying code cannot handle a null value for 'state_code'.
- ✗
Claude will call the tool with a default state_code of 'CA'.
Why it's wrong here
Claude does not invent default values unless they are explicitly defined in the JSON schema using the 'default' keyword. Without a default value, Claude will either omit the property or ask the user for the missing information to ensure the calculation is performed correctly for the specific context provided.
- ✓
Claude will likely ask the user which state they are in before calling the tool.
Why this is correct
Since the tool description mentions the calculation depends on the state, and 'state_code' is not provided by the user, Claude's training encourages it to seek clarification. This behavior ensures that the tool is used effectively and that the results provided to the user are accurate and contextually relevant.
- ✗
Claude will automatically extract the state from the user's IP address.
Why it's wrong here
Claude does not have access to the user's IP address or other metadata unless it is explicitly provided in the conversation or system prompt. The model is isolated from the underlying network layer, meaning it cannot autonomously gather environmental data to fill in missing tool parameters without developer intervention.
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 →
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.