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

Question 40

A planned upgrade to a secure tool-execution boundary has two requirements that must both pass: protect customer identity fields when only document topics are needed for classification; prevent an adversarial user from bypassing safety policy by roleplay instructions. Identify the two direct implementations. Choose TWO.

  1. Redact secrets and protect log access with retention controls.
  2. Use layered policy enforcement and restrict powerful tools independently of chat text.
  3. Verify origin and integrity of sensitive external data where supported.
  4. Remove or mask unnecessary personal information before model submission.
  5. Revoke and rotate the affected credential and update dependent services.

Explanation

Correct Answers

B:

To prevent an adversarial user from bypassing safety policy by roleplay instructions as part of a design that must also protect customer identity fields when only document topics are needed for classification, adversarial prompting can target instruction hierarchy, so product controls and tool authorization must remain effective when wording is manipulated; this is why the action is one of the two required selections.

D:

To protect customer identity fields when only document topics are needed for classification as part of a design that must also prevent an adversarial user from bypassing safety policy by roleplay instructions, minimization limits exposure while preserving task inputs; relying on the model to ignore visible PII does not provide the same protection; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to investigate user actions without leaking API keys into operational records because logs support accountability only when access and retention are restricted; copying all prompt content into logs creates another exposure surface; the required outcomes are instead to protect customer identity fields when only document topics are needed for classification and to prevent an adversarial user from bypassing safety policy by roleplay instructions.

C:

This alternative serves the separate goal to detect unauthorized modifications to a tool result before it reaches the model because trusted decisions require confidence that tool outputs were not altered; transport and signature checks complement content validation; the required outcomes are instead to protect customer identity fields when only document topics are needed for classification and to prevent an adversarial user from bypassing safety policy by roleplay instructions.

E:

This alternative serves the separate goal to reduce exposure after an API key is suspected compromised because rotation restores credential control only when the old secret is disabled and consumers move to the replacement safely; the required outcomes are instead to protect customer identity fields when only document topics are needed for classification and to prevent an adversarial user from bypassing safety policy by roleplay instructions.

Question 41

While planning a business workflow that calls Claude, the product owner specifies that it must distinguish API transport failures from a successfully returned model refusal. Which solution fulfills the requirement?

  1. Configure an available server-side tool with the required API definition.
  2. Handle stop_reason max_tokens as truncation and continue or revise the limit.
  3. Inspect HTTP status and structured error payload before interpreting model output.
  4. Include a typed image content block in the message.

Explanation

Correct Answer

C:

To distinguish API transport failures from a successfully returned model refusal in this business workflow that calls Claude, rate limits, authorization failures, and server errors happen at the request layer, unlike a normal response with a refusal stop reason; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to use provider-hosted search or execution without implementing the tool body locally because provider-executed tools are handled in Anthropic's environment and differ from client functions that the caller must run; that mechanism does not meet the different requirement to distinguish API transport failures from a successfully returned model refusal.

B:

The proposed alternative helps to recover when a response ends because its generation budget was reached because a truncated completion may contain unfinished content, so treating it as a validated final answer risks losing required fields; that mechanism does not meet the different requirement to distinguish API transport failures from a successfully returned model refusal.

D:

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 distinguish API transport failures from a successfully returned model refusal.

Question 42

A release check on a context-rich document assistant found two unsatisfied conditions: the service must maintain the current task after older dialogue exceeds the active token budget, and it must leave space for a model to generate a complete answer after adding source documents. Which complete engineering plan satisfies both?

  1. Perform both steps: (1) Summarize prior decisions and preserve unresolved constraints; (2) retrieve authoritative policy passages and cite those used.
  2. Perform both steps: (1) Minimize or redact sensitive fields before constructing context; (2) reserve an output budget while enforcing input-context limits.
  3. Perform both steps: (1) Minimize or redact sensitive fields before constructing context; (2) retrieve authoritative policy passages and cite those used.
  4. Perform both steps: (1) Summarize prior decisions and preserve unresolved constraints; (2) reserve an output budget while enforcing input-context limits.

Explanation

Correct Answer

D:

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

Incorrect Answers

A:

The first step is appropriate for the requirement 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 other step instead aims to answer a company-policy question from current approved records instead of relying on general knowledge because retrieval supplies task-specific facts that pretraining may not include, while source attribution lets the application verify the response, which does not meet the second requirement to leave space for a model to generate a complete answer after adding source documents.

B:

The second step meets the requirement 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 first step would only help 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, leaving the separate requirement to maintain the current task after older dialogue exceeds the active token budget unmet.

