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

Question 280

Two separate tickets in a retrieval pipeline backlog require different controls. One needs to reject a response that omits a mandated account identifier; the other needs to detect plausible dates or amounts that are absent from the provided document. Which implementation pair is correct?

  1. First component: Handle refusal and empty content explicitly. Second component: Parse JSON with a real parser.
  2. First component: Validate required schema fields. Second component: Handle refusal and empty content explicitly.
  3. First component: Validate required schema fields. Second component: Check evidence alignment after extraction.
  4. First component: Parse JSON with a real parser. Second component: Check evidence alignment after extraction.

Explanation

Correct Answer

C:

The first proposal fits its assigned role because schema checks enforce field presence, types, and enumerations before the result enters a database, while the second proposal fits its assigned role because semantic verification compares fields to authoritative source spans; their respective acceptance criteria are to reject a response that omits a mandated account identifier and to detect plausible dates or amounts that are absent from the provided document.

Incorrect Answers

A:

The first proposal serves the different purpose to prevent a parser crash when the model returns no ordinary text instead of the assigned first role because response handling must branch on stop reason and content block types before decoding data, while the second proposal serves the different purpose to avoid accepting malformed generated objects because they resemble JSON to a reader instead of the assigned second role because syntax validation converts serialized text into a trustworthy data structure only after parsing succeeds; their respective acceptance criteria are to reject a response that omits a mandated account identifier and to detect plausible dates or amounts that are absent from the provided document.

B:

The first proposal fits its assigned role because schema checks enforce field presence, types, and enumerations before the result enters a database, while the second proposal serves the different purpose to prevent a parser crash when the model returns no ordinary text instead of the assigned second role because response handling must branch on stop reason and content block types before decoding data; their respective acceptance criteria are to reject a response that omits a mandated account identifier and to detect plausible dates or amounts that are absent from the provided document.

D:

The first proposal serves the different purpose to avoid accepting malformed generated objects because they resemble JSON to a reader instead of the assigned first role because syntax validation converts serialized text into a trustworthy data structure only after parsing succeeds, while the second proposal fits its assigned role because semantic verification compares fields to authoritative source spans; their respective acceptance criteria are to reject a response that omits a mandated account identifier and to detect plausible dates or amounts that are absent from the provided document.

Question 281

Engineers are splitting an agent platform service into two independently tested functions. Function A must choose the right specialised handling path from the request category, while function B must prevent an autonomous investigation from issuing irreversible account changes without review. Which plan is sound?

  1. First component: Apply routing before task execution. Second component: Use sequential chaining for dependent subtasks.
  2. First component: Use sequential chaining for dependent subtasks. Second component: Keep a single agent with a small tool set.
  3. First component: Apply routing before task execution. Second component: Introduce a human approval checkpoint.
  4. First component: Keep a single agent with a small tool set. Second component: Introduce a human approval checkpoint.

Explanation

Correct Answer

C:

The first proposal fits its assigned role because an inexpensive classification or rule-based router sends each request to the applicable predefined workflow, while the second proposal fits its assigned role because a human gate separates analysis from externally consequential action and gives a reviewer a veto; their respective acceptance criteria are to choose the right specialised handling path from the request category and to prevent an autonomous investigation from issuing irreversible account changes without review.

Incorrect Answers

A:

The first proposal fits its assigned role because an inexpensive classification or rule-based router sends each request to the applicable predefined workflow, while the second proposal serves the different purpose to ensure a generated specification is validated before code generation begins instead of the assigned second role because each stage consumes an approved artifact from the previous stage, preserving dependency order and stage-specific checks; their respective acceptance criteria are to choose the right specialised handling path from the request category and to prevent an autonomous investigation from issuing irreversible account changes without review.

B:

The first proposal serves the different purpose to ensure a generated specification is validated before code generation begins instead of the assigned first role because each stage consumes an approved artifact from the previous stage, preserving dependency order and stage-specific checks, while the second proposal serves the different purpose to answer routine account questions without the overhead of orchestrating multiple agents instead of the assigned second role because a single constrained executor simplifies state, authentication, logging, and latency where specialization adds little; their respective acceptance criteria are to choose the right specialised handling path from the request category and to prevent an autonomous investigation from issuing irreversible account changes without review.

