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

Question 80

A team maintaining a long-running retrieval assistant must meet 2 separate acceptance criteria: (1) keep only evidence that matters to the question when retrieval returns hundreds of documents; (2) reject model output missing a field that a downstream service requires. Which two implementation actions directly satisfy the stated requirements? Choose TWO.

  1. Instruct the application to request clarification for unresolved high-impact ambiguity.
  2. Rank and select relevant passages before building the model context.
  3. Hold evaluation inputs constant and compare prompt versions.
  4. Validate parsed output against the application's declared schema.
  5. Name each mandatory field or section and provide formatting constraints.

Explanation

Correct Answers

B:

The test to keep only evidence that matters to the question when retrieval returns hundreds of documents is met because relevance filtering reduces distracting information and token usage; dumping every retrieved page can degrade grounding and exceed limits; the remaining selection covers the separate need to reject model output missing a field that a downstream service requires.

D:

The test to reject model output missing a field that a downstream service requires is met because parsing proves a string is legal JSON, but schema validation checks required keys, types, and structural constraints; the remaining selection covers the separate need to keep only evidence that matters to the question when retrieval returns hundreds of documents.

Incorrect Answers

A:

The action is useful for the separate capability to ask for missing essential parameters rather than inventing a consequential choice because clarification reduces irreversible guesses when requirements do not uniquely determine a safe action; however, the required test outcomes are to keep only evidence that matters to the question when retrieval returns hundreds of documents and to reject model output missing a field that a downstream service requires.

C:

The action is useful for the separate capability 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; however, the required test outcomes are to keep only evidence that matters to the question when retrieval returns hundreds of documents and to reject model output missing a field that a downstream service requires.

E:

The action is useful for the separate capability to require that a generated report have a fixed set of sections because concrete desired structure is easier to verify than a vague instruction to be professional or comprehensive; however, the required test outcomes are to keep only evidence that matters to the question when retrieval returns hundreds of documents and to reject model output missing a field that a downstream service requires.

Question 81

To ship a Claude API workload benchmark, the application must stop a no-longer-needed inference when the user's request is cancelled and protect model API traffic against an impersonated network endpoint. Which pair of listed actions is necessary for those stated capabilities? Choose TWO.

  1. Propagate cancellation to the active network request when supported.
  2. Use a WebSocket protocol only when the target endpoint actually offers one.
  3. Call the documented HTTPS endpoint with explicit headers and JSON serialization.
  4. Keep HTTPS certificate and hostname verification enabled.
  5. Configure supported adaptive thinking behavior rather than forcing a fixed pattern.

Explanation

Correct Answers

A:

To stop a no-longer-needed inference when the user's request is cancelled as part of a design that must also protect model API traffic against an impersonated network endpoint, cancelling work can free local resources and avoid processing obsolete results, though already-incurred provider work may still be billed; this is why the action is one of the two required selections.

D:

To protect model API traffic against an impersonated network endpoint as part of a design that must also stop a no-longer-needed inference when the user's request is cancelled, verified TLS authenticates the service and protects data in transit; disabling validation defeats a key transport security property; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal to build bidirectional persistent event communication where the chosen platform supports it because webSockets can carry two-way events over a long-lived connection; they are not a drop-in replacement for every HTTP or SSE endpoint; the required outcomes are instead to stop a no-longer-needed inference when the user's request is cancelled and to protect model API traffic against an impersonated network endpoint.

C:

This alternative serves the separate goal to work in an environment that lacks a compatible Claude SDK because direct REST access remains possible when an SDK is unavailable, but the caller owns wire-format correctness and response parsing; the required outcomes are instead to stop a no-longer-needed inference when the user's request is cancelled and to protect model API traffic against an impersonated network endpoint.

E:

This alternative serves the separate goal to allow supported models to vary internal reasoning effort according to task difficulty because adaptive reasoning responds to problem complexity, but supported modes differ by model and release and should not be assumed universal; the required outcomes are instead to stop a no-longer-needed inference when the user's request is cancelled and to protect model API traffic against an impersonated network endpoint.

Question 82

