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

Question 220

For a model-family migration plan, the missing capability is to teach a distinctive output format with one representative example. What should the developers implement?

  1. Provide one accurate input-output demonstration.
  2. Check each response block's type before extracting its fields.
  3. Tune sampling for lower variance while retaining output validation.
  4. Estimate cost from expected input and output tokens and current model rates.

Explanation

Correct Answer

A:

To teach a distinctive output format with one representative example in this model-family migration plan, a single example illustrates structure and conventions, but it may not reveal how to handle difficult edge cases; the proposed implementation directly supplies that capability.

Incorrect Answers

B:

The proposed alternative helps to prevent a tool_use block from being displayed as if it were natural-language text because typed response objects can contain several block families; assuming every block has a text field causes logic errors; that mechanism does not meet the different requirement to teach a distinctive output format with one representative example.

C:

The proposed alternative helps 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; that mechanism does not meet the different requirement to teach a distinctive output format with one representative example.

D:

The proposed alternative helps to forecast spend for a batch of documents with different input sizes because workload cost depends on token mix, model choice, and any applicable discounts or caching rather than request count alone; that mechanism does not meet the different requirement to teach a distinctive output format with one representative example.

Question 221

An end-to-end test for a multi-tenant support application checks whether it can ask questions about information in a user-provided PDF through a supported document input and handle a response containing reasoning-related blocks without confusing them with ordinary final text. Which plan should be approved to satisfy both checks?

  1. Perform both steps: (1) Configure an available server-side tool with the required API definition; (2) parse response content by block type and follow current thinking-field rules.
  2. Perform both steps: (1) Configure an available server-side tool with the required API definition; (2) enable streaming and consume server-sent events in order.
  3. Perform both steps: (1) Attach the PDF using the supported document content form; (2) parse response content by block type and follow current thinking-field rules.
  4. Perform both steps: (1) Attach the PDF using the supported document content form; (2) enable streaming and consume server-sent events in order.

Explanation

Correct Answer

C:

The first change enables the team to ask questions about information in a user-provided PDF through a supported document input because document analysis depends on actual supported content blocks and size limits; a local file path alone is not accessible to the remote model; the second addresses the separate need 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.

Incorrect Answers

A:

The second step meets the requirement 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; the first step would only help to use provider-hosted search or execution without implementing the tool body locally because provider-executed tools are handled in Anthropic's environment and differ from client functions that the caller must run, leaving the separate requirement to ask questions about information in a user-provided PDF through a supported document input unmet.

B:

Both steps target different results—use provider-hosted search or execution without implementing the tool body locally and show generated text progressively instead of waiting for the full response—because provider-executed tools are handled in Anthropic's environment and differ from client functions that the caller must run and streaming transmits partial deltas and completion events, allowing earlier display while requiring the client to assemble content safely; the required capabilities are instead to ask questions about information in a user-provided PDF through a supported document input and to handle a response containing reasoning-related blocks without confusing them with ordinary final text.

D:

The first step is appropriate for the requirement to ask questions about information in a user-provided PDF through a supported document input because document analysis depends on actual supported content blocks and size limits; a local file path alone is not accessible to the remote model; the other step instead aims to show generated text progressively instead of waiting for the full response because streaming transmits partial deltas and completion events, allowing earlier display while requiring the client to assemble content safely, which does not meet the second requirement to handle a response containing reasoning-related blocks without confusing them with ordinary final text.

Question 222

A planned upgrade to an operations research assistant has two requirements that must both pass: prevent specialists from producing incompatible artifacts for the orchestrator; have independent specialized reviewers inspect the same proposal from different perspectives. Identify the two direct implementations. Choose TWO.

  1. Insert an approval gate before the high-risk action.
  2. Fan out to role-specific reviewers and aggregate disagreements.
  3. Deploy the agent runner in the organization's own environment.
  4. Define structured inputs, expected outputs, and failure states for each delegate.
  5. Record stage-level traces and intermediate validation outcomes.

Explanation

Correct Answers

