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

Question 160

The technical owner of a team-owned Claude Code workflow has to apply a coding convention only when Claude Code edits a particular path. A separate requirement is to continue a previously interrupted Claude Code work session. Which two-part remediation covers both?

  1. Perform both steps: (1) Create a project skill with the documented skill metadata and content; (2) add concise project guidance to the appropriate claude.md file.
  2. Perform both steps: (1) Place a path-targeted rule in the repository's rules configuration; (2) add concise project guidance to the appropriate claude.md file.
  3. Perform both steps: (1) Place a path-targeted rule in the repository's rules configuration; (2) use the supported session continuation or resume mechanism.
  4. Perform both steps: (1) Create a project skill with the documented skill metadata and content; (2) use the supported session continuation or resume mechanism.

Explanation

Correct Answer

C:

The first change enables the team to apply a coding convention only when Claude Code edits a particular path because scoped rules keep specialized instructions close to their applicable files, avoiding global instructions that conflict with other modules; the second addresses the separate need to continue a previously interrupted Claude Code work session because restoring session context reduces lost work while preserving continuity of prior tool activity; opening a new unrelated session does not do the same.

Incorrect Answers

A:

Both steps target different results—make a reusable development procedure available to Claude Code with supporting files and give Claude Code repository-specific build and test instructions for future sessions—because a skill packages guidance or a workflow for reuse across relevant tasks; it is not identical to granting a runtime tool permission and Claude Code reads persistent project instructions from its memory hierarchy; one-off chat messages do not reliably establish durable repository guidance; the required capabilities are instead to apply a coding convention only when Claude Code edits a particular path and to continue a previously interrupted Claude Code work session.

B:

The first step is appropriate for the requirement to apply a coding convention only when Claude Code edits a particular path because scoped rules keep specialized instructions close to their applicable files, avoiding global instructions that conflict with other modules; the other step instead aims to give Claude Code repository-specific build and test instructions for future sessions because Claude Code reads persistent project instructions from its memory hierarchy; one-off chat messages do not reliably establish durable repository guidance, which does not meet the second requirement to continue a previously interrupted Claude Code work session.

D:

The second step meets the requirement to continue a previously interrupted Claude Code work session because restoring session context reduces lost work while preserving continuity of prior tool activity; opening a new unrelated session does not do the same; the first step would only help to make a reusable development procedure available to Claude Code with supporting files because a skill packages guidance or a workflow for reuse across relevant tasks; it is not identical to granting a runtime tool permission, leaving the separate requirement to apply a coding convention only when Claude Code edits a particular path unmet.

Question 161

While planning a long-context summarization workflow, the product owner specifies that it must reduce the chance that critical instructions become buried in a huge prompt. Which solution fulfills the requirement?

  1. Require a completed stop condition before accepting the parsed result.
  2. Retain essential fields and discard irrelevant tool output from active context.
  3. Mark untrusted quoted material with explicit boundaries and role context.
  4. Place essential constraints prominently and structure large evidence clearly.

Explanation

Correct Answer

D:

To reduce the chance that critical instructions become buried in a huge prompt in this long-context summarization workflow, ordering, headings, and explicit references help the model distinguish governing rules from supporting material in large requests; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to avoid processing a truncated structured response as a complete record because a response cut off by token limits may parse incompletely or omit required content; completion status matters in addition to syntax; that mechanism does not meet the different requirement to reduce the chance that critical instructions become buried in a huge prompt.

B:

The proposed alternative helps to stop verbose tool payloads from consuming most of a long-running agent's context because summarizing or filtering observations keeps the reasoning window focused without deleting required facts from durable application state; that mechanism does not meet the different requirement to reduce the chance that critical instructions become buried in a huge prompt.

C:

The proposed alternative helps to distinguish a user's instructions from a quoted document containing imperatives because delimiters clarify that imported content is data to analyze, not a new authority to change tools or objectives; that mechanism does not meet the different requirement to reduce the chance that critical instructions become buried in a huge prompt.

Question 162

In a high-volume Messages API gateway, a release requirement is to reduce repeated TLS setup overhead for high-volume application traffic. Which implementation addresses that specific requirement?

  1. Give mutating operations an application-level idempotency key.
  2. Reuse an appropriately configured HTTP client or SDK connection pool.
  3. Configure the max_tokens request parameter appropriately.
  4. Use asynchronous SDK calls with bounded concurrency.

Explanation

Correct Answer

B:

To reduce repeated TLS setup overhead for high-volume application traffic in this high-volume Messages API gateway, connection reuse lowers transport overhead but still requires limits and health handling for long-lived clients; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to prevent duplicate purchases or tickets if an agent repeats a tool call because idempotency ensures replays of the same intended action do not create duplicate real-world effects even when orchestration retries; that mechanism does not meet the different requirement to reduce repeated TLS setup overhead for high-volume application traffic.

