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

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.

Question 411

A release check on a Claude API workload benchmark found two unsatisfied conditions: the service must trade answer latency and computation against solution quality on supported models, and it must allow supported models to vary internal reasoning effort according to task difficulty. Which complete engineering plan satisfies both?

  1. Perform both steps: (1) Select an available effort level after measuring task performance; (2) configure supported adaptive thinking behavior rather than forcing a fixed pattern.
  2. Perform both steps: (1) Select an available effort level after measuring task performance; (2) design for stochastic output and evaluate behavior over representative repeats.
  3. Perform both steps: (1) Route simple requests to a cheaper evaluated tier and escalate difficult ones; (2) configure supported adaptive thinking behavior rather than forcing a fixed pattern.
  4. Perform both steps: (1) Route simple requests to a cheaper evaluated tier and escalate difficult ones; (2) design for stochastic output and evaluate behavior over representative repeats.

Explanation

Correct Answer

A:

The first change enables the team to trade answer latency and computation against solution quality on supported models because reasoning effort is an inference-time tradeoff; lowering it may reduce costs or latency while harming difficult-case accuracy; the second addresses the separate need to allow supported models to vary internal reasoning effort according to task difficulty because adaptive reasoning responds to problem complexity, but supported modes differ by model and release and should not be assumed universal.

Incorrect Answers

B:

The first step is appropriate for the requirement to trade answer latency and computation against solution quality on supported models because reasoning effort is an inference-time tradeoff; lowering it may reduce costs or latency while harming difficult-case accuracy; the other step instead aims to account for different plausible answers from the same input on repeated runs because sampling and model execution can produce variation; important correctness must be checked rather than assumed identical on every call, which does not meet the second requirement to allow supported models to vary internal reasoning effort according to task difficulty.

C:

The second step meets the requirement to allow supported models to vary internal reasoning effort according to task difficulty because adaptive reasoning responds to problem complexity, but supported modes differ by model and release and should not be assumed universal; the first step would only help 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, leaving the separate requirement to trade answer latency and computation against solution quality on supported models unmet.

D:

Both steps target different results—minimize average model cost when most requests are easy but some require deeper reasoning and account for different plausible answers from the same input on repeated runs—because cascading matches compute to task difficulty but requires a reliable escalation rule and measurement of misrouting and sampling and model execution can produce variation; important correctness must be checked rather than assumed identical on every call; the required capabilities are instead to trade answer latency and computation against solution quality on supported models and to allow supported models to vary internal reasoning effort according to task difficulty.

Question 412

A design review for an enterprise MCP client asks for support to execute a high-privilege enterprise action that must remain inside a corporate network, together with a way to make a repeatable multi-step code-review methodology available to an agent. Select the two appropriate changes. Choose TWO.

  1. Host a restricted client tool in the private application environment.
  2. Implement a narrowly scoped read-only tool handler.
  3. Implement the appropriate MCP capability listing and metadata endpoints.
  4. Use the MCP stdio transport with properly framed protocol messages.
  5. Create a Skill containing the procedure and supporting instructions.

Explanation

Correct Answers

A:

To execute a high-privilege enterprise action that must remain inside a corporate network as part of a design that must also make a repeatable multi-step code-review methodology available to an agent, a private handler provides local network and IAM controls that a generic provider-executed server tool may not possess; this is why the action is one of the two required selections.

E:

To make a repeatable multi-step code-review methodology available to an agent as part of a design that must also execute a high-privilege enterprise action that must remain inside a corporate network, 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.

Incorrect Answers

B:

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 execute a high-privilege enterprise action that must remain inside a corporate network and to make a repeatable multi-step code-review methodology available to an agent.

C:

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 execute a high-privilege enterprise action that must remain inside a corporate network and to make a repeatable multi-step code-review methodology available to an agent.

D:

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 execute a high-privilege enterprise action that must remain inside a corporate network and to make a repeatable multi-step code-review methodology available to an agent.

Question 413

While planning a long-context summarization workflow, the product owner specifies that it must block a technically well-formed refund record with an unauthorized amount. Which solution fulfills the requirement?

  1. Map or reject values not in the approved enumeration.
  2. State the task, audience, scope, and required deliverable explicitly.
  3. Apply domain-specific authorization and business rules after schema validation.
  4. Instruct the application to request clarification for unresolved high-impact ambiguity.

Explanation

Correct Answer

C:

To block a technically well-formed refund record with an unauthorized amount in this long-context summarization workflow, type correctness is not permission to act; amounts, account ownership, and policy limits need independent checks; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps 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; that mechanism does not meet the different requirement to block a technically well-formed refund record with an unauthorized amount.

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 block a technically well-formed refund record with an unauthorized amount.