For a high-volume Messages API gateway, the missing capability is to ensure each production feature can be tied to an approved acceptance test. What should the developers implement?

  1. Version tool input schemas and coordinate dependent client changes.
  2. Configure supported structured outputs with a JSON Schema.
  3. Convert quality expectations into labeled tests and failure thresholds.
  4. Maintain links between requirements, implementation changes, and verification cases.

Explanation

Correct Answer

D:

To ensure each production feature can be tied to an approved acceptance test in this high-volume Messages API gateway, requirement traceability helps prevent a prompt or model update from silently changing behavior outside the agreed product scope; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to migrate tool argument fields without breaking older workers because contract versioning prevents producers and consumers from silently disagreeing about required fields or meanings; that mechanism does not meet the different requirement to ensure each production feature can be tied to an approved acceptance test.

B:

The proposed alternative helps to need schema-conformant JSON for a downstream parser at generation time because constrained JSON generation targets machine-parseable fields and types; free-form prompting alone does not establish the same guarantee; that mechanism does not meet the different requirement to ensure each production feature can be tied to an approved acceptance test.

C:

The proposed alternative helps to verify that generated categorization meets a business-approved standard because acceptance is meaningful only with representative cases and explicit quality criteria; subjective demo approval cannot establish production fitness; that mechanism does not meet the different requirement to ensure each production feature can be tied to an approved acceptance test.

Question 83

For a long-context summarization workflow, a design is acceptable only if it can avoid treating fluent model wording as evidence that a claim is verified while also being able to prevent a generated status outside a database's accepted code set. Which paired implementation is sufficient?

  1. Perform both steps: (1) Ground consequential statements in retrieved evidence or external checks; (2) catch the parsing error and apply a bounded repair or retry path.
  2. Perform both steps: (1) Retain essential fields and discard irrelevant tool output from active context; (2) catch the parsing error and apply a bounded repair or retry path.
  3. Perform both steps: (1) Ground consequential statements in retrieved evidence or external checks; (2) map or reject values not in the approved enumeration.
  4. Perform both steps: (1) Retain essential fields and discard irrelevant tool output from active context; (2) map or reject values not in the approved enumeration.

Explanation

Correct Answer

C:

The first change enables the team to avoid treating fluent model wording as evidence that a claim is verified because linguistic confidence is not a calibrated truth guarantee, so factual correctness requires independent support; the second addresses the separate need 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.

Incorrect Answers

A:

The first step is appropriate for the requirement to avoid treating fluent model wording as evidence that a claim is verified because linguistic confidence is not a calibrated truth guarantee, so factual correctness requires independent support; the other step instead aims 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, which does not meet the second requirement to prevent a generated status outside a database's accepted code set.

B:

Both steps target different results—stop verbose tool payloads from consuming most of a long-running agent's context and handle a JSON parse failure without silently accepting partial data—because summarizing or filtering observations keeps the reasoning window focused without deleting required facts from durable application state and defensive parsing makes failures explicit and limits reattempts; swallowing errors can propagate corrupt records; the required capabilities are instead to avoid treating fluent model wording as evidence that a claim is verified and to prevent a generated status outside a database's accepted code set.

D:

The second step meets the requirement 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; the first step would only help 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, leaving the separate requirement to avoid treating fluent model wording as evidence that a claim is verified unmet.

Question 84

A change request for an internal agent-extension rollout combines two needs: connect a Claude tool request to an internal service whose logic the application owns, and require or restrict tool use for a specific turn when the API supports that control. Which implementation pair addresses both, not just one?

  1. Perform both steps: (1) Implement a client-side handler and return its result with the tool-use identifier; (2) write a custom tool whose handler runs in the application.
  2. Perform both steps: (1) Expose the material as an MCP resource with a stable identifier; (2) write a custom tool whose handler runs in the application.
  3. Perform both steps: (1) Expose the material as an MCP resource with a stable identifier; (2) configure the supported tool_choice behavior for the request.
  4. Perform both steps: (1) Implement a client-side handler and return its result with the tool-use identifier; (2) configure the supported tool_choice behavior for the request.

Explanation

Correct Answer

D:

The first change enables the team to connect a Claude tool request to an internal service whose logic the application owns because a declared client tool does not execute itself; application code runs it and feeds results back into the conversation; the second addresses the separate need to require or restrict tool use for a specific turn when the API supports that control because tool-selection controls influence whether Claude may call tools, but cannot grant permissions to the underlying systems.

Incorrect Answers

A:

The first step is appropriate for the requirement to connect a Claude tool request to an internal service whose logic the application owns because a declared client tool does not execute itself; application code runs it and feeds results back into the conversation; the other step instead aims to invoke a proprietary internal pricing database unavailable through a built-in feature because custom tools expose application-specific actions while retaining control over authentication, validation, and network access, which does not meet the second requirement to require or restrict tool use for a specific turn when the API supports that control.

B:

Both steps target different results—make reference material available for clients to read as context and invoke a proprietary internal pricing database unavailable through a built-in feature—because resources represent consumable data, contrasting with tools that invoke an operation or prompts that package reusable instructions and custom tools expose application-specific actions while retaining control over authentication, validation, and network access; the required capabilities are instead to connect a Claude tool request to an internal service whose logic the application owns and to require or restrict tool use for a specific turn when the API supports that control.

C:

The second step meets the requirement to require or restrict tool use for a specific turn when the API supports that control because tool-selection controls influence whether Claude may call tools, but cannot grant permissions to the underlying systems; the first step would only help to make reference material available for clients to read as context because resources represent consumable data, contrasting with tools that invoke an operation or prompts that package reusable instructions, leaving the separate requirement to connect a Claude tool request to an internal service whose logic the application owns unmet.

Question 85

An end-to-end test for a multi-tenant support application checks whether it can ensure a rebuilt agent uses the same tested SDK dependency set and apply consistent reviewed tool permissions to an entire Claude Code repository team. Which plan should be approved to satisfy both checks?

  1. Perform both steps: (1) Treat model migration as a tested deployment with staged traffic; (2) store team settings in the project's shared configuration file.
  2. Perform both steps: (1) Commit lockfiles and control library upgrades; (2) send instructions using the request's top-level system field.
  3. Perform both steps: (1) Commit lockfiles and control library upgrades; (2) store team settings in the project's shared configuration file.
  4. Perform both steps: (1) Treat model migration as a tested deployment with staged traffic; (2) send instructions using the request's top-level system field.

Explanation

Correct Answer

C:

The first change enables the team to ensure a rebuilt agent uses the same tested SDK dependency set because dependency pinning reduces environment drift; transitive SDK updates can change behavior even when prompt text is unchanged; the second addresses the separate need to apply consistent reviewed tool permissions to an entire Claude Code repository team because repository-level settings can be versioned and reviewed, unlike private preferences that vary across each developer's machine.

Incorrect Answers

A:

The second step meets the requirement to apply consistent reviewed tool permissions to an entire Claude Code repository team because repository-level settings can be versioned and reviewed, unlike private preferences that vary across each developer's machine; the first step would only help to compare candidate models before switching a mission-critical endpoint because model upgrades may alter output distributions or supported features; staged validation reduces the chance of an unnoticed behavior shift, leaving the separate requirement to ensure a rebuilt agent uses the same tested SDK dependency set unmet.

B:

The first step is appropriate for the requirement to ensure a rebuilt agent uses the same tested SDK dependency set because dependency pinning reduces environment drift; transitive SDK updates can change behavior even when prompt text is unchanged; the other step instead aims to set consistent developer-controlled behavior separately from untrusted user text because the system field separates higher-priority application guidance from user-message content and should not be simulated by ordinary quoted text, which does not meet the second requirement to apply consistent reviewed tool permissions to an entire Claude Code repository team.

D:

Both steps target different results—compare candidate models before switching a mission-critical endpoint and set consistent developer-controlled behavior separately from untrusted user text—because model upgrades may alter output distributions or supported features; staged validation reduces the chance of an unnoticed behavior shift and the system field separates higher-priority application guidance from user-message content and should not be simulated by ordinary quoted text; the required capabilities are instead to ensure a rebuilt agent uses the same tested SDK dependency set and to apply consistent reviewed tool permissions to an entire Claude Code repository team.

Question 86