C:

Both steps target different results—provide a document's necessary meaning without disclosing irrelevant personal identifiers and answer a company-policy question from current approved records instead of relying on general knowledge—because data minimization reduces the sensitive information transmitted for inference while retaining the facts the task legitimately requires and retrieval supplies task-specific facts that pretraining may not include, while source attribution lets the application verify the response; the required capabilities are instead to maintain the current task after older dialogue exceeds the active token budget and to leave space for a model to generate a complete answer after adding source documents.

Question 43

A change request for a tool-using incident triage agent combines two needs: ensure each later tool receives a validated artifact from its preceding stage, and run the same retrieval, validation, and publishing stages in an approved order for every request. Which implementation pair addresses both, not just one?

  1. Perform both steps: (1) Chain dependent operations serially with explicit input and output contracts; (2) encode a deterministic workflow with explicit transitions between stages.
  2. Perform both steps: (1) Chain dependent operations serially with explicit input and output contracts; (2) choose a graph-based orchestration framework when state transitions justify it.
  3. Perform both steps: (1) Give an agent a bounded objective and a tool-selection loop; (2) encode a deterministic workflow with explicit transitions between stages.
  4. Perform both steps: (1) Give an agent a bounded objective and a tool-selection loop; (2) choose a graph-based orchestration framework when state transitions justify it.

Explanation

Correct Answer

A:

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

Incorrect Answers

B:

The first step is appropriate for the requirement 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; the other step instead aims to coordinate explicit graph transitions among multiple model and tool nodes because graph orchestration clarifies conditional edges and resumability; it adds complexity when a short linear function would suffice, which does not meet the second requirement to run the same retrieval, validation, and publishing stages in an approved order for every request.

C:

The second step meets the requirement 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 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 ensure each later tool receives a validated artifact from its preceding stage unmet.

D:

Both steps target different results—pursue an open-ended investigation where the next action depends on intermediate evidence and coordinate explicit graph transitions among multiple model and tool nodes—because agentic control lets the model choose among permitted steps as observations arrive; budgets and termination conditions still bound its autonomy and graph orchestration clarifies conditional edges and resumability; it adds complexity when a short linear function would suffice; the required capabilities are instead to ensure each later tool receives a validated artifact from its preceding stage and to run the same retrieval, validation, and publishing stages in an approved order for every request.

Question 44

For a token-consumption optimization sprint, a design is acceptable only if it can favor more consistent word choices in a constrained transformation task when supported while also being able to account for different plausible answers from the same input on repeated runs. Which paired implementation is sufficient?

  1. Perform both steps: (1) Track output tokens separately from input tokens; (2) design for stochastic output and evaluate behavior over representative repeats.
  2. Perform both steps: (1) Tune sampling for lower variance while retaining output validation; (2) include several carefully selected and diverse demonstrations.
  3. Perform both steps: (1) Tune sampling for lower variance while retaining output validation; (2) design for stochastic output and evaluate behavior over representative repeats.
  4. Perform both steps: (1) Track output tokens separately from input tokens; (2) include several carefully selected and diverse demonstrations.

Explanation

Correct Answer

C:

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

Incorrect Answers

A:

The second step meets the requirement 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; the first step would only help 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, leaving the separate requirement to favor more consistent word choices in a constrained transformation task when supported unmet.

B:

The first step is appropriate for the requirement 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; the other step instead aims to reduce inconsistent labeling across nuanced examples because multiple examples communicate decision boundaries and desired formatting, although irrelevant or misleading demonstrations can bias the model, which does not meet the second requirement to account for different plausible answers from the same input on repeated runs.

D:

Both steps target different results—identify why verbose generated reports cost more despite unchanged inputs and reduce inconsistent labeling across nuanced examples—because generation tokens are metered independently and can have different pricing, so response verbosity affects unit economics and multiple examples communicate decision boundaries and desired formatting, although irrelevant or misleading demonstrations can bias the model; the required capabilities are instead to favor more consistent word choices in a constrained transformation task when supported and to account for different plausible answers from the same input on repeated runs.

Question 45

An architecture review of a multi-tenant support application asks how to prevent a retrieved article's embedded commands from being treated as developer instructions. Which action is the best fit?

  1. Delimit retrieved text as untrusted source material.
  2. Validate generated fields against domain rules after parsing.
  3. Route Claude requests through a trusted backend service.
  4. Buffer structured data until it can be parsed and validated before UI commit.

Explanation

