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

Question 250

During an incident investigation rollout, two different failure paths need remediation. The first component must fix an agent loop that repeatedly requests the same lookup without using the returned data; separately, the second must diagnose a generated summary that contradicts the latest database balance. Which changes should be adopted?

  1. First component: Trace a missing tool_result. Second component: Validate data before blaming model quality.
  2. First component: Diagnose a 5xx provider error. Second component: Validate data before blaming model quality.
  3. First component: Investigate a 400 invalid_request error. Second component: Diagnose a 5xx provider error.
  4. First component: Trace a missing tool_result. Second component: Investigate a 400 invalid_request error.

Explanation

Correct Answer

A:

The first proposal fits its assigned role because inspecting message history and tool IDs reveals whether execution output reached the next model turn, while the second proposal fits its assigned role because source payloads, retrieval filters, and timestamps must be checked before attributing a wrong answer to inference; their respective acceptance criteria are to fix an agent loop that repeatedly requests the same lookup without using the returned data and to diagnose a generated summary that contradicts the latest database balance.

Incorrect Answers

B:

The first proposal serves the different purpose to keep a batch pipeline resilient when the upstream service briefly fails instead of the assigned first role because server-side failures may warrant bounded retries, jitter, and a fallback rather than request-shape changes, while the second proposal fits its assigned role because source payloads, retrieval filters, and timestamps must be checked before attributing a wrong answer to inference; their respective acceptance criteria are to fix an agent loop that repeatedly requests the same lookup without using the returned data and to diagnose a generated summary that contradicts the latest database balance.

C:

The first proposal serves the different purpose to diagnose a request that fails consistently before generating any model output instead of the assigned first role because validation failures point to malformed inputs or unsupported parameters that must be corrected, while the second proposal serves the different purpose to keep a batch pipeline resilient when the upstream service briefly fails instead of the assigned second role because server-side failures may warrant bounded retries, jitter, and a fallback rather than request-shape changes; their respective acceptance criteria are to fix an agent loop that repeatedly requests the same lookup without using the returned data and to diagnose a generated summary that contradicts the latest database balance.

D:

The first proposal fits its assigned role because inspecting message history and tool IDs reveals whether execution output reached the next model turn, while the second proposal serves the different purpose to diagnose a request that fails consistently before generating any model output instead of the assigned second role because validation failures point to malformed inputs or unsupported parameters that must be corrected; their respective acceptance criteria are to fix an agent loop that repeatedly requests the same lookup without using the returned data and to diagnose a generated summary that contradicts the latest database balance.

Question 251

A developer is reviewing alternatives for an output validation feature that must recover malformed data without entering an infinite prompt-retry loop. Which option is a defensible fit?

  1. Keep raw and normalized values distinct
  2. Separate a partial streaming fragment from a finished object
  3. Use bounded repair or regeneration
  4. Escape generated content in the UI
  5. Parse JSON with a real parser

Explanation

Correct Answer

C:

A limited correction attempt can use validation errors as feedback before escalating; this behavior directly supports the need to recover malformed data without entering an infinite prompt-retry loop. Unbounded retries can consume budget without resolving a defective input.

Incorrect Answers

A:

Storing the original evidence and validated normalized value supports later reconciliation; despite being useful when a service must preserve auditability when an extractor reformats a date or currency, it is not a solution to recover malformed data without entering an infinite prompt-retry loop; overwriting the raw source eliminates a useful verification trail.

B:

For the alternate objective to prevent the frontend from parsing an incomplete JSON chunk as a complete response, stream consumers must buffer and recognize completion before strict object validation; the feature here must recover malformed data without entering an infinite prompt-retry loop, and an arbitrary content delta may end halfway through a field.

D:

When an application needs to show model-produced HTML snippets without allowing browser script injection, output encoding or sanitization protects display contexts from untrusted markup; the current capability must instead recover malformed data without entering an infinite prompt-retry loop, while a correct JSON wrapper does not make embedded HTML safe.

E:

Syntax validation converts serialized text into a trustworthy data structure only after parsing succeeds; the supported outcome is to avoid accepting malformed generated objects because they resemble JSON to a reader, whereas this scenario requires the ability to recover malformed data without entering an infinite prompt-retry loop; regex extraction cannot generally validate nested JSON correctly.

Question 252

A production-readiness check for a customer platform component requires the service to avoid starting two extraction jobs for the same uploaded document after repeated browser submissions. Which approach passes this check?

  1. Place durable behavior instructions in the system parameter
  2. Deduplicate application events
  3. Create one session per user conversation
  4. Treat retrieval results as untrusted data

Explanation

Correct Answer

B:

An idempotent job key lets the server recognize duplicates at its request boundary; this behavior directly supports the need to avoid starting two extraction jobs for the same uploaded document after repeated browser submissions. Model prompting cannot identify all retries arriving from outside the conversation.

Incorrect Answers

A:

System-level guidance supplies application-wide instruction context, separate from each user's task content; despite being useful when a service must ensure an API assistant consistently uses a defined support role across requests, it is not a solution to avoid starting two extraction jobs for the same uploaded document after repeated browser submissions; a string placed in retrieved documents has no authority to redefine the application policy.

C:

Session scoping ensures history and tool results belong to the correct principal; this applies to the different goal to keep follow-up requests linked without exposing another tenant's messages, not the requirement to avoid starting two extraction jobs for the same uploaded document after repeated browser submissions; a global conversation list risks mixing private records.

D:

When an application needs to prevent a malicious help article from ordering the model to reveal secrets, retrieved content should be framed as evidence, never upgraded to new tool or system authority; the current capability must instead avoid starting two extraction jobs for the same uploaded document after repeated browser submissions, while a trustworthy source URL does not make embedded commands authorized.

Question 253

A tool integration team owns two independent components. The first must deny destructive filesystem operations before a coding agent executes them; the second must give a coding agent a consistent review playbook and supporting assets. Which paired plan fulfills both?

  1. First component: Use subagents for independent expertise. Second component: Use system or repository instructions for stable behavior.
  2. First component: Use hooks for enforceable safety checks. Second component: Use system or repository instructions for stable behavior.
  3. First component: Use hooks for enforceable safety checks. Second component: Package a Skill for reusable guidance.
  4. First component: Publish an MCP server for reusable integrations. Second component: Package a Skill for reusable guidance.
  5. First component: Use system or repository instructions for stable behavior. Second component: Publish an MCP server for reusable integrations.

Explanation

Correct Answer

C:

The first proposal fits its assigned role because runtime interception can apply deterministic policies to proposed actions, while the second proposal fits its assigned role because a Skill provides task procedures and resources that the agent can load when applicable; their respective acceptance criteria are to deny destructive filesystem operations before a coding agent executes them and to give a coding agent a consistent review playbook and supporting assets.

Incorrect Answers

A:

The first proposal serves the different purpose to delegate a security analysis while keeping the main coordinator's context concise instead of the assigned first role because specialist contexts reduce tool-output contamination and support focused parallel work, while the second proposal serves the different purpose to make a coding or API assistant follow organization-wide conventions instead of the assigned second role because instructions shape model behavior and task framing without executing external operations; their respective acceptance criteria are to deny destructive filesystem operations before a coding agent executes them and to give a coding agent a consistent review playbook and supporting assets.

B:

The first proposal fits its assigned role because runtime interception can apply deterministic policies to proposed actions, while the second proposal serves the different purpose to make a coding or API assistant follow organization-wide conventions instead of the assigned second role because instructions shape model behavior and task framing without executing external operations; their respective acceptance criteria are to deny destructive filesystem operations before a coding agent executes them and to give a coding agent a consistent review playbook and supporting assets.

D:

The first proposal serves the different purpose to make one internal ticketing connector available to several agent clients instead of the assigned first role because MCP standardizes tool and resource discovery across compatible applications, while the second proposal fits its assigned role because a Skill provides task procedures and resources that the agent can load when applicable; their respective acceptance criteria are to deny destructive filesystem operations before a coding agent executes them and to give a coding agent a consistent review playbook and supporting assets.