C:

The proposed alternative helps to cap the maximum output generated by a Messages API request because a generation limit controls maximum output length, not total cost or correctness; too low a value can truncate useful answers; that mechanism does not meet the different requirement to reduce repeated TLS setup overhead for high-volume application traffic.

D:

The proposed alternative helps to serve many concurrent network-bound Claude requests without blocking worker threads unnecessarily because async I/O can overlap network waits, but it does not remove provider limits or make CPU-heavy postprocessing nonblocking; that mechanism does not meet the different requirement to reduce repeated TLS setup overhead for high-volume application traffic.

Question 163

A release check on a latency-sensitive model gateway found two unsatisfied conditions: the service must cut cost for a nightly noninteractive summarization workload, and it must avoid overlooking slow tail requests hidden by a good average. Which complete engineering plan satisfies both?

  1. Perform both steps: (1) Evaluate Message Batches instead of synchronous requests; (2) prefer a maintained sdk when its typed methods and retry behavior fit the integration.
  2. Perform both steps: (1) Evaluate Message Batches instead of synchronous requests; (2) report p50, p95, and p99 latency by model and operation.
  3. Perform both steps: (1) Benchmark a suitable Haiku-family model for the simple task; (2) prefer a maintained sdk when its typed methods and retry behavior fit the integration.
  4. Perform both steps: (1) Benchmark a suitable Haiku-family model for the simple task; (2) report p50, p95, and p99 latency by model and operation.

Explanation

Correct Answer

B:

The first change enables the team to cut cost for a nightly noninteractive summarization workload because asynchronous batches can offer discounted processing when the application can tolerate deferred completion and result collection; the second addresses the separate need to avoid overlooking slow tail requests hidden by a good average because percentiles expose user experience at the tail and can reveal bottlenecks that a mean response time conceals.

Incorrect Answers

A:

The first step is appropriate for the requirement to cut cost for a nightly noninteractive summarization workload because asynchronous batches can offer discounted processing when the application can tolerate deferred completion and result collection; the other step instead aims to choose between writing raw REST requests and using an official client library because sDKs wrap the same underlying service API and can simplify serialization, error types, and streaming without removing protocol constraints, which does not meet the second requirement to avoid overlooking slow tail requests hidden by a good average.

C:

Both steps target different results—serve high-volume straightforward classification at a tight latency and cost target and choose between writing raw REST requests and using an official client library—because lightweight model tiers can favor speed and unit economics, but accuracy must still meet the specific evaluation threshold and sDKs wrap the same underlying service API and can simplify serialization, error types, and streaming without removing protocol constraints; the required capabilities are instead to cut cost for a nightly noninteractive summarization workload and to avoid overlooking slow tail requests hidden by a good average.

D:

The second step meets the requirement to avoid overlooking slow tail requests hidden by a good average because percentiles expose user experience at the tail and can reveal bottlenecks that a mean response time conceals; the first step would only help to serve high-volume straightforward classification at a tight latency and cost target because lightweight model tiers can favor speed and unit economics, but accuracy must still meet the specific evaluation threshold, leaving the separate requirement to cut cost for a nightly noninteractive summarization workload unmet.

Question 164

A test for a specialist-agent orchestration service fails because it cannot keep orchestration runtime and internal tool handlers inside company-managed infrastructure. Which change fixes the identified failure?

  1. Add a deterministic pre-execution hook for the sensitive operation.
  2. Configure tool permissions rather than depending only on a prompt.
  3. Deploy the agent runner in the organization's own environment.
  4. Prefer a simple API call over a general-purpose multi-agent framework.

Explanation

Correct Answer

C:

To keep orchestration runtime and internal tool handlers inside company-managed infrastructure in this specialist-agent orchestration service, self-hosting puts tool execution, networking, and operational controls under the application's responsibility, subject to its own deployment constraints; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to block an unsafe shell or file operation before a tool executes because a pre-tool boundary can reject a forbidden action independently of model judgment; enforcement must occur before side effects happen; that mechanism does not meet the different requirement to keep orchestration runtime and internal tool handlers inside company-managed infrastructure.

B:

The proposed alternative helps to restrict a development agent to a defined set of file and command capabilities because runtime permissions constrain what actions can run even if the model requests more access; prompt instructions alone are not a security boundary; that mechanism does not meet the different requirement to keep orchestration runtime and internal tool handlers inside company-managed infrastructure.

D:

The proposed alternative helps to avoid adding orchestration infrastructure to a single request-and-response feature because frameworks are useful for genuinely branching, long-lived execution, but increase complexity when no orchestration problem exists; that mechanism does not meet the different requirement to keep orchestration runtime and internal tool handlers inside company-managed infrastructure.

