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

Question 690

The technical owner of an internal coding-assistant workflow has to prevent a research assistant from unexpectedly making production changes. A separate requirement is to recover a multi-hour agent workflow after an infrastructure interruption. Which two-part remediation covers both?

  1. Perform both steps: (1) Use isolated branch state and a controlled reconciliation step; (2) persist checkpoints for tool outputs and accepted decisions.
  2. Perform both steps: (1) Give the research subagent read-only tools and a narrow instruction contract; (2) write selected durable facts to a controlled external memory store.
  3. Perform both steps: (1) Use isolated branch state and a controlled reconciliation step; (2) write selected durable facts to a controlled external memory store.
  4. Perform both steps: (1) Give the research subagent read-only tools and a narrow instruction contract; (2) persist checkpoints for tool outputs and accepted decisions.

Explanation

Correct Answer

D:

The first change enables the team to prevent a research assistant from unexpectedly making production changes because capability isolation prevents a specialist from acting outside its delegated role even if it encounters persuasive untrusted instructions; the second addresses the separate need to recover a multi-hour agent workflow after an infrastructure interruption because durable checkpoints let the orchestrator resume from a known stage rather than rerunning costly or side-effecting actions.

Incorrect Answers

A:

The second step meets the requirement to recover a multi-hour agent workflow after an infrastructure interruption because durable checkpoints let the orchestrator resume from a known stage rather than rerunning costly or side-effecting actions; the first step would only help to stop two parallel branches from overwriting the same mutable record because explicit merge rules are required when outputs converge; concurrent mutation without arbitration causes nondeterministic results, leaving the separate requirement to prevent a research assistant from unexpectedly making production changes unmet.

B:

The first step is appropriate for the requirement to prevent a research assistant from unexpectedly making production changes because capability isolation prevents a specialist from acting outside its delegated role even if it encounters persuasive untrusted instructions; the other step instead aims to preserve durable user-approved facts across agent sessions outside the context window because external memory allows selective retrieval in later sessions, unlike temporary model context that disappears when calls end, which does not meet the second requirement to recover a multi-hour agent workflow after an infrastructure interruption.

C:

Both steps target different results—stop two parallel branches from overwriting the same mutable record and preserve durable user-approved facts across agent sessions outside the context window—because explicit merge rules are required when outputs converge; concurrent mutation without arbitration causes nondeterministic results and external memory allows selective retrieval in later sessions, unlike temporary model context that disappears when calls end; the required capabilities are instead to prevent a research assistant from unexpectedly making production changes and to recover a multi-hour agent workflow after an infrastructure interruption.

Question 691

The team responsible for a production incident affecting a Claude endpoint needs to locate which component of a multi-tool answer introduced the wrong value. What is the most direct engineering change?

  1. Inspect stop_reason and output limits before changing the parser.
  2. Read the 400 error details and validate the request payload.
  3. Examine correlated request, tool, and transformation traces stage by stage.
  4. Compare versioned prompts and representative eval cases against model responses.

Explanation

Correct Answer

C:

To locate which component of a multi-tool answer introduced the wrong value in this production incident affecting a Claude endpoint, structured traces reveal whether retrieval, tool execution, postprocessing, or generation caused the defect; reading only the final text cannot isolate it; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to find why a JSON record unexpectedly ends midway through a field because a max_tokens stop indicates incomplete generation; the parser may be working correctly against a response that was never finished; that mechanism does not meet the different requirement to locate which component of a multi-tool answer introduced the wrong value.

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 locate which component of a multi-tool answer introduced the wrong value.

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 locate which component of a multi-tool answer introduced the wrong value.

Question 692

A test for a TypeScript Claude integration fails because it cannot process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace. Which change fixes the identified failure?

  1. Include the necessary conversation history in each Messages API call.
  2. Submit independent requests through the Message Batches API.
  3. Include a typed image content block in the message.
  4. Branch on stop_reason tool_use and dispatch the declared calls.

Explanation

Correct Answer

B:

To process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace in this TypeScript Claude integration, batch processing is suited to deferred work with eventual result collection and is not a substitute for an interactive low-latency chat endpoint; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to continue a chat with relevant prior turns despite the API being stateless because a response does not create server-side conversational memory by default; the client supplies retained turns and controls truncation; that mechanism does not meet the different requirement to process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace.

C:

The proposed alternative helps to ask Claude to interpret a supported image supplied as part of a request because multimodal input must use the API's image representation and supported sourcing; merely writing a filename in text does not transfer pixels; that mechanism does not meet the different requirement to process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace.

D:

The proposed alternative helps to recognize that the model is asking the application to execute a client tool because a tool-use stop requires host-side handling and a follow-up message containing results, not presenting the call as final prose; that mechanism does not meet the different requirement to process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace.