D:

The first proposal serves the different purpose to answer routine account questions without the overhead of orchestrating multiple agents instead of the assigned first role because a single constrained executor simplifies state, authentication, logging, and latency where specialization adds little, while the second proposal fits its assigned role because a human gate separates analysis from externally consequential action and gives a reviewer a veto; their respective acceptance criteria are to choose the right specialised handling path from the request category and to prevent an autonomous investigation from issuing irreversible account changes without review.

Question 282

Two separate tickets in a model platform backlog require different controls. One needs to verify that an optimization actually reuses an earlier prompt prefix; the other needs to prevent request timestamps from invalidating a costly static prefix. Which implementation pair is correct?

  1. First component: Use batch pricing where deadline permits. Second component: Track input and output usage separately.
  2. First component: Measure cache read tokens. Second component: Use batch pricing where deadline permits.
  3. First component: Measure cache read tokens. Second component: Keep volatile fields after reusable context.
  4. First component: Track input and output usage separately. Second component: Keep volatile fields after reusable context.

Explanation

Correct Answer

C:

The first proposal fits its assigned role because usage fields show how much eligible cached input was read rather than recomputed, while the second proposal fits its assigned role because stable instruction and reference sections should precede changing per-request details for effective prefix reuse; their respective acceptance criteria are to verify that an optimization actually reuses an earlier prompt prefix and to prevent request timestamps from invalidating a costly static prefix.

Incorrect Answers

A:

The first proposal serves the different purpose to lower spend for large scheduled classification jobs that do not need immediate responses instead of the assigned first role because asynchronous batch processing can offer a cost-effective throughput path under supported terms, while the second proposal serves the different purpose to forecast cost for an application that sends long documents but returns brief classifications instead of the assigned second role because metering by token category reveals the main cost driver and supports realistic forecasts; their respective acceptance criteria are to verify that an optimization actually reuses an earlier prompt prefix and to prevent request timestamps from invalidating a costly static prefix.

B:

The first proposal fits its assigned role because usage fields show how much eligible cached input was read rather than recomputed, while the second proposal serves the different purpose to lower spend for large scheduled classification jobs that do not need immediate responses instead of the assigned second role because asynchronous batch processing can offer a cost-effective throughput path under supported terms; their respective acceptance criteria are to verify that an optimization actually reuses an earlier prompt prefix and to prevent request timestamps from invalidating a costly static prefix.

D:

The first proposal serves the different purpose to forecast cost for an application that sends long documents but returns brief classifications instead of the assigned first role because metering by token category reveals the main cost driver and supports realistic forecasts, while the second proposal fits its assigned role because stable instruction and reference sections should precede changing per-request details for effective prefix reuse; their respective acceptance criteria are to verify that an optimization actually reuses an earlier prompt prefix and to prevent request timestamps from invalidating a costly static prefix.

Question 283

An agent governance solution has parallel requirements with separate owners. Workstream one must detect harmful instructions at input, tool-call, and output boundaries; workstream two must route borderline high-risk requests to a review process instead of automatic publication. Which combination meets both?

  1. First component: Use layered checks for unsafe requests. Second component: Deploy content moderation and escalation.
  2. First component: Rate-limit high-risk endpoints. Second component: Sandbox generated code execution.
  3. First component: Sandbox generated code execution. Second component: Deploy content moderation and escalation.
  4. First component: Use layered checks for unsafe requests. Second component: Rate-limit high-risk endpoints.

Explanation

Correct Answer

A:

The first proposal fits its assigned role because independent controls catch failures that a single prompt-level rule may miss, while the second proposal fits its assigned role because a defined moderation workflow handles uncertain or sensitive material according to business policy; their respective acceptance criteria are to detect harmful instructions at input, tool-call, and output boundaries and to route borderline high-risk requests to a review process instead of automatic publication.

