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

Question 490

Two acceptance tests block an enterprise MCP client: one requires the ability to reduce context bloat caused by a tool returning a thousand irrelevant fields; the other requires the ability to prevent two similarly named lookup tools from being confused. Which plan clears both tests?

  1. Perform both steps: (1) Return a concise task-relevant projection from the tool handler; (2) configure the supported tool_choice behavior for the request.
  2. Perform both steps: (1) Configure the built-in capability instead of recreating it as a local handler; (2) configure the supported tool_choice behavior for the request.
  3. Perform both steps: (1) Return a concise task-relevant projection from the tool handler; (2) describe each tool's purpose, required inputs, and limitations clearly.
  4. Perform both steps: (1) Configure the built-in capability instead of recreating it as a local handler; (2) describe each tool's purpose, required inputs, and limitations clearly.

Explanation

Correct Answer

C:

The first change enables the team to reduce context bloat caused by a tool returning a thousand irrelevant fields because tool output is subsequently consumed as model context; minimizing it reduces both token cost and distractions; the second addresses the separate need 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.

Incorrect Answers

A:

The first step is appropriate for the requirement to reduce context bloat caused by a tool returning a thousand irrelevant fields because tool output is subsequently consumed as model context; minimizing it reduces both token cost and distractions; the other step instead aims 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, which does not meet the second requirement to prevent two similarly named lookup tools from being confused.

B:

Both steps target different results—obtain a capability already provided as a supported Anthropic server tool and require or restrict tool use for a specific turn when the API supports that control—because provider tools simplify execution ownership, though availability, cost, and data handling still require assessment and tool-selection controls influence whether Claude may call tools, but cannot grant permissions to the underlying systems; the required capabilities are instead to reduce context bloat caused by a tool returning a thousand irrelevant fields and to prevent two similarly named lookup tools from being confused.

D:

The second step meets the requirement 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; the first step would only help 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, leaving the separate requirement to reduce context bloat caused by a tool returning a thousand irrelevant fields unmet.

Question 491

A change request for a tool-using incident triage agent combines two needs: block an unsafe shell or file operation before a tool executes, and deliver intermediate agent events to the client as they occur. Which implementation pair addresses both, not just one?

  1. Perform both steps: (1) Give an agent a bounded objective and a tool-selection loop; (2) record stage-level traces and intermediate validation outcomes.
  2. Perform both steps: (1) Give an agent a bounded objective and a tool-selection loop; (2) consume the agent runtime's streamed event sequence.
  3. Perform both steps: (1) Add a deterministic pre-execution hook for the sensitive operation; (2) record stage-level traces and intermediate validation outcomes.
  4. Perform both steps: (1) Add a deterministic pre-execution hook for the sensitive operation; (2) consume the agent runtime's streamed event sequence.

Explanation

Correct Answer

D:

The first change enables the team to block an unsafe shell or file operation before a tool executes because a pre-tool boundary can reject a forbidden action independently of model judgment; enforcement must occur before side effects happen; the second addresses the separate need to deliver intermediate agent events to the client as they occur because event-driven consumption lets the application display progress and inspect tool actions without waiting for the entire multi-step run to finish.

Incorrect Answers

A:

Both steps target different results—pursue an open-ended investigation where the next action depends on intermediate evidence and pinpoint which known workflow stage failed when the final artifact is incomplete—because agentic control lets the model choose among permitted steps as observations arrive; budgets and termination conditions still bound its autonomy and deterministic stages are operationally useful when their boundaries are observable; a final answer alone cannot reveal which step produced the fault; the required capabilities are instead to block an unsafe shell or file operation before a tool executes and to deliver intermediate agent events to the client as they occur.

B:

The second step meets the requirement to deliver intermediate agent events to the client as they occur because event-driven consumption lets the application display progress and inspect tool actions without waiting for the entire multi-step run to finish; the first step would only help to pursue an open-ended investigation where the next action depends on intermediate evidence because agentic control lets the model choose among permitted steps as observations arrive; budgets and termination conditions still bound its autonomy, leaving the separate requirement to block an unsafe shell or file operation before a tool executes unmet.

C:

The first step is appropriate for the requirement to block an unsafe shell or file operation before a tool executes because a pre-tool boundary can reject a forbidden action independently of model judgment; enforcement must occur before side effects happen; the other step instead aims to pinpoint which known workflow stage failed when the final artifact is incomplete because deterministic stages are operationally useful when their boundaries are observable; a final answer alone cannot reveal which step produced the fault, which does not meet the second requirement to deliver intermediate agent events to the client as they occur.

Question 492

An architecture decision for a TypeScript Claude integration must support show generated text progressively instead of waiting for the full response and handle a response containing reasoning-related blocks without confusing them with ordinary final text. Which option gives a complete rather than partial solution?

  1. Perform both steps: (1) Enable streaming and consume server-sent events in order; (2) use the provider-specific endpoint, authentication, and request conventions.
  2. Perform both steps: (1) Configure the max_tokens request parameter appropriately; (2) parse response content by block type and follow current thinking-field rules.
  3. Perform both steps: (1) Configure the max_tokens request parameter appropriately; (2) use the provider-specific endpoint, authentication, and request conventions.
  4. Perform both steps: (1) Enable streaming and consume server-sent events in order; (2) parse response content by block type and follow current thinking-field rules.

Explanation

Correct Answer

D:

The first change enables the team 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 second addresses the separate need to handle a response containing reasoning-related blocks without confusing them with ordinary final text because structured content may contain distinct block types and signatures; a parser that assumes only plain text can discard important protocol data.

Incorrect Answers

A:

The first step is appropriate for the requirement 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 other step instead aims to support Claude models accessed through different supported cloud offerings because Claude API, Bedrock, and Vertex-style integrations are not interchangeable URLs; host authentication and service wrappers differ, which does not meet the second requirement to handle a response containing reasoning-related blocks without confusing them with ordinary final text.

B:

The second step meets the requirement to handle a response containing reasoning-related blocks without confusing them with ordinary final text because structured content may contain distinct block types and signatures; a parser that assumes only plain text can discard important protocol data; the first step would only help to cap the maximum output generated by a Messages API request because a generation limit controls maximum output length, not total cost or correctness; too low a value can truncate useful answers, leaving the separate requirement to show generated text progressively instead of waiting for the full response unmet.

C:

Both steps target different results—cap the maximum output generated by a Messages API request and support Claude models accessed through different supported cloud offerings—because a generation limit controls maximum output length, not total cost or correctness; too low a value can truncate useful answers and Claude API, Bedrock, and Vertex-style integrations are not interchangeable URLs; host authentication and service wrappers differ; the required capabilities are instead to show generated text progressively instead of waiting for the full response and to handle a response containing reasoning-related blocks without confusing them with ordinary final text.

Question 493

Two approval criteria are still open for a structured output service: the team must maintain label semantics when a few-shot prompt contains dialogue and require that a generated report have a fixed set of sections. Which two implementation actions satisfy them? Choose TWO.

  1. Use properly labeled example inputs and outputs instead of mixing speakers.
  2. Put stable application constraints in the system instruction field.
  3. Name each mandatory field or section and provide formatting constraints.
  4. Minimize or redact sensitive fields before constructing context.
  5. Instruct the application to request clarification for unresolved high-impact ambiguity.

Explanation

Correct Answers

A:

To maintain label semantics when a few-shot prompt contains dialogue as part of a design that must also require that a generated report have a fixed set of sections, correct role boundaries keep demonstrations interpretable and prevent an example answer from looking like a live instruction; this is why the action is one of the two required selections.

C:

To require that a generated report have a fixed set of sections as part of a design that must also maintain label semantics when a few-shot prompt contains dialogue, concrete desired structure is easier to verify than a vague instruction to be professional or comprehensive; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal to apply the same compliance restrictions across many different end-user requests because high-priority application instructions should not be delivered as ordinary user content where they compete with user questions and document text; the required outcomes are instead to maintain label semantics when a few-shot prompt contains dialogue and to require that a generated report have a fixed set of sections.

D:

This alternative serves the separate goal 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 required outcomes are instead to maintain label semantics when a few-shot prompt contains dialogue and to require that a generated report have a fixed set of sections.

E:

This alternative serves the separate goal 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; the required outcomes are instead to maintain label semantics when a few-shot prompt contains dialogue and to require that a generated report have a fixed set of sections.

