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

Question 400

For an enterprise MCP client, the missing capability is to expose a business lookup with predictable typed arguments. What should the developers implement?

  1. Define a descriptive tool name and validated input schema.
  2. Expose the material as an MCP resource with a stable identifier.
  3. Put an approval gate in the host-side write handler.
  4. Describe each tool's purpose, required inputs, and limitations clearly.

Explanation

Correct Answer

A:

To expose a business lookup with predictable typed arguments in this enterprise MCP client, well-described schemas help Claude select a capability and emit usable arguments; the backend still validates authorization and meaning; the proposed implementation directly supplies that capability.

Incorrect Answers

B:

The proposed alternative helps 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; that mechanism does not meet the different requirement to expose a business lookup with predictable typed arguments.

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 expose a business lookup with predictable typed arguments.

D:

The proposed alternative helps to prevent two similarly named lookup tools from being confused because tool descriptions influence the model's selection, so overlapping or vague names make dispatch less reliable; that mechanism does not meet the different requirement to expose a business lookup with predictable typed arguments.

Question 401

While planning a model selection trial, the product owner specifies that it must trade answer latency and computation against solution quality on supported models. Which solution fulfills the requirement?

  1. Start with a clear instruction and no demonstrations.
  2. Select an available effort level after measuring task performance.
  3. Measure or count input and output tokens with the supported tokenizer or API.
  4. Evaluate a Sonnet-family model against a realistic task set.

Explanation

Correct Answer

B:

To trade answer latency and computation against solution quality on supported models in this model selection trial, reasoning effort is an inference-time tradeoff; lowering it may reduce costs or latency while harming difficult-case accuracy; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

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 trade answer latency and computation against solution quality on supported models.

C:

The proposed alternative helps to estimate model usage from encoded text rather than counting words because billing and context consumption track tokens, which do not map one-to-one to English words or characters; that mechanism does not meet the different requirement to trade answer latency and computation against solution quality on supported models.

D:

The proposed alternative helps 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; that mechanism does not meet the different requirement to trade answer latency and computation against solution quality on supported models.

Question 402

A team maintaining a context-rich document assistant has two different engineering requirements: (1) stop verbose tool payloads from consuming most of a long-running agent's context, and (2) answer a company-policy question from current approved records instead of relying on general knowledge. Which TWO independent changes directly meet them? Choose TWO.

  1. Rank and select relevant passages before building the model context.
  2. Retain essential fields and discard irrelevant tool output from active context.
  3. Summarize prior decisions and preserve unresolved constraints.
  4. Reserve an output budget while enforcing input-context limits.
  5. Retrieve authoritative policy passages and cite those used.

Explanation

Correct Answers

B:

To stop verbose tool payloads from consuming most of a long-running agent's context as part of a design that must also answer a company-policy question from current approved records instead of relying on general knowledge, summarizing or filtering observations keeps the reasoning window focused without deleting required facts from durable application state; this is why the action is one of the two required selections.

E:

To answer a company-policy question from current approved records instead of relying on general knowledge as part of a design that must also stop verbose tool payloads from consuming most of a long-running agent's context, retrieval supplies task-specific facts that pretraining may not include, while source attribution lets the application verify the response; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to keep only evidence that matters to the question when retrieval returns hundreds of documents because relevance filtering reduces distracting information and token usage; dumping every retrieved page can degrade grounding and exceed limits; the required outcomes are instead to stop verbose tool payloads from consuming most of a long-running agent's context and to answer a company-policy question from current approved records instead of relying on general knowledge.

C:

This alternative serves the separate goal 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; the required outcomes are instead to stop verbose tool payloads from consuming most of a long-running agent's context and to answer a company-policy question from current approved records instead of relying on general knowledge.

D:

This alternative serves the separate goal to leave space for a model to generate a complete answer after adding source documents because input instructions, history, and evidence share the overall model capacity with generation, so filling it entirely can truncate output; the required outcomes are instead to stop verbose tool payloads from consuming most of a long-running agent's context and to answer a company-policy question from current approved records instead of relying on general knowledge.

Question 403

A production readiness review of a hosted document-processing service finds that the team cannot yet detect rising inference errors after a feature reaches production or avoid an outage when a pinned model version approaches retirement. Which paired changes directly remedy the two gaps?

  1. Perform both steps: (1) Track latency, failure rates, token use, and output-quality signals over time; (2) track provider deprecation notices and test migration before the removal date.
  2. Perform both steps: (1) Exercise complete request-to-tool-to-response paths in a controlled environment; (2) track provider deprecation notices and test migration before the removal date.
  3. Perform both steps: (1) Exercise complete request-to-tool-to-response paths in a controlled environment; (2) treat model migration as a tested deployment with staged traffic.
  4. Perform both steps: (1) Track latency, failure rates, token use, and output-quality signals over time; (2) treat model migration as a tested deployment with staged traffic.