Question 165

An architecture review of a multi-tenant support application asks how to detect that the assistant has naturally finished a response. Which action is the best fit?

  1. Inspect HTTP status and structured error payload before interpreting model output.
  2. Treat stop_reason end_turn as a completed assistant turn.
  3. Assemble messages with correct user and assistant roles.
  4. Use stop_sequences and inspect the returned stop_sequence field.

Explanation

Correct Answer

B:

To detect that the assistant has naturally finished a response in this multi-tenant support application, the completion signal is explicit in the response metadata; it should not be inferred solely from a sentence ending in punctuation; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to distinguish API transport failures from a successfully returned model refusal because rate limits, authorization failures, and server errors happen at the request layer, unlike a normal response with a refusal stop reason; that mechanism does not meet the different requirement to detect that the assistant has naturally finished a response.

C:

The proposed alternative helps to distinguish an end user's request from previous assistant turns in a dialogue because conversation structure influences how the model interprets dialogue and tool history; flattening roles into one text string loses that structure; that mechanism does not meet the different requirement to detect that the assistant has naturally finished a response.

D:

The proposed alternative helps to enforce a caller-defined textual boundary on generation because a stop sequence halts generation at a specified marker, distinct from natural completion and separate from a JSON schema validator; that mechanism does not meet the different requirement to detect that the assistant has naturally finished a response.

Question 166

For an enterprise MCP client, the missing capability is to invoke a proprietary internal pricing database unavailable through a built-in feature. What should the developers implement?

  1. Implement the appropriate MCP capability listing and metadata endpoints.
  2. Write a custom tool whose handler runs in the application.
  3. Configure the supported tool_choice behavior for the request.
  4. Package the connector behind an MCP server.

Explanation

Correct Answer

B:

To invoke a proprietary internal pricing database unavailable through a built-in feature in this enterprise MCP client, custom tools expose application-specific actions while retaining control over authentication, validation, and network access; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to help a client learn which callable and informational capabilities a server offers because discovery advertises tools, resources, or prompts so clients can use supported contracts rather than guessing names or arguments; that mechanism does not meet the different requirement to invoke a proprietary internal pricing database unavailable through a built-in feature.

C:

The proposed alternative helps to require or restrict tool use for a specific turn when the API supports that control because tool-selection controls influence whether Claude may call tools, but cannot grant permissions to the underlying systems; that mechanism does not meet the different requirement to invoke a proprietary internal pricing database unavailable through a built-in feature.

D:

The proposed alternative helps to share one integration with several compatible AI clients or agent runtimes because MCP standardizes capability exposure across clients, reducing duplicate integration logic compared with proprietary tool schemas everywhere; that mechanism does not meet the different requirement to invoke a proprietary internal pricing database unavailable through a built-in feature.

Question 167

While planning a multi-tenant inference service, the product owner specifies that it must detect unauthorized modifications to a tool result before it reaches the model. Which solution fulfills the requirement?

  1. Record authenticated approval events with actor, scope, and request correlation.
  2. Verify origin and integrity of sensitive external data where supported.
  3. Isolate external search results and validate any resulting tool action independently.
  4. Grant each runtime tool only the operations and resources required for its task.

Explanation

Correct Answer

B:

To detect unauthorized modifications to a tool result before it reaches the model in this multi-tenant inference service, trusted decisions require confidence that tool outputs were not altered; transport and signature checks complement content validation; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to demonstrate who approved a privileged tool action and when because an audit trail binds authorization to a specific action, making privilege use reviewable without treating model-generated text as proof of consent; that mechanism does not meet the different requirement to detect unauthorized modifications to a tool result before it reaches the model.

C:

The proposed alternative helps to reject a malicious instruction inserted into a web-search result rather than the user's direct request because indirect attacks exploit lower-trust retrieval surfaces, so trusting search snippets as operational directives crosses a security boundary; that mechanism does not meet the different requirement to detect unauthorized modifications to a tool result before it reaches the model.

D:

The proposed alternative helps 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; that mechanism does not meet the different requirement to detect unauthorized modifications to a tool result before it reaches the model.

Question 168

In a Claude integration debugging session, a release requirement is to identify why a request is rejected before any inference happens. Which implementation addresses that specific requirement?

  1. Trace the API credential and access permissions for the 401 or 403 response.
  2. Read the 400 error details and validate the request payload.
  3. Check that each tool_use identifier receives one matching tool_result.
  4. Compare versioned prompts and representative eval cases against model responses.

Explanation

Correct Answer

A:

To identify why a request is rejected before any inference happens in this Claude integration debugging session, unauthorized access fails at the transport or authorization boundary, not because Claude misunderstood the prompt; the proposed implementation directly supplies that capability.

Incorrect Answers

B:

The proposed alternative helps to find a request schema error instead of repeatedly changing the system prompt because an invalid API field or incompatible parameter cannot be fixed by natural-language instructions within the malformed request; that mechanism does not meet the different requirement to identify why a request is rejected before any inference happens.

C:

The proposed alternative helps to explain why an agent loop is stuck after a model requested an external function because an unmatched tool call leaves a protocol-level continuation gap, even if the handler actually ran successfully; that mechanism does not meet the different requirement to identify why a request is rejected before any inference happens.

D:

The proposed alternative helps to distinguish a syntactically valid but low-quality answer from a transport outage because a successful HTTP call only proves the protocol worked; quality regressions require output-level evidence and controlled comparisons; that mechanism does not meet the different requirement to identify why a request is rejected before any inference happens.

Question 169

To ship a latency-sensitive model gateway, the application must avoid overlooking slow tail requests hidden by a good average and prevent constantly changing user text from invalidating a reusable prompt prefix. Which pair of listed actions is necessary for those stated capabilities? Choose TWO.

  1. Serialize the documented nested request shape rather than flattening it.
  2. Route simple requests to a cheaper evaluated tier and escalate difficult ones.
  3. Benchmark an Opus-family model on the hardest cases.
  4. Report p50, p95, and p99 latency by model and operation.
  5. Place caching around stable ordered content before dynamic material.

Explanation

Correct Answers

D:

To avoid overlooking slow tail requests hidden by a good average as part of a design that must also prevent constantly changing user text from invalidating a reusable prompt prefix, percentiles expose user experience at the tail and can reveal bottlenecks that a mean response time conceals; this is why the action is one of the two required selections.

E:

To prevent constantly changing user text from invalidating a reusable prompt prefix as part of a design that must also avoid overlooking slow tail requests hidden by a good average, cache matching operates over the stable prefix, so volatile material before the breakpoint undermines reuse; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal 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; the required outcomes are instead to avoid overlooking slow tail requests hidden by a good average and to prevent constantly changing user text from invalidating a reusable prompt prefix.

B:

This alternative serves the separate goal to minimize average model cost when most requests are easy but some require deeper reasoning because cascading matches compute to task difficulty but requires a reliable escalation rule and measurement of misrouting; the required outcomes are instead to avoid overlooking slow tail requests hidden by a good average and to prevent constantly changing user text from invalidating a reusable prompt prefix.

C:

This alternative serves the separate goal to solve demanding multistep reasoning tasks where quality matters more than lowest unit price because higher-capability tiers may improve difficult-task performance, but their cost and latency still need objective justification; the required outcomes are instead to avoid overlooking slow tail requests hidden by a good average and to prevent constantly changing user text from invalidating a reusable prompt prefix.

Question 170

A team maintaining a multi-tool integration must meet 2 separate acceptance criteria: (1) let Claude distinguish a failed database lookup from an empty successful result; (2) make reference material available for clients to read as context. Which two implementation actions directly satisfy the stated requirements? Choose TWO.

  1. Return an explicit tool error indication and an informative safe message.
  2. Expose the material as an MCP resource with a stable identifier.
  3. Implement the approval in application workflow control rather than only in a Skill.
  4. Create a Skill containing the procedure and supporting instructions.
  5. Configure the supported tool_choice behavior for the request.

Explanation

Correct Answers

A:

The test to let Claude distinguish a failed database lookup from an empty successful result is met because an error result preserves failure semantics, preventing the model from inventing a no-record finding for a call that never succeeded; the remaining selection covers the separate need to make reference material available for clients to read as context.

B:

The test to make reference material available for clients to read as context is met because resources represent consumable data, contrasting with tools that invoke an operation or prompts that package reusable instructions; the remaining selection covers the separate need to let Claude distinguish a failed database lookup from an empty successful result.

Incorrect Answers

C:

The action is useful for the separate capability to enforce a mandatory fixed approval step regardless of what instructions the model follows because skills can guide agent behavior, but deterministic policy gates must live in trusted code so they cannot be skipped by model interpretation; however, the required test outcomes are to let Claude distinguish a failed database lookup from an empty successful result and to make reference material available for clients to read as context.

D:

The action is useful for the separate capability to make a repeatable multi-step code-review methodology available to an agent because a Skill teaches how to perform a task, whereas a tool is the executable capability that performs an external operation; however, the required test outcomes are to let Claude distinguish a failed database lookup from an empty successful result and to make reference material available for clients to read as context.

E:

The action is useful for the separate capability to require or restrict tool use for a specific turn when the API supports that control because tool-selection controls influence whether Claude may call tools, but cannot grant permissions to the underlying systems; however, the required test outcomes are to let Claude distinguish a failed database lookup from an empty successful result and to make reference material available for clients to read as context.

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