Correct Answer

A:

To prevent a retrieved article's embedded commands from being treated as developer instructions in this multi-tenant support application, explicit trust boundaries help the model interpret documents as evidence rather than operational orders, and runtime controls must enforce privileged actions; the proposed implementation directly supplies that capability.

Incorrect Answers

B:

The proposed alternative helps to stop a well-formed JSON response from introducing an impossible customer status because a syntactically valid object may still contain invalid business values; server-side semantics determine whether it is acceptable; that mechanism does not meet the different requirement to prevent a retrieved article's embedded commands from being treated as developer instructions.

C:

The proposed alternative helps to keep a browser application from exposing the secret used for model calls because a backend controls credentials and access policy while the UI sends user input through an authenticated application endpoint; that mechanism does not meet the different requirement to prevent a retrieved article's embedded commands from being treated as developer instructions.

D:

The proposed alternative helps to display partial sentences without publishing malformed structured records because a text stream can arrive in fragments; consumers must distinguish presentation updates from complete machine-readable objects; that mechanism does not meet the different requirement to prevent a retrieved article's embedded commands from being treated as developer instructions.

Question 46

A planned upgrade to an operations research assistant has two requirements that must both pass: build a Claude-powered coding agent with an established runtime for tool orchestration; impose predictable maximum cost and wall-clock exposure on autonomous execution. Identify the two direct implementations. Choose TWO.

  1. Inspect the tool_use block, invoke the authorized handler, and return tool_result.
  2. Attach a post-execution observation hook to the tool lifecycle.
  3. Apply limits for steps, elapsed time, and token or tool expenditure.
  4. Persist and resume the agent session using supported state handling.
  5. Use the Claude Agent SDK for the agent's execution harness.

Explanation

Correct Answers

C:

To impose predictable maximum cost and wall-clock exposure on autonomous execution as part of a design that must also build a Claude-powered coding agent with an established runtime for tool orchestration, runtime budgets are external constraints on agent activity and must be enforced by the host, not inferred from a cooperative natural-language instruction; this is why the action is one of the two required selections.

E:

To build a Claude-powered coding agent with an established runtime for tool orchestration as part of a design that must also impose predictable maximum cost and wall-clock exposure on autonomous execution, the SDK provides structured primitives for agent sessions and tool execution, reducing the custom loop infrastructure the application must maintain; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to execute a requested internal business function inside the application's trusted process because client tools are executed by the application, not by merely declaring a schema; every returned result must be matched to its tool-use identifier; the required outcomes are instead to build a Claude-powered coding agent with an established runtime for tool orchestration and to impose predictable maximum cost and wall-clock exposure on autonomous execution.

B:

This alternative serves the separate goal to inspect the result of a completed tool call before later model reasoning consumes it because post-tool inspection can record or validate outcomes after execution, but it cannot retroactively prevent side effects from the completed call; the required outcomes are instead to build a Claude-powered coding agent with an established runtime for tool orchestration and to impose predictable maximum cost and wall-clock exposure on autonomous execution.

D:

This alternative serves the separate goal to continue a paused multi-step task with its legitimate prior context because session continuity preserves relevant work across invocations; discarding session state can cause repeated tools or lost intermediate decisions; the required outcomes are instead to build a Claude-powered coding agent with an established runtime for tool orchestration and to impose predictable maximum cost and wall-clock exposure on autonomous execution.

Question 47

While planning a model selection trial, the product owner specifies that it must avoid assuming a model-version change preserves tool output and writing behavior. Which solution fulfills the requirement?

  1. Estimate cost from expected input and output tokens and current model rates.
  2. Compare quality-adjusted cost per accepted result across candidate models.
  3. Track output tokens separately from input tokens.
  4. Revalidate prompts, schemas, safety constraints, and tools after model migration.

Explanation

Correct Answer

D:

To avoid assuming a model-version change preserves tool output and writing behavior in this model selection trial, new releases can change response distributions or supported behaviors, making a model upgrade a real software change; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps 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; that mechanism does not meet the different requirement to avoid assuming a model-version change preserves tool output and writing behavior.

B:

The proposed alternative helps 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; that mechanism does not meet the different requirement to avoid assuming a model-version change preserves tool output and writing behavior.

C:

The proposed alternative helps 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; that mechanism does not meet the different requirement to avoid assuming a model-version change preserves tool output and writing behavior.

Question 48

