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

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.

Question 631

For a customer-facing AI feature, a design is acceptable only if it can detect a changed tool response field before it breaks downstream code while also being able to keep a stalled upstream model call from occupying application resources indefinitely. Which paired implementation is sufficient?

  1. Perform both steps: (1) Classify permanent client errors separately from transient failures; (2) require peer review focused on api, security, and tool-side effects.
  2. Perform both steps: (1) Classify permanent client errors separately from transient failures; (2) set realistic connection and response timeouts with an explicit failure path.
  3. Perform both steps: (1) Add automated consumer-provider contract tests; (2) set realistic connection and response timeouts with an explicit failure path.
  4. Perform both steps: (1) Add automated consumer-provider contract tests; (2) require peer review focused on api, security, and tool-side effects.

Explanation

Correct Answer

C:

The first change enables the team 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; the second addresses the separate need to keep a stalled upstream model call from occupying application resources indefinitely because timeout handling caps resource exposure, while logging distinguishes slow provider response from a model-level refusal.

Incorrect Answers

A:

Both steps target different results—avoid retrying a malformed request that the API consistently rejects and catch unsafe credentials and incorrect tool calls before deployment—because a deterministic validation or authorization error requires fixing the request or credential, not another identical attempt and human review should check trust boundaries and external actions in addition to style; successful compilation cannot prove these behaviors are safe; the required capabilities are instead to detect a changed tool response field before it breaks downstream code and to keep a stalled upstream model call from occupying application resources indefinitely.

B:

The second step meets the requirement to keep a stalled upstream model call from occupying application resources indefinitely because timeout handling caps resource exposure, while logging distinguishes slow provider response from a model-level refusal; the first step would only help to avoid retrying a malformed request that the API consistently rejects because a deterministic validation or authorization error requires fixing the request or credential, not another identical attempt, leaving the separate requirement to detect a changed tool response field before it breaks downstream code unmet.

D:

The first step is appropriate for the requirement 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; the other step instead aims to catch unsafe credentials and incorrect tool calls before deployment because human review should check trust boundaries and external actions in addition to style; successful compilation cannot prove these behaviors are safe, which does not meet the second requirement to keep a stalled upstream model call from occupying application resources indefinitely.

Question 632

A team maintaining a nonblocking inference gateway must meet 2 separate acceptance criteria: (1) prevent a tool_use block from being displayed as if it were natural-language text; (2) invite stylistic variety during noncritical brainstorming. Which two implementation actions directly satisfy the stated requirements? Choose TWO.

  1. Check each response block's type before extracting its fields.
  2. Revalidate prompts, schemas, safety constraints, and tools after model migration.
  3. Use more exploratory sampling where supported and measure quality.
  4. Provide one accurate input-output demonstration.
  5. Parse structured payloads with explicit failure handling.

Explanation

Correct Answers

A:

The test to prevent a tool_use block from being displayed as if it were natural-language text is met because typed response objects can contain several block families; assuming every block has a text field causes logic errors; the remaining selection covers the separate need to invite stylistic variety during noncritical brainstorming.

C:

The test to invite stylistic variety during noncritical brainstorming is met because higher sampling randomness broadens candidate phrasing but can reduce predictability, so it suits ideation better than strict extraction; the remaining selection covers the separate need to prevent a tool_use block from being displayed as if it were natural-language text.

Incorrect Answers

B:

The action is useful for the separate capability to avoid assuming a model-version change preserves tool output and writing behavior because new releases can change response distributions or supported behaviors, making a model upgrade a real software change; however, the required test outcomes are to prevent a tool_use block from being displayed as if it were natural-language text and to invite stylistic variety during noncritical brainstorming.

D:

The action is useful for the separate capability to teach a distinctive output format with one representative example because a single example illustrates structure and conventions, but it may not reveal how to handle difficult edge cases; however, the required test outcomes are to prevent a tool_use block from being displayed as if it were natural-language text and to invite stylistic variety during noncritical brainstorming.

E:

The action is useful for the separate capability to reject incomplete or malformed response data before business logic consumes it because JSON parsing validates syntax, while separate schema and semantic checks verify types and permitted values; however, the required test outcomes are to prevent a tool_use block from being displayed as if it were natural-language text and to invite stylistic variety during noncritical brainstorming.

Question 633