Explanation

Correct Answer

A:

The first change enables the team to detect rising inference errors after a feature reaches production because production health spans infrastructure and model behavior, so a healthy HTTP server alone does not prove the AI feature is functioning; the second addresses the separate need to avoid an outage when a pinned model version approaches retirement because lifecycle management treats model availability as a dependency and validates output regressions before switching production traffic.

Incorrect Answers

B:

The second step meets the requirement to avoid an outage when a pinned model version approaches retirement because lifecycle management treats model availability as a dependency and validates output regressions before switching production traffic; the first step would only help to catch mismatches between model calls, tool handlers, and application persistence because unit tests cannot reveal every serialization or permission issue across service boundaries; integration tests validate the connected contract, leaving the separate requirement to detect rising inference errors after a feature reaches production unmet.

C:

Both steps target different results—catch mismatches between model calls, tool handlers, and application persistence and compare candidate models before switching a mission-critical endpoint—because unit tests cannot reveal every serialization or permission issue across service boundaries; integration tests validate the connected contract and model upgrades may alter output distributions or supported features; staged validation reduces the chance of an unnoticed behavior shift; the required capabilities are instead to detect rising inference errors after a feature reaches production and to avoid an outage when a pinned model version approaches retirement.

D:

The first step is appropriate for the requirement to detect rising inference errors after a feature reaches production because production health spans infrastructure and model behavior, so a healthy HTTP server alone does not prove the AI feature is functioning; the other step instead aims 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, which does not meet the second requirement to avoid an outage when a pinned model version approaches retirement.

Question 404

A design review for an MCP integration server asks for support to require or restrict tool use for a specific turn when the API supports that control, together with a way to let Claude distinguish a failed database lookup from an empty successful result. Select the two appropriate changes. Choose TWO.

  1. Return an explicit tool error indication and an informative safe message.
  2. Configure the built-in capability instead of recreating it as a local handler.
  3. Implement a narrowly scoped read-only tool handler.
  4. Expose the material as an MCP resource with a stable identifier.
  5. Configure the supported tool_choice behavior for the request.

Explanation

Correct Answers

A:

To let Claude distinguish a failed database lookup from an empty successful result as part of a design that must also require or restrict tool use for a specific turn when the API supports that control, an error result preserves failure semantics, preventing the model from inventing a no-record finding for a call that never succeeded; this is why the action is one of the two required selections.

E:

To require or restrict tool use for a specific turn when the API supports that control as part of a design that must also let Claude distinguish a failed database lookup from an empty successful result, tool-selection controls influence whether Claude may call tools, but cannot grant permissions to the underlying systems; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal 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 required outcomes are instead to require or restrict tool use for a specific turn when the API supports that control and to let Claude distinguish a failed database lookup from an empty successful result.

C:

This alternative serves the separate goal to expose a diagnostic capability without allowing the model to modify records because a restricted read interface supports observation while preventing data mutation, unlike giving a diagnostic agent a general administrative API; the required outcomes are instead to require or restrict tool use for a specific turn when the API supports that control and to let Claude distinguish a failed database lookup from an empty successful result.

D:

This alternative serves the separate goal 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; the required outcomes are instead to require or restrict tool use for a specific turn when the API supports that control and to let Claude distinguish a failed database lookup from an empty successful result.

Question 405

An architecture review of an enterprise agent deployment asks how to secure an agent against both malicious retrieved text and unsafe tool execution. Which action is the best fit?

  1. Use layered policy enforcement and restrict powerful tools independently of chat text.
  2. Combine prompt boundaries, scoped credentials, validation, and approval gates.
  3. Check resource-level authorization for every sensitive tool request.
  4. Validate or moderate final content before release.

Explanation

Correct Answer

B:

To secure an agent against both malicious retrieved text and unsafe tool execution in this enterprise agent deployment, defense in depth assumes individual filters can fail; independent enforcement boundaries reduce the chance of harmful side effects; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to prevent an adversarial user from bypassing safety policy by roleplay instructions because adversarial prompting can target instruction hierarchy, so product controls and tool authorization must remain effective when wording is manipulated; that mechanism does not meet the different requirement to secure an agent against both malicious retrieved text and unsafe tool execution.

C:

The proposed alternative helps to stop an authenticated user from reading another tenant's records via a tool because proving identity does not grant access to every object; the backend must enforce tenant and resource permissions separately; that mechanism does not meet the different requirement to secure an agent against both malicious retrieved text and unsafe tool execution.

D:

The proposed alternative helps 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; that mechanism does not meet the different requirement to secure an agent against both malicious retrieved text and unsafe tool execution.