E:

The first proposal serves the different purpose to make a coding or API assistant follow organization-wide conventions instead of the assigned first role because instructions shape model behavior and task framing without executing external operations, while the second proposal serves the different purpose to make one internal ticketing connector available to several agent clients instead of the assigned second role because MCP standardizes tool and resource discovery across compatible applications; their respective acceptance criteria are to deny destructive filesystem operations before a coding agent executes them and to give a coding agent a consistent review playbook and supporting assets.

Question 254

An architecture review of a customer platform product lists two distinct outcomes: the first subsystem must recover a response that ended because its output budget was exhausted, and a second subsystem must preserve a customer's follow-up reference to an earlier case number. Which pair delivers these outcomes?

  1. First component: Handle the max_tokens stop_reason. Second component: Handle message_stop and final usage events.
  2. First component: Handle the max_tokens stop_reason. Second component: Supply previous turns on a new API request.
  3. First component: Handle message_stop and final usage events. Second component: Handle the tool_use stop_reason.
  4. First component: Handle the tool_use stop_reason. Second component: Supply previous turns on a new API request.

Explanation

Correct Answer

B:

The first proposal fits its assigned role because the finish reason identifies truncation, so a caller may need a continuation or a revised token budget, while the second proposal fits its assigned role because stateless requests need relevant history passed back in the messages sequence; their respective acceptance criteria are to recover a response that ended because its output budget was exhausted and to preserve a customer's follow-up reference to an earlier case number.

Incorrect Answers

A:

The first proposal fits its assigned role because the finish reason identifies truncation, so a caller may need a continuation or a revised token budget, while the second proposal serves the different purpose to record complete streamed output and token usage accurately instead of the assigned second role because the final stream events signal completion and deliver accumulated metadata beyond individual text fragments; their respective acceptance criteria are to recover a response that ended because its output budget was exhausted and to preserve a customer's follow-up reference to an earlier case number.

C:

The first proposal serves the different purpose to record complete streamed output and token usage accurately instead of the assigned first role because the final stream events signal completion and deliver accumulated metadata beyond individual text fragments, while the second proposal serves the different purpose to continue the agent loop when Claude is waiting for external observations instead of the assigned second role because this stop reason means tool calls need to be executed and their results returned before synthesis; their respective acceptance criteria are to recover a response that ended because its output budget was exhausted and to preserve a customer's follow-up reference to an earlier case number.

D:

The first proposal serves the different purpose to continue the agent loop when Claude is waiting for external observations instead of the assigned first role because this stop reason means tool calls need to be executed and their results returned before synthesis, while the second proposal fits its assigned role because stateless requests need relevant history passed back in the messages sequence; their respective acceptance criteria are to recover a response that ended because its output budget was exhausted and to preserve a customer's follow-up reference to an earlier case number.

Question 255

A release plan for an engineering productivity platform has two acceptance checks: component one must reduce turnaround when an agent asks for unrelated reads in the same response; component two must maintain a valid transcript when the model requests multiple tools. Which proposal passes both?

  1. First component: Use the Claude Agent SDK for an integrated tool-driven agent. Second component: Use a durable session store.
  2. First component: Execute independent requested tools concurrently. Second component: Use the Claude Agent SDK for an integrated tool-driven agent.
  3. First component: Execute independent requested tools concurrently. Second component: Preserve assistant tool-use content in conversation history.
  4. First component: Use a durable session store. Second component: Preserve assistant tool-use content in conversation history.

Explanation

Correct Answer

C:

The first proposal fits its assigned role because parallel execution is safe for independent operations while every result must still be matched to its call ID, while the second proposal fits its assigned role because the next request retains the assistant message containing tool_use blocks before providing their user-role tool_result blocks; their respective acceptance criteria are to reduce turnaround when an agent asks for unrelated reads in the same response and to maintain a valid transcript when the model requests multiple tools.