An architecture review of an enterprise agent deployment asks how to identify prohibited requests before an automated agent invokes business tools. Which action is the best fit?

  1. Validate or moderate final content before release.
  2. Apply an input-side policy gate and route flagged cases to a safe path.
  3. Record authenticated approval events with actor, scope, and request correlation.
  4. Check resource-level authorization for every sensitive tool request.

Explanation

Correct Answer

B:

To identify prohibited requests before an automated agent invokes business tools in this enterprise agent deployment, early filtering reduces inappropriate work, but later checks remain necessary because tool outputs can also introduce risks; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to prevent generated advice that violates the product's publication rules from being shown because output checks catch issues emerging during generation; they complement rather than replace input controls and tool restrictions; that mechanism does not meet the different requirement to identify prohibited requests before an automated agent invokes business tools.

C:

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 identify prohibited requests before an automated agent invokes business tools.

D:

The proposed alternative helps to stop an authenticated user from reading another tenant's records via a tool because proving identity does not grant access to every object; the backend must enforce tenant and resource permissions separately; that mechanism does not meet the different requirement to identify prohibited requests before an automated agent invokes business tools.

Question 634

A release check on a model-output validation layer found two unsatisfied conditions: the service must measure whether a changed instruction actually improves extraction accuracy, and it must distinguish a user's instructions from a quoted document containing imperatives. Which complete engineering plan satisfies both?

  1. Perform both steps: (1) Hold evaluation inputs constant and compare prompt versions; (2) recheck current plans against a stored objective and constraints.
  2. Perform both steps: (1) Hold evaluation inputs constant and compare prompt versions; (2) mark untrusted quoted material with explicit boundaries and role context.
  3. Perform both steps: (1) Put stable application constraints in the system instruction field; (2) recheck current plans against a stored objective and constraints.
  4. Perform both steps: (1) Put stable application constraints in the system instruction field; (2) mark untrusted quoted material with explicit boundaries and role context.

Explanation

Correct Answer

B:

The first change enables the team 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; the second addresses the separate need 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.

Incorrect Answers

A:

The first step is appropriate for the requirement 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; the other step instead aims to identify when a long agent discussion begins solving a different problem than the user approved because explicit objective comparison detects drift before tool actions diverge from the original task; extra history alone cannot guarantee alignment, which does not meet the second requirement to distinguish a user's instructions from a quoted document containing imperatives.

C:

Both steps target different results—apply the same compliance restrictions across many different end-user requests and identify when a long agent discussion begins solving a different problem than the user approved—because high-priority application instructions should not be delivered as ordinary user content where they compete with user questions and document text and explicit objective comparison detects drift before tool actions diverge from the original task; extra history alone cannot guarantee alignment; the required capabilities are instead to measure whether a changed instruction actually improves extraction accuracy and to distinguish a user's instructions from a quoted document containing imperatives.

D:

The second step meets the requirement 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; the first step would only help 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, leaving the separate requirement to measure whether a changed instruction actually improves extraction accuracy unmet.

Question 635

An operational review of a hosted document-processing service reports distinct failures: it cannot keep one customer from consuming an entire shared inference budget, and it cannot prevent a retrieved article's embedded commands from being treated as developer instructions. Which two repairs are required? Choose TWO.

  1. Delimit retrieved text as untrusted source material.
  2. Retain source identifiers with retrieved evidence and render supported citations.
  3. Apply content checks at suitable input and output boundaries.
  4. Send instructions using the request's top-level system field.
  5. Enforce per-tenant token and request budgets in the backend.

Explanation

Correct Answers

A:

To prevent a retrieved article's embedded commands from being treated as developer instructions as part of a design that must also keep one customer from consuming an entire shared inference budget, explicit trust boundaries help the model interpret documents as evidence rather than operational orders, and runtime controls must enforce privileged actions; this is why the action is one of the two required selections.

E:

To keep one customer from consuming an entire shared inference budget as part of a design that must also prevent a retrieved article's embedded commands from being treated as developer instructions, application quotas isolate noisy tenants and control spending; provider-wide rate limits alone do not guarantee fairness between customers; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal to let a reviewer trace claims to the material actually consulted because traceability requires linking claims to accessible source passages; fabricated URLs or unlabeled snippets do not provide verifiable provenance; the required outcomes are instead to keep one customer from consuming an entire shared inference budget and to prevent a retrieved article's embedded commands from being treated as developer instructions.

C:

This alternative serves the separate goal to filter risky user-visible content according to application policy because moderation is a defense layer applied around generation, not a substitute for authenticated tool access or scoped retrieval; the required outcomes are instead to keep one customer from consuming an entire shared inference budget and to prevent a retrieved article's embedded commands from being treated as developer instructions.