Question 406

A release check on a Python Claude API backend found two unsatisfied conditions: the service must keep a browser application from exposing the secret used for model calls, and it must let a reviewer trace claims to the material actually consulted. Which complete engineering plan satisfies both?

  1. Perform both steps: (1) Exercise complete request-to-tool-to-response paths in a controlled environment; (2) configure supported structured outputs with a json schema.
  2. Perform both steps: (1) Exercise complete request-to-tool-to-response paths in a controlled environment; (2) retain source identifiers with retrieved evidence and render supported citations.
  3. Perform both steps: (1) Route Claude requests through a trusted backend service; (2) configure supported structured outputs with a json schema.
  4. Perform both steps: (1) Route Claude requests through a trusted backend service; (2) retain source identifiers with retrieved evidence and render supported citations.

Explanation

Correct Answer

D:

The first change enables the team to keep a browser application from exposing the secret used for model calls because a backend controls credentials and access policy while the UI sends user input through an authenticated application endpoint; the second addresses the separate need to let a reviewer trace claims to the material actually consulted because traceability requires linking claims to accessible source passages; fabricated URLs or unlabeled snippets do not provide verifiable provenance.

Incorrect Answers

A:

Both steps target different results—catch mismatches between model calls, tool handlers, and application persistence and need schema-conformant JSON for a downstream parser at generation time—because unit tests cannot reveal every serialization or permission issue across service boundaries; integration tests validate the connected contract and constrained JSON generation targets machine-parseable fields and types; free-form prompting alone does not establish the same guarantee; the required capabilities are instead to keep a browser application from exposing the secret used for model calls and to let a reviewer trace claims to the material actually consulted.

B:

The second step meets the requirement to let a reviewer trace claims to the material actually consulted because traceability requires linking claims to accessible source passages; fabricated URLs or unlabeled snippets do not provide verifiable provenance; the first step would only help to catch mismatches between model calls, tool handlers, and application persistence because unit tests cannot reveal every serialization or permission issue across service boundaries; integration tests validate the connected contract, leaving the separate requirement to keep a browser application from exposing the secret used for model calls unmet.

C:

The first step is appropriate for the requirement to keep a browser application from exposing the secret used for model calls because a backend controls credentials and access policy while the UI sends user input through an authenticated application endpoint; the other step instead aims 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, which does not meet the second requirement to let a reviewer trace claims to the material actually consulted.

Question 407

A planned upgrade to a function-calling service has two requirements that must both pass: offer users a reusable parameterized instruction template from an MCP server; let an MCP client invoke a business capability through a standard server interface. Identify the two direct implementations. Choose TWO.

  1. Use the MCP stdio transport with properly framed protocol messages.
  2. Implement the appropriate MCP capability listing and metadata endpoints.
  3. Register a prompt template with its required arguments.
  4. Publish a properly described MCP tool and its input contract.
  5. Disable the capability at configuration or tool-registration level.

Explanation

Correct Answers

C:

To offer users a reusable parameterized instruction template from an MCP server as part of a design that must also let an MCP client invoke a business capability through a standard server interface, MCP prompts provide structured prompt content, but by themselves do not perform external business actions; this is why the action is one of the two required selections.

D:

To let an MCP client invoke a business capability through a standard server interface as part of a design that must also offer users a reusable parameterized instruction template from an MCP server, MCP tools represent callable operations with typed parameters; the server executes authorized behavior rather than only providing reference text; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal 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; the required outcomes are instead to offer users a reusable parameterized instruction template from an MCP server and to let an MCP client invoke a business capability through a standard server interface.

B:

This alternative serves the separate goal to help a client learn which callable and informational capabilities a server offers because discovery advertises tools, resources, or prompts so clients can use supported contracts rather than guessing names or arguments; the required outcomes are instead to offer users a reusable parameterized instruction template from an MCP server and to let an MCP client invoke a business capability through a standard server interface.

E:

This alternative serves the separate goal 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 required outcomes are instead to offer users a reusable parameterized instruction template from an MCP server and to let an MCP client invoke a business capability through a standard server interface.

Question 408

A production readiness review of a Claude inference cost review finds that the team cannot yet minimize average model cost when most requests are easy but some require deeper reasoning or deliver moderately complex development assistance with balanced quality, cost, and latency. Which paired changes directly remedy the two gaps?

  1. Perform both steps: (1) Route simple requests to a cheaper evaluated tier and escalate difficult ones; (2) model the response as conditioned token generation.
  2. Perform both steps: (1) Include several carefully selected and diverse demonstrations; (2) evaluate a sonnet-family model against a realistic task set.
  3. Perform both steps: (1) Include several carefully selected and diverse demonstrations; (2) model the response as conditioned token generation.
  4. Perform both steps: (1) Route simple requests to a cheaper evaluated tier and escalate difficult ones; (2) evaluate a sonnet-family model against a realistic task set.

