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

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.

Question 641

While planning a business workflow that calls Claude, the product owner specifies that it must learn from a tool-side effect caused by an unexpected model action. Which solution fulfills the requirement?

  1. Record a blameless timeline, root causes, and preventive controls.
  2. Separate development credentials, data, and tool endpoints from production.
  3. Add application-owned approval logic around the refund tool.
  4. Assemble messages with correct user and assistant roles.

Explanation

Correct Answer

A:

To learn from a tool-side effect caused by an unexpected model action in this business workflow that calls Claude, post-incident review should identify inadequate approvals and monitoring and turn findings into testable changes, rather than blaming the language model; the proposed implementation directly supplies that capability.

Incorrect Answers

B:

The proposed alternative helps to test experimental prompts and tools without reaching real customer records because environment isolation prevents exploratory code from inheriting real business permissions and improves reproducibility of failures; that mechanism does not meet the different requirement to learn from a tool-side effect caused by an unexpected model action.

C:

The proposed alternative helps to ensure refunds above a policy limit receive human sign-off because decisions that create financial side effects require deterministic authorization checks beyond a model's recommendation; that mechanism does not meet the different requirement to learn from a tool-side effect caused by an unexpected model action.

D:

The proposed alternative helps to distinguish an end user's request from previous assistant turns in a dialogue because conversation structure influences how the model interprets dialogue and tool history; flattening roles into one text string loses that structure; that mechanism does not meet the different requirement to learn from a tool-side effect caused by an unexpected model action.

Question 642

A release check on a context-rich document assistant found two unsatisfied conditions: the service must reject model output missing a field that a downstream service requires, and it must avoid processing a truncated structured response as a complete record. Which complete engineering plan satisfies both?

  1. Perform both steps: (1) Retrieve authoritative policy passages and cite those used; (2) name each mandatory field or section and provide formatting constraints.
  2. Perform both steps: (1) Retrieve authoritative policy passages and cite those used; (2) require a completed stop condition before accepting the parsed result.
  3. Perform both steps: (1) Validate parsed output against the application's declared schema; (2) name each mandatory field or section and provide formatting constraints.
  4. Perform both steps: (1) Validate parsed output against the application's declared schema; (2) require a completed stop condition before accepting the parsed result.

Explanation

Correct Answer

D:

The first change enables the team 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 second addresses the separate need to avoid processing a truncated structured response as a complete record because a response cut off by token limits may parse incompletely or omit required content; completion status matters in addition to syntax.

Incorrect Answers

A:

Both steps target different results—answer a company-policy question from current approved records instead of relying on general knowledge and require that a generated report have a fixed set of sections—because retrieval supplies task-specific facts that pretraining may not include, while source attribution lets the application verify the response and concrete desired structure is easier to verify than a vague instruction to be professional or comprehensive; the required capabilities are instead to reject model output missing a field that a downstream service requires and to avoid processing a truncated structured response as a complete record.

B:

The second step meets the requirement to avoid processing a truncated structured response as a complete record because a response cut off by token limits may parse incompletely or omit required content; completion status matters in addition to syntax; the first step would only help to answer a company-policy question from current approved records instead of relying on general knowledge because retrieval supplies task-specific facts that pretraining may not include, while source attribution lets the application verify the response, leaving the separate requirement to reject model output missing a field that a downstream service requires unmet.

C:

The first step is appropriate for 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 other step instead aims to require that a generated report have a fixed set of sections because concrete desired structure is easier to verify than a vague instruction to be professional or comprehensive, which does not meet the second requirement to avoid processing a truncated structured response as a complete record.

Question 643

The team responsible for a privileged agent security review needs to capture outcomes of agent command execution for security review. What is the most direct engineering change?

  1. Isolate external search results and validate any resulting tool action independently.
  2. Record result metadata in a post-tool hook.
  3. Apply an input-side policy gate and route flagged cases to a safe path.
  4. Enforce a pre-tool hook that denies the disallowed call.

Explanation

Correct Answer

B:

To capture outcomes of agent command execution for security review in this privileged agent security review, post-execution hooks can log and inspect what happened; they are unsuitable as the sole barrier to a side effect that already occurred; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to reject a malicious instruction inserted into a web-search result rather than the user's direct request because indirect attacks exploit lower-trust retrieval surfaces, so trusting search snippets as operational directives crosses a security boundary; that mechanism does not meet the different requirement to capture outcomes of agent command execution for security review.

C:

The proposed alternative helps 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; that mechanism does not meet the different requirement to capture outcomes of agent command execution for security review.

D:

The proposed alternative helps 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; that mechanism does not meet the different requirement to capture outcomes of agent command execution for security review.

Question 644

A team maintaining a document assistant product must meet 2 separate acceptance criteria: (1) stop a well-formed JSON response from introducing an impossible customer status; (2) catch unsafe credentials and incorrect tool calls before deployment. Which two implementation actions directly satisfy the stated requirements? Choose TWO.

  1. Validate generated fields against domain rules after parsing.
  2. Version prompt files alongside relevant application code.
  3. Refactor in bounded steps under existing tests.
  4. Require peer review focused on API, security, and tool-side effects.
  5. Version tool input schemas and coordinate dependent client changes.

Explanation

Correct Answers

A:

The test to stop a well-formed JSON response from introducing an impossible customer status is met because a syntactically valid object may still contain invalid business values; server-side semantics determine whether it is acceptable; the remaining selection covers the separate need to catch unsafe credentials and incorrect tool calls before deployment.

D:

The test to catch unsafe credentials and incorrect tool calls before deployment is met because human review should check trust boundaries and external actions in addition to style; successful compilation cannot prove these behaviors are safe; the remaining selection covers the separate need to stop a well-formed JSON response from introducing an impossible customer status.

Incorrect Answers

B:

The action is useful for the separate capability to trace exactly which prompt template was deployed with a code change because prompts change software behavior and should be reviewed and diffed like code, rather than edited anonymously in production; however, the required test outcomes are to stop a well-formed JSON response from introducing an impossible customer status and to catch unsafe credentials and incorrect tool calls before deployment.

C:

The action is useful for the separate capability to preserve behavior while replacing a fragile parser in an AI integration because small changes constrain regression scope; a wholesale rewrite makes it harder to isolate whether model or parsing behavior changed; however, the required test outcomes are to stop a well-formed JSON response from introducing an impossible customer status and to catch unsafe credentials and incorrect tool calls before deployment.

E:

The action is useful for the separate capability to migrate tool argument fields without breaking older workers because contract versioning prevents producers and consumers from silently disagreeing about required fields or meanings; however, the required test outcomes are to stop a well-formed JSON response from introducing an impossible customer status and to catch unsafe credentials and incorrect tool calls before deployment.

Question 645

The owner of a Claude API workload benchmark needs to estimate model usage from encoded text rather than counting words as well as invite stylistic variety during noncritical brainstorming. Which two changes belong in the minimum remediation plan? Choose TWO.

  1. Serialize the documented nested request shape rather than flattening it.
  2. Measure cache-write overhead against subsequent cache-read savings.
  3. Measure or count input and output tokens with the supported tokenizer or API.
  4. Use more exploratory sampling where supported and measure quality.
  5. Track output tokens separately from input tokens.

Explanation

Correct Answers

C:

To estimate model usage from encoded text rather than counting words as part of a design that must also invite stylistic variety during noncritical brainstorming, billing and context consumption track tokens, which do not map one-to-one to English words or characters; this is why the action is one of the two required selections.

D:

To invite stylistic variety during noncritical brainstorming as part of a design that must also estimate model usage from encoded text rather than counting words, higher sampling randomness broadens candidate phrasing but can reduce predictability, so it suits ideation better than strict extraction; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to preserve arrays of typed content blocks when sending multimodal input because typed content and role fields carry protocol meaning that is lost if developers simply concatenate them into plain text; the required outcomes are instead to estimate model usage from encoded text rather than counting words and to invite stylistic variety during noncritical brainstorming.

B:

This alternative serves the separate goal to reduce repeated cost for a stable lengthy policy prefix reused many times because cache writes may cost extra while hits are cheaper; the reuse frequency determines whether the optimization saves money; the required outcomes are instead to estimate model usage from encoded text rather than counting words and to invite stylistic variety during noncritical brainstorming.