Question 693

A change request for an enterprise agent deployment combines two needs: keep Claude API credentials out of repository source and deployment images, and reduce exposure after an API key is suspected compromised. Which implementation pair addresses both, not just one?

  1. Perform both steps: (1) Enforce a pre-tool hook that denies the disallowed call; (2) revoke and rotate the affected credential and update dependent services.
  2. Perform both steps: (1) Retrieve keys through a managed secrets facility at runtime; (2) record result metadata in a post-tool hook.
  3. Perform both steps: (1) Enforce a pre-tool hook that denies the disallowed call; (2) record result metadata in a post-tool hook.
  4. Perform both steps: (1) Retrieve keys through a managed secrets facility at runtime; (2) revoke and rotate the affected credential and update dependent services.

Explanation

Correct Answer

D:

The first change enables the team to keep Claude API credentials out of repository source and deployment images because central secret handling improves rotation and auditing and avoids accidental credential disclosure through source control; the second addresses the separate need to reduce exposure after an API key is suspected compromised because rotation restores credential control only when the old secret is disabled and consumers move to the replacement safely.

Incorrect Answers

A:

The second step meets the requirement to reduce exposure after an API key is suspected compromised because rotation restores credential control only when the old secret is disabled and consumers move to the replacement safely; the first step would only help to stop a coding agent from running commands that match a prohibited destructive pattern because a deterministic hook checks the proposed command before execution, providing a stronger control than asking the agent to self-police, leaving the separate requirement to keep Claude API credentials out of repository source and deployment images unmet.

B:

The first step is appropriate for the requirement to keep Claude API credentials out of repository source and deployment images because central secret handling improves rotation and auditing and avoids accidental credential disclosure through source control; the other step instead aims 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, which does not meet the second requirement to reduce exposure after an API key is suspected compromised.

C:

Both steps target different results—stop a coding agent from running commands that match a prohibited destructive pattern and capture outcomes of agent command execution for security review—because a deterministic hook checks the proposed command before execution, providing a stronger control than asking the agent to self-police and post-execution hooks can log and inspect what happened; they are unsuitable as the sole barrier to a side effect that already occurred; the required capabilities are instead to keep Claude API credentials out of repository source and deployment images and to reduce exposure after an API key is suspected compromised.

Question 694

For an operations research assistant, the missing capability is to pass reliable machine-readable outputs between independently developed agent stages. What should the developers implement?

  1. Compact prior progress into an accurate working summary.
  2. Give the research subagent read-only tools and a narrow instruction contract.
  3. Define and validate a typed schema at the handoff.
  4. Retrieve only task-relevant memories into the active context.

Explanation

Correct Answer

C:

To pass reliable machine-readable outputs between independently developed agent stages in this operations research assistant, typed outputs make downstream contracts inspectable and reduce ambiguity caused by free-form prose passed as control data; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to continue a long agent run after intermediate observations dominate the context because compaction preserves decisions and unresolved work while reducing token pressure; losing constraints in the summary can still cause errors; that mechanism does not meet the different requirement to pass reliable machine-readable outputs between independently developed agent stages.

B:

The proposed alternative helps to prevent a research assistant from unexpectedly making production changes because capability isolation prevents a specialist from acting outside its delegated role even if it encounters persuasive untrusted instructions; that mechanism does not meet the different requirement to pass reliable machine-readable outputs between independently developed agent stages.

D:

The proposed alternative helps to stop old agent histories from burying the information needed for the current step because selective retrieval improves signal-to-noise and keeps token use bounded while retaining access to older information when required; that mechanism does not meet the different requirement to pass reliable machine-readable outputs between independently developed agent stages.

Question 695

While planning a customer-facing AI feature, the product owner specifies that it must keep a browser application from exposing the secret used for model calls. Which solution fulfills the requirement?

  1. Buffer structured data until it can be parsed and validated before UI commit.
  2. Enforce per-tenant token and request budgets in the backend.
  3. Route Claude requests through a trusted backend service.
  4. Apply a context retention policy and summarize earlier turns where suitable.

Explanation

Correct Answer

C:

To keep a browser application from exposing the secret used for model calls in this customer-facing AI feature, a backend controls credentials and access policy while the UI sends user input through an authenticated application endpoint; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to display partial sentences without publishing malformed structured records because a text stream can arrive in fragments; consumers must distinguish presentation updates from complete machine-readable objects; that mechanism does not meet the different requirement to keep a browser application from exposing the secret used for model calls.

B:

The proposed alternative helps 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; that mechanism does not meet the different requirement to keep a browser application from exposing the secret used for model calls.

D:

The proposed alternative helps to stay within input limits while keeping the most important conversation constraints because selective history management preserves task-critical state; dropping random leading messages can erase consent or requirements; that mechanism does not meet the different requirement to keep a browser application from exposing the secret used for model calls.