A test for a token-consumption optimization sprint fails because it cannot reduce repeated cost for a stable lengthy policy prefix reused many times. Which change fixes the identified failure?

  1. Record rate-limit status and relevant response headers alongside request metrics.
  2. Measure cache-write overhead against subsequent cache-read savings.
  3. Model the response as conditioned token generation.
  4. Use more exploratory sampling where supported and measure quality.

Explanation

Correct Answer

B:

To reduce repeated cost for a stable lengthy policy prefix reused many times in this token-consumption optimization sprint, cache writes may cost extra while hits are cheaper; the reuse frequency determines whether the optimization saves money; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to investigate inconsistent throughput during a traffic spike because quota-related measurements explain capacity failures that may otherwise look like randomly slow model inference; that mechanism does not meet the different requirement to reduce repeated cost for a stable lengthy policy prefix reused many times.

C:

The proposed alternative helps to explain why language-model output is generated step by step rather than fetched from a fixed response table because autoregressive decoding selects subsequent tokens based on supplied context and prior output, which creates flexible but non-guaranteed wording; that mechanism does not meet the different requirement to reduce repeated cost for a stable lengthy policy prefix reused many times.

D:

The proposed alternative helps to invite stylistic variety during noncritical brainstorming because higher sampling randomness broadens candidate phrasing but can reduce predictability, so it suits ideation better than strict extraction; that mechanism does not meet the different requirement to reduce repeated cost for a stable lengthy policy prefix reused many times.

Question 87

An architecture review of a tool-calling Claude workflow asks how to stop a slow external system from trapping an agent loop indefinitely. Which action is the best fit?

  1. Give each tool a timeout and controlled retry or failure result.
  2. Use the MCP stdio transport with properly framed protocol messages.
  3. Host a restricted client tool in the private application environment.
  4. Configure the built-in capability instead of recreating it as a local handler.

Explanation

Correct Answer

A:

To stop a slow external system from trapping an agent loop indefinitely in this tool-calling Claude workflow, tool execution is a separate latency source; bounded calls prevent one dependency from exhausting the entire agent budget; the proposed implementation directly supplies that capability.

Incorrect Answers

B:

The proposed alternative helps 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; that mechanism does not meet the different requirement to stop a slow external system from trapping an agent loop indefinitely.

C:

The proposed alternative helps to execute a high-privilege enterprise action that must remain inside a corporate network because a private handler provides local network and IAM controls that a generic provider-executed server tool may not possess; that mechanism does not meet the different requirement to stop a slow external system from trapping an agent loop indefinitely.

D:

The proposed alternative helps to obtain a capability already provided as a supported Anthropic server tool because provider tools simplify execution ownership, though availability, cost, and data handling still require assessment; that mechanism does not meet the different requirement to stop a slow external system from trapping an agent loop indefinitely.

Question 88

For a production inference application, the missing capability is to make a direct REST request with a declared supported API contract. What should the developers implement?

  1. Set the appropriate application/json content type and serialize a valid payload.
  2. Submit independent requests through the Message Batches API.
  3. Use asynchronous SDK calls with bounded concurrency.
  4. Supply the required API version header.

Explanation

Correct Answer

D:

To make a direct REST request with a declared supported API contract in this production inference application, the version header selects the protocol contract supported by the endpoint, preventing accidental dependence on unspecified behavior; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to have the server parse a JSON request body predictably because a JSON body requires both correct serialization and matching HTTP metadata; raw language-model text cannot replace a valid request object; that mechanism does not meet the different requirement to make a direct REST request with a declared supported API contract.

B:

The proposed alternative helps to process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace because batch processing is suited to deferred work with eventual result collection and is not a substitute for an interactive low-latency chat endpoint; that mechanism does not meet the different requirement to make a direct REST request with a declared supported API contract.

C:

The proposed alternative helps 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; that mechanism does not meet the different requirement to make a direct REST request with a declared supported API contract.

Question 89

To ship a model selection trial, the application must teach a distinctive output format with one representative example and account for different plausible answers from the same input on repeated runs. Which pair of listed actions is necessary for those stated capabilities? Choose TWO.

  1. Provide one accurate input-output demonstration.
  2. Use more exploratory sampling where supported and measure quality.
  3. Compare both candidates on identical representative eval cases.
  4. Use the model's documented thinking capability within the latency budget.
  5. Design for stochastic output and evaluate behavior over representative repeats.

