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

Question 340

For a model-family migration plan, the missing capability is to work in an environment that lacks a compatible Claude SDK. What should the developers implement?

  1. Use a synchronous client with explicit timeout and error handling.
  2. Propagate cancellation to the active network request when supported.
  3. Start with a clear instruction and no demonstrations.
  4. Call the documented HTTPS endpoint with explicit headers and JSON serialization.

Explanation

Correct Answer

D:

To work in an environment that lacks a compatible Claude SDK in this model-family migration plan, direct REST access remains possible when an SDK is unavailable, but the caller owns wire-format correctness and response parsing; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps 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; that mechanism does not meet the different requirement to work in an environment that lacks a compatible Claude SDK.

B:

The proposed alternative helps to stop a no-longer-needed inference when the user's request is cancelled because cancelling work can free local resources and avoid processing obsolete results, though already-incurred provider work may still be billed; that mechanism does not meet the different requirement to work in an environment that lacks a compatible Claude SDK.

C:

The proposed alternative helps to run a straightforward well-specified classification without consuming examples because zero-shot prompting relies on direct task instructions and can save context when the task requires little format teaching; that mechanism does not meet the different requirement to work in an environment that lacks a compatible Claude SDK.

Question 341

Two approval criteria are still open for a long-context summarization workflow: the team must leave space for a model to generate a complete answer after adding source documents and analyze a large source set without exposing every raw document to the parent agent. Which two implementation actions satisfy them? Choose TWO.

  1. Have a scoped subagent process sources and return a concise verified handoff.
  2. Retrieve authoritative policy passages and cite those used.
  3. Require a completed stop condition before accepting the parsed result.
  4. Map or reject values not in the approved enumeration.
  5. Reserve an output budget while enforcing input-context limits.

Explanation

Correct Answers

A:

To analyze a large source set without exposing every raw document to the parent agent as part of a design that must also leave space for a model to generate a complete answer after adding source documents, separate contexts let specialists work deeply while the coordinator sees only claims and references needed for the final decision; this is why the action is one of the two required selections.

E:

To leave space for a model to generate a complete answer after adding source documents as part of a design that must also analyze a large source set without exposing every raw document to the parent agent, input instructions, history, and evidence share the overall model capacity with generation, so filling it entirely can truncate output; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal to answer a company-policy question from current approved records instead of relying on general knowledge because retrieval supplies task-specific facts that pretraining may not include, while source attribution lets the application verify the response; the required outcomes are instead to leave space for a model to generate a complete answer after adding source documents and to analyze a large source set without exposing every raw document to the parent agent.

C:

This alternative serves the separate goal 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 required outcomes are instead to leave space for a model to generate a complete answer after adding source documents and to analyze a large source set without exposing every raw document to the parent agent.

D:

This alternative serves the separate goal 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 required outcomes are instead to leave space for a model to generate a complete answer after adding source documents and to analyze a large source set without exposing every raw document to the parent agent.

Question 342

An architecture decision for an internal agent-extension rollout must support obtain a capability already provided as a supported Anthropic server tool and remove an agent's access to an obsolete integration without rewriting all its task prompts. Which option gives a complete rather than partial solution?

  1. Perform both steps: (1) Configure the built-in capability instead of recreating it as a local handler; (2) package the connector behind an mcp server.
  2. Perform both steps: (1) Configure the supported tool_choice behavior for the request; (2) disable the capability at configuration or tool-registration level.
  3. Perform both steps: (1) Configure the built-in capability instead of recreating it as a local handler; (2) disable the capability at configuration or tool-registration level.
  4. Perform both steps: (1) Configure the supported tool_choice behavior for the request; (2) package the connector behind an mcp server.

Explanation

Correct Answer

C:

The first change enables the team 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; the second addresses the separate need 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.

Incorrect Answers

A:

The first step is appropriate for the requirement 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; the other step instead aims to share one integration with several compatible AI clients or agent runtimes because MCP standardizes capability exposure across clients, reducing duplicate integration logic compared with proprietary tool schemas everywhere, which does not meet the second requirement to remove an agent's access to an obsolete integration without rewriting all its task prompts.

B:

The second step meets the requirement 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; the first step would only help 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, leaving the separate requirement to obtain a capability already provided as a supported Anthropic server tool unmet.

D:

Both steps target different results—require or restrict tool use for a specific turn when the API supports that control and share one integration with several compatible AI clients or agent runtimes—because tool-selection controls influence whether Claude may call tools, but cannot grant permissions to the underlying systems and MCP standardizes capability exposure across clients, reducing duplicate integration logic compared with proprietary tool schemas everywhere; the required capabilities are instead to obtain a capability already provided as a supported Anthropic server tool and to remove an agent's access to an obsolete integration without rewriting all its task prompts.

Question 343

