CCDV-F
Free CCDV-F practice questions
10 questions from our CCDV-F practice tests, each with the correct answer and a written explanation. Read them with the answers shown, or switch to quiz mode and answer first.
Question 1 of 10, Applications and Integration. Choose 2.
A developer is reviewing the stop_reason values a Messages API integration must handle. Which TWO values indicate that the application should take an action before Claude's turn can be considered complete? (Choose two.)
- Apause_turn Correct answer
- Bstop_sequence
- Ccontent_filter
- Dend_turn
- Etool_use Correct answer
Answer and explanation: tool_use means Claude is waiting for the client to run tools and return results, and pause_turn means a long server-tool turn was paused and should be sent back so Claude can continue. end_turn is a natural finish and stop_sequence means a custom stop string was hit, so neither requires continuation. content_filter is not a Claude stop_reason; safety declines appear as refusal.
Question 2 of 10, Applications and Integration
A team stores conversation history between turns as plain strings extracted from each response's text blocks. After enabling tools and thinking, requests start failing or Claude loses context about tool calls. What is the fix?
- AStore and resend the full assistant content arrays, including tool_use and thinking blocks Correct answer
- BStore only the final text but add a summary of the tool calls to the next system prompt
- CStore only the user turns and let Claude regenerate its earlier answers on each new request
- DStore the full responses but strip the thinking blocks before each new request to save tokens
Answer and explanation: When tools or thinking are used, the assistant content array must be appended as returned, because tool_result blocks must match prior tool_use blocks and thinking blocks must be passed back unchanged during tool use. Text-only history breaks those links. Removing thinking blocks during a tool loop can cause errors, and dropping assistant turns loses the conversation.
Question 3 of 10, Applications and Integration
A nightly job must classify 400,000 support tickets. Results are needed by the next morning, and cost matters more than latency. Which design is MOST cost-effective?
- AStream every ticket individually through the Messages API so tokens arrive more quickly
- BSubmit the tickets through the Message Batches API and collect the results by custom_id Correct answer
- CSend the tickets concurrently through the Messages API using many parallel worker threads
- DPut all tickets in one Messages API request and ask Claude to return a list of their labels
Answer and explanation: The Message Batches API processes asynchronous requests at roughly half the standard price, usually within 24 hours, which fits an overnight deadline. Parallel synchronous calls pay full price and press against rate limits. Streaming lowers perceived latency but not cost, and a single giant prompt would exceed output limits and make per-ticket errors hard to isolate.
Question 4 of 10, Model Selection and Optimization
A summarization route on Claude Opus 5.5 returns good results, but latency and token spend are higher than needed for this simple task. Which change trades quality for speed MOST directly without switching models?
- AAdd a stop sequence after the first paragraph of output
- BSet output_config.effort to low for this route Correct answer
- CRaise max_tokens so that the model can finish sooner
- DSet thinking to disabled on every request of this route
Answer and explanation: The effort setting controls how much the model thinks and how many tokens it spends overall, so low effort is the intended lever for routine work. On Claude Opus 5.5 thinking cannot be switched off, and a disabled thinking setting returns an error. A higher max_tokens only raises the ceiling, and a stop sequence would truncate the summary rather than make the model more efficient.
Question 5 of 10, Model Selection and Optimization
Before sending a large prompt, an application must check whether it will fit the budget for a route and estimate its input cost. Which approach gives an accurate number for the target model?
- ACall the token counting endpoint with the same model, system prompt, tools and messages Correct answer
- BUse an open-source tokenizer from another model family and add a ten percent margin
- CSend the real request with max_tokens set to 1 and then read input usage from the response
- DDivide the character count by four, which matches Claude's tokenizer for all text
Answer and explanation: The count_tokens endpoint returns the input token count for the exact model and payload, including tools and images, at no charge. A characters-divided-by-four rule is only a rough estimate, and other tokenizers do not match Claude's, especially since tokenizers differ between model generations. A real request with max_tokens 1 still bills the full input.
Question 6 of 10, Agents and Workflows
A customer-service system receives refund requests, technical questions and sales inquiries, and each type needs a very different prompt and tool set. Which workflow pattern is MOST appropriate?
- AEvaluator-optimizer: have one model draft and another critique each reply
- BVoting: run the same prompt several times and keep the majority answer
- CPrompt chaining: send each request through all three prompts in sequence
- DRouting: classify each request first, then pass it to a specialised prompt Correct answer
Answer and explanation: Routing separates distinct categories so each downstream prompt and tool set can be optimised without hurting the others. Running every request through all three prompts wastes calls and mixes concerns. Evaluator-optimizer improves quality of one output through iteration but does not separate categories, and voting increases confidence on one task rather than directing traffic.
Question 7 of 10, Agents and Workflows. Choose 2.
A developer implements the memory tool so an agent can keep notes across conversations. Which TWO statements about this tool are correct? (Choose two.)
- AThe memory tool only works inside the Message Batches API for asynchronous jobs
- BThe memory tool replaces the need to send any conversation history in requests
- CClaude can create, read and update files in a memory directory between sessions Correct answer
- DThe application implements the storage backend that executes the memory commands Correct answer
- EAnthropic stores the memory files permanently in the organisation's workspace
Answer and explanation: The memory tool is client-side: Claude issues file-style commands against a memory directory, and the application decides where and how they are stored, allowing knowledge to persist across sessions. Anthropic does not host the memory store for this tool. Conversation history still has to be sent for the current session, and the tool is used in normal Messages API requests.
Question 8 of 10, Prompt and Context Engineering
A financial analysis prompt produces conclusions that skip important reasoning steps. The team wants Claude to reason carefully on hard cases without paying for long reasoning on easy ones. What is the recommended configuration on current models?
- AUse adaptive thinking, which lets the model decide how much to think per request Correct answer
- BAsk for the reasoning inside the final answer text on every request instead
- CDisable thinking and raise max_tokens so the answer can contain more steps
- DSend a fixed thinking budget of 32,000 tokens on every request to the model
Answer and explanation: Adaptive thinking lets the model scale its reasoning to the difficulty of each request, and effort tunes the overall depth. Fixed thinking budgets are deprecated or rejected on current models. Forcing visible reasoning into every answer inflates output on easy cases, and disabling thinking removes the internal reasoning the team wants.
Question 9 of 10, Tools and MCPs
An MCP server exposes a tool that permanently deletes records. Which MCP tool annotation helps clients warn users before the call?
- AopenWorldHint set to true
- BreadOnlyHint set to true
- CidempotentHint set to true
- DdestructiveHint set to true Correct answer
Answer and explanation: destructiveHint signals that a tool may perform destructive updates, so hosts can ask for confirmation. readOnlyHint true would wrongly claim the tool has no side effects. openWorldHint describes whether a tool reaches external entities, and idempotentHint says repeated calls have no extra effect; neither signals deletion risk.
Question 10 of 10, Security and Safety
A retrieval-augmented assistant pulls web pages into context. Which practice BEST reduces the risk that instructions hidden in those pages change the assistant's behaviour?
- ARaise the effort level so the assistant reasons longer before following any instruction
- BRetrieve pages only from search results that rank on the very first page of the search engine
- CMark retrieved content as untrusted data in tags and restrict which tools it can trigger Correct answer
- DPut the retrieved pages before the system prompt so they are read with lower priority
Answer and explanation: Separating untrusted content clearly and limiting the actions available while processing it reduces both the chance and the impact of indirect prompt injection. Search ranking says nothing about safety. More reasoning does not reliably stop injected instructions, and retrieved content cannot be placed ahead of the system prompt, which is a separate field.