Anthropic CCDV-F (Claude Certified Developer - Foundations) Practice Test 24

Question 230

A planned upgrade to an operations research assistant has two requirements that must both pass: send distinct request types to specialized handlers while keeping the routing rule inspectable; prevent specialists from producing incompatible artifacts for the orchestrator. Identify the two direct implementations. Choose TWO.

  1. Define structured inputs, expected outputs, and failure states for each delegate.
  2. Delegate source analysis to a subagent and return a concise result.
  3. Give an agent a bounded objective and a tool-selection loop.
  4. Classify the request and dispatch to an appropriate specialized workflow.
  5. Insert an approval gate before the high-risk action.

Explanation

Correct Answers

A:

To prevent specialists from producing incompatible artifacts for the orchestrator as part of a design that must also send distinct request types to specialized handlers while keeping the routing rule inspectable, explicit delegation contracts make multi-agent integration testable; free-form handoffs often obscure whether a child finished its assigned task; this is why the action is one of the two required selections.

D:

To send distinct request types to specialized handlers while keeping the routing rule inspectable as part of a design that must also prevent specialists from producing incompatible artifacts for the orchestrator, routing separates distinct pathways without making the entire task autonomously planned; the classification decision must be observable and tested; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal to keep a large source-reading task from crowding the coordinator's working context because isolated workspaces let a specialist process extensive material while the parent receives only task-relevant evidence instead of every intermediate token; the required outcomes are instead to send distinct request types to specialized handlers while keeping the routing rule inspectable and to prevent specialists from producing incompatible artifacts for the orchestrator.

C:

This alternative serves the separate goal to pursue an open-ended investigation where the next action depends on intermediate evidence because agentic control lets the model choose among permitted steps as observations arrive; budgets and termination conditions still bound its autonomy; the required outcomes are instead to send distinct request types to specialized handlers while keeping the routing rule inspectable and to prevent specialists from producing incompatible artifacts for the orchestrator.

E:

This alternative serves the separate goal to require human approval before an autonomous task crosses a high-impact decision boundary because human-in-the-loop control interrupts execution at a defined boundary; an agent's natural-language assurance cannot substitute for authorization; the required outcomes are instead to send distinct request types to specialized handlers while keeping the routing rule inspectable and to prevent specialists from producing incompatible artifacts for the orchestrator.

Question 231

In a customer-facing AI feature, testing reveals that the system cannot prevent a document-upload endpoint from passing unsupported bytes to the model and cannot filter risky user-visible content according to application policy. Select the two targeted actions that close these gaps. Choose TWO.

  1. Store and retrieve message history by authenticated tenant and conversation ID.
  2. Retain source identifiers with retrieved evidence and render supported citations.
  3. Buffer structured data until it can be parsed and validated before UI commit.
  4. Validate file type, size, and allowed content conversion before API submission.
  5. Apply content checks at suitable input and output boundaries.

Explanation

Correct Answers

D:

To prevent a document-upload endpoint from passing unsupported bytes to the model as part of a design that must also filter risky user-visible content according to application policy, client filenames are not enough to establish content validity; ingestion must enforce protocol and product constraints; this is why the action is one of the two required selections.

E:

To filter risky user-visible content according to application policy as part of a design that must also prevent a document-upload endpoint from passing unsupported bytes to the model, moderation is a defense layer applied around generation, not a substitute for authenticated tool access or scoped retrieval; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to prevent chat transcripts from different accounts entering the same Claude request because session hygiene requires server-enforced isolation; model instructions cannot repair a history assembled from the wrong user; the required outcomes are instead to prevent a document-upload endpoint from passing unsupported bytes to the model and to filter risky user-visible content according to application policy.

B:

This alternative serves the separate goal to let a reviewer trace claims to the material actually consulted because traceability requires linking claims to accessible source passages; fabricated URLs or unlabeled snippets do not provide verifiable provenance; the required outcomes are instead to prevent a document-upload endpoint from passing unsupported bytes to the model and to filter risky user-visible content according to application policy.