B:

To have independent specialized reviewers inspect the same proposal from different perspectives as part of a design that must also prevent specialists from producing incompatible artifacts for the orchestrator, separating reviews allows conflicting evidence to surface before the supervisor combines findings; a single sequential review may miss independent critiques; this is why the action is one of the two required selections.

D:

To prevent specialists from producing incompatible artifacts for the orchestrator as part of a design that must also have independent specialized reviewers inspect the same proposal from different perspectives, 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.

Incorrect Answers

A:

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 prevent specialists from producing incompatible artifacts for the orchestrator and to have independent specialized reviewers inspect the same proposal from different perspectives.

C:

This alternative serves the separate goal to keep orchestration runtime and internal tool handlers inside company-managed infrastructure because self-hosting puts tool execution, networking, and operational controls under the application's responsibility, subject to its own deployment constraints; the required outcomes are instead to prevent specialists from producing incompatible artifacts for the orchestrator and to have independent specialized reviewers inspect the same proposal from different perspectives.

E:

This alternative serves the separate goal to pinpoint which known workflow stage failed when the final artifact is incomplete because deterministic stages are operationally useful when their boundaries are observable; a final answer alone cannot reveal which step produced the fault; the required outcomes are instead to prevent specialists from producing incompatible artifacts for the orchestrator and to have independent specialized reviewers inspect the same proposal from different perspectives.

Question 223

A production readiness review of a structured output service finds that the team cannot yet handle a JSON parse failure without silently accepting partial data or block a technically well-formed refund record with an unauthorized amount. Which paired changes directly remedy the two gaps?

  1. Perform both steps: (1) Map or reject values not in the approved enumeration; (2) apply domain-specific authorization and business rules after schema validation.
  2. Perform both steps: (1) Catch the parsing error and apply a bounded repair or retry path; (2) escape or sanitize model text in the output presentation layer.
  3. Perform both steps: (1) Catch the parsing error and apply a bounded repair or retry path; (2) apply domain-specific authorization and business rules after schema validation.
  4. Perform both steps: (1) Map or reject values not in the approved enumeration; (2) escape or sanitize model text in the output presentation layer.

Explanation

Correct Answer

C:

The first change enables the team to handle a JSON parse failure without silently accepting partial data because defensive parsing makes failures explicit and limits reattempts; swallowing errors can propagate corrupt records; the second addresses the separate need to block a technically well-formed refund record with an unauthorized amount because type correctness is not permission to act; amounts, account ownership, and policy limits need independent checks.

Incorrect Answers

A:

The second step meets the requirement to block a technically well-formed refund record with an unauthorized amount because type correctness is not permission to act; amounts, account ownership, and policy limits need independent checks; the first step would only help to prevent a generated status outside a database's accepted code set because controlled vocabularies need explicit allowed values; a plausible new status label can still break downstream contracts, leaving the separate requirement to handle a JSON parse failure without silently accepting partial data unmet.

B:

The first step is appropriate for the requirement to handle a JSON parse failure without silently accepting partial data because defensive parsing makes failures explicit and limits reattempts; swallowing errors can propagate corrupt records; the other step instead aims to safely render generated text in a browser without executing embedded markup because generated content is untrusted for HTML rendering; injection into the DOM must not become executable client-side code, which does not meet the second requirement to block a technically well-formed refund record with an unauthorized amount.

D:

Both steps target different results—prevent a generated status outside a database's accepted code set and safely render generated text in a browser without executing embedded markup—because controlled vocabularies need explicit allowed values; a plausible new status label can still break downstream contracts and generated content is untrusted for HTML rendering; injection into the DOM must not become executable client-side code; the required capabilities are instead to handle a JSON parse failure without silently accepting partial data and to block a technically well-formed refund record with an unauthorized amount.

Question 224

