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

Question 380

A team maintaining an incident involving failed Claude completions has two different engineering requirements: (1) identify why a request is rejected before any inference happens, and (2) locate which component of a multi-tool answer introduced the wrong value. Which TWO independent changes directly meet them? Choose TWO.

  1. Examine correlated request, tool, and transformation traces stage by stage.
  2. Trace the API credential and access permissions for the 401 or 403 response.
  3. Compare versioned prompts and representative eval cases against model responses.
  4. Inspect stop_reason and output limits before changing the parser.
  5. Read the 400 error details and validate the request payload.

Explanation

Correct Answers

A:

To locate which component of a multi-tool answer introduced the wrong value as part of a design that must also identify why a request is rejected before any inference happens, structured traces reveal whether retrieval, tool execution, postprocessing, or generation caused the defect; reading only the final text cannot isolate it; this is why the action is one of the two required selections.

B:

To identify why a request is rejected before any inference happens as part of a design that must also locate which component of a multi-tool answer introduced the wrong value, unauthorized access fails at the transport or authorization boundary, not because Claude misunderstood the prompt; this is why the action is one of the two required selections.

Incorrect Answers

C:

This alternative serves the separate goal to distinguish a syntactically valid but low-quality answer from a transport outage because a successful HTTP call only proves the protocol worked; quality regressions require output-level evidence and controlled comparisons; the required outcomes are instead to identify why a request is rejected before any inference happens and to locate which component of a multi-tool answer introduced the wrong value.

D:

This alternative serves the separate goal to find why a JSON record unexpectedly ends midway through a field because a max_tokens stop indicates incomplete generation; the parser may be working correctly against a response that was never finished; the required outcomes are instead to identify why a request is rejected before any inference happens and to locate which component of a multi-tool answer introduced the wrong value.

E:

This alternative serves the separate goal to find a request schema error instead of repeatedly changing the system prompt because an invalid API field or incompatible parameter cannot be fixed by natural-language instructions within the malformed request; the required outcomes are instead to identify why a request is rejected before any inference happens and to locate which component of a multi-tool answer introduced the wrong value.

Question 381

An end-to-end test for a multi-tenant support application checks whether it can cap the maximum output generated by a Messages API request and show generated text progressively instead of waiting for the full response. Which plan should be approved to satisfy both checks?

  1. Perform both steps: (1) Include a typed image content block in the message; (2) assemble messages with correct user and assistant roles.
  2. Perform both steps: (1) Configure the max_tokens request parameter appropriately; (2) enable streaming and consume server-sent events in order.
  3. Perform both steps: (1) Configure the max_tokens request parameter appropriately; (2) assemble messages with correct user and assistant roles.
  4. Perform both steps: (1) Include a typed image content block in the message; (2) enable streaming and consume server-sent events in order.

Explanation

Correct Answer

B:

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

Incorrect Answers

A:

Both steps target different results—ask Claude to interpret a supported image supplied as part of a request and distinguish an end user's request from previous assistant turns in a dialogue—because multimodal input must use the API's image representation and supported sourcing; merely writing a filename in text does not transfer pixels and conversation structure influences how the model interprets dialogue and tool history; flattening roles into one text string loses that structure; the required capabilities are instead to cap the maximum output generated by a Messages API request and to show generated text progressively instead of waiting for the full response.

C:

The first step is appropriate for the requirement 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 other step instead aims to distinguish an end user's request from previous assistant turns in a dialogue because conversation structure influences how the model interprets dialogue and tool history; flattening roles into one text string loses that structure, which does not meet the second requirement to show generated text progressively instead of waiting for the full response.

D:

The second step meets 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 first step would only help to ask Claude to interpret a supported image supplied as part of a request because multimodal input must use the API's image representation and supported sourcing; merely writing a filename in text does not transfer pixels, leaving the separate requirement to cap the maximum output generated by a Messages API request unmet.

Question 382

A team maintaining a classification service must meet 2 separate acceptance criteria: (1) estimate model usage from encoded text rather than counting words; (2) reject incomplete or malformed response data before business logic consumes it. Which two implementation actions directly satisfy the stated requirements? Choose TWO.

  1. Tune sampling for lower variance while retaining output validation.
  2. Measure or count input and output tokens with the supported tokenizer or API.
  3. Use a WebSocket protocol only when the target endpoint actually offers one.
  4. Parse structured payloads with explicit failure handling.
  5. Evaluate Message Batches instead of synchronous requests.

Explanation

Correct Answers

B:

The test to estimate model usage from encoded text rather than counting words is met because billing and context consumption track tokens, which do not map one-to-one to English words or characters; the remaining selection covers the separate need to reject incomplete or malformed response data before business logic consumes it.

D:

The test to reject incomplete or malformed response data before business logic consumes it is met because JSON parsing validates syntax, while separate schema and semantic checks verify types and permitted values; the remaining selection covers the separate need to estimate model usage from encoded text rather than counting words.

Incorrect Answers

A:

The action is useful for the separate capability to favor more consistent word choices in a constrained transformation task when supported because temperature influences token sampling; it cannot by itself guarantee truth, policy compliance, or reproducible structured output; however, the required test outcomes are to estimate model usage from encoded text rather than counting words and to reject incomplete or malformed response data before business logic consumes it.

C:

The action is useful for the separate capability to build bidirectional persistent event communication where the chosen platform supports it because webSockets can carry two-way events over a long-lived connection; they are not a drop-in replacement for every HTTP or SSE endpoint; however, the required test outcomes are to estimate model usage from encoded text rather than counting words and to reject incomplete or malformed response data before business logic consumes it.

E:

The action is useful for the separate capability to cut cost for a nightly noninteractive summarization workload because asynchronous batches can offer discounted processing when the application can tolerate deferred completion and result collection; however, the required test outcomes are to estimate model usage from encoded text rather than counting words and to reject incomplete or malformed response data before business logic consumes it.

Question 383

An end-to-end test for a function-calling service checks whether it can share one integration with several compatible AI clients or agent runtimes and obtain a capability already provided as a supported Anthropic server tool. Which plan should be approved to satisfy both checks?

  1. Perform both steps: (1) Package the connector behind an MCP server; (2) implement the appropriate mcp capability listing and metadata endpoints.
  2. Perform both steps: (1) Return a concise task-relevant projection from the tool handler; (2) implement the appropriate mcp capability listing and metadata endpoints.
  3. Perform both steps: (1) Return a concise task-relevant projection from the tool handler; (2) configure the built-in capability instead of recreating it as a local handler.
  4. Perform both steps: (1) Package the connector behind an MCP server; (2) configure the built-in capability instead of recreating it as a local handler.

Explanation

Correct Answer

D:

The first change enables the team to share one integration with several compatible AI clients or agent runtimes because MCP standardizes capability exposure across clients, reducing duplicate integration logic compared with proprietary tool schemas everywhere; the second addresses the separate need 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.

Incorrect Answers

A:

The first step is appropriate for the requirement to share one integration with several compatible AI clients or agent runtimes because MCP standardizes capability exposure across clients, reducing duplicate integration logic compared with proprietary tool schemas everywhere; the other step instead aims 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, which does not meet the second requirement to obtain a capability already provided as a supported Anthropic server tool.

B:

Both steps target different results—reduce context bloat caused by a tool returning a thousand irrelevant fields and help a client learn which callable and informational capabilities a server offers—because tool output is subsequently consumed as model context; minimizing it reduces both token cost and distractions and discovery advertises tools, resources, or prompts so clients can use supported contracts rather than guessing names or arguments; the required capabilities are instead to share one integration with several compatible AI clients or agent runtimes and to obtain a capability already provided as a supported Anthropic server tool.

C:

The second step meets the requirement to obtain a capability already provided as a supported Anthropic server tool because provider tools simplify execution ownership, though availability, cost, and data handling still require assessment; the first step would only help 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, leaving the separate requirement to share one integration with several compatible AI clients or agent runtimes unmet.

Question 384

In a production inference application, a release requirement is to show generated text progressively instead of waiting for the full response. Which implementation addresses that specific requirement?

  1. Include a typed image content block in the message.
  2. Configure the max_tokens request parameter appropriately.
  3. Detect refusal and apply the product's allowed fallback or messaging policy.
  4. Enable streaming and consume server-sent events in order.

Explanation

Correct Answer

D:

To show generated text progressively instead of waiting for the full response in this production inference application, streaming transmits partial deltas and completion events, allowing earlier display while requiring the client to assemble content safely; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to ask Claude to interpret a supported image supplied as part of a request because multimodal input must use the API's image representation and supported sourcing; merely writing a filename in text does not transfer pixels; that mechanism does not meet the different requirement to show generated text progressively instead of waiting for the full response.

B:

The proposed alternative helps 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; that mechanism does not meet the different requirement to show generated text progressively instead of waiting for the full response.

C:

The proposed alternative helps to handle a safety refusal as a distinct application outcome because a refusal is not the same as a network failure; blindly retrying identical input may not produce an appropriate user experience; that mechanism does not meet the different requirement to show generated text progressively instead of waiting for the full response.

Question 385

A planned upgrade to a structured output service has two requirements that must both pass: answer a company-policy question from current approved records instead of relying on general knowledge; maintain the current task after older dialogue exceeds the active token budget. Identify the two direct implementations. Choose TWO.

  1. Summarize prior decisions and preserve unresolved constraints.
  2. Put stable application constraints in the system instruction field.
  3. Reserve an output budget while enforcing input-context limits.
  4. Retrieve authoritative policy passages and cite those used.
  5. Validate parsed output against the application's declared schema.

Explanation

Correct Answers

A:

To maintain the current task after older dialogue exceeds the active token budget as part of a design that must also answer a company-policy question from current approved records instead of relying on general knowledge, a faithful rolling summary carries forward objectives and commitments while avoiding a full-history replay on each call; this is why the action is one of the two required selections.

D:

To answer a company-policy question from current approved records instead of relying on general knowledge as part of a design that must also maintain the current task after older dialogue exceeds the active token budget, 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

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 answer a company-policy question from current approved records instead of relying on general knowledge and to maintain the current task after older dialogue exceeds the active token budget.

C:

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 answer a company-policy question from current approved records instead of relying on general knowledge and to maintain the current task after older dialogue exceeds the active token budget.

E:

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 answer a company-policy question from current approved records instead of relying on general knowledge and to maintain the current task after older dialogue exceeds the active token budget.

Question 386

A planned upgrade to a token-consumption optimization sprint has two requirements that must both pass: reject incomplete or malformed response data before business logic consumes it; work in an environment that lacks a compatible Claude SDK. Identify the two direct implementations. Choose TWO.

  1. Branch on HTTP status and decode the provider's error structure.
  2. Parse structured payloads with explicit failure handling.
  3. Estimate cost from expected input and output tokens and current model rates.
  4. Call the documented HTTPS endpoint with explicit headers and JSON serialization.
  5. Evaluate a Sonnet-family model against a realistic task set.

Explanation

Correct Answers

B:

To reject incomplete or malformed response data before business logic consumes it as part of a design that must also work in an environment that lacks a compatible Claude SDK, JSON parsing validates syntax, while separate schema and semantic checks verify types and permitted values; this is why the action is one of the two required selections.

D:

To work in an environment that lacks a compatible Claude SDK as part of a design that must also reject incomplete or malformed response data before business logic consumes it, direct REST access remains possible when an SDK is unavailable, but the caller owns wire-format correctness and response parsing; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to stop interpreting non-2xx API responses as normal assistant messages because transport errors are not regular model completions, so application control flow must treat them separately; the required outcomes are instead to reject incomplete or malformed response data before business logic consumes it and to work in an environment that lacks a compatible Claude SDK.

C:

This alternative serves the separate goal to forecast spend for a batch of documents with different input sizes because workload cost depends on token mix, model choice, and any applicable discounts or caching rather than request count alone; the required outcomes are instead to reject incomplete or malformed response data before business logic consumes it and to work in an environment that lacks a compatible Claude SDK.

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 reject incomplete or malformed response data before business logic consumes it and to work in an environment that lacks a compatible Claude SDK.

Question 387

An architecture review of an enterprise agent deployment asks how to demonstrate who approved a privileged tool action and when. Which action is the best fit?

  1. Isolate external search results and validate any resulting tool action independently.
  2. Record authenticated approval events with actor, scope, and request correlation.
  3. Use layered policy enforcement and restrict powerful tools independently of chat text.
  4. Validate or moderate final content before release.

Explanation

Correct Answer

B:

To demonstrate who approved a privileged tool action and when in this enterprise agent deployment, an audit trail binds authorization to a specific action, making privilege use reviewable without treating model-generated text as proof of consent; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to reject a malicious instruction inserted into a web-search result rather than the user's direct request because indirect attacks exploit lower-trust retrieval surfaces, so trusting search snippets as operational directives crosses a security boundary; that mechanism does not meet the different requirement to demonstrate who approved a privileged tool action and when.

C:

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 demonstrate who approved a privileged tool action and when.

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 demonstrate who approved a privileged tool action and when.

Question 388

For a TypeScript Claude integration, the missing capability is to map out-of-order batch outputs back to source records reliably. What should the developers implement?

  1. Assign and preserve unique custom identifiers for batched requests.
  2. Configure the max_tokens request parameter appropriately.
  3. Cache an eligible unchanged prefix with cache_control.
  4. Parse response content by block type and follow current thinking-field rules.