D:

This alternative serves the separate goal to set consistent developer-controlled behavior separately from untrusted user text because the system field separates higher-priority application guidance from user-message content and should not be simulated by ordinary quoted text; the required outcomes are instead to keep one customer from consuming an entire shared inference budget and to prevent a retrieved article's embedded commands from being treated as developer instructions.

Question 636

An operational review of a specialist-agent orchestration service reports distinct failures: it cannot have independent specialized reviewers inspect the same proposal from different perspectives, and it cannot reduce elapsed time for independent extraction tasks that do not share mutable state. Which two repairs are required? Choose TWO.

  1. Run independent branches concurrently and merge their outputs afterward.
  2. Chain dependent operations serially with explicit input and output contracts.
  3. Return a separate tool_result for every corresponding tool_use identifier.
  4. Fan out to role-specific reviewers and aggregate disagreements.
  5. Record stage-level traces and intermediate validation outcomes.

Explanation

Correct Answers

A:

To reduce elapsed time for independent extraction tasks that do not share mutable state as part of a design that must also have independent specialized reviewers inspect the same proposal from different perspectives, parallel orchestration shortens the critical path when calls have no dependencies, while the merger checks completeness before proceeding; this is why the action is one of the two required selections.

D:

To have independent specialized reviewers inspect the same proposal from different perspectives as part of a design that must also reduce elapsed time for independent extraction tasks that do not share mutable state, separating reviews allows conflicting evidence to surface before the supervisor combines findings; a single sequential review may miss independent critiques; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal to ensure each later tool receives a validated artifact from its preceding stage because later steps cannot safely start until upstream data exists; passing validated outputs prevents races and malformed downstream input; the required outcomes are instead to have independent specialized reviewers inspect the same proposal from different perspectives and to reduce elapsed time for independent extraction tasks that do not share mutable state.

C:

This alternative serves the separate goal 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; the required outcomes are instead to have independent specialized reviewers inspect the same proposal from different perspectives and to reduce elapsed time for independent extraction tasks that do not share mutable state.

E:

This alternative serves the separate goal 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; the required outcomes are instead to have independent specialized reviewers inspect the same proposal from different perspectives and to reduce elapsed time for independent extraction tasks that do not share mutable state.

Question 637

The team responsible for a latency-sensitive model gateway needs to allocate additional reasoning effort to a complex multistep decision where supported. What is the most direct engineering change?

  1. Measure or count input and output tokens with the supported tokenizer or API.
  2. Evaluate a Sonnet-family model against a realistic task set.
  3. Budget total context for instructions, history, tools, and output.
  4. Use the model's documented thinking capability within the latency budget.

Explanation

Correct Answer

D:

To allocate additional reasoning effort to a complex multistep decision where supported in this latency-sensitive model gateway, reasoning settings can change token consumption and response latency and should be evaluated for the particular workload; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to estimate model usage from encoded text rather than counting words because billing and context consumption track tokens, which do not map one-to-one to English words or characters; that mechanism does not meet the different requirement to allocate additional reasoning effort to a complex multistep decision where supported.

B:

The proposed alternative helps to deliver moderately complex development assistance with balanced quality, cost, and latency because a balanced model tier often offers useful capability without the latency or cost of the most expensive tier; evaluation should drive final selection; that mechanism does not meet the different requirement to allocate additional reasoning effort to a complex multistep decision where supported.

C:

The proposed alternative helps to know why a long prompt plus a proposed response may exceed the model's accepted context because a context window bounds what can be processed in one request; large tool results consume it along with user messages; that mechanism does not meet the different requirement to allocate additional reasoning effort to a complex multistep decision where supported.

Question 638

A team maintaining a document assistant product must meet 2 separate acceptance criteria: (1) need schema-conformant JSON for a downstream parser at generation time; (2) make a direct REST request with a declared supported API contract. Which two implementation actions directly satisfy the stated requirements? Choose TWO.

  1. Configure supported structured outputs with a JSON Schema.
  2. Create a threat model covering trust boundaries, permissions, and misuse paths.
  3. Supply the required API version header.
  4. Convert quality expectations into labeled tests and failure thresholds.
  5. Configure the max_tokens request parameter appropriately.

Explanation

Correct Answers

A:

The test to need schema-conformant JSON for a downstream parser at generation time is met because constrained JSON generation targets machine-parseable fields and types; free-form prompting alone does not establish the same guarantee; the remaining selection covers the separate need to make a direct REST request with a declared supported API contract.

C:

The test to make a direct REST request with a declared supported API contract is met because the version header selects the protocol contract supported by the endpoint, preventing accidental dependence on unspecified behavior; the remaining selection covers the separate need to need schema-conformant JSON for a downstream parser at generation time.

Incorrect Answers

B:

The action is useful for the separate capability to identify damage that could result from adversarial documents or tool access because aI application risk includes injected content and powerful downstream functions; those flows need explicit mitigations before implementation; however, the required test outcomes are to need schema-conformant JSON for a downstream parser at generation time and to make a direct REST request with a declared supported API contract.

D:

The action is useful for the separate capability 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; however, the required test outcomes are to need schema-conformant JSON for a downstream parser at generation time and to make a direct REST request with a declared supported API contract.

E:

The action is useful for the separate capability 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; however, the required test outcomes are to need schema-conformant JSON for a downstream parser at generation time and to make a direct REST request with a declared supported API contract.

Question 639

An architecture decision for an enterprise agent deployment must support prevent an adversarial user from bypassing safety policy by roleplay instructions and stop a model-requested webhook from sending sensitive case text to an unapproved host. Which option gives a complete rather than partial solution?

  1. Perform both steps: (1) Use layered policy enforcement and restrict powerful tools independently of chat text; (2) enforce outbound destination allowlists at the tool execution layer.
  2. Perform both steps: (1) Record result metadata in a post-tool hook; (2) apply an input-side policy gate and route flagged cases to a safe path.
  3. Perform both steps: (1) Use layered policy enforcement and restrict powerful tools independently of chat text; (2) apply an input-side policy gate and route flagged cases to a safe path.
  4. Perform both steps: (1) Record result metadata in a post-tool hook; (2) enforce outbound destination allowlists at the tool execution layer.

Explanation

Correct Answer

A:

The first change enables the team to prevent an adversarial user from bypassing safety policy by roleplay instructions because adversarial prompting can target instruction hierarchy, so product controls and tool authorization must remain effective when wording is manipulated; the second addresses the separate need 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.

Incorrect Answers

B:

Both steps target different results—capture outcomes of agent command execution for security review and identify prohibited requests before an automated agent invokes business tools—because post-execution hooks can log and inspect what happened; they are unsuitable as the sole barrier to a side effect that already occurred and early filtering reduces inappropriate work, but later checks remain necessary because tool outputs can also introduce risks; the required capabilities are instead to prevent an adversarial user from bypassing safety policy by roleplay instructions and to stop a model-requested webhook from sending sensitive case text to an unapproved host.

C:

The first step is appropriate for the requirement to prevent an adversarial user from bypassing safety policy by roleplay instructions because adversarial prompting can target instruction hierarchy, so product controls and tool authorization must remain effective when wording is manipulated; 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 stop a model-requested webhook from sending sensitive case text to an unapproved host.

D:

The second step meets the requirement 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 first step would only help to capture outcomes of agent command execution for security review because post-execution hooks can log and inspect what happened; they are unsuitable as the sole barrier to a side effect that already occurred, leaving the separate requirement to prevent an adversarial user from bypassing safety policy by roleplay instructions unmet.

Question 640

For an enterprise MCP client, the missing capability is to prevent two similarly named lookup tools from being confused. What should the developers implement?

  1. Return a concise task-relevant projection from the tool handler.
  2. Describe each tool's purpose, required inputs, and limitations clearly.
  3. Return an explicit tool error indication and an informative safe message.
  4. Give each tool a timeout and controlled retry or failure result.

Explanation

Correct Answer

B:

To prevent two similarly named lookup tools from being confused in this enterprise MCP client, tool descriptions influence the model's selection, so overlapping or vague names make dispatch less reliable; 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 prevent two similarly named lookup tools from being confused.

C:

The proposed alternative helps to let Claude distinguish a failed database lookup from an empty successful result because an error result preserves failure semantics, preventing the model from inventing a no-record finding for a call that never succeeded; that mechanism does not meet the different requirement to prevent two similarly named lookup tools from being confused.

D:

The proposed alternative helps to stop a slow external system from trapping an agent loop indefinitely because tool execution is a separate latency source; bounded calls prevent one dependency from exhausting the entire agent budget; that mechanism does not meet the different requirement to prevent two similarly named lookup tools from being confused.

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