A team maintaining an autonomous repository maintenance job has two different engineering requirements: (1) execute a requested internal business function inside the application's trusted process, and (2) require precise control over message assembly, tool dispatch, and stopping behavior. Which TWO independent changes directly meet them? Choose TWO.

  1. Classify the request and dispatch to an appropriate specialized workflow.
  2. Deploy the agent runner in the organization's own environment.
  3. Inspect the tool_use block, invoke the authorized handler, and return tool_result.
  4. Return a separate tool_result for every corresponding tool_use identifier.
  5. Implement an application-owned Messages API agent loop.

Explanation

Correct Answers

C:

To execute a requested internal business function inside the application's trusted process as part of a design that must also require precise control over message assembly, tool dispatch, and stopping behavior, client tools are executed by the application, not by merely declaring a schema; every returned result must be matched to its tool-use identifier; this is why the action is one of the two required selections.

E:

To require precise control over message assembly, tool dispatch, and stopping behavior as part of a design that must also execute a requested internal business function inside the application's trusted process, a custom loop explicitly owns each model call, tool result, state update, and budget decision, trading flexibility for more engineering responsibility; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to send distinct request types to specialized handlers while keeping the routing rule inspectable because routing separates distinct pathways without making the entire task autonomously planned; the classification decision must be observable and tested; the required outcomes are instead to execute a requested internal business function inside the application's trusted process and to require precise control over message assembly, tool dispatch, and stopping behavior.

B:

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 execute a requested internal business function inside the application's trusted process and to require precise control over message assembly, tool dispatch, and stopping behavior.

D:

This alternative serves the separate goal to handle several independent tool_use blocks in one assistant message because parallel tool execution requires complete, correctly linked results; dropping one identifier leaves the model's outstanding request unresolved; the required outcomes are instead to execute a requested internal business function inside the application's trusted process and to require precise control over message assembly, tool dispatch, and stopping behavior.

Question 344

A test for a production inference application fails because it cannot continue a chat with relevant prior turns despite the API being stateless. Which change fixes the identified failure?

  1. Include the necessary conversation history in each Messages API call.
  2. Branch on stop_reason tool_use and dispatch the declared calls.
  3. Include a typed image content block in the message.
  4. Detect refusal and apply the product's allowed fallback or messaging policy.

Explanation

Correct Answer

A:

To continue a chat with relevant prior turns despite the API being stateless in this production inference application, a response does not create server-side conversational memory by default; the client supplies retained turns and controls truncation; the proposed implementation directly supplies that capability.

Incorrect Answers

B:

The proposed alternative helps to recognize that the model is asking the application to execute a client tool because a tool-use stop requires host-side handling and a follow-up message containing results, not presenting the call as final prose; that mechanism does not meet the different requirement to continue a chat with relevant prior turns despite the API being stateless.

C:

The proposed alternative helps to ask Claude to interpret a supported image supplied as part of a request because multimodal input must use the API's image representation and supported sourcing; merely writing a filename in text does not transfer pixels; that mechanism does not meet the different requirement to continue a chat with relevant prior turns despite the API being stateless.

D:

The proposed alternative helps to handle a safety refusal as a distinct application outcome because a refusal is not the same as a network failure; blindly retrying identical input may not produce an appropriate user experience; that mechanism does not meet the different requirement to continue a chat with relevant prior turns despite the API being stateless.

Question 345

An architecture review of a knowledge-grounded assistant asks how to distinguish a user's instructions from a quoted document containing imperatives. Which action is the best fit?

  1. Revise one prompt component at a time against a regression evaluation set.
  2. State the task, audience, scope, and required deliverable explicitly.
  3. Mark untrusted quoted material with explicit boundaries and role context.
  4. Validate parsed output against the application's declared schema.

Explanation

Correct Answer

C:

To distinguish a user's instructions from a quoted document containing imperatives in this knowledge-grounded assistant, delimiters clarify that imported content is data to analyze, not a new authority to change tools or objectives; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to improve a prompt while preserving performance on previously solved cases because controlled prompt iteration distinguishes genuine quality gains from regressions or overfitting to one attractive example; that mechanism does not meet the different requirement to distinguish a user's instructions from a quoted document containing imperatives.

B:

The proposed alternative helps to stop a model from alternating unpredictably between summary and extraction because specific task wording narrows reasonable interpretations and gives validation rules a clear target without relying on implied intent; that mechanism does not meet the different requirement to distinguish a user's instructions from a quoted document containing imperatives.

D:

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 distinguish a user's instructions from a quoted document containing imperatives.

Question 346