An end-to-end test for a safety-sensitive Claude application checks whether it can prevent generated advice that violates the product's publication rules from being shown and identify prohibited requests before an automated agent invokes business tools. Which plan should be approved to satisfy both checks?

  1. Perform both steps: (1) Combine prompt boundaries, scoped credentials, validation, and approval gates; (2) apply an input-side policy gate and route flagged cases to a safe path.
  2. Perform both steps: (1) Validate or moderate final content before release; (2) apply an input-side policy gate and route flagged cases to a safe path.
  3. Perform both steps: (1) Combine prompt boundaries, scoped credentials, validation, and approval gates; (2) define fail-closed behavior for an enforcement hook and test failure paths.
  4. Perform both steps: (1) Validate or moderate final content before release; (2) define fail-closed behavior for an enforcement hook and test failure paths.

Explanation

Correct Answer

B:

The first change enables the team to prevent generated advice that violates the product's publication rules from being shown because output checks catch issues emerging during generation; they complement rather than replace input controls and tool restrictions; the second addresses the separate need to identify prohibited requests before an automated agent invokes business tools because early filtering reduces inappropriate work, but later checks remain necessary because tool outputs can also introduce risks.

Incorrect Answers

A:

The second step meets the requirement to identify prohibited requests before an automated agent invokes business tools because early filtering reduces inappropriate work, but later checks remain necessary because tool outputs can also introduce risks; the first step would only help to secure an agent against both malicious retrieved text and unsafe tool execution because defense in depth assumes individual filters can fail; independent enforcement boundaries reduce the chance of harmful side effects, leaving the separate requirement to prevent generated advice that violates the product's publication rules from being shown unmet.

C:

Both steps target different results—secure an agent against both malicious retrieved text and unsafe tool execution and avoid accidentally allowing critical writes when a safety check crashes—because defense in depth assumes individual filters can fail; independent enforcement boundaries reduce the chance of harmful side effects and a guardrail that silently skips checks on errors is not an effective boundary; failures must prevent the protected action when policy requires it; the required capabilities are instead to prevent generated advice that violates the product's publication rules from being shown and to identify prohibited requests before an automated agent invokes business tools.

D:

The first step is appropriate for the requirement to prevent generated advice that violates the product's publication rules from being shown because output checks catch issues emerging during generation; they complement rather than replace input controls and tool restrictions; the other step instead aims to avoid accidentally allowing critical writes when a safety check crashes because a guardrail that silently skips checks on errors is not an effective boundary; failures must prevent the protected action when policy requires it, which does not meet the second requirement to identify prohibited requests before an automated agent invokes business tools.

Question 225

Two approval criteria are still open for a business workflow that calls Claude: the team must avoid retrying a malformed request that the API consistently rejects and reduce repeated TLS setup overhead for high-volume application traffic. Which two implementation actions satisfy them? Choose TWO.

  1. Inspect HTTP status and structured error payload before interpreting model output.
  2. Use the API's documented POST request with a JSON body.
  3. Reuse an appropriately configured HTTP client or SDK connection pool.
  4. Classify permanent client errors separately from transient failures.
  5. Use asynchronous SDK calls with bounded concurrency.

Explanation

Correct Answers

C:

To reduce repeated TLS setup overhead for high-volume application traffic as part of a design that must also avoid retrying a malformed request that the API consistently rejects, connection reuse lowers transport overhead but still requires limits and health handling for long-lived clients; this is why the action is one of the two required selections.

D:

To avoid retrying a malformed request that the API consistently rejects as part of a design that must also reduce repeated TLS setup overhead for high-volume application traffic, a deterministic validation or authorization error requires fixing the request or credential, not another identical attempt; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to distinguish API transport failures from a successfully returned model refusal because rate limits, authorization failures, and server errors happen at the request layer, unlike a normal response with a refusal stop reason; the required outcomes are instead to avoid retrying a malformed request that the API consistently rejects and to reduce repeated TLS setup overhead for high-volume application traffic.

B:

This alternative serves the separate goal to send a model inference request with the operation expected by the REST endpoint because a state-changing inference operation is submitted as an HTTP request with an explicit method and payload, not inferred from a browser URL alone; the required outcomes are instead to avoid retrying a malformed request that the API consistently rejects and to reduce repeated TLS setup overhead for high-volume application traffic.