D:

The proposed alternative helps 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; that mechanism does not meet the different requirement to block a technically well-formed refund record with an unauthorized amount.

Question 414

A team maintaining a Python Claude API backend has two different engineering requirements: (1) avoid assuming a structured SDK response is a plain string, and (2) ask Claude to interpret a supported image supplied as part of a request. Which TWO independent changes directly meet them? Choose TWO.

  1. Inspect response.content blocks and metadata through the SDK's typed representation.
  2. Use the provider-specific endpoint, authentication, and request conventions.
  3. Parse response content by block type and follow current thinking-field rules.
  4. Include a typed image content block in the message.
  5. Configure the max_tokens request parameter appropriately.

Explanation

Correct Answers

A:

To avoid assuming a structured SDK response is a plain string as part of a design that must also ask Claude to interpret a supported image supplied as part of a request, 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.

D:

To ask Claude to interpret a supported image supplied as part of a request as part of a design that must also avoid assuming a structured SDK response is a plain string, multimodal input must use the API's image representation and supported sourcing; merely writing a filename in text does not transfer pixels; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal 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; the required outcomes are instead to avoid assuming a structured SDK response is a plain string and to ask Claude to interpret a supported image supplied as part of a request.

C:

This alternative serves the separate goal to handle a response containing reasoning-related blocks without confusing them with ordinary final text because structured content may contain distinct block types and signatures; a parser that assumes only plain text can discard important protocol data; the required outcomes are instead to avoid assuming a structured SDK response is a plain string and to ask Claude to interpret a supported image supplied as part of a request.

E:

This alternative serves the separate goal 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; the required outcomes are instead to avoid assuming a structured SDK response is a plain string and to ask Claude to interpret a supported image supplied as part of a request.

Question 415

A team maintaining a hosted agent rollout must meet 2 separate acceptance criteria: (1) keep orchestration runtime and internal tool handlers inside company-managed infrastructure; (2) run the same retrieval, validation, and publishing stages in an approved order for every request. Which two implementation actions directly satisfy the stated requirements? Choose TWO.

  1. Chain dependent operations serially with explicit input and output contracts.
  2. Add a deterministic pre-execution hook for the sensitive operation.
  3. Prefer a simple API call over a general-purpose multi-agent framework.
  4. Encode a deterministic workflow with explicit transitions between stages.
  5. Deploy the agent runner in the organization's own environment.

Explanation

Correct Answers

D:

The test to run the same retrieval, validation, and publishing stages in an approved order for every request is met because known control flow belongs in application code, allowing each stage to be tested and audited without asking a model to improvise the sequence; the remaining selection covers the separate need to keep orchestration runtime and internal tool handlers inside company-managed infrastructure.

E:

The test to keep orchestration runtime and internal tool handlers inside company-managed infrastructure is met because self-hosting puts tool execution, networking, and operational controls under the application's responsibility, subject to its own deployment constraints; the remaining selection covers the separate need to run the same retrieval, validation, and publishing stages in an approved order for every request.

Incorrect Answers

A:

The action is useful for the separate capability to ensure each later tool receives a validated artifact from its preceding stage because later steps cannot safely start until upstream data exists; passing validated outputs prevents races and malformed downstream input; however, the required test outcomes are to run the same retrieval, validation, and publishing stages in an approved order for every request and to keep orchestration runtime and internal tool handlers inside company-managed infrastructure.

B:

The action is useful for the separate capability 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; however, the required test outcomes are to run the same retrieval, validation, and publishing stages in an approved order for every request and to keep orchestration runtime and internal tool handlers inside company-managed infrastructure.

C:

The action is useful for the separate capability to avoid adding orchestration infrastructure to a single request-and-response feature because frameworks are useful for genuinely branching, long-lived execution, but increase complexity when no orchestration problem exists; however, the required test outcomes are to run the same retrieval, validation, and publishing stages in an approved order for every request and to keep orchestration runtime and internal tool handlers inside company-managed infrastructure.

Question 416

To ship a production prompt pipeline, the application must identify when a long agent discussion begins solving a different problem than the user approved and stop verbose tool payloads from consuming most of a long-running agent's context. Which pair of listed actions is necessary for those stated capabilities? Choose TWO.

  1. Recheck current plans against a stored objective and constraints.
  2. Summarize prior decisions and preserve unresolved constraints.
  3. Validate parsed output against the application's declared schema.
  4. Retain essential fields and discard irrelevant tool output from active context.
  5. Mark untrusted quoted material with explicit boundaries and role context.