Incorrect Answers

B:

The first proposal serves the different purpose to reduce automated abuse of a model-backed export or search capability instead of the assigned first role because per-identity quotas and anomaly monitoring make bulk misuse harder, while the second proposal serves the different purpose to inspect proposed scripts without granting them production host privileges instead of the assigned second role because resource, filesystem, and network isolation contain failures and malicious effects; their respective acceptance criteria are to detect harmful instructions at input, tool-call, and output boundaries and to route borderline high-risk requests to a review process instead of automatic publication.

C:

The first proposal serves the different purpose to inspect proposed scripts without granting them production host privileges instead of the assigned first role because resource, filesystem, and network isolation contain failures and malicious effects, while the second proposal fits its assigned role because a defined moderation workflow handles uncertain or sensitive material according to business policy; their respective acceptance criteria are to detect harmful instructions at input, tool-call, and output boundaries and to route borderline high-risk requests to a review process instead of automatic publication.

D:

The first proposal fits its assigned role because independent controls catch failures that a single prompt-level rule may miss, while the second proposal serves the different purpose to reduce automated abuse of a model-backed export or search capability instead of the assigned second role because per-identity quotas and anomaly monitoring make bulk misuse harder; their respective acceptance criteria are to detect harmful instructions at input, tool-call, and output boundaries and to route borderline high-risk requests to a review process instead of automatic publication.

Question 284

A latency optimization team is evaluating two disjoint use cases. For one use case, it must reduce variation when a service maps documents into consistent categories; for the other, it must brainstorm diverse naming candidates without demanding identical wording on every run. Which paired choices are justified?

  1. First component: Use contrasting few-shot examples. Second component: Reduce reasoning effort on trivial routing.
  2. First component: Use low-temperature generation for repeatable extraction. Second component: Use varied sampling only for ideation.
  3. First component: Use low-temperature generation for repeatable extraction. Second component: Use contrasting few-shot examples.
  4. First component: Reduce reasoning effort on trivial routing. Second component: Use varied sampling only for ideation.

Explanation

Correct Answer

B:

The first proposal fits its assigned role because lower randomness often improves consistency for narrow, constrained tasks, while the second proposal fits its assigned role because greater sampling diversity can produce a wider range of suggestions for exploratory work; their respective acceptance criteria are to reduce variation when a service maps documents into consistent categories and to brainstorm diverse naming candidates without demanding identical wording on every run.

Incorrect Answers

A:

The first proposal serves the different purpose to distinguish borderline policy labels with examples of both allowed and disallowed cases instead of the assigned first role because multiple representative cases help define a decision boundary and reduce ambiguity, while the second proposal serves the different purpose to shorten latency and spend on tasks that need only basic categorization instead of the assigned second role because lower effort can suit predictable work where deeper reasoning adds little measurable quality; their respective acceptance criteria are to reduce variation when a service maps documents into consistent categories and to brainstorm diverse naming candidates without demanding identical wording on every run.

C:

The first proposal fits its assigned role because lower randomness often improves consistency for narrow, constrained tasks, while the second proposal serves the different purpose to distinguish borderline policy labels with examples of both allowed and disallowed cases instead of the assigned second role because multiple representative cases help define a decision boundary and reduce ambiguity; their respective acceptance criteria are to reduce variation when a service maps documents into consistent categories and to brainstorm diverse naming candidates without demanding identical wording on every run.

D:

The first proposal serves the different purpose to shorten latency and spend on tasks that need only basic categorization instead of the assigned first role because lower effort can suit predictable work where deeper reasoning adds little measurable quality, while the second proposal fits its assigned role because greater sampling diversity can produce a wider range of suggestions for exploratory work; their respective acceptance criteria are to reduce variation when a service maps documents into consistent categories and to brainstorm diverse naming candidates without demanding identical wording on every run.

Question 285