Question 494

A production readiness review of a safety-sensitive Claude application finds that the team cannot yet stop a model-requested webhook from sending sensitive case text to an unapproved host or stop an authenticated user from reading another tenant's records via a tool. Which paired changes directly remedy the two gaps?

  1. Perform both steps: (1) Enforce outbound destination allowlists at the tool execution layer; (2) apply an input-side policy gate and route flagged cases to a safe path.
  2. Perform both steps: (1) Treat retrieved content as untrusted and prevent its instructions from controlling tools; (2) apply an input-side policy gate and route flagged cases to a safe path.
  3. Perform both steps: (1) Enforce outbound destination allowlists at the tool execution layer; (2) check resource-level authorization for every sensitive tool request.
  4. Perform both steps: (1) Treat retrieved content as untrusted and prevent its instructions from controlling tools; (2) check resource-level authorization for every sensitive tool request.

Explanation

Correct Answer

C:

The first change enables the team to stop a model-requested webhook from sending sensitive case text to an unapproved host because network restrictions prevent data egress even if injected instructions convince a model to request the call; the second addresses the separate need 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.

Incorrect Answers

A:

The first step is appropriate for the requirement to stop a model-requested webhook from sending sensitive case text to an unapproved host because network restrictions prevent data egress even if injected instructions convince a model to request the call; the other step instead aims to identify prohibited requests before an automated agent invokes business tools because early filtering reduces inappropriate work, but later checks remain necessary because tool outputs can also introduce risks, which does not meet the second requirement to stop an authenticated user from reading another tenant's records via a tool.

B:

Both steps target different results—resist instructions embedded in a retrieved support ticket that demand secret disclosure and identify prohibited requests before an automated agent invokes business tools—because source material is data rather than authority; enforcing tool permissions and separating roles limits an attacker's ability to redirect execution and early filtering reduces inappropriate work, but later checks remain necessary because tool outputs can also introduce risks; the required capabilities are instead to stop a model-requested webhook from sending sensitive case text to an unapproved host and to stop an authenticated user from reading another tenant's records via a tool.

D:

The second step meets the requirement 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; the first step would only help to resist instructions embedded in a retrieved support ticket that demand secret disclosure because source material is data rather than authority; enforcing tool permissions and separating roles limits an attacker's ability to redirect execution, leaving the separate requirement to stop a model-requested webhook from sending sensitive case text to an unapproved host unmet.

Question 495

An architecture review of an autonomous repository maintenance job asks how to run the same retrieval, validation, and publishing stages in an approved order for every request. Which action is the best fit?

  1. Encode a deterministic workflow with explicit transitions between stages.
  2. Fan out to role-specific reviewers and aggregate disagreements.
  3. Run side-effect-free tool calls concurrently when their inputs are independent.
  4. Persist checkpoints for tool outputs and accepted decisions.

Explanation

Correct Answer

A:

To run the same retrieval, validation, and publishing stages in an approved order for every request in this autonomous repository maintenance job, known control flow belongs in application code, allowing each stage to be tested and audited without asking a model to improvise the sequence; the proposed implementation directly supplies that capability.

Incorrect Answers

B:

The proposed alternative helps to have independent specialized reviewers inspect the same proposal from different perspectives because separating reviews allows conflicting evidence to surface before the supervisor combines findings; a single sequential review may miss independent critiques; that mechanism does not meet the different requirement to run the same retrieval, validation, and publishing stages in an approved order for every request.

C:

The proposed alternative helps 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; that mechanism does not meet the different requirement to run the same retrieval, validation, and publishing stages in an approved order for every request.

D:

The proposed alternative helps 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; that mechanism does not meet the different requirement to run the same retrieval, validation, and publishing stages in an approved order for every request.

Question 496

A production readiness review of a model-family migration plan finds that the team cannot yet choose between writing raw REST requests and using an official client library or reject incomplete or malformed response data before business logic consumes it. Which paired changes directly remedy the two gaps?

  1. Perform both steps: (1) Prefer a maintained SDK when its typed methods and retry behavior fit the integration; (2) compare both candidates on identical representative eval cases.
  2. Perform both steps: (1) Call the documented HTTPS endpoint with explicit headers and JSON serialization; (2) parse structured payloads with explicit failure handling.
  3. Perform both steps: (1) Prefer a maintained SDK when its typed methods and retry behavior fit the integration; (2) parse structured payloads with explicit failure handling.
  4. Perform both steps: (1) Call the documented HTTPS endpoint with explicit headers and JSON serialization; (2) compare both candidates on identical representative eval cases.