Incorrect Answers

A:

The first proposal serves the different purpose to build a coding agent that needs managed tool execution, sessions, and event handling instead of the assigned first role because the SDK provides agent-loop primitives and integrations that remove much of the custom harness work, while the second proposal serves the different purpose to recover agent state when a container restarts during a lengthy customer case instead of the assigned second role because external persistence holds the conversation and workflow metadata needed to resume safely; their respective acceptance criteria are to reduce turnaround when an agent asks for unrelated reads in the same response and to maintain a valid transcript when the model requests multiple tools.

B:

The first proposal fits its assigned role because parallel execution is safe for independent operations while every result must still be matched to its call ID, while the second proposal serves the different purpose to build a coding agent that needs managed tool execution, sessions, and event handling instead of the assigned second role because the SDK provides agent-loop primitives and integrations that remove much of the custom harness work; their respective acceptance criteria are to reduce turnaround when an agent asks for unrelated reads in the same response and to maintain a valid transcript when the model requests multiple tools.

D:

The first proposal serves the different purpose to recover agent state when a container restarts during a lengthy customer case instead of the assigned first role because external persistence holds the conversation and workflow metadata needed to resume safely, while the second proposal fits its assigned role because the next request retains the assistant message containing tool_use blocks before providing their user-role tool_result blocks; their respective acceptance criteria are to reduce turnaround when an agent asks for unrelated reads in the same response and to maintain a valid transcript when the model requests multiple tools.

Question 256

An agent governance review requires two independent, explicitly defined outcomes: the first workstream must deny access to a different customer's records even when the caller is authenticated; a second must cut off an exposed token discovered in CI logs. Which TWO actions directly provide these capabilities? Choose TWO.

  1. Separate human and service identities
  2. Rotate a compromised API key promptly
  3. Audit sensitive credential use
  4. Use short-lived scoped credentials where supported
  5. Authorize by requested resource and action

Explanation

Correct Answers

B:

Revocation plus replacement ends use of the leaked credential and requires checking for misuse; this directly supports task 2 to cut off an exposed token discovered in CI logs, not the separate task or tasks to deny access to a different customer's records even when the caller is authenticated; merely deleting a log message leaves the old token valid.

E:

Authorization checks must evaluate scope for each operation, not only whether a login exists; this directly supports task 1 to deny access to a different customer's records even when the caller is authenticated, not the separate task or tasks to cut off an exposed token discovered in CI logs; successful authentication is not equivalent to unrestricted data access.

Incorrect Answers

A:

Distinct principals simplify least privilege, revocation, and audit attribution; this implements the different outcome to attribute tool actions to the right workload rather than a developer's personal account rather than the required tasks to cut off an exposed token discovered in CI logs and to deny access to a different customer's records even when the caller is authenticated, and a shared personal login makes operational accountability difficult, so it is not a direct solution to any of the assigned workstreams.

C:

Usage and access logs support incident investigation and anomaly response; this implements the different outcome to detect unexpected API key activity from an unfamiliar process rather than the required tasks to cut off an exposed token discovered in CI logs and to deny access to a different customer's records even when the caller is authenticated, and a successful API call alone does not establish that use was authorized, so it is not a direct solution to any of the assigned workstreams.

D:

Expiring identity grants reduce the time and permissions available to an attacker; this implements the different outcome to limit the impact of a temporary worker credential being stolen rather than the required tasks to cut off an exposed token discovered in CI logs and to deny access to a different customer's records even when the caller is authenticated, and permanent shared administrator keys expand blast radius, so it is not a direct solution to any of the assigned workstreams.

Question 257

A release plan for a data pipeline platform has two acceptance checks: component one must rotate production credentials without committing new source code; component two must fail fast if a model ID or tool endpoint is absent in production. Which proposal passes both?

  1. First component: Store API keys in managed secret storage. Second component: Use separate permission profiles by environment.
  2. First component: Use separate permission profiles by environment. Second component: Keep environment-specific settings external.
  3. First component: Store API keys in managed secret storage. Second component: Validate configuration at startup.
  4. First component: Keep environment-specific settings external. Second component: Validate configuration at startup.