E:

This alternative serves the separate goal to identify why verbose generated reports cost more despite unchanged inputs because generation tokens are metered independently and can have different pricing, so response verbosity affects unit economics; the required outcomes are instead to estimate model usage from encoded text rather than counting words and to invite stylistic variety during noncritical brainstorming.

Question 646

For an operations research assistant, the missing capability is to impose predictable maximum cost and wall-clock exposure on autonomous execution. What should the developers implement?

  1. Consume the agent runtime's streamed event sequence.
  2. Catch tool failures and report typed errors into the agent loop.
  3. Inspect the tool_use block, invoke the authorized handler, and return tool_result.
  4. Apply limits for steps, elapsed time, and token or tool expenditure.

Explanation

Correct Answer

D:

To impose predictable maximum cost and wall-clock exposure on autonomous execution in this operations research assistant, runtime budgets are external constraints on agent activity and must be enforced by the host, not inferred from a cooperative natural-language instruction; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to deliver intermediate agent events to the client as they occur because event-driven consumption lets the application display progress and inspect tool actions without waiting for the entire multi-step run to finish; that mechanism does not meet the different requirement to impose predictable maximum cost and wall-clock exposure on autonomous execution.

B:

The proposed alternative helps to keep a failed tool from being mistaken for successful completion of an objective because explicit failure messages let the model or controller choose recovery; swallowing exceptions makes later actions rely on results that never existed; that mechanism does not meet the different requirement to impose predictable maximum cost and wall-clock exposure on autonomous execution.

C:

The proposed alternative helps to execute a requested internal business function inside the application's trusted process because client tools are executed by the application, not by merely declaring a schema; every returned result must be matched to its tool-use identifier; that mechanism does not meet the different requirement to impose predictable maximum cost and wall-clock exposure on autonomous execution.

Question 647

While planning a customer-facing AI feature, the product owner specifies that it must recover transient 429 or 5xx responses without creating a retry storm. Which solution fulfills the requirement?

  1. Set the appropriate application/json content type and serialize a valid payload.
  2. Retry eligible failures with capped exponential backoff and jitter.
  3. Version prompt files alongside relevant application code.
  4. Add automated consumer-provider contract tests.

Explanation

Correct Answer

B:

To recover transient 429 or 5xx responses without creating a retry storm in this customer-facing AI feature, backoff spreads retry traffic and respects transient capacity limits; blind immediate repetition worsens overload; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to have the server parse a JSON request body predictably because a JSON body requires both correct serialization and matching HTTP metadata; raw language-model text cannot replace a valid request object; that mechanism does not meet the different requirement to recover transient 429 or 5xx responses without creating a retry storm.

C:

The proposed alternative helps to trace exactly which prompt template was deployed with a code change because prompts change software behavior and should be reviewed and diffed like code, rather than edited anonymously in production; that mechanism does not meet the different requirement to recover transient 429 or 5xx responses without creating a retry storm.

D:

The proposed alternative helps to detect a changed tool response field before it breaks downstream code because schema contracts make integration changes visible and prevent a renamed field from silently corrupting later model context; that mechanism does not meet the different requirement to recover transient 429 or 5xx responses without creating a retry storm.

Question 648

In an internal agent-extension rollout, a release requirement is to launch a local MCP server as a subprocess managed by a compatible client. Which implementation addresses that specific requirement?

  1. Use the MCP stdio transport with properly framed protocol messages.
  2. Expose the material as an MCP resource with a stable identifier.
  3. Implement the approval in application workflow control rather than only in a Skill.
  4. Implement a client-side handler and return its result with the tool-use identifier.

Explanation

Correct Answer

A:

To launch a local MCP server as a subprocess managed by a compatible client in this internal agent-extension rollout, standard input and output suit local process integration, where protocol output must not be mixed with arbitrary logging noise; the proposed implementation directly supplies that capability.

Incorrect Answers

B:

The proposed alternative helps to make reference material available for clients to read as context because resources represent consumable data, contrasting with tools that invoke an operation or prompts that package reusable instructions; that mechanism does not meet the different requirement to launch a local MCP server as a subprocess managed by a compatible client.

