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

Question 330

In a repository-level Claude Code rollout, a release requirement is to make a reusable development procedure available to Claude Code with supporting files. Which implementation addresses that specific requirement?

  1. Invoke the supported noninteractive or print-mode command interface.
  2. Configure a specialized Claude Code subagent with a narrow remit.
  3. Create a project skill with the documented skill metadata and content.
  4. Define policy in the appropriate managed or shared settings scope.

Explanation

Correct Answer

C:

To make a reusable development procedure available to Claude Code with supporting files in this repository-level Claude Code rollout, a skill packages guidance or a workflow for reuse across relevant tasks; it is not identical to granting a runtime tool permission; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to run a Claude Code task from an automated CI job without an interactive terminal because headless operation outputs results for automation and requires explicit credential, permission, and failure handling in the CI environment; that mechanism does not meet the different requirement to make a reusable development procedure available to Claude Code with supporting files.

B:

The proposed alternative helps to delegate an independent code review without filling the main coding session with details because subagents can focus on a task and return a summary, limiting noise in the parent session and allowing separate permissions when configured; that mechanism does not meet the different requirement to make a reusable development procedure available to Claude Code with supporting files.

D:

The proposed alternative helps to enforce a team-approved permission policy despite local developer preferences because Claude Code has multiple configuration scopes; binding policy to the required scope matters more than placing a rule in an arbitrary JSON file; that mechanism does not meet the different requirement to make a reusable development procedure available to Claude Code with supporting files.

Question 331

An operational review of a hosted document-processing service reports distinct failures: it cannot let a reviewer trace claims to the material actually consulted, and it cannot shield customer traffic when inference capacity is exhausted. Which two repairs are required? Choose TWO.

  1. Store and retrieve message history by authenticated tenant and conversation ID.
  2. Enforce per-tenant token and request budgets in the backend.
  3. Use strict tool input validation for the exposed tool interface.
  4. Retain source identifiers with retrieved evidence and render supported citations.
  5. Queue or reject excess requests using bounded admission control.

Explanation

Correct Answers

D:

To let a reviewer trace claims to the material actually consulted as part of a design that must also shield customer traffic when inference capacity is exhausted, traceability requires linking claims to accessible source passages; fabricated URLs or unlabeled snippets do not provide verifiable provenance; this is why the action is one of the two required selections.

E:

To shield customer traffic when inference capacity is exhausted as part of a design that must also let a reviewer trace claims to the material actually consulted, controlled queuing protects system latency and prevents unbounded retries from overwhelming downstream provider quotas; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to prevent chat transcripts from different accounts entering the same Claude request because session hygiene requires server-enforced isolation; model instructions cannot repair a history assembled from the wrong user; the required outcomes are instead to let a reviewer trace claims to the material actually consulted and to shield customer traffic when inference capacity is exhausted.

B:

This alternative serves the separate goal to keep one customer from consuming an entire shared inference budget because application quotas isolate noisy tenants and control spending; provider-wide rate limits alone do not guarantee fairness between customers; the required outcomes are instead to let a reviewer trace claims to the material actually consulted and to shield customer traffic when inference capacity is exhausted.

C:

This alternative serves the separate goal to reject tool arguments that fail a declared shape before tool execution because a strict schema constrains the arguments a model may emit, but application authorization and business-rule checks remain necessary; the required outcomes are instead to let a reviewer trace claims to the material actually consulted and to shield customer traffic when inference capacity is exhausted.

Question 332

Two acceptance tests block a production prompt pipeline: one requires the ability to apply the same compliance restrictions across many different end-user requests; the other requires the ability to ask for missing essential parameters rather than inventing a consequential choice. Which plan clears both tests?

  1. Perform both steps: (1) Rank and select relevant passages before building the model context; (2) hold evaluation inputs constant and compare prompt versions.
  2. Perform both steps: (1) Rank and select relevant passages before building the model context; (2) instruct the application to request clarification for unresolved high-impact ambiguity.
  3. Perform both steps: (1) Put stable application constraints in the system instruction field; (2) hold evaluation inputs constant and compare prompt versions.
  4. Perform both steps: (1) Put stable application constraints in the system instruction field; (2) instruct the application to request clarification for unresolved high-impact ambiguity.

Explanation

Correct Answer

D:

The first change enables the team to apply the same compliance restrictions across many different end-user requests because high-priority application instructions should not be delivered as ordinary user content where they compete with user questions and document text; the second addresses the separate need to ask for missing essential parameters rather than inventing a consequential choice because clarification reduces irreversible guesses when requirements do not uniquely determine a safe action.

Incorrect Answers

A:

Both steps target different results—keep only evidence that matters to the question when retrieval returns hundreds of documents and measure whether a changed instruction actually improves extraction accuracy—because relevance filtering reduces distracting information and token usage; dumping every retrieved page can degrade grounding and exceed limits and a reproducible prompt test isolates the change being studied; anecdotal output from unrelated cases does not show improvement; the required capabilities are instead to apply the same compliance restrictions across many different end-user requests and to ask for missing essential parameters rather than inventing a consequential choice.

B:

The second step meets the requirement to ask for missing essential parameters rather than inventing a consequential choice because clarification reduces irreversible guesses when requirements do not uniquely determine a safe action; the first step would only help to keep only evidence that matters to the question when retrieval returns hundreds of documents because relevance filtering reduces distracting information and token usage; dumping every retrieved page can degrade grounding and exceed limits, leaving the separate requirement to apply the same compliance restrictions across many different end-user requests unmet.

C:

The first step is appropriate for the requirement to apply the same compliance restrictions across many different end-user requests because high-priority application instructions should not be delivered as ordinary user content where they compete with user questions and document text; the other step instead aims to measure whether a changed instruction actually improves extraction accuracy because a reproducible prompt test isolates the change being studied; anecdotal output from unrelated cases does not show improvement, which does not meet the second requirement to ask for missing essential parameters rather than inventing a consequential choice.

Question 333

An architecture review of a Claude API workload benchmark asks how to estimate model usage from encoded text rather than counting words. Which action is the best fit?

  1. Measure or count input and output tokens with the supported tokenizer or API.
  2. Select an available effort level after measuring task performance.
  3. Track output tokens separately from input tokens.
  4. Use more exploratory sampling where supported and measure quality.

Explanation

Correct Answer

A:

To estimate model usage from encoded text rather than counting words in this Claude API workload benchmark, billing and context consumption track tokens, which do not map one-to-one to English words or characters; the proposed implementation directly supplies that capability.

Incorrect Answers

B:

The proposed alternative helps to trade answer latency and computation against solution quality on supported models because reasoning effort is an inference-time tradeoff; lowering it may reduce costs or latency while harming difficult-case accuracy; that mechanism does not meet the different requirement to estimate model usage from encoded text rather than counting words.

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 estimate model usage from encoded text rather than counting words.

D:

The proposed alternative helps to invite stylistic variety during noncritical brainstorming because higher sampling randomness broadens candidate phrasing but can reduce predictability, so it suits ideation better than strict extraction; that mechanism does not meet the different requirement to estimate model usage from encoded text rather than counting words.

Question 334

For a Python Claude API backend, the missing capability is to apply consistent reviewed tool permissions to an entire Claude Code repository team. What should the developers implement?

  1. Store team settings in the project's shared configuration file.
  2. Pin a supported explicit model version where stability is required.
  3. Add automated consumer-provider contract tests.
  4. Exercise complete request-to-tool-to-response paths in a controlled environment.

Explanation

Correct Answer

A:

To apply consistent reviewed tool permissions to an entire Claude Code repository team in this Python Claude API backend, repository-level settings can be versioned and reviewed, unlike private preferences that vary across each developer's machine; the proposed implementation directly supplies that capability.

Incorrect Answers

B:

The proposed alternative helps to reproduce production behavior across deploys instead of silently adopting a new model release because explicit version selection limits unexpected changes; a release process should evaluate upgrades and retirement timelines deliberately; that mechanism does not meet the different requirement to apply consistent reviewed tool permissions to an entire Claude Code repository team.

C:

The proposed alternative helps to detect a changed tool response field before it breaks downstream code because schema contracts make integration changes visible and prevent a renamed field from silently corrupting later model context; that mechanism does not meet the different requirement to apply consistent reviewed tool permissions to an entire Claude Code repository team.

D:

The proposed alternative helps to catch mismatches between model calls, tool handlers, and application persistence because unit tests cannot reveal every serialization or permission issue across service boundaries; integration tests validate the connected contract; that mechanism does not meet the different requirement to apply consistent reviewed tool permissions to an entire Claude Code repository team.

Question 335

To ship a multi-tenant inference service, the application must resist instructions embedded in a retrieved support ticket that demand secret disclosure and stop a model-requested webhook from sending sensitive case text to an unapproved host. Which pair of listed actions is necessary for those stated capabilities? Choose TWO.

  1. Redact secrets and protect log access with retention controls.
  2. Grant each runtime tool only the operations and resources required for its task.
  3. Enforce outbound destination allowlists at the tool execution layer.
  4. Treat retrieved content as untrusted and prevent its instructions from controlling tools.
  5. Define fail-closed behavior for an enforcement hook and test failure paths.

Explanation

Correct Answers

C:

To stop a model-requested webhook from sending sensitive case text to an unapproved host as part of a design that must also resist instructions embedded in a retrieved support ticket that demand secret disclosure, network restrictions prevent data egress even if injected instructions convince a model to request the call; this is why the action is one of the two required selections.

D:

To resist instructions embedded in a retrieved support ticket that demand secret disclosure as part of a design that must also stop a model-requested webhook from sending sensitive case text to an unapproved host, source material is data rather than authority; enforcing tool permissions and separating roles limits an attacker's ability to redirect execution; 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 resist instructions embedded in a retrieved support ticket that demand secret disclosure and to stop a model-requested webhook from sending sensitive case text to an unapproved host.

B:

This alternative serves the separate goal to limit the consequences of a mistaken tool call in a production support system because least-privilege permissions shrink the blast radius of model errors and compromised prompts, especially for mutating actions; the required outcomes are instead to resist instructions embedded in a retrieved support ticket that demand secret disclosure and to stop a model-requested webhook from sending sensitive case text to an unapproved host.

E:

This alternative serves the separate goal to avoid accidentally allowing critical writes when a safety check crashes because a guardrail that silently skips checks on errors is not an effective boundary; failures must prevent the protected action when policy requires it; the required outcomes are instead to resist instructions embedded in a retrieved support ticket that demand secret disclosure and to stop a model-requested webhook from sending sensitive case text to an unapproved host.

Question 336

A team maintaining an internal agent-extension rollout has two different engineering requirements: (1) let Claude distinguish a failed database lookup from an empty successful result, and (2) stop a slow external system from trapping an agent loop indefinitely. Which TWO independent changes directly meet them? Choose TWO.

  1. Implement a client-side handler and return its result with the tool-use identifier.
  2. Return an explicit tool error indication and an informative safe message.
  3. Give each tool a timeout and controlled retry or failure result.
  4. Describe each tool's purpose, required inputs, and limitations clearly.
  5. Define a descriptive tool name and validated input schema.

Explanation

Correct Answers

B:

To let Claude distinguish a failed database lookup from an empty successful result as part of a design that must also stop a slow external system from trapping an agent loop indefinitely, an error result preserves failure semantics, preventing the model from inventing a no-record finding for a call that never succeeded; this is why the action is one of the two required selections.

C:

To stop a slow external system from trapping an agent loop indefinitely as part of a design that must also let Claude distinguish a failed database lookup from an empty successful result, tool execution is a separate latency source; bounded calls prevent one dependency from exhausting the entire agent budget; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal 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; the required outcomes are instead to let Claude distinguish a failed database lookup from an empty successful result and to stop a slow external system from trapping an agent loop indefinitely.

D:

This alternative serves the separate goal to prevent two similarly named lookup tools from being confused because tool descriptions influence the model's selection, so overlapping or vague names make dispatch less reliable; the required outcomes are instead to let Claude distinguish a failed database lookup from an empty successful result and to stop a slow external system from trapping an agent loop indefinitely.

E:

This alternative serves the separate goal to expose a business lookup with predictable typed arguments because well-described schemas help Claude select a capability and emit usable arguments; the backend still validates authorization and meaning; the required outcomes are instead to let Claude distinguish a failed database lookup from an empty successful result and to stop a slow external system from trapping an agent loop indefinitely.

Question 337

The team responsible for a latency-sensitive model gateway needs to reduce inconsistent labeling across nuanced examples. What is the most direct engineering change?

  1. Select an available effort level after measuring task performance.
  2. Keep HTTPS certificate and hostname verification enabled.
  3. Include several carefully selected and diverse demonstrations.
  4. Serialize the documented nested request shape rather than flattening it.

Explanation

Correct Answer

C:

To reduce inconsistent labeling across nuanced examples in this latency-sensitive model gateway, multiple examples communicate decision boundaries and desired formatting, although irrelevant or misleading demonstrations can bias the model; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to trade answer latency and computation against solution quality on supported models because reasoning effort is an inference-time tradeoff; lowering it may reduce costs or latency while harming difficult-case accuracy; that mechanism does not meet the different requirement to reduce inconsistent labeling across nuanced examples.

B:

The proposed alternative helps to protect model API traffic against an impersonated network endpoint because verified TLS authenticates the service and protects data in transit; disabling validation defeats a key transport security property; that mechanism does not meet the different requirement to reduce inconsistent labeling across nuanced examples.

D:

The proposed alternative helps to preserve arrays of typed content blocks when sending multimodal input because typed content and role fields carry protocol meaning that is lost if developers simply concatenate them into plain text; that mechanism does not meet the different requirement to reduce inconsistent labeling across nuanced examples.

Question 338

A team maintaining a production prompt pipeline has two different engineering requirements: (1) prevent a generated status outside a database's accepted code set, and (2) handle a JSON parse failure without silently accepting partial data. Which TWO independent changes directly meet them? Choose TWO.

  1. Map or reject values not in the approved enumeration.
  2. Rank and select relevant passages before building the model context.
  3. Catch the parsing error and apply a bounded repair or retry path.
  4. Validate parsed output against the application's declared schema.
  5. Revise one prompt component at a time against a regression evaluation set.