C:

This alternative serves the separate goal to display partial sentences without publishing malformed structured records because a text stream can arrive in fragments; consumers must distinguish presentation updates from complete machine-readable objects; the required outcomes are instead to prevent a document-upload endpoint from passing unsupported bytes to the model and to filter risky user-visible content according to application policy.

Question 232

For a model-output validation layer, the missing capability is to answer a company-policy question from current approved records instead of relying on general knowledge. What should the developers implement?

  1. Have a scoped subagent process sources and return a concise verified handoff.
  2. Retrieve authoritative policy passages and cite those used.
  3. Retain essential fields and discard irrelevant tool output from active context.
  4. Hold evaluation inputs constant and compare prompt versions.

Explanation

Correct Answer

B:

To answer a company-policy question from current approved records instead of relying on general knowledge in this model-output validation layer, retrieval supplies task-specific facts that pretraining may not include, while source attribution lets the application verify the response; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to analyze a large source set without exposing every raw document to the parent agent because separate contexts let specialists work deeply while the coordinator sees only claims and references needed for the final decision; that mechanism does not meet the different requirement to answer a company-policy question from current approved records instead of relying on general knowledge.

C:

The proposed alternative helps to stop verbose tool payloads from consuming most of a long-running agent's context because summarizing or filtering observations keeps the reasoning window focused without deleting required facts from durable application state; that mechanism does not meet the different requirement to answer a company-policy question from current approved records instead of relying on general knowledge.

D:

The proposed alternative helps to measure whether a changed instruction actually improves extraction accuracy because a reproducible prompt test isolates the change being studied; anecdotal output from unrelated cases does not show improvement; that mechanism does not meet the different requirement to answer a company-policy question from current approved records instead of relying on general knowledge.

Question 233

While planning a document investigation agent, the product owner specifies that it must stop old agent histories from burying the information needed for the current step. Which solution fulfills the requirement?

  1. Define and validate a typed schema at the handoff.
  2. Retrieve only task-relevant memories into the active context.
  3. Attach a post-execution observation hook to the tool lifecycle.
  4. Catch tool failures and report typed errors into the agent loop.

Explanation

Correct Answer

B:

To stop old agent histories from burying the information needed for the current step in this document investigation agent, selective retrieval improves signal-to-noise and keeps token use bounded while retaining access to older information when required; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to pass reliable machine-readable outputs between independently developed agent stages because typed outputs make downstream contracts inspectable and reduce ambiguity caused by free-form prose passed as control data; that mechanism does not meet the different requirement to stop old agent histories from burying the information needed for the current step.

C:

The proposed alternative helps to inspect the result of a completed tool call before later model reasoning consumes it because post-tool inspection can record or validate outcomes after execution, but it cannot retroactively prevent side effects from the completed call; that mechanism does not meet the different requirement to stop old agent histories from burying the information needed for the current step.

D:

The proposed alternative helps to keep a failed tool from being mistaken for successful completion of an objective because explicit failure messages let the model or controller choose recovery; swallowing exceptions makes later actions rely on results that never existed; that mechanism does not meet the different requirement to stop old agent histories from burying the information needed for the current step.

Question 234

In a high-volume Messages API gateway, a release requirement is to ask Claude to interpret a supported image supplied as part of a request. Which implementation addresses that specific requirement?

  1. Read the completed stream's usage and final message metadata.
  2. Return tool_result blocks containing the corresponding tool_use_id.
  3. Include a typed image content block in the message.
  4. Parse response content by block type and follow current thinking-field rules.

Explanation

Correct Answer

C:

To ask Claude to interpret a supported image supplied as part of a request in this high-volume Messages API gateway, multimodal input must use the API's image representation and supported sourcing; merely writing a filename in text does not transfer pixels; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to account accurately for token consumption when a response is streamed because early text deltas do not necessarily carry authoritative final usage or stop information; accounting must wait for the appropriate terminal event; that mechanism does not meet the different requirement to ask Claude to interpret a supported image supplied as part of a request.

B:

The proposed alternative helps to connect execution output to the exact tool request Claude made because tool correlation preserves call-to-result semantics in the message sequence, especially when several tools were requested together; that mechanism does not meet the different requirement to ask Claude to interpret a supported image supplied as part of a request.

D:

The proposed alternative helps to handle a response containing reasoning-related blocks without confusing them with ordinary final text because structured content may contain distinct block types and signatures; a parser that assumes only plain text can discard important protocol data; that mechanism does not meet the different requirement to ask Claude to interpret a supported image supplied as part of a request.

Question 235

The team responsible for a structured output service needs to apply the same compliance restrictions across many different end-user requests. What is the most direct engineering change?

  1. Validate parsed output against the application's declared schema.
  2. Mark untrusted quoted material with explicit boundaries and role context.
  3. Put stable application constraints in the system instruction field.
  4. Supply representative labeled examples including edge conditions.

Explanation

Correct Answer

C:

To apply the same compliance restrictions across many different end-user requests in this structured output service, high-priority application instructions should not be delivered as ordinary user content where they compete with user questions and document text; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to reject model output missing a field that a downstream service requires because parsing proves a string is legal JSON, but schema validation checks required keys, types, and structural constraints; that mechanism does not meet the different requirement to apply the same compliance restrictions across many different end-user requests.

B:

The proposed alternative helps to distinguish a user's instructions from a quoted document containing imperatives because delimiters clarify that imported content is data to analyze, not a new authority to change tools or objectives; that mechanism does not meet the different requirement to apply the same compliance restrictions across many different end-user requests.

D:

The proposed alternative helps to teach a classifier how to label borderline requests consistently because diverse demonstrations make the intended decision boundary clearer than an isolated easy example, provided labels are accurate; that mechanism does not meet the different requirement to apply the same compliance restrictions across many different end-user requests.

Question 236

A team maintaining an MCP integration server must meet 2 separate acceptance criteria: (1) make reference material available for clients to read as context; (2) process several requested independent tools without mixing their outputs. Which two implementation actions directly satisfy the stated requirements? Choose TWO.

  1. Publish a properly described MCP tool and its input contract.
  2. Correlate each tool result with its matching tool_use_id.
  3. Register a prompt template with its required arguments.
  4. Expose the material as an MCP resource with a stable identifier.
  5. Use the MCP stdio transport with properly framed protocol messages.

Explanation

Correct Answers

B:

The test to process several requested independent tools without mixing their outputs is met because multi-tool responses can interleave operations, so identifier-based correlation is essential for safe continuation; the remaining selection covers the separate need to make reference material available for clients to read as context.

D:

The test to make reference material available for clients to read as context is met because resources represent consumable data, contrasting with tools that invoke an operation or prompts that package reusable instructions; the remaining selection covers the separate need to process several requested independent tools without mixing their outputs.

Incorrect Answers

A:

The action is useful for the separate capability to let an MCP client invoke a business capability through a standard server interface because MCP tools represent callable operations with typed parameters; the server executes authorized behavior rather than only providing reference text; however, the required test outcomes are to process several requested independent tools without mixing their outputs and to make reference material available for clients to read as context.

C:

The action is useful for the separate capability to offer users a reusable parameterized instruction template from an MCP server because MCP prompts provide structured prompt content, but by themselves do not perform external business actions; however, the required test outcomes are to process several requested independent tools without mixing their outputs and to make reference material available for clients to read as context.

E:

The action is useful for the separate capability to launch a local MCP server as a subprocess managed by a compatible client because standard input and output suit local process integration, where protocol output must not be mixed with arbitrary logging noise; however, the required test outcomes are to process several requested independent tools without mixing their outputs and to make reference material available for clients to read as context.

Question 237

The owner of a Claude API workload benchmark needs to preserve critical service during a temporary primary-model problem as well as minimize average model cost when most requests are easy but some require deeper reasoning. Which two changes belong in the minimum remediation plan? Choose TWO.

  1. Serialize the documented nested request shape rather than flattening it.
  2. Evaluate Message Batches instead of synchronous requests.
  3. Design an approved fallback model path with compatibility checks.
  4. Route simple requests to a cheaper evaluated tier and escalate difficult ones.
  5. Tune sampling for lower variance while retaining output validation.