C:

The proposed alternative helps to enforce a mandatory fixed approval step regardless of what instructions the model follows because skills can guide agent behavior, but deterministic policy gates must live in trusted code so they cannot be skipped by model interpretation; that mechanism does not meet the different requirement to launch a local MCP server as a subprocess managed by a compatible client.

D:

The proposed alternative helps to connect a Claude tool request to an internal service whose logic the application owns because a declared client tool does not execute itself; application code runs it and feeds results back into the conversation; that mechanism does not meet the different requirement to launch a local MCP server as a subprocess managed by a compatible client.

Question 649

The team responsible for a latency-sensitive model gateway needs to reject incomplete or malformed response data before business logic consumes it. What is the most direct engineering change?

  1. Use more exploratory sampling where supported and measure quality.
  2. Parse structured payloads with explicit failure handling.
  3. Record rate-limit status and relevant response headers alongside request metrics.
  4. Branch on HTTP status and decode the provider's error structure.

Explanation

Correct Answer

B:

To reject incomplete or malformed response data before business logic consumes it in this latency-sensitive model gateway, JSON parsing validates syntax, while separate schema and semantic checks verify types and permitted values; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to invite stylistic variety during noncritical brainstorming because higher sampling randomness broadens candidate phrasing but can reduce predictability, so it suits ideation better than strict extraction; that mechanism does not meet the different requirement to reject incomplete or malformed response data before business logic consumes it.

C:

The proposed alternative helps to investigate inconsistent throughput during a traffic spike because quota-related measurements explain capacity failures that may otherwise look like randomly slow model inference; that mechanism does not meet the different requirement to reject incomplete or malformed response data before business logic consumes it.

D:

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 reject incomplete or malformed response data before business logic consumes it.

Question 650

A change request for a high-volume Messages API gateway combines two needs: have the server parse a JSON request body predictably, and preserve behavior while replacing a fragile parser in an AI integration. Which implementation pair addresses both, not just one?

  1. Perform both steps: (1) Configure an available server-side tool with the required API definition; (2) refactor in bounded steps under existing tests.
  2. Perform both steps: (1) Configure an available server-side tool with the required API definition; (2) add automated consumer-provider contract tests.
  3. Perform both steps: (1) Set the appropriate application/json content type and serialize a valid payload; (2) add automated consumer-provider contract tests.
  4. Perform both steps: (1) Set the appropriate application/json content type and serialize a valid payload; (2) refactor in bounded steps under existing tests.

Explanation

Correct Answer

D:

The first change enables the team to have the server parse a JSON request body predictably because a JSON body requires both correct serialization and matching HTTP metadata; raw language-model text cannot replace a valid request object; the second addresses the separate need to preserve behavior while replacing a fragile parser in an AI integration because small changes constrain regression scope; a wholesale rewrite makes it harder to isolate whether model or parsing behavior changed.

Incorrect Answers

A:

The second step meets the requirement to preserve behavior while replacing a fragile parser in an AI integration because small changes constrain regression scope; a wholesale rewrite makes it harder to isolate whether model or parsing behavior changed; the first step would only help to use provider-hosted search or execution without implementing the tool body locally because provider-executed tools are handled in Anthropic's environment and differ from client functions that the caller must run, leaving the separate requirement to have the server parse a JSON request body predictably unmet.

B:

Both steps target different results—use provider-hosted search or execution without implementing the tool body locally and detect a changed tool response field before it breaks downstream code—because provider-executed tools are handled in Anthropic's environment and differ from client functions that the caller must run and schema contracts make integration changes visible and prevent a renamed field from silently corrupting later model context; the required capabilities are instead to have the server parse a JSON request body predictably and to preserve behavior while replacing a fragile parser in an AI integration.

C:

The first step is appropriate for the requirement to have the server parse a JSON request body predictably because a JSON body requires both correct serialization and matching HTTP metadata; raw language-model text cannot replace a valid request object; the other step instead aims 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, which does not meet the second requirement to preserve behavior while replacing a fragile parser in an AI integration.

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