Explanation

Correct Answer

A:

To map out-of-order batch outputs back to source records reliably in this TypeScript Claude integration, asynchronous results need stable correlation keys; relying on processing order can attach an output to the wrong input; the proposed implementation directly supplies that capability.

Incorrect Answers

B:

The proposed alternative helps 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; that mechanism does not meet the different requirement to map out-of-order batch outputs back to source records reliably.

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 map out-of-order batch outputs back to source records reliably.

D:

The proposed alternative helps 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; that mechanism does not meet the different requirement to map out-of-order batch outputs back to source records reliably.

Question 389

To ship a production tool-calling agent, the application must pass reliable machine-readable outputs between independently developed agent stages and plan another step only after inspecting the result of a requested external operation. Which pair of listed actions is necessary for those stated capabilities? Choose TWO.

  1. Retrieve only task-relevant memories into the active context.
  2. Define and validate a typed schema at the handoff.
  3. Catch tool failures and report typed errors into the agent loop.
  4. Encode a deterministic workflow with explicit transitions between stages.
  5. Alternate model tool-use requests with tool results until completion.

Explanation

Correct Answers

B:

To pass reliable machine-readable outputs between independently developed agent stages as part of a design that must also plan another step only after inspecting the result of a requested external operation, typed outputs make downstream contracts inspectable and reduce ambiguity caused by free-form prose passed as control data; this is why the action is one of the two required selections.

E:

To plan another step only after inspecting the result of a requested external operation as part of a design that must also pass reliable machine-readable outputs between independently developed agent stages, the loop returns observations to the model so subsequent decisions are informed by actual tool output rather than imagined execution; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to stop old agent histories from burying the information needed for the current step because selective retrieval improves signal-to-noise and keeps token use bounded while retaining access to older information when required; the required outcomes are instead to pass reliable machine-readable outputs between independently developed agent stages and to plan another step only after inspecting the result of a requested external operation.

C:

This alternative serves the separate goal to keep a failed tool from being mistaken for successful completion of an objective because explicit failure messages let the model or controller choose recovery; swallowing exceptions makes later actions rely on results that never existed; the required outcomes are instead to pass reliable machine-readable outputs between independently developed agent stages and to plan another step only after inspecting the result of a requested external operation.

D:

This alternative serves the separate goal to run the same retrieval, validation, and publishing stages in an approved order for every request 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 required outcomes are instead to pass reliable machine-readable outputs between independently developed agent stages and to plan another step only after inspecting the result of a requested external operation.

Question 390

A team maintaining a model behavior experiment must meet 2 separate acceptance criteria: (1) account for different plausible answers from the same input on repeated runs; (2) explain a billing increase after lengthy system instructions are added. Which two implementation actions directly satisfy the stated requirements? Choose TWO.

  1. Select an available effort level after measuring task performance.
  2. Measure input-token usage per request and track the prompt components.
  3. Check each response block's type before extracting its fields.
  4. Design for stochastic output and evaluate behavior over representative repeats.
  5. Measure cache-write overhead against subsequent cache-read savings.

Explanation

Correct Answers

B:

The test to explain a billing increase after lengthy system instructions are added is met because repeated prefixes and conversation history consume billable input, so cost cannot be inferred from output length alone; the remaining selection covers the separate need to account for different plausible answers from the same input on repeated runs.

D:

The test to account for different plausible answers from the same input on repeated runs is met because sampling and model execution can produce variation; important correctness must be checked rather than assumed identical on every call; the remaining selection covers the separate need to explain a billing increase after lengthy system instructions are added.

Incorrect Answers

A:

The action is useful for the separate capability 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; however, the required test outcomes are to explain a billing increase after lengthy system instructions are added and to account for different plausible answers from the same input on repeated runs.

C:

The action is useful for the separate capability to prevent a tool_use block from being displayed as if it were natural-language text because typed response objects can contain several block families; assuming every block has a text field causes logic errors; however, the required test outcomes are to explain a billing increase after lengthy system instructions are added and to account for different plausible answers from the same input on repeated runs.

E:

The action is useful for the separate capability to reduce repeated cost for a stable lengthy policy prefix reused many times because cache writes may cost extra while hits are cheaper; the reuse frequency determines whether the optimization saves money; however, the required test outcomes are to explain a billing increase after lengthy system instructions are added and to account for different plausible answers from the same input on repeated runs.

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