The owner of a production inference application needs to stay within input limits while keeping the most important conversation constraints as well as keep application policy separate from a user's question. Which two changes belong in the minimum remediation plan? Choose TWO.

  1. Buffer structured data until it can be parsed and validated before UI commit.
  2. Apply content checks at suitable input and output boundaries.
  3. Apply a context retention policy and summarize earlier turns where suitable.
  4. Assemble messages with correct user and assistant roles.
  5. Place stable application rules in system instructions and untrusted requests in user content.

Explanation

Correct Answers

C:

To stay within input limits while keeping the most important conversation constraints as part of a design that must also keep application policy separate from a user's question, selective history management preserves task-critical state; dropping random leading messages can erase consent or requirements; this is why the action is one of the two required selections.

E:

To keep application policy separate from a user's question as part of a design that must also stay within input limits while keeping the most important conversation constraints, instruction placement preserves the distinction between developer intent and user-supplied data; concatenating everything blurs that boundary; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to display partial sentences without publishing malformed structured records because a text stream can arrive in fragments; consumers must distinguish presentation updates from complete machine-readable objects; the required outcomes are instead to stay within input limits while keeping the most important conversation constraints and to keep application policy separate from a user's question.

B:

This alternative serves the separate goal to filter risky user-visible content according to application policy because moderation is a defense layer applied around generation, not a substitute for authenticated tool access or scoped retrieval; the required outcomes are instead to stay within input limits while keeping the most important conversation constraints and to keep application policy separate from a user's question.

D:

This alternative serves the separate goal 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; the required outcomes are instead to stay within input limits while keeping the most important conversation constraints and to keep application policy separate from a user's question.

Question 49

The team responsible for a document investigation agent needs to prevent specialists from producing incompatible artifacts for the orchestrator. What is the most direct engineering change?

  1. Encode a deterministic workflow with explicit transitions between stages.
  2. Run independent branches concurrently and merge their outputs afterward.
  3. Consume the agent runtime's streamed event sequence.
  4. Define structured inputs, expected outputs, and failure states for each delegate.

Explanation

Correct Answer

D:

To prevent specialists from producing incompatible artifacts for the orchestrator in this document investigation agent, explicit delegation contracts make multi-agent integration testable; free-form handoffs often obscure whether a child finished its assigned task; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps 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; that mechanism does not meet the different requirement to prevent specialists from producing incompatible artifacts for the orchestrator.

B:

The proposed alternative helps 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; that mechanism does not meet the different requirement to prevent specialists from producing incompatible artifacts for the orchestrator.

C:

The proposed alternative helps 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; that mechanism does not meet the different requirement to prevent specialists from producing incompatible artifacts for the orchestrator.

Question 50

A team maintaining an MCP integration server must meet 2 separate acceptance criteria: (1) offer users a reusable parameterized instruction template from an MCP server; (2) make a repeatable multi-step code-review methodology available to an agent. Which two implementation actions directly satisfy the stated requirements? Choose TWO.

  1. Create a Skill containing the procedure and supporting instructions.
  2. Register a prompt template with its required arguments.
  3. Expose the material as an MCP resource with a stable identifier.
  4. Implement a client-side handler and return its result with the tool-use identifier.
  5. Put an approval gate in the host-side write handler.

Explanation

Correct Answers

A:

The test to make a repeatable multi-step code-review methodology available to an agent is met because a Skill teaches how to perform a task, whereas a tool is the executable capability that performs an external operation; the remaining selection covers the separate need to offer users a reusable parameterized instruction template from an MCP server.

B:

The test to offer users a reusable parameterized instruction template from an MCP server is met because MCP prompts provide structured prompt content, but by themselves do not perform external business actions; the remaining selection covers the separate need to make a repeatable multi-step code-review methodology available to an agent.

Incorrect Answers

C:

The action is useful for the separate capability to make reference material available for clients to read as context because resources represent consumable data, contrasting with tools that invoke an operation or prompts that package reusable instructions; however, the required test outcomes are to make a repeatable multi-step code-review methodology available to an agent and to offer users a reusable parameterized instruction template from an MCP server.

D:

The action is useful for the separate capability to connect a Claude tool request to an internal service whose logic the application owns because a declared client tool does not execute itself; application code runs it and feeds results back into the conversation; however, the required test outcomes are to make a repeatable multi-step code-review methodology available to an agent and to offer users a reusable parameterized instruction template from an MCP server.

E:

The action is useful for the separate capability 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; however, the required test outcomes are to make a repeatable multi-step code-review methodology available to an agent and to offer users a reusable parameterized instruction template from an MCP server.

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