Explanation

Correct Answer

D:

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

Incorrect Answers

A:

The first step is appropriate for 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 other step instead aims 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, which does not meet the second requirement to deliver moderately complex development assistance with balanced quality, cost, and latency.

B:

The second step meets the requirement 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; the first step would only help to reduce inconsistent labeling across nuanced examples because multiple examples communicate decision boundaries and desired formatting, although irrelevant or misleading demonstrations can bias the model, leaving the separate requirement to minimize average model cost when most requests are easy but some require deeper reasoning unmet.

C:

Both steps target different results—reduce inconsistent labeling across nuanced examples and explain why language-model output is generated step by step rather than fetched from a fixed response table—because multiple examples communicate decision boundaries and desired formatting, although irrelevant or misleading demonstrations can bias the model and autoregressive decoding selects subsequent tokens based on supplied context and prior output, which creates flexible but non-guaranteed wording; the required capabilities are instead to minimize average model cost when most requests are easy but some require deeper reasoning and to deliver moderately complex development assistance with balanced quality, cost, and latency.

Question 409

An end-to-end test for a structured output service checks whether it can keep only evidence that matters to the question when retrieval returns hundreds of documents and provide a document's necessary meaning without disclosing irrelevant personal identifiers. Which plan should be approved to satisfy both checks?

  1. Perform both steps: (1) Mark untrusted quoted material with explicit boundaries and role context; (2) minimize or redact sensitive fields before constructing context.
  2. Perform both steps: (1) Rank and select relevant passages before building the model context; (2) validate parsed output against the application's declared schema.
  3. Perform both steps: (1) Rank and select relevant passages before building the model context; (2) minimize or redact sensitive fields before constructing context.
  4. Perform both steps: (1) Mark untrusted quoted material with explicit boundaries and role context; (2) validate parsed output against the application's declared schema.

Explanation

Correct Answer

C:

The first change enables the team to keep only evidence that matters to the question when retrieval returns hundreds of documents because relevance filtering reduces distracting information and token usage; dumping every retrieved page can degrade grounding and exceed limits; the second addresses the separate need 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.

Incorrect Answers

A:

The second step meets the requirement 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; the first step would only help 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, leaving the separate requirement to keep only evidence that matters to the question when retrieval returns hundreds of documents unmet.

B:

The first step is appropriate for the requirement to keep only evidence that matters to the question when retrieval returns hundreds of documents because relevance filtering reduces distracting information and token usage; dumping every retrieved page can degrade grounding and exceed limits; the other step instead aims 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, which does not meet the second requirement to provide a document's necessary meaning without disclosing irrelevant personal identifiers.

D:

Both steps target different results—distinguish a user's instructions from a quoted document containing imperatives and reject model output missing a field that a downstream service requires—because delimiters clarify that imported content is data to analyze, not a new authority to change tools or objectives and parsing proves a string is legal JSON, but schema validation checks required keys, types, and structural constraints; the required capabilities are instead to keep only evidence that matters to the question when retrieval returns hundreds of documents and to provide a document's necessary meaning without disclosing irrelevant personal identifiers.

Question 410

A design review for a high-volume Messages API gateway asks for support to process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace, together with a way to avoid assuming a structured SDK response is a plain string. Select the two appropriate changes. Choose TWO.

  1. Submit independent requests through the Message Batches API.
  2. Enable streaming and consume server-sent events in order.
  3. Inspect response.content blocks and metadata through the SDK's typed representation.
  4. Attach the PDF using the supported document content form.
  5. Cache an eligible unchanged prefix with cache_control.

Explanation

Correct Answers

A:

To process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace as part of a design that must also avoid assuming a structured SDK response is a plain string, batch processing is suited to deferred work with eventual result collection and is not a substitute for an interactive low-latency chat endpoint; this is why the action is one of the two required selections.

C:

To avoid assuming a structured SDK response is a plain string as part of a design that must also process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace, the SDK exposes block types, stop reason, and usage separately; naïve string concatenation can lose tool requests or other content; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal 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; the required outcomes are instead to process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace and to avoid assuming a structured SDK response is a plain string.

D:

This alternative serves the separate goal 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 required outcomes are instead to process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace and to avoid assuming a structured SDK response is a plain string.

E:

This alternative serves the separate goal to reuse a long stable instruction or document prefix over repeated requests because prompt caching reduces repeated input processing when the prefix matches; changes before the cache boundary can prevent a hit; the required outcomes are instead to process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace and to avoid assuming a structured SDK response is a plain string.

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