During acceptance testing for an agent platform service, one requirement is to recover from a failed search while preserving the agent's chance to choose another path. What should the developer implement?

  1. Return a structured tool error to the model
  2. Forward tool_result blocks with matching identifiers
  3. Choose isolated sandbox execution for untrusted code
  4. Use a durable session store

Explanation

Correct Answer

A:

Tool-result errors surface the failure without impersonating a successful action; this behavior directly supports the need to recover from a failed search while preserving the agent's chance to choose another path. Silently dropping a failed tool response leaves the model without a valid observation.

Incorrect Answers

B:

When an application needs to let Claude continue after a client tool returns a transaction status, results must reference the corresponding tool_use IDs and be included in the next conversation turn; the current capability must instead recover from a failed search while preserving the agent's chance to choose another path, while sending a human-readable summary without the tool correlation can break the protocol.

C:

A restricted execution environment limits filesystem, network, and resource privileges; the supported outcome is to let an agent run generated scripts without exposing production host files, whereas this scenario requires the ability to recover from a failed search while preserving the agent's chance to choose another path; running code in the main application process expands the blast radius of a bad tool call.

D:

This approach serves the separate need to recover agent state when a container restarts during a lengthy customer case because external persistence holds the conversation and workflow metadata needed to resume safely; it does not establish the outcome to recover from a failed search while preserving the agent's chance to choose another path, and process-local variables disappear with the worker.

Question 286

A tool integration build contains an upstream function and a separate downstream function. The upstream work must delegate a security analysis while keeping the main coordinator's context concise; the downstream work must enable a customer service agent to prepare but not autonomously approve account closures. Which configuration pair covers both?

  1. First component: Use a deterministic workflow for fixed stages. Second component: Combine tool access with human confirmation.
  2. First component: Use subagents for independent expertise. Second component: Combine tool access with human confirmation.
  3. First component: Use an autonomous agent for exploratory work. Second component: Use hooks for enforceable safety checks.
  4. First component: Use hooks for enforceable safety checks. Second component: Use a deterministic workflow for fixed stages.
  5. First component: Use subagents for independent expertise. Second component: Use hooks for enforceable safety checks.

Explanation

Correct Answer

B:

The first proposal fits its assigned role because specialist contexts reduce tool-output contamination and support focused parallel work, while the second proposal fits its assigned role because tools supply actionable capabilities while a separate approval step governs sensitive execution; their respective acceptance criteria are to delegate a security analysis while keeping the main coordinator's context concise and to enable a customer service agent to prepare but not autonomously approve account closures.

Incorrect Answers

A:

The first proposal serves the different purpose to automate the same classify-review-export path across predictable submissions instead of the assigned first role because explicit application control makes each transition testable and easier to audit, while the second proposal fits its assigned role because tools supply actionable capabilities while a separate approval step governs sensitive execution; their respective acceptance criteria are to delegate a security analysis while keeping the main coordinator's context concise and to enable a customer service agent to prepare but not autonomously approve account closures.

C:

The first proposal serves the different purpose to perform open-ended troubleshooting where tool selection changes after each observation instead of the assigned first role because model-directed planning supports adaptive sequences when the next action is not known in advance, while the second proposal serves the different purpose to deny destructive filesystem operations before a coding agent executes them instead of the assigned second role because runtime interception can apply deterministic policies to proposed actions; their respective acceptance criteria are to delegate a security analysis while keeping the main coordinator's context concise and to enable a customer service agent to prepare but not autonomously approve account closures.

D:

The first proposal serves the different purpose to deny destructive filesystem operations before a coding agent executes them instead of the assigned first role because runtime interception can apply deterministic policies to proposed actions, while the second proposal serves the different purpose to automate the same classify-review-export path across predictable submissions instead of the assigned second role because explicit application control makes each transition testable and easier to audit; their respective acceptance criteria are to delegate a security analysis while keeping the main coordinator's context concise and to enable a customer service agent to prepare but not autonomously approve account closures.

E:

The first proposal fits its assigned role because specialist contexts reduce tool-output contamination and support focused parallel work, while the second proposal serves the different purpose to deny destructive filesystem operations before a coding agent executes them instead of the assigned second role because runtime interception can apply deterministic policies to proposed actions; their respective acceptance criteria are to delegate a security analysis while keeping the main coordinator's context concise and to enable a customer service agent to prepare but not autonomously approve account closures.

Question 287

A developer is reviewing alternatives for a customer platform feature that must produce a user-facing answer after a successful inventory lookup. Which option is a defensible fit?

  1. Send tool_result content back to Claude
  2. Differentiate client and server tool execution
  3. Call the Messages API with explicit model and max_tokens
  4. Handle message_stop and final usage events

Explanation

Correct Answer

A:

A result block tied to the tool call returns the external observation to the model for synthesis; this behavior directly supports the need to produce a user-facing answer after a successful inventory lookup. A function's return value in server memory is invisible until included in the next request.

Incorrect Answers

B:

For the alternate objective to avoid assuming a custom local database function runs inside Anthropic infrastructure, the integration owns execution of client tools, while supported server tools are performed by the provider; the feature here must produce a user-facing answer after a successful inventory lookup, and tool names alone do not determine who executes the action.

C:

A message request identifies the target model, a message list, and an output-token ceiling; this applies to the different goal to return an answer to a short user request through a backend service, not the requirement to produce a user-facing answer after a successful inventory lookup; the API is not a stateful chat session unless prior turns are supplied.

D:

When an application needs to record complete streamed output and token usage accurately, the final stream events signal completion and deliver accumulated metadata beyond individual text fragments; the current capability must instead produce a user-facing answer after a successful inventory lookup, while stopping after the first content delta truncates responses.

Question 288

An engineer extending a document processing workflow has been asked to test application logic without issuing real model calls or payments. Which choice addresses the request most precisely?

  1. Use exponential backoff with jitter
  2. Keep secrets out of source control
  3. Apply dependency injection for external clients
  4. Version APIs and response schemas

Explanation

Correct Answer

C:

Injected interfaces allow deterministic stubs and reduce coupling to vendors; this behavior directly supports the need to test application logic without issuing real model calls or payments. Hard-coded global clients make behavior harder to isolate and simulate.

Incorrect Answers

A:

Increasing randomized delays reduce contention and respect service throttling signals; despite being useful when a service must recover from transient 429 responses without synchronized retry storms, it is not a solution to test application logic without issuing real model calls or payments; immediate identical retries can extend an overload event.

B:

For the alternate objective to prevent API credentials from being exposed through shared repository history, secret stores or environment injection keep production tokens out of committed code; the feature here must test application logic without issuing real model calls or payments, and deleting a secret from the latest commit may not remove it from earlier revisions.

D:

When an application needs to allow older application clients to keep working while a new extraction field is introduced, compatibility-aware contracts and versioned behavior protect consumers from surprise breaking changes; the current capability must instead test application logic without issuing real model calls or payments, while silently removing required fields can fail deployments that were not upgraded.

Question 289

Two separate tickets in a customer platform backlog require different controls. One needs to display a long report as it is generated rather than waiting for the full completion; the other needs to extract claims from a document while retaining its visual layout. Which implementation pair is correct?

  1. First component: Use SSE streaming for partial response delivery. Second component: Include an image content block.
  2. First component: Handle the max_tokens stop_reason. Second component: Use supported document or PDF input.
  3. First component: Read the HTTP error status before retrying. Second component: Include an image content block.
  4. First component: Use SSE streaming for partial response delivery. Second component: Use supported document or PDF input.
  5. First component: Include an image content block. Second component: Handle the max_tokens stop_reason.

Explanation

Correct Answer

D:

The first proposal fits its assigned role because streaming yields ordered events and content deltas that the client assembles into the final response, while the second proposal fits its assigned role because document-aware input lets a capable model consider page content and graphics when supported; their respective acceptance criteria are to display a long report as it is generated rather than waiting for the full completion and to extract claims from a document while retaining its visual layout.

Incorrect Answers