Explanation

Correct Answers

A:

To teach a distinctive output format with one representative example as part of a design that must also account for different plausible answers from the same input on repeated runs, a single example illustrates structure and conventions, but it may not reveal how to handle difficult edge cases; this is why the action is one of the two required selections.

E:

To account for different plausible answers from the same input on repeated runs as part of a design that must also teach a distinctive output format with one representative example, sampling and model execution can produce variation; important correctness must be checked rather than assumed identical on every call; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal to invite stylistic variety during noncritical brainstorming because higher sampling randomness broadens candidate phrasing but can reduce predictability, so it suits ideation better than strict extraction; the required outcomes are instead to teach a distinctive output format with one representative example and to account for different plausible answers from the same input on repeated runs.

C:

This alternative serves the separate goal to choose between two supported model releases using evidence rather than reputation because holding inputs and scoring constant reveals quality and latency changes that generic model descriptions cannot settle; the required outcomes are instead to teach a distinctive output format with one representative example and to account for different plausible answers from the same input on repeated runs.

D:

This alternative serves the separate goal to allocate additional reasoning effort to a complex multistep decision where supported because reasoning settings can change token consumption and response latency and should be evaluated for the particular workload; the required outcomes are instead to teach a distinctive output format with one representative example and to account for different plausible answers from the same input on repeated runs.

Question 90

The technical owner of an internal coding-assistant workflow has to preserve durable user-approved facts across agent sessions outside the context window. A separate requirement is to coordinate explicit graph transitions among multiple model and tool nodes. Which two-part remediation covers both?

  1. Perform both steps: (1) Persist checkpoints for tool outputs and accepted decisions; (2) run side-effect-free tool calls concurrently when their inputs are independent.
  2. Perform both steps: (1) Write selected durable facts to a controlled external memory store; (2) run side-effect-free tool calls concurrently when their inputs are independent.
  3. Perform both steps: (1) Persist checkpoints for tool outputs and accepted decisions; (2) choose a graph-based orchestration framework when state transitions justify it.
  4. Perform both steps: (1) Write selected durable facts to a controlled external memory store; (2) choose a graph-based orchestration framework when state transitions justify it.

Explanation

Correct Answer

D:

The first change enables the team to preserve durable user-approved facts across agent sessions outside the context window because external memory allows selective retrieval in later sessions, unlike temporary model context that disappears when calls end; the second addresses the separate need to coordinate explicit graph transitions among multiple model and tool nodes because graph orchestration clarifies conditional edges and resumability; it adds complexity when a short linear function would suffice.

Incorrect Answers

A:

Both steps target different results—recover a multi-hour agent workflow after an infrastructure interruption and speed up independent data lookups without causing write-order races—because durable checkpoints let the orchestrator resume from a known stage rather than rerunning costly or side-effecting actions and read-only independent calls can safely overlap; mutating operations need explicit ordering or concurrency control; the required capabilities are instead to preserve durable user-approved facts across agent sessions outside the context window and to coordinate explicit graph transitions among multiple model and tool nodes.

B:

The first step is appropriate for the requirement to preserve durable user-approved facts across agent sessions outside the context window because external memory allows selective retrieval in later sessions, unlike temporary model context that disappears when calls end; the other step instead aims to speed up independent data lookups without causing write-order races because read-only independent calls can safely overlap; mutating operations need explicit ordering or concurrency control, which does not meet the second requirement to coordinate explicit graph transitions among multiple model and tool nodes.

C:

The second step meets the requirement to coordinate explicit graph transitions among multiple model and tool nodes because graph orchestration clarifies conditional edges and resumability; it adds complexity when a short linear function would suffice; the first step would only help to recover a multi-hour agent workflow after an infrastructure interruption because durable checkpoints let the orchestrator resume from a known stage rather than rerunning costly or side-effecting actions, leaving the separate requirement to preserve durable user-approved facts across agent sessions outside the context window unmet.

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