An end-to-end test for a model-family migration plan checks whether it can choose between two supported model releases using evidence rather than reputation and minimize average model cost when most requests are easy but some require deeper reasoning. Which plan should be approved to satisfy both checks?

  1. Perform both steps: (1) Revalidate prompts, schemas, safety constraints, and tools after model migration; (2) evaluate a sonnet-family model against a realistic task set.
  2. Perform both steps: (1) Compare both candidates on identical representative eval cases; (2) route simple requests to a cheaper evaluated tier and escalate difficult ones.
  3. Perform both steps: (1) Compare both candidates on identical representative eval cases; (2) evaluate a sonnet-family model against a realistic task set.
  4. Perform both steps: (1) Revalidate prompts, schemas, safety constraints, and tools after model migration; (2) route simple requests to a cheaper evaluated tier and escalate difficult ones.

Explanation

Correct Answer

B:

The first change enables the team 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 second addresses the separate need to minimize average model cost when most requests are easy but some require deeper reasoning because cascading matches compute to task difficulty but requires a reliable escalation rule and measurement of misrouting.

Incorrect Answers

A:

Both steps target different results—avoid assuming a model-version change preserves tool output and writing behavior and deliver moderately complex development assistance with balanced quality, cost, and latency—because new releases can change response distributions or supported behaviors, making a model upgrade a real software change and a balanced model tier often offers useful capability without the latency or cost of the most expensive tier; evaluation should drive final selection; the required capabilities are instead to choose between two supported model releases using evidence rather than reputation and to minimize average model cost when most requests are easy but some require deeper reasoning.

C:

The first step is appropriate for the requirement 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 other step instead aims to deliver moderately complex development assistance with balanced quality, cost, and latency because a balanced model tier often offers useful capability without the latency or cost of the most expensive tier; evaluation should drive final selection, which does not meet the second requirement to minimize average model cost when most requests are easy but some require deeper reasoning.

D:

The second step meets the requirement to minimize average model cost when most requests are easy but some require deeper reasoning because cascading matches compute to task difficulty but requires a reliable escalation rule and measurement of misrouting; the first step would only help 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, leaving the separate requirement to choose between two supported model releases using evidence rather than reputation unmet.

Question 347

A production readiness review of a hosted document-processing service finds that the team cannot yet filter risky user-visible content according to application policy or expose external business tools only to workflows that actually need them. Which paired changes directly remedy the two gaps?

  1. Perform both steps: (1) Validate file type, size, and allowed content conversion before API submission; (2) validate generated fields against domain rules after parsing.
  2. Perform both steps: (1) Apply content checks at suitable input and output boundaries; (2) validate generated fields against domain rules after parsing.
  3. Perform both steps: (1) Apply content checks at suitable input and output boundaries; (2) enable required plugin or connector capabilities using least-privilege configuration.
  4. Perform both steps: (1) Validate file type, size, and allowed content conversion before API submission; (2) enable required plugin or connector capabilities using least-privilege configuration.

Explanation

Correct Answer

C:

The first change enables the team to filter risky user-visible content according to application policy because moderation is a defense layer applied around generation, not a substitute for authenticated tool access or scoped retrieval; the second addresses the separate need to expose external business tools only to workflows that actually need them because tools expand the application's action surface; indiscriminate activation increases risk and can confuse model selection among similar functions.

Incorrect Answers

A:

Both steps target different results—prevent a document-upload endpoint from passing unsupported bytes to the model and stop a well-formed JSON response from introducing an impossible customer status—because client filenames are not enough to establish content validity; ingestion must enforce protocol and product constraints and a syntactically valid object may still contain invalid business values; server-side semantics determine whether it is acceptable; the required capabilities are instead to filter risky user-visible content according to application policy and to expose external business tools only to workflows that actually need them.

B:

The first step is appropriate for the requirement to filter risky user-visible content according to application policy because moderation is a defense layer applied around generation, not a substitute for authenticated tool access or scoped retrieval; the other step instead aims to stop a well-formed JSON response from introducing an impossible customer status because a syntactically valid object may still contain invalid business values; server-side semantics determine whether it is acceptable, which does not meet the second requirement to expose external business tools only to workflows that actually need them.

D:

The second step meets the requirement to expose external business tools only to workflows that actually need them because tools expand the application's action surface; indiscriminate activation increases risk and can confuse model selection among similar functions; the first step would only help to prevent a document-upload endpoint from passing unsupported bytes to the model because client filenames are not enough to establish content validity; ingestion must enforce protocol and product constraints, leaving the separate requirement to filter risky user-visible content according to application policy unmet.

Question 348

In a context-rich document assistant, a release requirement is to ask for missing essential parameters rather than inventing a consequential choice. Which implementation addresses that specific requirement?

  1. Instruct the application to request clarification for unresolved high-impact ambiguity.
  2. State explicit priority and conflict resolution for the task constraints.
  3. Summarize prior decisions and preserve unresolved constraints.
  4. Minimize or redact sensitive fields before constructing context.

Explanation

Correct Answer

