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

Question 620

For a token-consumption optimization sprint, a design is acceptable only if it can work in an environment that lacks a compatible Claude SDK while also being able to build bidirectional persistent event communication where the chosen platform supports it. Which paired implementation is sufficient?

  1. Perform both steps: (1) Call the documented HTTPS endpoint with explicit headers and JSON serialization; (2) use a websocket protocol only when the target endpoint actually offers one.
  2. Perform both steps: (1) Check each response block's type before extracting its fields; (2) keep https certificate and hostname verification enabled.
  3. Perform both steps: (1) Call the documented HTTPS endpoint with explicit headers and JSON serialization; (2) keep https certificate and hostname verification enabled.
  4. Perform both steps: (1) Check each response block's type before extracting its fields; (2) use a websocket protocol only when the target endpoint actually offers one.

Explanation

Correct Answer

A:

The first change enables the team to work in an environment that lacks a compatible Claude SDK because direct REST access remains possible when an SDK is unavailable, but the caller owns wire-format correctness and response parsing; the second addresses the separate need to build bidirectional persistent event communication where the chosen platform supports it because webSockets can carry two-way events over a long-lived connection; they are not a drop-in replacement for every HTTP or SSE endpoint.

Incorrect Answers

B:

Both steps target different results—prevent a tool_use block from being displayed as if it were natural-language text and protect model API traffic against an impersonated network endpoint—because typed response objects can contain several block families; assuming every block has a text field causes logic errors and verified TLS authenticates the service and protects data in transit; disabling validation defeats a key transport security property; the required capabilities are instead to work in an environment that lacks a compatible Claude SDK and to build bidirectional persistent event communication where the chosen platform supports it.

C:

The first step is appropriate for the requirement to work in an environment that lacks a compatible Claude SDK because direct REST access remains possible when an SDK is unavailable, but the caller owns wire-format correctness and response parsing; the other step instead aims 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, which does not meet the second requirement to build bidirectional persistent event communication where the chosen platform supports it.

D:

The second step meets the requirement to build bidirectional persistent event communication where the chosen platform supports it because webSockets can carry two-way events over a long-lived connection; they are not a drop-in replacement for every HTTP or SSE endpoint; the first step would only help to prevent a tool_use block from being displayed as if it were natural-language text because typed response objects can contain several block families; assuming every block has a text field causes logic errors, leaving the separate requirement to work in an environment that lacks a compatible Claude SDK unmet.

Question 621

An architecture review of a production tool-calling agent asks how to preserve durable user-approved facts across agent sessions outside the context window. Which action is the best fit?

  1. Write selected durable facts to a controlled external memory store.
  2. Return a separate tool_result for every corresponding tool_use identifier.
  3. Encode a deterministic workflow with explicit transitions between stages.
  4. Record stage-level traces and intermediate validation outcomes.

Explanation

Correct Answer

A:

To preserve durable user-approved facts across agent sessions outside the context window in this production tool-calling agent, external memory allows selective retrieval in later sessions, unlike temporary model context that disappears when calls end; the proposed implementation directly supplies that capability.

Incorrect Answers

B:

The proposed alternative helps to handle several independent tool_use blocks in one assistant message because parallel tool execution requires complete, correctly linked results; dropping one identifier leaves the model's outstanding request unresolved; that mechanism does not meet the different requirement to preserve durable user-approved facts across agent sessions outside the context window.

C:

The proposed alternative helps to run the same retrieval, validation, and publishing stages in an approved order for every request because known control flow belongs in application code, allowing each stage to be tested and audited without asking a model to improvise the sequence; that mechanism does not meet the different requirement to preserve durable user-approved facts across agent sessions outside the context window.

D:

The proposed alternative helps to pinpoint which known workflow stage failed when the final artifact is incomplete because deterministic stages are operationally useful when their boundaries are observable; a final answer alone cannot reveal which step produced the fault; that mechanism does not meet the different requirement to preserve durable user-approved facts across agent sessions outside the context window.

Question 622