E:

This alternative serves the separate goal to serve many concurrent network-bound Claude requests without blocking worker threads unnecessarily because async I/O can overlap network waits, but it does not remove provider limits or make CPU-heavy postprocessing nonblocking; the required outcomes are instead to avoid retrying a malformed request that the API consistently rejects and to reduce repeated TLS setup overhead for high-volume application traffic.

Question 226

A team maintaining a token efficiency assessment must meet 2 separate acceptance criteria: (1) identify why verbose generated reports cost more despite unchanged inputs; (2) stop a no-longer-needed inference when the user's request is cancelled. Which two implementation actions directly satisfy the stated requirements? Choose TWO.

  1. Report p50, p95, and p99 latency by model and operation.
  2. Revalidate prompts, schemas, safety constraints, and tools after model migration.
  3. Track output tokens separately from input tokens.
  4. Evaluate Message Batches instead of synchronous requests.
  5. Propagate cancellation to the active network request when supported.

Explanation

Correct Answers

C:

The test to identify why verbose generated reports cost more despite unchanged inputs is met because generation tokens are metered independently and can have different pricing, so response verbosity affects unit economics; the remaining selection covers the separate need to stop a no-longer-needed inference when the user's request is cancelled.

E:

The test to stop a no-longer-needed inference when the user's request is cancelled is met because cancelling work can free local resources and avoid processing obsolete results, though already-incurred provider work may still be billed; the remaining selection covers the separate need to identify why verbose generated reports cost more despite unchanged inputs.

Incorrect Answers

A:

The action is useful for the separate capability to avoid overlooking slow tail requests hidden by a good average because percentiles expose user experience at the tail and can reveal bottlenecks that a mean response time conceals; however, the required test outcomes are to identify why verbose generated reports cost more despite unchanged inputs and to stop a no-longer-needed inference when the user's request is cancelled.

B:

The action is useful for the separate capability to avoid assuming a model-version change preserves tool output and writing behavior because new releases can change response distributions or supported behaviors, making a model upgrade a real software change; however, the required test outcomes are to identify why verbose generated reports cost more despite unchanged inputs and to stop a no-longer-needed inference when the user's request is cancelled.

D:

The action is useful for the separate capability 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; however, the required test outcomes are to identify why verbose generated reports cost more despite unchanged inputs and to stop a no-longer-needed inference when the user's request is cancelled.

Question 227

While planning a function-calling service, the product owner specifies that it must make a repeatable multi-step code-review methodology available to an agent. Which solution fulfills the requirement?

  1. Disable the capability at configuration or tool-registration level.
  2. Expose the manual as an MCP resource rather than a tool.
  3. Put an approval gate in the host-side write handler.
  4. Create a Skill containing the procedure and supporting instructions.

Explanation

Correct Answer

D:

To make a repeatable multi-step code-review methodology available to an agent in this function-calling service, a Skill teaches how to perform a task, whereas a tool is the executable capability that performs an external operation; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to remove an agent's access to an obsolete integration without rewriting all its task prompts because actual registered capabilities define what may execute; changing descriptive prompt text alone does not revoke a previously available tool; that mechanism does not meet the different requirement to make a repeatable multi-step code-review methodology available to an agent.

B:

The proposed alternative helps to supply a read-only policy manual to an MCP client without giving it an action endpoint because a resource is contextual data; representing a passive document as an imperative function adds unnecessary execution semantics; that mechanism does not meet the different requirement to make a repeatable multi-step code-review methodology available to an agent.

C:

The proposed alternative helps to ensure an agent obtains explicit authorization before updating a customer record because an irreversible or sensitive write must be permitted by trusted application logic, not merely because the model selected a tool; that mechanism does not meet the different requirement to make a repeatable multi-step code-review methodology available to an agent.

Question 228