Explanation

Correct Answers

A:

To identify when a long agent discussion begins solving a different problem than the user approved as part of a design that must also stop verbose tool payloads from consuming most of a long-running agent's context, explicit objective comparison detects drift before tool actions diverge from the original task; extra history alone cannot guarantee alignment; this is why the action is one of the two required selections.

D:

To stop verbose tool payloads from consuming most of a long-running agent's context as part of a design that must also identify when a long agent discussion begins solving a different problem than the user approved, 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.

Incorrect Answers

B:

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 identify when a long agent discussion begins solving a different problem than the user approved and to stop verbose tool payloads from consuming most of a long-running agent's context.

C:

This alternative serves the separate goal 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; the required outcomes are instead to identify when a long agent discussion begins solving a different problem than the user approved and to stop verbose tool payloads from consuming most of a long-running agent's context.

E:

This alternative serves the separate goal 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; the required outcomes are instead to identify when a long agent discussion begins solving a different problem than the user approved and to stop verbose tool payloads from consuming most of a long-running agent's context.

Question 417

To ship a Claude API workload benchmark, the application must allocate additional reasoning effort to a complex multistep decision where supported and favor more consistent word choices in a constrained transformation task when supported. Which pair of listed actions is necessary for those stated capabilities? Choose TWO.

  1. Budget total context for instructions, history, tools, and output.
  2. Provide one accurate input-output demonstration.
  3. Use the model's documented thinking capability within the latency budget.
  4. Tune sampling for lower variance while retaining output validation.
  5. Evaluate a Sonnet-family model against a realistic task set.

Explanation

Correct Answers

C:

To allocate additional reasoning effort to a complex multistep decision where supported as part of a design that must also favor more consistent word choices in a constrained transformation task when supported, reasoning settings can change token consumption and response latency and should be evaluated for the particular workload; this is why the action is one of the two required selections.

D:

To favor more consistent word choices in a constrained transformation task when supported as part of a design that must also allocate additional reasoning effort to a complex multistep decision where supported, temperature influences token sampling; it cannot by itself guarantee truth, policy compliance, or reproducible structured output; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to know why a long prompt plus a proposed response may exceed the model's accepted context because a context window bounds what can be processed in one request; large tool results consume it along with user messages; the required outcomes are instead to allocate additional reasoning effort to a complex multistep decision where supported and to favor more consistent word choices in a constrained transformation task when supported.

B:

This alternative serves the separate goal to teach a distinctive output format with one representative example because a single example illustrates structure and conventions, but it may not reveal how to handle difficult edge cases; the required outcomes are instead to allocate additional reasoning effort to a complex multistep decision where supported and to favor more consistent word choices in a constrained transformation task when supported.

E:

This alternative serves the separate goal 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 required outcomes are instead to allocate additional reasoning effort to a complex multistep decision where supported and to favor more consistent word choices in a constrained transformation task when supported.

Question 418

The technical owner of an internal coding-assistant workflow has to recover a multi-hour agent workflow after an infrastructure interruption. A separate requirement is to avoid adding orchestration infrastructure to a single request-and-response feature. Which two-part remediation covers both?

  1. Perform both steps: (1) Run side-effect-free tool calls concurrently when their inputs are independent; (2) prefer a simple api call over a general-purpose multi-agent framework.
  2. Perform both steps: (1) Run side-effect-free tool calls concurrently when their inputs are independent; (2) run independent branches concurrently and merge their outputs afterward.
  3. Perform both steps: (1) Persist checkpoints for tool outputs and accepted decisions; (2) prefer a simple api call over a general-purpose multi-agent framework.
  4. Perform both steps: (1) Persist checkpoints for tool outputs and accepted decisions; (2) run independent branches concurrently and merge their outputs afterward.

Explanation

Correct Answer

C:

The first change enables the team 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; the second addresses the separate need to avoid adding orchestration infrastructure to a single request-and-response feature because frameworks are useful for genuinely branching, long-lived execution, but increase complexity when no orchestration problem exists.

Incorrect Answers

A:

The second step meets the requirement to avoid adding orchestration infrastructure to a single request-and-response feature because frameworks are useful for genuinely branching, long-lived execution, but increase complexity when no orchestration problem exists; the first step would only help 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, leaving the separate requirement to recover a multi-hour agent workflow after an infrastructure interruption unmet.

B:

Both steps target different results—speed up independent data lookups without causing write-order races and reduce elapsed time for independent extraction tasks that do not share mutable state—because read-only independent calls can safely overlap; mutating operations need explicit ordering or concurrency control and parallel orchestration shortens the critical path when calls have no dependencies, while the merger checks completeness before proceeding; the required capabilities are instead to recover a multi-hour agent workflow after an infrastructure interruption and to avoid adding orchestration infrastructure to a single request-and-response feature.

D:

The first step is appropriate for the requirement 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; the other step instead aims to reduce elapsed time for independent extraction tasks that do not share mutable state because parallel orchestration shortens the critical path when calls have no dependencies, while the merger checks completeness before proceeding, which does not meet the second requirement to avoid adding orchestration infrastructure to a single request-and-response feature.

Question 419

Two approval criteria are still open for a function-calling service: the team must launch a local MCP server as a subprocess managed by a compatible client and help a client learn which callable and informational capabilities a server offers. Which two implementation actions satisfy them? Choose TWO.

  1. Use the MCP stdio transport with properly framed protocol messages.
  2. Disable the capability at configuration or tool-registration level.
  3. Implement the appropriate MCP capability listing and metadata endpoints.
  4. Give each tool a timeout and controlled retry or failure result.
  5. Put an approval gate in the host-side write handler.

Explanation

Correct Answers

A:

To launch a local MCP server as a subprocess managed by a compatible client as part of a design that must also help a client learn which callable and informational capabilities a server offers, standard input and output suit local process integration, where protocol output must not be mixed with arbitrary logging noise; this is why the action is one of the two required selections.

C:

To help a client learn which callable and informational capabilities a server offers as part of a design that must also launch a local MCP server as a subprocess managed by a compatible client, discovery advertises tools, resources, or prompts so clients can use supported contracts rather than guessing names or arguments; this is why the action is one of the two required selections.

Incorrect Answers

B:

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 launch a local MCP server as a subprocess managed by a compatible client and to help a client learn which callable and informational capabilities a server offers.

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 launch a local MCP server as a subprocess managed by a compatible client and to help a client learn which callable and informational capabilities a server offers.

E:

This alternative serves the separate goal 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; the required outcomes are instead to launch a local MCP server as a subprocess managed by a compatible client and to help a client learn which callable and informational capabilities a server offers.

Question 420

For a Claude inference cost review, a design is acceptable only if it can identify why verbose generated reports cost more despite unchanged inputs while also being able to choose a cheaper model only when the workload-level economics improve. Which paired implementation is sufficient?

  1. Perform both steps: (1) Design for stochastic output and evaluate behavior over representative repeats; (2) compare quality-adjusted cost per accepted result across candidate models.
  2. Perform both steps: (1) Design for stochastic output and evaluate behavior over representative repeats; (2) alert on unusual per-job token and tool-call growth.
  3. Perform both steps: (1) Track output tokens separately from input tokens; (2) compare quality-adjusted cost per accepted result across candidate models.
  4. Perform both steps: (1) Track output tokens separately from input tokens; (2) alert on unusual per-job token and tool-call growth.

Explanation

Correct Answer

C:

The first change enables the team to identify why verbose generated reports cost more despite unchanged inputs because generation tokens are metered independently and can have different pricing, so response verbosity affects unit economics; the second addresses the separate need to choose a cheaper model only when the workload-level economics improve because a lower token price can be offset by retries, higher failure rates, or excessive output, so accepted-result cost is the useful measure.

Incorrect Answers

A:

The second step meets the requirement to choose a cheaper model only when the workload-level economics improve because a lower token price can be offset by retries, higher failure rates, or excessive output, so accepted-result cost is the useful measure; the first step would only help to account for different plausible answers from the same input on repeated runs because sampling and model execution can produce variation; important correctness must be checked rather than assumed identical on every call, leaving the separate requirement to identify why verbose generated reports cost more despite unchanged inputs unmet.

B:

Both steps target different results—account for different plausible answers from the same input on repeated runs and detect a looping agent that suddenly multiplies token consumption—because sampling and model execution can produce variation; important correctness must be checked rather than assumed identical on every call and monitoring consumption across an entire agent run catches runaway workflows that per-request logs may not reveal; the required capabilities are instead to identify why verbose generated reports cost more despite unchanged inputs and to choose a cheaper model only when the workload-level economics improve.

D:

The first step is appropriate for the requirement to identify why verbose generated reports cost more despite unchanged inputs because generation tokens are metered independently and can have different pricing, so response verbosity affects unit economics; the other step instead aims to detect a looping agent that suddenly multiplies token consumption because monitoring consumption across an entire agent run catches runaway workflows that per-request logs may not reveal, which does not meet the second requirement to choose a cheaper model only when the workload-level economics improve.

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