Explanation

Correct Answers

C:

To preserve critical service during a temporary primary-model problem as part of a design that must also minimize average model cost when most requests are easy but some require deeper reasoning, fallbacks improve resilience only when downstream schemas, cost limits, and policy controls work with the alternate model; this is why the action is one of the two required selections.

D:

To minimize average model cost when most requests are easy but some require deeper reasoning as part of a design that must also preserve critical service during a temporary primary-model problem, cascading matches compute to task difficulty but requires a reliable escalation rule and measurement of misrouting; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to preserve arrays of typed content blocks when sending multimodal input because typed content and role fields carry protocol meaning that is lost if developers simply concatenate them into plain text; the required outcomes are instead to preserve critical service during a temporary primary-model problem and to minimize average model cost when most requests are easy but some require deeper reasoning.

B:

This alternative serves the separate goal to cut cost for a nightly noninteractive summarization workload because asynchronous batches can offer discounted processing when the application can tolerate deferred completion and result collection; the required outcomes are instead to preserve critical service during a temporary primary-model problem and to minimize average model cost when most requests are easy but some require deeper reasoning.

E:

This alternative serves the separate goal to favor more consistent word choices in a constrained transformation task when supported because temperature influences token sampling; it cannot by itself guarantee truth, policy compliance, or reproducible structured output; the required outcomes are instead to preserve critical service during a temporary primary-model problem and to minimize average model cost when most requests are easy but some require deeper reasoning.

Question 238

The owner of a Claude integration debugging session needs to find a request schema error instead of repeatedly changing the system prompt as well as explain why an agent loop is stuck after a model requested an external function. Which two changes belong in the minimum remediation plan? Choose TWO.

  1. Read the 400 error details and validate the request payload.
  2. Check that each tool_use identifier receives one matching tool_result.
  3. Inspect stop_reason and output limits before changing the parser.
  4. Compare versioned prompts and representative eval cases against model responses.
  5. Inspect the HTTP 429 status and rate-limit metadata before retrying.

Explanation

Correct Answers

A:

To find a request schema error instead of repeatedly changing the system prompt as part of a design that must also explain why an agent loop is stuck after a model requested an external function, an invalid API field or incompatible parameter cannot be fixed by natural-language instructions within the malformed request; this is why the action is one of the two required selections.

B:

To explain why an agent loop is stuck after a model requested an external function as part of a design that must also find a request schema error instead of repeatedly changing the system prompt, an unmatched tool call leaves a protocol-level continuation gap, even if the handler actually ran successfully; this is why the action is one of the two required selections.

Incorrect Answers

C:

This alternative serves the separate goal to find why a JSON record unexpectedly ends midway through a field because a max_tokens stop indicates incomplete generation; the parser may be working correctly against a response that was never finished; the required outcomes are instead to find a request schema error instead of repeatedly changing the system prompt and to explain why an agent loop is stuck after a model requested an external function.

D:

This alternative serves the separate goal to distinguish a syntactically valid but low-quality answer from a transport outage because a successful HTTP call only proves the protocol worked; quality regressions require output-level evidence and controlled comparisons; the required outcomes are instead to find a request schema error instead of repeatedly changing the system prompt and to explain why an agent loop is stuck after a model requested an external function.

E:

This alternative serves the separate goal to distinguish an upstream throttling response from a malformed model answer because a rate limit is a request-layer capacity problem; the response needs controlled pacing rather than a prompt rewrite; the required outcomes are instead to find a request schema error instead of repeatedly changing the system prompt and to explain why an agent loop is stuck after a model requested an external function.

Question 239