Explanation

Correct Answer

C:

The first change enables the team to choose between writing raw REST requests and using an official client library because sDKs wrap the same underlying service API and can simplify serialization, error types, and streaming without removing protocol constraints; the second addresses the separate need to reject incomplete or malformed response data before business logic consumes it because JSON parsing validates syntax, while separate schema and semantic checks verify types and permitted values.

Incorrect Answers

A:

The first step is appropriate for the requirement to choose between writing raw REST requests and using an official client library because sDKs wrap the same underlying service API and can simplify serialization, error types, and streaming without removing protocol constraints; the other step instead aims 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, which does not meet the second requirement to reject incomplete or malformed response data before business logic consumes it.

B:

The second step meets the requirement to reject incomplete or malformed response data before business logic consumes it because JSON parsing validates syntax, while separate schema and semantic checks verify types and permitted values; the first step would only help 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, leaving the separate requirement to choose between writing raw REST requests and using an official client library unmet.

D:

Both steps target different results—work in an environment that lacks a compatible Claude SDK and choose between two supported model releases using evidence rather than reputation—because direct REST access remains possible when an SDK is unavailable, but the caller owns wire-format correctness and response parsing and holding inputs and scoring constant reveals quality and latency changes that generic model descriptions cannot settle; the required capabilities are instead to choose between writing raw REST requests and using an official client library and to reject incomplete or malformed response data before business logic consumes it.

Question 497

While planning a business workflow that calls Claude, the product owner specifies that it must set consistent developer-controlled behavior separately from untrusted user text. Which solution fulfills the requirement?

  1. Submit independent requests through the Message Batches API.
  2. Use the provider-specific endpoint, authentication, and request conventions.
  3. Cache an eligible unchanged prefix with cache_control.
  4. Send instructions using the request's top-level system field.

Explanation

Correct Answer

D:

To set consistent developer-controlled behavior separately from untrusted user text in this business workflow that calls Claude, the system field separates higher-priority application guidance from user-message content and should not be simulated by ordinary quoted text; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

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 set consistent developer-controlled behavior separately from untrusted user text.

B:

The proposed alternative helps to support Claude models accessed through different supported cloud offerings because Claude API, Bedrock, and Vertex-style integrations are not interchangeable URLs; host authentication and service wrappers differ; that mechanism does not meet the different requirement to set consistent developer-controlled behavior separately from untrusted user text.

C:

The proposed alternative helps 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; that mechanism does not meet the different requirement to set consistent developer-controlled behavior separately from untrusted user text.

Question 498

A team maintaining a context-rich document assistant has two different engineering requirements: (1) improve a prompt while preserving performance on previously solved cases, and (2) ask for missing essential parameters rather than inventing a consequential choice. Which TWO independent changes directly meet them? Choose TWO.

  1. Instruct the application to request clarification for unresolved high-impact ambiguity.
  2. State the task, audience, scope, and required deliverable explicitly.
  3. Revise one prompt component at a time against a regression evaluation set.
  4. Specify the forbidden content alongside an enforceable validation check.
  5. Hold evaluation inputs constant and compare prompt versions.

Explanation

Correct Answers

A:

To ask for missing essential parameters rather than inventing a consequential choice as part of a design that must also improve a prompt while preserving performance on previously solved cases, clarification reduces irreversible guesses when requirements do not uniquely determine a safe action; this is why the action is one of the two required selections.

C:

To improve a prompt while preserving performance on previously solved cases as part of a design that must also ask for missing essential parameters rather than inventing a consequential choice, controlled prompt iteration distinguishes genuine quality gains from regressions or overfitting to one attractive example; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal 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; the required outcomes are instead to improve a prompt while preserving performance on previously solved cases and to ask for missing essential parameters rather than inventing a consequential choice.

D:

This alternative serves the separate goal to avoid a prohibited output element such as confidential identifiers because negative prompt guidance signals the intended boundary, but a deterministic validator is needed where violating it has consequences; the required outcomes are instead to improve a prompt while preserving performance on previously solved cases and to ask for missing essential parameters rather than inventing a consequential choice.

E:

This alternative serves the separate goal 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; the required outcomes are instead to improve a prompt while preserving performance on previously solved cases and to ask for missing essential parameters rather than inventing a consequential choice.

Question 499

A team maintaining a latency-sensitive model gateway has two different engineering requirements: (1) explain why language-model output is generated step by step rather than fetched from a fixed response table, and (2) know why a long prompt plus a proposed response may exceed the model's accepted context. Which TWO independent changes directly meet them? Choose TWO.

  1. Iterate the SDK or HTTP event stream until its terminal event.
  2. Budget total context for instructions, history, tools, and output.
  3. Model the response as conditioned token generation.
  4. Start with a clear instruction and no demonstrations.
  5. Use a synchronous client with explicit timeout and error handling.

Explanation

Correct Answers

B:

To know why a long prompt plus a proposed response may exceed the model's accepted context as part of a design that must also explain why language-model output is generated step by step rather than fetched from a fixed response table, a context window bounds what can be processed in one request; large tool results consume it along with user messages; this is why the action is one of the two required selections.

C:

To explain why language-model output is generated step by step rather than fetched from a fixed response table as part of a design that must also know why a long prompt plus a proposed response may exceed the model's accepted context, autoregressive decoding selects subsequent tokens based on supplied context and prior output, which creates flexible but non-guaranteed wording; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to process partial model output as it is delivered over a streaming connection because streaming clients must handle both content deltas and final status rather than assuming the first chunk is the complete response; the required outcomes are instead to explain why language-model output is generated step by step rather than fetched from a fixed response table and to know why a long prompt plus a proposed response may exceed the model's accepted context.

D:

This alternative serves the separate goal 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; the required outcomes are instead to explain why language-model output is generated step by step rather than fetched from a fixed response table and to know why a long prompt plus a proposed response may exceed the model's accepted context.

E:

This alternative serves the separate goal to implement a low-volume command-line utility that handles one inference at a time because synchronous calls are simplest for strictly sequential work, where concurrency would add complexity without improving throughput; the required outcomes are instead to explain why language-model output is generated step by step rather than fetched from a fixed response table and to know why a long prompt plus a proposed response may exceed the model's accepted context.

Question 500

A design review for an MCP integration server asks for support to make a repeatable multi-step code-review methodology available to an agent, together with a way to remove an agent's access to an obsolete integration without rewriting all its task prompts. Select the two appropriate changes. Choose TWO.

  1. Return a concise task-relevant projection from the tool handler.
  2. Create a Skill containing the procedure and supporting instructions.
  3. Disable the capability at configuration or tool-registration level.
  4. Give each tool a timeout and controlled retry or failure result.
  5. Implement the appropriate MCP capability listing and metadata endpoints.

Explanation

Correct Answers

B:

To make a repeatable multi-step code-review methodology available to an agent as part of a design that must also remove an agent's access to an obsolete integration without rewriting all its task prompts, a Skill teaches how to perform a task, whereas a tool is the executable capability that performs an external operation; this is why the action is one of the two required selections.

C:

To remove an agent's access to an obsolete integration without rewriting all its task prompts as part of a design that must also make a repeatable multi-step code-review methodology available to an agent, actual registered capabilities define what may execute; changing descriptive prompt text alone does not revoke a previously available tool; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to reduce context bloat caused by a tool returning a thousand irrelevant fields because tool output is subsequently consumed as model context; minimizing it reduces both token cost and distractions; the required outcomes are instead to make a repeatable multi-step code-review methodology available to an agent and to remove an agent's access to an obsolete integration without rewriting all its task prompts.

D:

This alternative serves the separate goal to stop a slow external system from trapping an agent loop indefinitely because tool execution is a separate latency source; bounded calls prevent one dependency from exhausting the entire agent budget; the required outcomes are instead to make a repeatable multi-step code-review methodology available to an agent and to remove an agent's access to an obsolete integration without rewriting all its task prompts.

E:

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 make a repeatable multi-step code-review methodology available to an agent and to remove an agent's access to an obsolete integration without rewriting all its task prompts.

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