Explanation

Correct Answer

C:

The first proposal fits its assigned role because central secret management supports scoped access, auditing, and key rotation, while the second proposal fits its assigned role because startup checks surface missing required values before user traffic reaches a broken path; their respective acceptance criteria are to rotate production credentials without committing new source code and to fail fast if a model ID or tool endpoint is absent in production.

Incorrect Answers

A:

The first proposal fits its assigned role because central secret management supports scoped access, auditing, and key rotation, while the second proposal serves the different purpose to allow broad exploratory tools in a sandbox but only approved reads in production instead of the assigned second role because environment-scoped policy avoids inheriting development privileges in a live setting; their respective acceptance criteria are to rotate production credentials without committing new source code and to fail fast if a model ID or tool endpoint is absent in production.

B:

The first proposal serves the different purpose to allow broad exploratory tools in a sandbox but only approved reads in production instead of the assigned first role because environment-scoped policy avoids inheriting development privileges in a live setting, while the second proposal serves the different purpose to deploy the same application build to staging and production with distinct endpoints instead of the assigned second role because configuration injection separates environment differences from immutable application artifacts; their respective acceptance criteria are to rotate production credentials without committing new source code and to fail fast if a model ID or tool endpoint is absent in production.

D:

The first proposal serves the different purpose to deploy the same application build to staging and production with distinct endpoints instead of the assigned first role because configuration injection separates environment differences from immutable application artifacts, while the second proposal fits its assigned role because startup checks surface missing required values before user traffic reaches a broken path; their respective acceptance criteria are to rotate production credentials without committing new source code and to fail fast if a model ID or tool endpoint is absent in production.

Question 258

A retrieval pipeline team is evaluating two disjoint use cases. For one use case, it must fit a large knowledge base into the context of a customer answer; for the other, it must enable a reviewer to reconstruct evidence after context has been compacted. Which paired choices are justified?

  1. First component: Deduplicate overlapping passages. Second component: Reserve space for the model's output.
  2. First component: Prioritize high-signal retrieved passages. Second component: Anchor summaries to source identifiers.
  3. First component: Prioritize high-signal retrieved passages. Second component: Deduplicate overlapping passages.
  4. First component: Reserve space for the model's output. Second component: Anchor summaries to source identifiers.

Explanation

Correct Answer

B:

The first proposal fits its assigned role because ranking by relevance and authority places the most useful evidence ahead of incidental matches, while the second proposal fits its assigned role because stable document IDs and passage references preserve provenance beyond the shortened working memory; their respective acceptance criteria are to fit a large knowledge base into the context of a customer answer and to enable a reviewer to reconstruct evidence after context has been compacted.

Incorrect Answers

A:

The first proposal serves the different purpose to save tokens when several retrieval chunks contain the same repeated policy section instead of the assigned first role because overlap detection reduces redundant context without throwing away unique clauses, while the second proposal serves the different purpose to avoid using the entire context budget on retrieved input before generating a response instead of the assigned second role because input assembly must leave room for the requested completion and any needed reasoning; their respective acceptance criteria are to fit a large knowledge base into the context of a customer answer and to enable a reviewer to reconstruct evidence after context has been compacted.

C:

The first proposal fits its assigned role because ranking by relevance and authority places the most useful evidence ahead of incidental matches, while the second proposal serves the different purpose to save tokens when several retrieval chunks contain the same repeated policy section instead of the assigned second role because overlap detection reduces redundant context without throwing away unique clauses; their respective acceptance criteria are to fit a large knowledge base into the context of a customer answer and to enable a reviewer to reconstruct evidence after context has been compacted.

D:

The first proposal serves the different purpose to avoid using the entire context budget on retrieved input before generating a response instead of the assigned first role because input assembly must leave room for the requested completion and any needed reasoning, while the second proposal fits its assigned role because stable document IDs and passage references preserve provenance beyond the shortened working memory; their respective acceptance criteria are to fit a large knowledge base into the context of a customer answer and to enable a reviewer to reconstruct evidence after context has been compacted.