A team maintaining a repository using Claude Code must meet 2 separate acceptance criteria: (1) run a Claude Code task from an automated CI job without an interactive terminal; (2) make a reusable development procedure available to Claude Code with supporting files. Which two implementation actions directly satisfy the stated requirements? Choose TWO.

  1. Invoke the supported noninteractive or print-mode command interface.
  2. Define policy in the appropriate managed or shared settings scope.
  3. Add concise project guidance to the appropriate CLAUDE.md file.
  4. Configure a specialized Claude Code subagent with a narrow remit.
  5. Create a project skill with the documented skill metadata and content.

Explanation

Correct Answers

A:

The test to run a Claude Code task from an automated CI job without an interactive terminal is met because headless operation outputs results for automation and requires explicit credential, permission, and failure handling in the CI environment; the remaining selection covers the separate need to make a reusable development procedure available to Claude Code with supporting files.

E:

The test to make a reusable development procedure available to Claude Code with supporting files is met because a skill packages guidance or a workflow for reuse across relevant tasks; it is not identical to granting a runtime tool permission; the remaining selection covers the separate need to run a Claude Code task from an automated CI job without an interactive terminal.

Incorrect Answers

B:

The action is useful for the separate capability to enforce a team-approved permission policy despite local developer preferences because Claude Code has multiple configuration scopes; binding policy to the required scope matters more than placing a rule in an arbitrary JSON file; however, the required test outcomes are to run a Claude Code task from an automated CI job without an interactive terminal and to make a reusable development procedure available to Claude Code with supporting files.

C:

The action is useful for the separate capability to give Claude Code repository-specific build and test instructions for future sessions because Claude Code reads persistent project instructions from its memory hierarchy; one-off chat messages do not reliably establish durable repository guidance; however, the required test outcomes are to run a Claude Code task from an automated CI job without an interactive terminal and to make a reusable development procedure available to Claude Code with supporting files.

D:

The action is useful for the separate capability to delegate an independent code review without filling the main coding session with details because subagents can focus on a task and return a summary, limiting noise in the parent session and allowing separate permissions when configured; however, the required test outcomes are to run a Claude Code task from an automated CI job without an interactive terminal and to make a reusable development procedure available to Claude Code with supporting files.

Question 240

An operational review of a Claude inference cost review reports distinct failures: it cannot process partial model output as it is delivered over a streaming connection, and it cannot choose between writing raw REST requests and using an official client library. Which two repairs are required? Choose TWO.

  1. Use a synchronous client with explicit timeout and error handling.
  2. Iterate the SDK or HTTP event stream until its terminal event.
  3. Prefer a maintained SDK when its typed methods and retry behavior fit the integration.
  4. Provide one accurate input-output demonstration.
  5. Parse structured payloads with explicit failure handling.

Explanation

Correct Answers

B:

To process partial model output as it is delivered over a streaming connection as part of a design that must also choose between writing raw REST requests and using an official client library, streaming clients must handle both content deltas and final status rather than assuming the first chunk is the complete response; this is why the action is one of the two required selections.

C:

To choose between writing raw REST requests and using an official client library as part of a design that must also process partial model output as it is delivered over a streaming connection, sDKs wrap the same underlying service API and can simplify serialization, error types, and streaming without removing protocol constraints; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to implement a low-volume command-line utility that handles one inference at a time because synchronous calls are simplest for strictly sequential work, where concurrency would add complexity without improving throughput; the required outcomes are instead to process partial model output as it is delivered over a streaming connection and to choose between writing raw REST requests and using an official client library.

D:

This alternative serves the separate goal to teach a distinctive output format with one representative example because a single example illustrates structure and conventions, but it may not reveal how to handle difficult edge cases; the required outcomes are instead to process partial model output as it is delivered over a streaming connection and to choose between writing raw REST requests and using an official client library.

E:

This alternative serves the separate goal to reject incomplete or malformed response data before business logic consumes it because JSON parsing validates syntax, while separate schema and semantic checks verify types and permitted values; the required outcomes are instead to process partial model output as it is delivered over a streaming connection and to choose between writing raw REST requests and using an official client library.

Claude Certified Developer - Foundations (CCDV-F) Practice Tests