Question 696

An end-to-end test for an agent access-control assessment checks whether it can reject a malicious instruction inserted into a web-search result rather than the user's direct request and detect unauthorized modifications to a tool result before it reaches the model. Which plan should be approved to satisfy both checks?

  1. Perform both steps: (1) Isolate external search results and validate any resulting tool action independently; (2) verify origin and integrity of sensitive external data where supported.
  2. Perform both steps: (1) Remove or mask unnecessary personal information before model submission; (2) combine prompt boundaries, scoped credentials, validation, and approval gates.
  3. Perform both steps: (1) Remove or mask unnecessary personal information before model submission; (2) verify origin and integrity of sensitive external data where supported.
  4. Perform both steps: (1) Isolate external search results and validate any resulting tool action independently; (2) combine prompt boundaries, scoped credentials, validation, and approval gates.

Explanation

Correct Answer

A:

The first change enables the team 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 second addresses the separate need to detect unauthorized modifications to a tool result before it reaches the model because trusted decisions require confidence that tool outputs were not altered; transport and signature checks complement content validation.

Incorrect Answers

B:

Both steps target different results—protect customer identity fields when only document topics are needed for classification and secure an agent against both malicious retrieved text and unsafe tool execution—because minimization limits exposure while preserving task inputs; relying on the model to ignore visible PII does not provide the same protection and defense in depth assumes individual filters can fail; independent enforcement boundaries reduce the chance of harmful side effects; the required capabilities are instead to reject a malicious instruction inserted into a web-search result rather than the user's direct request and to detect unauthorized modifications to a tool result before it reaches the model.

C:

The second step meets the requirement to detect unauthorized modifications to a tool result before it reaches the model because trusted decisions require confidence that tool outputs were not altered; transport and signature checks complement content validation; the first step would only help 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, leaving the separate requirement to reject a malicious instruction inserted into a web-search result rather than the user's direct request unmet.

D:

The first step is appropriate for the requirement 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 other step instead aims 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, which does not meet the second requirement to detect unauthorized modifications to a tool result before it reaches the model.

Question 697

An end-to-end test for a structured output service checks whether it can identify when a long agent discussion begins solving a different problem than the user approved and maintain the current task after older dialogue exceeds the active token budget. Which plan should be approved to satisfy both checks?

  1. Perform both steps: (1) Recheck current plans against a stored objective and constraints; (2) summarize prior decisions and preserve unresolved constraints.
  2. Perform both steps: (1) Minimize or redact sensitive fields before constructing context; (2) summarize prior decisions and preserve unresolved constraints.
  3. Perform both steps: (1) Recheck current plans against a stored objective and constraints; (2) state the task, audience, scope, and required deliverable explicitly.
  4. Perform both steps: (1) Minimize or redact sensitive fields before constructing context; (2) state the task, audience, scope, and required deliverable explicitly.

Explanation

Correct Answer

A:

The first change enables the team 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; the second addresses the separate need to maintain the current task after older dialogue exceeds the active token budget because a faithful rolling summary carries forward objectives and commitments while avoiding a full-history replay on each call.

Incorrect Answers

B:

The second step meets the requirement to maintain the current task after older dialogue exceeds the active token budget because a faithful rolling summary carries forward objectives and commitments while avoiding a full-history replay on each call; the first step would only help to provide a document's necessary meaning without disclosing irrelevant personal identifiers because data minimization reduces the sensitive information transmitted for inference while retaining the facts the task legitimately requires, leaving the separate requirement to identify when a long agent discussion begins solving a different problem than the user approved unmet.

C:

The first step is appropriate for the requirement 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; the other step instead aims to stop a model from alternating unpredictably between summary and extraction because specific task wording narrows reasonable interpretations and gives validation rules a clear target without relying on implied intent, which does not meet the second requirement to maintain the current task after older dialogue exceeds the active token budget.

D:

Both steps target different results—provide a document's necessary meaning without disclosing irrelevant personal identifiers and stop a model from alternating unpredictably between summary and extraction—because data minimization reduces the sensitive information transmitted for inference while retaining the facts the task legitimately requires and specific task wording narrows reasonable interpretations and gives validation rules a clear target without relying on implied intent; the required capabilities are instead to identify when a long agent discussion begins solving a different problem than the user approved and to maintain the current task after older dialogue exceeds the active token budget.

Question 698