For an enterprise MCP client, the missing capability is to let Claude distinguish a failed database lookup from an empty successful result. What should the developers implement?

  1. Return a concise task-relevant projection from the tool handler.
  2. Implement a narrowly scoped read-only tool handler.
  3. Define a descriptive tool name and validated input schema.
  4. Return an explicit tool error indication and an informative safe message.

Explanation

Correct Answer

D:

To let Claude distinguish a failed database lookup from an empty successful result in this enterprise MCP client, an error result preserves failure semantics, preventing the model from inventing a no-record finding for a call that never succeeded; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to reduce context bloat caused by a tool returning a thousand irrelevant fields because tool output is subsequently consumed as model context; minimizing it reduces both token cost and distractions; that mechanism does not meet the different requirement to let Claude distinguish a failed database lookup from an empty successful result.

B:

The proposed alternative helps to expose a diagnostic capability without allowing the model to modify records because a restricted read interface supports observation while preventing data mutation, unlike giving a diagnostic agent a general administrative API; that mechanism does not meet the different requirement to let Claude distinguish a failed database lookup from an empty successful result.

C:

The proposed alternative helps 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; that mechanism does not meet the different requirement to let Claude distinguish a failed database lookup from an empty successful result.

Question 623

While planning a model selection trial, the product owner specifies that it must preserve critical service during a temporary primary-model problem. Which solution fulfills the requirement?

  1. Tune sampling for lower variance while retaining output validation.
  2. Run contract and integration tests against the upgraded SDK in staging.
  3. Call the documented HTTPS endpoint with explicit headers and JSON serialization.
  4. Design an approved fallback model path with compatibility checks.

Explanation

Correct Answer

D:

To preserve critical service during a temporary primary-model problem in this model selection trial, fallbacks improve resilience only when downstream schemas, cost limits, and policy controls work with the alternate model; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to favor more consistent word choices in a constrained transformation task when supported because temperature influences token sampling; it cannot by itself guarantee truth, policy compliance, or reproducible structured output; that mechanism does not meet the different requirement to preserve critical service during a temporary primary-model problem.

B:

The proposed alternative helps to detect changed library behavior before rolling a new version into production because client-library version shifts can affect serialization or errors even without changes to business prompts, so they deserve release validation; that mechanism does not meet the different requirement to preserve critical service during a temporary primary-model problem.

C:

The proposed alternative helps to work in an environment that lacks a compatible Claude SDK because direct REST access remains possible when an SDK is unavailable, but the caller owns wire-format correctness and response parsing; that mechanism does not meet the different requirement to preserve critical service during a temporary primary-model problem.

Question 624

An end-to-end test for an agent access-control assessment checks whether it can investigate user actions without leaking API keys into operational records and protect customer identity fields when only document topics are needed for classification. Which plan should be approved to satisfy both checks?

  1. Perform both steps: (1) Redact secrets and protect log access with retention controls; (2) remove or mask unnecessary personal information before model submission.
  2. Perform both steps: (1) Redact secrets and protect log access with retention controls; (2) apply an input-side policy gate and route flagged cases to a safe path.
  3. Perform both steps: (1) Treat retrieved content as untrusted and prevent its instructions from controlling tools; (2) remove or mask unnecessary personal information before model submission.
  4. Perform both steps: (1) Treat retrieved content as untrusted and prevent its instructions from controlling tools; (2) apply an input-side policy gate and route flagged cases to a safe path.

Explanation

Correct Answer

A:

The first change enables the team 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 second addresses the separate need to protect customer identity fields when only document topics are needed for classification because minimization limits exposure while preserving task inputs; relying on the model to ignore visible PII does not provide the same protection.

Incorrect Answers

B:

The first step is appropriate for the requirement 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 other step instead aims to identify prohibited requests before an automated agent invokes business tools because early filtering reduces inappropriate work, but later checks remain necessary because tool outputs can also introduce risks, which does not meet the second requirement to protect customer identity fields when only document topics are needed for classification.

C:

The second step meets the requirement to protect customer identity fields when only document topics are needed for classification because minimization limits exposure while preserving task inputs; relying on the model to ignore visible PII does not provide the same protection; the first step would only help to resist instructions embedded in a retrieved support ticket that demand secret disclosure because source material is data rather than authority; enforcing tool permissions and separating roles limits an attacker's ability to redirect execution, leaving the separate requirement to investigate user actions without leaking API keys into operational records unmet.

D:

Both steps target different results—resist instructions embedded in a retrieved support ticket that demand secret disclosure and identify prohibited requests before an automated agent invokes business tools—because source material is data rather than authority; enforcing tool permissions and separating roles limits an attacker's ability to redirect execution and early filtering reduces inappropriate work, but later checks remain necessary because tool outputs can also introduce risks; the required capabilities are instead to investigate user actions without leaking API keys into operational records and to protect customer identity fields when only document topics are needed for classification.

Question 625

Two approval criteria are still open for a business workflow that calls Claude: the team must design for a documented burst of simultaneous requests without uncontrolled overload and identify which search services and internal systems are critical to the workflow. Which two implementation actions satisfy them? Choose TWO.

  1. Convert quality expectations into labeled tests and failure thresholds.
  2. Set an end-to-end latency target and a measurement method.
  3. Specify expected concurrency and enforce admission or queueing limits.
  4. Queue or reject excess requests using bounded admission control.
  5. List upstream systems with permissions, quotas, and failure behavior.

Explanation

Correct Answers

C:

To design for a documented burst of simultaneous requests without uncontrolled overload as part of a design that must also identify which search services and internal systems are critical to the workflow, capacity planning separates average traffic from peak demand and prevents upstream rate limits from becoming cascading application failures; this is why the action is one of the two required selections.

E:

To identify which search services and internal systems are critical to the workflow as part of a design that must also design for a documented burst of simultaneous requests without uncontrolled overload, a dependency inventory exposes the operational and authorization constraints that a purely model-centered design misses; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to verify that generated categorization meets a business-approved standard because acceptance is meaningful only with representative cases and explicit quality criteria; subjective demo approval cannot establish production fitness; the required outcomes are instead to design for a documented burst of simultaneous requests without uncontrolled overload and to identify which search services and internal systems are critical to the workflow.

B:

This alternative serves the separate goal to turn a support desk's responsiveness expectation into an engineering objective because a latency target is a nonfunctional requirement; model choice, network overhead, tool calls, and rendering all affect whether the service meets it; the required outcomes are instead to design for a documented burst of simultaneous requests without uncontrolled overload and to identify which search services and internal systems are critical to the workflow.

D:

This alternative serves the separate goal to shield customer traffic when inference capacity is exhausted because controlled queuing protects system latency and prevents unbounded retries from overwhelming downstream provider quotas; the required outcomes are instead to design for a documented burst of simultaneous requests without uncontrolled overload and to identify which search services and internal systems are critical to the workflow.

Question 626

An operational review of a codebase used by several Claude Code operators reports distinct failures: it cannot apply a coding convention only when Claude Code edits a particular path, and it cannot make a reusable development procedure available to Claude Code with supporting files. Which two repairs are required? Choose TWO.

  1. Initialize project guidance and review the resulting CLAUDE.md content.
  2. Use the supported session continuation or resume mechanism.
  3. Create a project skill with the documented skill metadata and content.
  4. Place a path-targeted rule in the repository's rules configuration.
  5. Add concise project guidance to the appropriate CLAUDE.md file.

Explanation

Correct Answers

C:

To make a reusable development procedure available to Claude Code with supporting files as part of a design that must also apply a coding convention only when Claude Code edits a particular path, a skill packages guidance or a workflow for reuse across relevant tasks; it is not identical to granting a runtime tool permission; this is why the action is one of the two required selections.

D:

To apply a coding convention only when Claude Code edits a particular path as part of a design that must also make a reusable development procedure available to Claude Code with supporting files, scoped rules keep specialized instructions close to their applicable files, avoiding global instructions that conflict with other modules; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to introduce Claude Code to an unfamiliar codebase's conventions and commands because repository setup discovers useful project practices, but autogenerated guidance still needs a human check for accuracy and unnecessary detail; the required outcomes are instead to apply a coding convention only when Claude Code edits a particular path and to make a reusable development procedure available to Claude Code with supporting files.

B:

This alternative serves the separate goal 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 required outcomes are instead to apply a coding convention only when Claude Code edits a particular path and to make a reusable development procedure available to Claude Code with supporting files.

E:

This alternative serves the separate goal 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; the required outcomes are instead to apply a coding convention only when Claude Code edits a particular path and to make a reusable development procedure available to Claude Code with supporting files.

Question 627

An architecture review of a Claude API workload benchmark asks how to minimize average model cost when most requests are easy but some require deeper reasoning. Which action is the best fit?

  1. Iterate the SDK or HTTP event stream until its terminal event.
  2. Route simple requests to a cheaper evaluated tier and escalate difficult ones.
  3. Compare both candidates on identical representative eval cases.
  4. Use a synchronous client with explicit timeout and error handling.

Explanation

Correct Answer

B:

To minimize average model cost when most requests are easy but some require deeper reasoning in this Claude API workload benchmark, cascading matches compute to task difficulty but requires a reliable escalation rule and measurement of misrouting; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to process partial model output as it is delivered over a streaming connection because streaming clients must handle both content deltas and final status rather than assuming the first chunk is the complete response; that mechanism does not meet the different requirement to minimize average model cost when most requests are easy but some require deeper reasoning.

C:

The proposed alternative helps to choose between two supported model releases using evidence rather than reputation because holding inputs and scoring constant reveals quality and latency changes that generic model descriptions cannot settle; that mechanism does not meet the different requirement to minimize average model cost when most requests are easy but some require deeper reasoning.

D:

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 minimize average model cost when most requests are easy but some require deeper reasoning.

Question 628

An architecture decision for a TypeScript Claude integration must support keep one customer from consuming an entire shared inference budget and stop a well-formed JSON response from introducing an impossible customer status. Which option gives a complete rather than partial solution?

  1. Perform both steps: (1) Queue or reject excess requests using bounded admission control; (2) validate generated fields against domain rules after parsing.
  2. Perform both steps: (1) Queue or reject excess requests using bounded admission control; (2) store and retrieve message history by authenticated tenant and conversation id.
  3. Perform both steps: (1) Enforce per-tenant token and request budgets in the backend; (2) store and retrieve message history by authenticated tenant and conversation id.
  4. Perform both steps: (1) Enforce per-tenant token and request budgets in the backend; (2) validate generated fields against domain rules after parsing.

Explanation

Correct Answer

D:

The first change enables the team 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 second addresses the separate need to stop a well-formed JSON response from introducing an impossible customer status because a syntactically valid object may still contain invalid business values; server-side semantics determine whether it is acceptable.

Incorrect Answers

A:

The second step meets the requirement to stop a well-formed JSON response from introducing an impossible customer status because a syntactically valid object may still contain invalid business values; server-side semantics determine whether it is acceptable; the first step would only help to shield customer traffic when inference capacity is exhausted because controlled queuing protects system latency and prevents unbounded retries from overwhelming downstream provider quotas, leaving the separate requirement to keep one customer from consuming an entire shared inference budget unmet.

B:

Both steps target different results—shield customer traffic when inference capacity is exhausted and prevent chat transcripts from different accounts entering the same Claude request—because controlled queuing protects system latency and prevents unbounded retries from overwhelming downstream provider quotas and session hygiene requires server-enforced isolation; model instructions cannot repair a history assembled from the wrong user; the required capabilities are instead to keep one customer from consuming an entire shared inference budget and to stop a well-formed JSON response from introducing an impossible customer status.

C:

The first step is appropriate for the requirement 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 other step instead aims 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, which does not meet the second requirement to stop a well-formed JSON response from introducing an impossible customer status.