A:

To ask for missing essential parameters rather than inventing a consequential choice in this context-rich document assistant, clarification reduces irreversible guesses when requirements do not uniquely determine a safe action; the proposed implementation directly supplies that capability.

Incorrect Answers

B:

The proposed alternative helps to prioritize mandatory legal requirements over optional stylistic preferences because without a priority rule, competing directives can create ambiguous outputs; hard requirements should guide how optional preferences are applied; that mechanism does not meet the different requirement to ask for missing essential parameters rather than inventing a consequential choice.

C:

The proposed alternative helps to maintain the current task after older dialogue exceeds the active token budget because a faithful rolling summary carries forward objectives and commitments while avoiding a full-history replay on each call; that mechanism does not meet the different requirement to ask for missing essential parameters rather than inventing a consequential choice.

D:

The proposed alternative helps to provide a document's necessary meaning without disclosing irrelevant personal identifiers because data minimization reduces the sensitive information transmitted for inference while retaining the facts the task legitimately requires; that mechanism does not meet the different requirement to ask for missing essential parameters rather than inventing a consequential choice.

Question 349

For an API request trace investigation, a design is acceptable only if it can distinguish an upstream throttling response from a malformed model answer while also being able to distinguish a syntactically valid but low-quality answer from a transport outage. Which paired implementation is sufficient?

  1. Perform both steps: (1) Inspect stop_reason and output limits before changing the parser; (2) compare versioned prompts and representative eval cases against model responses.
  2. Perform both steps: (1) Inspect stop_reason and output limits before changing the parser; (2) examine correlated request, tool, and transformation traces stage by stage.
  3. Perform both steps: (1) Inspect the HTTP 429 status and rate-limit metadata before retrying; (2) examine correlated request, tool, and transformation traces stage by stage.
  4. Perform both steps: (1) Inspect the HTTP 429 status and rate-limit metadata before retrying; (2) compare versioned prompts and representative eval cases against model responses.

Explanation

Correct Answer

D:

The first change enables the team 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 second addresses the separate need 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.

Incorrect Answers

A:

The second step meets the requirement 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 first step would only help 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, leaving the separate requirement to distinguish an upstream throttling response from a malformed model answer unmet.

B:

Both steps target different results—find why a JSON record unexpectedly ends midway through a field and locate which component of a multi-tool answer introduced the wrong value—because a max_tokens stop indicates incomplete generation; the parser may be working correctly against a response that was never finished and structured traces reveal whether retrieval, tool execution, postprocessing, or generation caused the defect; reading only the final text cannot isolate it; the required capabilities are instead to distinguish an upstream throttling response from a malformed model answer and to distinguish a syntactically valid but low-quality answer from a transport outage.

C:

The first step is appropriate for the requirement 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 other step instead aims to locate which component of a multi-tool answer introduced the wrong value because structured traces reveal whether retrieval, tool execution, postprocessing, or generation caused the defect; reading only the final text cannot isolate it, which does not meet the second requirement to distinguish a syntactically valid but low-quality answer from a transport outage.

Question 350

A team maintaining a Python Claude API backend has two different engineering requirements: (1) handle a response containing reasoning-related blocks without confusing them with ordinary final text, and (2) support Claude models accessed through different supported cloud offerings. Which TWO independent changes directly meet them? Choose TWO.

  1. Use the provider-specific endpoint, authentication, and request conventions.
  2. Send instructions using the request's top-level system field.
  3. Parse response content by block type and follow current thinking-field rules.
  4. Detect refusal and apply the product's allowed fallback or messaging policy.
  5. Treat stop_reason end_turn as a completed assistant turn.

Explanation

Correct Answers

A:

To support Claude models accessed through different supported cloud offerings as part of a design that must also handle a response containing reasoning-related blocks without confusing them with ordinary final text, Claude API, Bedrock, and Vertex-style integrations are not interchangeable URLs; host authentication and service wrappers differ; this is why the action is one of the two required selections.

C:

To handle a response containing reasoning-related blocks without confusing them with ordinary final text as part of a design that must also support Claude models accessed through different supported cloud offerings, structured content may contain distinct block types and signatures; a parser that assumes only plain text can discard important protocol data; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal 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; the required outcomes are instead to handle a response containing reasoning-related blocks without confusing them with ordinary final text and to support Claude models accessed through different supported cloud offerings.

D:

This alternative serves the separate goal to handle a safety refusal as a distinct application outcome because a refusal is not the same as a network failure; blindly retrying identical input may not produce an appropriate user experience; the required outcomes are instead to handle a response containing reasoning-related blocks without confusing them with ordinary final text and to support Claude models accessed through different supported cloud offerings.

E:

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 response containing reasoning-related blocks without confusing them with ordinary final text and to support Claude models accessed through different supported cloud offerings.

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