A change request for a high-volume Messages API gateway combines two needs: reject tool arguments that fail a declared shape before tool execution, and keep one customer from consuming an entire shared inference budget. Which implementation pair addresses both, not just one?

  1. Perform both steps: (1) Store and retrieve message history by authenticated tenant and conversation ID; (2) enforce per-tenant token and request budgets in the backend.
  2. Perform both steps: (1) Use strict tool input validation for the exposed tool interface; (2) enforce per-tenant token and request budgets in the backend.
  3. Perform both steps: (1) Store and retrieve message history by authenticated tenant and conversation ID; (2) route claude requests through a trusted backend service.
  4. Perform both steps: (1) Use strict tool input validation for the exposed tool interface; (2) route claude requests through a trusted backend service.

Explanation

Correct Answer

B:

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

Incorrect Answers

A:

The second step meets 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 first step would only help 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, leaving the separate requirement to reject tool arguments that fail a declared shape before tool execution unmet.

C:

Both steps target different results—prevent chat transcripts from different accounts entering the same Claude request and keep a browser application from exposing the secret used for model calls—because session hygiene requires server-enforced isolation; model instructions cannot repair a history assembled from the wrong user and a backend controls credentials and access policy while the UI sends user input through an authenticated application endpoint; the required capabilities are instead to reject tool arguments that fail a declared shape before tool execution and to keep one customer from consuming an entire shared inference budget.

D:

The first step is appropriate for the requirement 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 other step instead aims to keep a browser application from exposing the secret used for model calls because a backend controls credentials and access policy while the UI sends user input through an authenticated application endpoint, which does not meet the second requirement to keep one customer from consuming an entire shared inference budget.

Question 699

An architecture review of a Claude API workload benchmark asks how to investigate inconsistent throughput during a traffic spike. Which action is the best fit?

  1. Branch on HTTP status and decode the provider's error structure.
  2. Propagate cancellation to the active network request when supported.
  3. Serialize the documented nested request shape rather than flattening it.
  4. Record rate-limit status and relevant response headers alongside request metrics.

Explanation

Correct Answer

D:

To investigate inconsistent throughput during a traffic spike in this Claude API workload benchmark, quota-related measurements explain capacity failures that may otherwise look like randomly slow model inference; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to stop interpreting non-2xx API responses as normal assistant messages because transport errors are not regular model completions, so application control flow must treat them separately; that mechanism does not meet the different requirement to investigate inconsistent throughput during a traffic spike.

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 investigate inconsistent throughput during a traffic spike.

C:

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 investigate inconsistent throughput during a traffic spike.

Question 700

A change request for an enterprise MCP client combines two needs: supply a read-only policy manual to an MCP client without giving it an action endpoint, and execute a high-privilege enterprise action that must remain inside a corporate network. Which implementation pair addresses both, not just one?

  1. Perform both steps: (1) Expose the manual as an MCP resource rather than a tool; (2) host a restricted client tool in the private application environment.
  2. Perform both steps: (1) Disable the capability at configuration or tool-registration level; (2) host a restricted client tool in the private application environment.
  3. Perform both steps: (1) Disable the capability at configuration or tool-registration level; (2) put an approval gate in the host-side write handler.
  4. Perform both steps: (1) Expose the manual as an MCP resource rather than a tool; (2) put an approval gate in the host-side write handler.

Explanation

Correct Answer

A:

The first change enables the team to supply a read-only policy manual to an MCP client without giving it an action endpoint because a resource is contextual data; representing a passive document as an imperative function adds unnecessary execution semantics; the second addresses the separate need to execute a high-privilege enterprise action that must remain inside a corporate network because a private handler provides local network and IAM controls that a generic provider-executed server tool may not possess.

Incorrect Answers

B:

The second step meets the requirement to execute a high-privilege enterprise action that must remain inside a corporate network because a private handler provides local network and IAM controls that a generic provider-executed server tool may not possess; the first step would only help to remove an agent's access to an obsolete integration without rewriting all its task prompts because actual registered capabilities define what may execute; changing descriptive prompt text alone does not revoke a previously available tool, leaving the separate requirement to supply a read-only policy manual to an MCP client without giving it an action endpoint unmet.

C:

Both steps target different results—remove an agent's access to an obsolete integration without rewriting all its task prompts and ensure an agent obtains explicit authorization before updating a customer record—because actual registered capabilities define what may execute; changing descriptive prompt text alone does not revoke a previously available tool and an irreversible or sensitive write must be permitted by trusted application logic, not merely because the model selected a tool; the required capabilities are instead to supply a read-only policy manual to an MCP client without giving it an action endpoint and to execute a high-privilege enterprise action that must remain inside a corporate network.

D:

The first step is appropriate for the requirement to supply a read-only policy manual to an MCP client without giving it an action endpoint because a resource is contextual data; representing a passive document as an imperative function adds unnecessary execution semantics; the other step instead aims to ensure an agent obtains explicit authorization before updating a customer record because an irreversible or sensitive write must be permitted by trusted application logic, not merely because the model selected a tool, which does not meet the second requirement to execute a high-privilege enterprise action that must remain inside a corporate network.

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