A:

The first proposal fits its assigned role because streaming yields ordered events and content deltas that the client assembles into the final response, while the second proposal serves the different purpose to analyze a photographed shipping label with the supported multimodal Messages input instead of the assigned second role because image inputs are supplied as typed content with appropriate source data or references; their respective acceptance criteria are to display a long report as it is generated rather than waiting for the full completion and to extract claims from a document while retaining its visual layout.

B:

The first proposal serves the different purpose to recover a response that ended because its output budget was exhausted instead of the assigned first 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 document-aware input lets a capable model consider page content and graphics when supported; their respective acceptance criteria are to display a long report as it is generated rather than waiting for the full completion and to extract claims from a document while retaining its visual layout.

C:

The first proposal serves the different purpose to distinguish an invalid request from a temporary provider or rate-limit failure instead of the assigned first role because status codes and structured errors guide correction versus bounded retry, while the second proposal serves the different purpose to analyze a photographed shipping label with the supported multimodal Messages input instead of the assigned second role because image inputs are supplied as typed content with appropriate source data or references; their respective acceptance criteria are to display a long report as it is generated rather than waiting for the full completion and to extract claims from a document while retaining its visual layout.

E:

The first proposal serves the different purpose to analyze a photographed shipping label with the supported multimodal Messages input instead of the assigned first role because image inputs are supplied as typed content with appropriate source data or references, while the second proposal serves the different purpose to recover a response that ended because its output budget was exhausted instead of the assigned second role because the finish reason identifies truncation, so a caller may need a continuation or a revised token budget; their respective acceptance criteria are to display a long report as it is generated rather than waiting for the full completion and to extract claims from a document while retaining its visual layout.

Question 290

A release plan for a Claude application platform has two acceptance checks: component one must detect unsafe permissions and schema changes before merging an agent tool; component two must verify that a real staging tool and its API contract work together. Which proposal passes both?

  1. First component: Enforce concurrency limits. Second component: Separate integration tests from unit tests.
  2. First component: Use feature flags for risky behavior changes. Second component: Enforce concurrency limits.
  3. First component: Use pull requests and focused code review. Second component: Separate integration tests from unit tests.
  4. First component: Use pull requests and focused code review. Second component: Use feature flags for risky behavior changes.

Explanation

Correct Answer

C:

The first proposal fits its assigned role because peer review creates an explicit checkpoint for correctness, security, and maintainability, while the second proposal fits its assigned role because integration tests exercise boundaries and serialization that isolated mocks may miss; their respective acceptance criteria are to detect unsafe permissions and schema changes before merging an agent tool and to verify that a real staging tool and its API contract work together.

Incorrect Answers

A:

The first proposal serves the different purpose to prevent bursts of document jobs from overwhelming rate limits and memory instead of the assigned first role because a semaphore or bounded queue keeps in-flight work within measured capacity, while the second proposal fits its assigned role because integration tests exercise boundaries and serialization that isolated mocks may miss; their respective acceptance criteria are to detect unsafe permissions and schema changes before merging an agent tool and to verify that a real staging tool and its API contract work together.

B:

The first proposal serves the different purpose to activate a new tool execution path for only internal testers instead of the assigned first role because runtime controls can segment rollout and permit quick disabling without a code rebuild, while the second proposal serves the different purpose to prevent bursts of document jobs from overwhelming rate limits and memory instead of the assigned second role because a semaphore or bounded queue keeps in-flight work within measured capacity; their respective acceptance criteria are to detect unsafe permissions and schema changes before merging an agent tool and to verify that a real staging tool and its API contract work together.

D:

The first proposal fits its assigned role because peer review creates an explicit checkpoint for correctness, security, and maintainability, while the second proposal serves the different purpose to activate a new tool execution path for only internal testers instead of the assigned second role because runtime controls can segment rollout and permit quick disabling without a code rebuild; their respective acceptance criteria are to detect unsafe permissions and schema changes before merging an agent tool and to verify that a real staging tool and its API contract work together.

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