Question 629

A design review for a multi-tenant inference service asks for support to capture outcomes of agent command execution for security review, together with a way to stop frontend users from receiving unrestricted backend tool credentials. Select the two appropriate changes. Choose TWO.

  1. Enforce outbound destination allowlists at the tool execution layer.
  2. Use a server-side workload identity or scoped service credential.
  3. Combine prompt boundaries, scoped credentials, validation, and approval gates.
  4. Isolate external search results and validate any resulting tool action independently.
  5. Record result metadata in a post-tool hook.

Explanation

Correct Answers

B:

To stop frontend users from receiving unrestricted backend tool credentials as part of a design that must also capture outcomes of agent command execution for security review, service identities tie privileges to a runtime workload and avoid exposing long-lived secrets to browsers or untrusted users; this is why the action is one of the two required selections.

E:

To capture outcomes of agent command execution for security review as part of a design that must also stop frontend users from receiving unrestricted backend tool credentials, post-execution hooks can log and inspect what happened; they are unsuitable as the sole barrier to a side effect that already occurred; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to stop a model-requested webhook from sending sensitive case text to an unapproved host because network restrictions prevent data egress even if injected instructions convince a model to request the call; the required outcomes are instead to capture outcomes of agent command execution for security review and to stop frontend users from receiving unrestricted backend tool credentials.

C:

This alternative serves the separate goal to secure an agent against both malicious retrieved text and unsafe tool execution because defense in depth assumes individual filters can fail; independent enforcement boundaries reduce the chance of harmful side effects; the required outcomes are instead to capture outcomes of agent command execution for security review and to stop frontend users from receiving unrestricted backend tool credentials.

D:

This alternative serves the separate goal 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; the required outcomes are instead to capture outcomes of agent command execution for security review and to stop frontend users from receiving unrestricted backend tool credentials.

Question 630

A change request for a context-rich document assistant combines two needs: block a technically well-formed refund record with an unauthorized amount, and reject model output missing a field that a downstream service requires. Which implementation pair addresses both, not just one?

  1. Perform both steps: (1) Place essential constraints prominently and structure large evidence clearly; (2) validate parsed output against the application's declared schema.
  2. Perform both steps: (1) Apply domain-specific authorization and business rules after schema validation; (2) validate parsed output against the application's declared schema.
  3. Perform both steps: (1) Apply domain-specific authorization and business rules after schema validation; (2) escape or sanitize model text in the output presentation layer.
  4. Perform both steps: (1) Place essential constraints prominently and structure large evidence clearly; (2) escape or sanitize model text in the output presentation layer.

Explanation

Correct Answer

B:

The first change enables the team to block a technically well-formed refund record with an unauthorized amount because type correctness is not permission to act; amounts, account ownership, and policy limits need independent checks; the second addresses the separate need 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.

Incorrect Answers

A:

The second step meets the requirement 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 first step would only help to reduce the chance that critical instructions become buried in a huge prompt because ordering, headings, and explicit references help the model distinguish governing rules from supporting material in large requests, leaving the separate requirement to block a technically well-formed refund record with an unauthorized amount unmet.

C:

The first step is appropriate for the requirement to block a technically well-formed refund record with an unauthorized amount because type correctness is not permission to act; amounts, account ownership, and policy limits need independent checks; the other step instead aims to safely render generated text in a browser without executing embedded markup because generated content is untrusted for HTML rendering; injection into the DOM must not become executable client-side code, which does not meet the second requirement to reject model output missing a field that a downstream service requires.

D:

Both steps target different results—reduce the chance that critical instructions become buried in a huge prompt and safely render generated text in a browser without executing embedded markup—because ordering, headings, and explicit references help the model distinguish governing rules from supporting material in large requests and generated content is untrusted for HTML rendering; injection into the DOM must not become executable client-side code; the required capabilities are instead to block a technically well-formed refund record with an unauthorized amount and to reject model output missing a field that a downstream service requires.

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