Explanation

Correct Answers

A:

To prevent a generated status outside a database's accepted code set as part of a design that must also handle a JSON parse failure without silently accepting partial data, controlled vocabularies need explicit allowed values; a plausible new status label can still break downstream contracts; this is why the action is one of the two required selections.

C:

To handle a JSON parse failure without silently accepting partial data as part of a design that must also prevent a generated status outside a database's accepted code set, defensive parsing makes failures explicit and limits reattempts; swallowing errors can propagate corrupt records; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal to keep only evidence that matters to the question when retrieval returns hundreds of documents because relevance filtering reduces distracting information and token usage; dumping every retrieved page can degrade grounding and exceed limits; the required outcomes are instead to prevent a generated status outside a database's accepted code set and to handle a JSON parse failure without silently accepting partial data.

D:

This alternative serves the separate goal to reject model output missing a field that a downstream service requires because parsing proves a string is legal JSON, but schema validation checks required keys, types, and structural constraints; the required outcomes are instead to prevent a generated status outside a database's accepted code set and to handle a JSON parse failure without silently accepting partial data.

E:

This alternative serves the separate goal to improve a prompt while preserving performance on previously solved cases because controlled prompt iteration distinguishes genuine quality gains from regressions or overfitting to one attractive example; the required outcomes are instead to prevent a generated status outside a database's accepted code set and to handle a JSON parse failure without silently accepting partial data.

Question 339

An operational review of a hosted document-processing service reports distinct failures: it cannot catch unsafe credentials and incorrect tool calls before deployment, and it cannot keep a stalled upstream model call from occupying application resources indefinitely. Which two repairs are required? Choose TWO.

  1. Detect transport interruption and mark incomplete generated content.
  2. Supply the required API version header.
  3. Reuse an appropriately configured HTTP client or SDK connection pool.
  4. Set realistic connection and response timeouts with an explicit failure path.
  5. Require peer review focused on API, security, and tool-side effects.

Explanation

Correct Answers

D:

To keep a stalled upstream model call from occupying application resources indefinitely as part of a design that must also catch unsafe credentials and incorrect tool calls before deployment, timeout handling caps resource exposure, while logging distinguishes slow provider response from a model-level refusal; this is why the action is one of the two required selections.

E:

To catch unsafe credentials and incorrect tool calls before deployment as part of a design that must also keep a stalled upstream model call from occupying application resources indefinitely, human review should check trust boundaries and external actions in addition to style; successful compilation cannot prove these behaviors are safe; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to avoid silently treating a broken streaming connection as a complete answer because network termination before a final message event can leave a partial response, which needs explicit recovery rather than success handling; the required outcomes are instead to catch unsafe credentials and incorrect tool calls before deployment and to keep a stalled upstream model call from occupying application resources indefinitely.

B:

This alternative serves the separate goal to make a direct REST request with a declared supported API contract because the version header selects the protocol contract supported by the endpoint, preventing accidental dependence on unspecified behavior; the required outcomes are instead to catch unsafe credentials and incorrect tool calls before deployment and to keep a stalled upstream model call from occupying application resources indefinitely.

C:

This alternative serves the separate goal to reduce repeated TLS setup overhead for high-volume application traffic because connection reuse lowers transport overhead but still requires limits and health handling for long-lived clients; the required outcomes are instead to catch unsafe credentials and incorrect tool calls before deployment and to keep a stalled upstream model call from occupying application resources indefinitely.

Question 340

For a model-family migration plan, the missing capability is to work in an environment that lacks a compatible Claude SDK. What should the developers implement?

  1. Use a synchronous client with explicit timeout and error handling.
  2. Propagate cancellation to the active network request when supported.
  3. Start with a clear instruction and no demonstrations.
  4. Call the documented HTTPS endpoint with explicit headers and JSON serialization.

Explanation

Correct Answer

D:

To work in an environment that lacks a compatible Claude SDK in this model-family migration plan, direct REST access remains possible when an SDK is unavailable, but the caller owns wire-format correctness and response parsing; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to implement a low-volume command-line utility that handles one inference at a time because synchronous calls are simplest for strictly sequential work, where concurrency would add complexity without improving throughput; that mechanism does not meet the different requirement to work in an environment that lacks a compatible Claude SDK.

B:

The proposed alternative helps to stop a no-longer-needed inference when the user's request is cancelled because cancelling work can free local resources and avoid processing obsolete results, though already-incurred provider work may still be billed; that mechanism does not meet the different requirement to work in an environment that lacks a compatible Claude SDK.

C:

The proposed alternative helps to run a straightforward well-specified classification without consuming examples because zero-shot prompting relies on direct task instructions and can save context when the task requires little format teaching; that mechanism does not meet the different requirement to work in an environment that lacks a compatible Claude SDK.

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