Question 259

An architecture review of an output validation product lists two distinct outcomes: the first subsystem must let the model summarize a hostile email without obeying its embedded commands, and a second subsystem must avoid invented contract dates when the uploaded document lacks them. Which pair delivers these outcomes?

  1. First component: Separate system policy from user content. Second component: Use explicit refusal and escalation instructions.
  2. First component: Delimit untrusted source material. Second component: Separate system policy from user content.
  3. First component: Use explicit refusal and escalation instructions. Second component: Specify the handling of missing information.
  4. First component: Delimit untrusted source material. Second component: Specify the handling of missing information.

Explanation

Correct Answer

D:

The first proposal fits its assigned role because clear source boundaries and explicit treatment as quoted evidence help reduce instruction confusion, while the second proposal fits its assigned role because an explicit unknown or null rule makes uncertainty visible in the requested output; their respective acceptance criteria are to let the model summarize a hostile email without obeying its embedded commands and to avoid invented contract dates when the uploaded document lacks them.

Incorrect Answers

A:

The first proposal serves the different purpose to prevent a customer message from overriding the application's escalation rules instead of the assigned first role because stable higher-priority instructions should be represented in the designated instruction channel, while the second proposal serves the different purpose to prevent a customer-facing assistant from making final legal determinations without review instead of the assigned second role because clear boundaries describe when to abstain or route to a qualified person; their respective acceptance criteria are to let the model summarize a hostile email without obeying its embedded commands and to avoid invented contract dates when the uploaded document lacks them.

B:

The first proposal fits its assigned role because clear source boundaries and explicit treatment as quoted evidence help reduce instruction confusion, while the second proposal serves the different purpose to prevent a customer message from overriding the application's escalation rules instead of the assigned second role because stable higher-priority instructions should be represented in the designated instruction channel; their respective acceptance criteria are to let the model summarize a hostile email without obeying its embedded commands and to avoid invented contract dates when the uploaded document lacks them.

C:

The first proposal serves the different purpose to prevent a customer-facing assistant from making final legal determinations without review instead of the assigned first role because clear boundaries describe when to abstain or route to a qualified person, while the second proposal fits its assigned role because an explicit unknown or null rule makes uncertainty visible in the requested output; their respective acceptance criteria are to let the model summarize a hostile email without obeying its embedded commands and to avoid invented contract dates when the uploaded document lacks them.

Question 260

A document processing application is approaching release, but the team still needs to let reviewers trace each summary claim to its authoritative document version. What is the most appropriate implementation?

  1. Add explicit provenance to retrieved evidence
  2. Separate model reasoning from authoritative calculations
  3. Return user-friendly error states
  4. Keep user tasks in the user message

Explanation

Correct Answer

A:

Source identifiers, timestamps, and passage boundaries make citations and later audits possible; this behavior directly supports the need to let reviewers trace each summary claim to its authoritative document version. A fluent answer without lineage cannot be independently verified.

Incorrect Answers

B:

Deterministic services can enforce exact formulas and rounding before the model explains the result; the supported outcome is to compute discounts through verified business code rather than generated arithmetic alone, whereas this scenario requires the ability to let reviewers trace each summary claim to its authoritative document version; a plausible model narrative is not a reliable financial ledger.

C:

This approach serves the separate need to explain service limits or tool outages without leaking stack traces or secrets because structured error mapping presents actionable feedback while retaining detailed diagnostics in protected logs; it does not establish the outcome to let reviewers trace each summary claim to its authoritative document version, and returning a raw exception can expose internal infrastructure details.

D:

Explicit message roles distinguish requested work from higher-priority operational framing; despite being useful when a service must separate an end user's request from the developer's stable operating instructions, it is not a solution to let reviewers trace each summary claim to its authoritative document version; merging everything into one unstructured prompt weakens provenance.

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