To ship a TypeScript Claude integration, the application must handle a safety refusal as a distinct application outcome and continue a chat with relevant prior turns despite the API being stateless. Which pair of listed actions is necessary for those stated capabilities? Choose TWO.

  1. Treat stop_reason end_turn as a completed assistant turn.
  2. Inspect response.content blocks and metadata through the SDK's typed representation.
  3. Include the necessary conversation history in each Messages API call.
  4. Parse response content by block type and follow current thinking-field rules.
  5. Detect refusal and apply the product's allowed fallback or messaging policy.

Explanation

Correct Answers

C:

To continue a chat with relevant prior turns despite the API being stateless as part of a design that must also handle a safety refusal as a distinct application outcome, a response does not create server-side conversational memory by default; the client supplies retained turns and controls truncation; this is why the action is one of the two required selections.

E:

To handle a safety refusal as a distinct application outcome as part of a design that must also continue a chat with relevant prior turns despite the API being stateless, a refusal is not the same as a network failure; blindly retrying identical input may not produce an appropriate user experience; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to detect that the assistant has naturally finished a response because the completion signal is explicit in the response metadata; it should not be inferred solely from a sentence ending in punctuation; the required outcomes are instead to handle a safety refusal as a distinct application outcome and to continue a chat with relevant prior turns despite the API being stateless.

B:

This alternative serves the separate goal to avoid assuming a structured SDK response is a plain string because the SDK exposes block types, stop reason, and usage separately; naïve string concatenation can lose tool requests or other content; the required outcomes are instead to handle a safety refusal as a distinct application outcome and to continue a chat with relevant prior turns despite the API being stateless.

D:

This alternative serves the separate goal 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; the required outcomes are instead to handle a safety refusal as a distinct application outcome and to continue a chat with relevant prior turns despite the API being stateless.

Question 229

The technical owner of a structured output service has to avoid processing a truncated structured response as a complete record. A separate requirement is to handle a JSON parse failure without silently accepting partial data. Which two-part remediation covers both?

  1. Perform both steps: (1) Map or reject values not in the approved enumeration; (2) mark untrusted quoted material with explicit boundaries and role context.
  2. Perform both steps: (1) Require a completed stop condition before accepting the parsed result; (2) mark untrusted quoted material with explicit boundaries and role context.
  3. Perform both steps: (1) Map or reject values not in the approved enumeration; (2) catch the parsing error and apply a bounded repair or retry path.
  4. Perform both steps: (1) Require a completed stop condition before accepting the parsed result; (2) catch the parsing error and apply a bounded repair or retry path.

Explanation

Correct Answer

D:

The first change enables the team to avoid processing a truncated structured response as a complete record because a response cut off by token limits may parse incompletely or omit required content; completion status matters in addition to syntax; the second addresses the separate need to handle a JSON parse failure without silently accepting partial data because defensive parsing makes failures explicit and limits reattempts; swallowing errors can propagate corrupt records.

Incorrect Answers

A:

Both steps target different results—prevent a generated status outside a database's accepted code set and distinguish a user's instructions from a quoted document containing imperatives—because controlled vocabularies need explicit allowed values; a plausible new status label can still break downstream contracts and delimiters clarify that imported content is data to analyze, not a new authority to change tools or objectives; the required capabilities are instead to avoid processing a truncated structured response as a complete record and to handle a JSON parse failure without silently accepting partial data.

B:

The first step is appropriate for the requirement to avoid processing a truncated structured response as a complete record because a response cut off by token limits may parse incompletely or omit required content; completion status matters in addition to syntax; the other step instead aims 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, which does not meet the second requirement to handle a JSON parse failure without silently accepting partial data.

C:

The second step meets the requirement to handle a JSON parse failure without silently accepting partial data because defensive parsing makes failures explicit and limits reattempts; swallowing errors can propagate corrupt records; the first step would only help to prevent a generated status outside a database's accepted code set because controlled vocabularies need explicit allowed values; a plausible new status label can still break downstream contracts, leaving the separate requirement to avoid processing a truncated structured response as a complete record unmet.

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.

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