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

Question 360

A team maintaining an internal agent-extension rollout has two different engineering requirements: (1) supply a read-only policy manual to an MCP client without giving it an action endpoint, and (2) obtain a capability already provided as a supported Anthropic server tool. Which TWO independent changes directly meet them? Choose TWO.

  1. Use the MCP stdio transport with properly framed protocol messages.
  2. Host a restricted client tool in the private application environment.
  3. Expose the manual as an MCP resource rather than a tool.
  4. Implement the appropriate MCP capability listing and metadata endpoints.
  5. Configure the built-in capability instead of recreating it as a local handler.

Explanation

Correct Answers

C:

To supply a read-only policy manual to an MCP client without giving it an action endpoint as part of a design that must also obtain a capability already provided as a supported Anthropic server tool, a resource is contextual data; representing a passive document as an imperative function adds unnecessary execution semantics; this is why the action is one of the two required selections.

E:

To obtain a capability already provided as a supported Anthropic server tool as part of a design that must also supply a read-only policy manual to an MCP client without giving it an action endpoint, provider tools simplify execution ownership, though availability, cost, and data handling still require assessment; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to launch a local MCP server as a subprocess managed by a compatible client because standard input and output suit local process integration, where protocol output must not be mixed with arbitrary logging noise; the required outcomes are instead to supply a read-only policy manual to an MCP client without giving it an action endpoint and to obtain a capability already provided as a supported Anthropic server tool.

B:

This alternative serves the separate goal 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 required outcomes are instead to supply a read-only policy manual to an MCP client without giving it an action endpoint and to obtain a capability already provided as a supported Anthropic server tool.

D:

This alternative serves the separate goal to help a client learn which callable and informational capabilities a server offers because discovery advertises tools, resources, or prompts so clients can use supported contracts rather than guessing names or arguments; the required outcomes are instead to supply a read-only policy manual to an MCP client without giving it an action endpoint and to obtain a capability already provided as a supported Anthropic server tool.

Question 361

The team responsible for a structured output service needs to avoid processing a truncated structured response as a complete record. What is the most direct engineering change?

  1. Require a completed stop condition before accepting the parsed result.
  2. Instruct the application to request clarification for unresolved high-impact ambiguity.
  3. Catch the parsing error and apply a bounded repair or retry path.
  4. Map or reject values not in the approved enumeration.

Explanation

Correct Answer

A:

To avoid processing a truncated structured response as a complete record in this structured output service, a response cut off by token limits may parse incompletely or omit required content; completion status matters in addition to syntax; the proposed implementation directly supplies that capability.

Incorrect Answers

B:

The proposed alternative helps to ask for missing essential parameters rather than inventing a consequential choice because clarification reduces irreversible guesses when requirements do not uniquely determine a safe action; that mechanism does not meet the different requirement to avoid processing a truncated structured response as a complete record.

C:

The proposed alternative helps to handle a JSON parse failure without silently accepting partial data because defensive parsing makes failures explicit and limits reattempts; swallowing errors can propagate corrupt records; that mechanism does not meet the different requirement to avoid processing a truncated structured response as a complete record.

D:

The proposed alternative helps to prevent a generated status outside a database's accepted code set because controlled vocabularies need explicit allowed values; a plausible new status label can still break downstream contracts; that mechanism does not meet the different requirement to avoid processing a truncated structured response as a complete record.

Question 362

A test for a token-consumption optimization sprint fails because it cannot favor more consistent word choices in a constrained transformation task when supported. Which change fixes the identified failure?

  1. Estimate cost from expected input and output tokens and current model rates.
  2. Tune sampling for lower variance while retaining output validation.
  3. Compare both candidates on identical representative eval cases.
  4. Configure supported adaptive thinking behavior rather than forcing a fixed pattern.

Explanation

Correct Answer

B:

To favor more consistent word choices in a constrained transformation task when supported in this token-consumption optimization sprint, temperature influences token sampling; it cannot by itself guarantee truth, policy compliance, or reproducible structured output; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to forecast spend for a batch of documents with different input sizes because workload cost depends on token mix, model choice, and any applicable discounts or caching rather than request count alone; that mechanism does not meet the different requirement to favor more consistent word choices in a constrained transformation task when supported.

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 favor more consistent word choices in a constrained transformation task when supported.

D:

The proposed alternative helps to allow supported models to vary internal reasoning effort according to task difficulty because adaptive reasoning responds to problem complexity, but supported modes differ by model and release and should not be assumed universal; that mechanism does not meet the different requirement to favor more consistent word choices in a constrained transformation task when supported.

Question 363

An architecture decision for a shared Claude Code repository must support run a Claude Code task from an automated CI job without an interactive terminal and delegate an independent code review without filling the main coding session with details. Which option gives a complete rather than partial solution?

  1. Perform both steps: (1) Define policy in the appropriate managed or shared settings scope; (2) configure a specialized claude code subagent with a narrow remit.
  2. Perform both steps: (1) Define policy in the appropriate managed or shared settings scope; (2) initialize project guidance and review the resulting claude.md content.
  3. Perform both steps: (1) Invoke the supported noninteractive or print-mode command interface; (2) configure a specialized claude code subagent with a narrow remit.
  4. Perform both steps: (1) Invoke the supported noninteractive or print-mode command interface; (2) initialize project guidance and review the resulting claude.md content.

Explanation

Correct Answer

C:

The first change enables the team to run a Claude Code task from an automated CI job without an interactive terminal because headless operation outputs results for automation and requires explicit credential, permission, and failure handling in the CI environment; the second addresses the separate need to delegate an independent code review without filling the main coding session with details because subagents can focus on a task and return a summary, limiting noise in the parent session and allowing separate permissions when configured.

Incorrect Answers

A:

The second step meets the requirement to delegate an independent code review without filling the main coding session with details because subagents can focus on a task and return a summary, limiting noise in the parent session and allowing separate permissions when configured; the first step would only help to enforce a team-approved permission policy despite local developer preferences because Claude Code has multiple configuration scopes; binding policy to the required scope matters more than placing a rule in an arbitrary JSON file, leaving the separate requirement to run a Claude Code task from an automated CI job without an interactive terminal unmet.

B:

Both steps target different results—enforce a team-approved permission policy despite local developer preferences and introduce Claude Code to an unfamiliar codebase's conventions and commands—because Claude Code has multiple configuration scopes; binding policy to the required scope matters more than placing a rule in an arbitrary JSON file and repository setup discovers useful project practices, but autogenerated guidance still needs a human check for accuracy and unnecessary detail; the required capabilities are instead to run a Claude Code task from an automated CI job without an interactive terminal and to delegate an independent code review without filling the main coding session with details.

D:

The first step is appropriate for the requirement to run a Claude Code task from an automated CI job without an interactive terminal because headless operation outputs results for automation and requires explicit credential, permission, and failure handling in the CI environment; the other step instead aims 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, which does not meet the second requirement to delegate an independent code review without filling the main coding session with details.

Question 364

For a secure tool-execution boundary, the missing capability is to protect customer identity fields when only document topics are needed for classification. What should the developers implement?

  1. Record authenticated approval events with actor, scope, and request correlation.
  2. Record result metadata in a post-tool hook.
  3. Remove or mask unnecessary personal information before model submission.
  4. Enforce a pre-tool hook that denies the disallowed call.

Explanation

Correct Answer

C:

To protect customer identity fields when only document topics are needed for classification in this secure tool-execution boundary, minimization limits exposure while preserving task inputs; relying on the model to ignore visible PII does not provide the same protection; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to demonstrate who approved a privileged tool action and when because an audit trail binds authorization to a specific action, making privilege use reviewable without treating model-generated text as proof of consent; that mechanism does not meet the different requirement to protect customer identity fields when only document topics are needed for classification.

B:

The proposed alternative helps 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; that mechanism does not meet the different requirement to protect customer identity fields when only document topics are needed for classification.

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 protect customer identity fields when only document topics are needed for classification.

Question 365

An end-to-end test for a multi-tenant support application checks whether it can process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace and reuse a long stable instruction or document prefix over repeated requests. Which plan should be approved to satisfy both checks?

  1. Perform both steps: (1) Include the necessary conversation history in each Messages API call; (2) include a typed image content block in the message.
  2. Perform both steps: (1) Submit independent requests through the Message Batches API; (2) include a typed image content block in the message.
  3. Perform both steps: (1) Include the necessary conversation history in each Messages API call; (2) cache an eligible unchanged prefix with cache_control.
  4. Perform both steps: (1) Submit independent requests through the Message Batches API; (2) cache an eligible unchanged prefix with cache_control.

Explanation

Correct Answer

D:

The first change enables the team to process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace because batch processing is suited to deferred work with eventual result collection and is not a substitute for an interactive low-latency chat endpoint; the second addresses the separate need to reuse a long stable instruction or document prefix over repeated requests because prompt caching reduces repeated input processing when the prefix matches; changes before the cache boundary can prevent a hit.

Incorrect Answers

A:

Both steps target different results—continue a chat with relevant prior turns despite the API being stateless and ask Claude to interpret a supported image supplied as part of a request—because a response does not create server-side conversational memory by default; the client supplies retained turns and controls truncation and multimodal input must use the API's image representation and supported sourcing; merely writing a filename in text does not transfer pixels; the required capabilities are instead to process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace and to reuse a long stable instruction or document prefix over repeated requests.

B:

The first step is appropriate for the requirement to process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace because batch processing is suited to deferred work with eventual result collection and is not a substitute for an interactive low-latency chat endpoint; the other step instead aims 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, which does not meet the second requirement to reuse a long stable instruction or document prefix over repeated requests.

C:

The second step meets the requirement to reuse a long stable instruction or document prefix over repeated requests because prompt caching reduces repeated input processing when the prefix matches; changes before the cache boundary can prevent a hit; the first step would only help 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, leaving the separate requirement to process a large queue of independent, noninteractive requests at a lower-cost asynchronous pace unmet.

Question 366

Two approval criteria are still open for a Claude inference cost review: the team must avoid assuming a model-version change preserves tool output and writing behavior and deliver moderately complex development assistance with balanced quality, cost, and latency. Which two implementation actions satisfy them? Choose TWO.

  1. Revalidate prompts, schemas, safety constraints, and tools after model migration.
  2. Run contract and integration tests against the upgraded SDK in staging.
  3. Evaluate a Sonnet-family model against a realistic task set.
  4. Budget total context for instructions, history, tools, and output.
  5. Provide one accurate input-output demonstration.

Explanation

Correct Answers

A:

To avoid assuming a model-version change preserves tool output and writing behavior as part of a design that must also deliver moderately complex development assistance with balanced quality, cost, and latency, new releases can change response distributions or supported behaviors, making a model upgrade a real software change; this is why the action is one of the two required selections.

C:

To deliver moderately complex development assistance with balanced quality, cost, and latency as part of a design that must also avoid assuming a model-version change preserves tool output and writing behavior, a balanced model tier often offers useful capability without the latency or cost of the most expensive tier; evaluation should drive final selection; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal 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; the required outcomes are instead to avoid assuming a model-version change preserves tool output and writing behavior and to deliver moderately complex development assistance with balanced quality, cost, and latency.

D:

This alternative serves the separate goal 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; the required outcomes are instead to avoid assuming a model-version change preserves tool output and writing behavior and to deliver moderately complex development assistance with balanced quality, cost, and latency.

E:

This alternative serves the separate goal 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; the required outcomes are instead to avoid assuming a model-version change preserves tool output and writing behavior and to deliver moderately complex development assistance with balanced quality, cost, and latency.

Question 367

A release check on an autonomous repository maintenance job found two unsatisfied conditions: the service must continue a long agent run after intermediate observations dominate the context, and it must speed up independent data lookups without causing write-order races. Which complete engineering plan satisfies both?

  1. Perform both steps: (1) Define structured inputs, expected outputs, and failure states for each delegate; (2) implement an application-owned messages api agent loop.
  2. Perform both steps: (1) Compact prior progress into an accurate working summary; (2) implement an application-owned messages api agent loop.
  3. Perform both steps: (1) Compact prior progress into an accurate working summary; (2) run side-effect-free tool calls concurrently when their inputs are independent.
  4. Perform both steps: (1) Define structured inputs, expected outputs, and failure states for each delegate; (2) run side-effect-free tool calls concurrently when their inputs are independent.

Explanation

Correct Answer

C:

The first change enables the team 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; the second addresses the separate need to speed up independent data lookups without causing write-order races because read-only independent calls can safely overlap; mutating operations need explicit ordering or concurrency control.

Incorrect Answers

A:

Both steps target different results—prevent specialists from producing incompatible artifacts for the orchestrator and require precise control over message assembly, tool dispatch, and stopping behavior—because explicit delegation contracts make multi-agent integration testable; free-form handoffs often obscure whether a child finished its assigned task and a custom loop explicitly owns each model call, tool result, state update, and budget decision, trading flexibility for more engineering responsibility; the required capabilities are instead to continue a long agent run after intermediate observations dominate the context and to speed up independent data lookups without causing write-order races.

B:

The first step is appropriate for the requirement 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; the other step instead aims to require precise control over message assembly, tool dispatch, and stopping behavior because a custom loop explicitly owns each model call, tool result, state update, and budget decision, trading flexibility for more engineering responsibility, which does not meet the second requirement to speed up independent data lookups without causing write-order races.

D:

The second step meets the requirement to speed up independent data lookups without causing write-order races because read-only independent calls can safely overlap; mutating operations need explicit ordering or concurrency control; the first step would only help to prevent specialists from producing incompatible artifacts for the orchestrator because explicit delegation contracts make multi-agent integration testable; free-form handoffs often obscure whether a child finished its assigned task, leaving the separate requirement to continue a long agent run after intermediate observations dominate the context unmet.

Question 368

A test for a production inference application fails because it cannot test experimental prompts and tools without reaching real customer records. Which change fixes the identified failure?

  1. Track provider deprecation notices and test migration before the removal date.
  2. Validate generated fields against domain rules after parsing.
  3. Define availability objectives with failure and recovery criteria.
  4. Separate development credentials, data, and tool endpoints from production.

Explanation

Correct Answer

D:

To test experimental prompts and tools without reaching real customer records in this production inference application, environment isolation prevents exploratory code from inheriting real business permissions and improves reproducibility of failures; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to avoid an outage when a pinned model version approaches retirement because lifecycle management treats model availability as a dependency and validates output regressions before switching production traffic; that mechanism does not meet the different requirement to test experimental prompts and tools without reaching real customer records.

B:

The proposed alternative helps 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; that mechanism does not meet the different requirement to test experimental prompts and tools without reaching real customer records.

C:

The proposed alternative helps to state how much interruption a customer-facing AI feature can tolerate because reliability requirements determine fallback, retries, health monitoring, and degraded behavior; they are distinct from the response's linguistic quality; that mechanism does not meet the different requirement to test experimental prompts and tools without reaching real customer records.

Question 369

In a tool-calling Claude workflow, testing reveals that the system cannot obtain a capability already provided as a supported Anthropic server tool and cannot execute a high-privilege enterprise action that must remain inside a corporate network. Select the two targeted actions that close these gaps. Choose TWO.

  1. Implement the appropriate MCP capability listing and metadata endpoints.
  2. Host a restricted client tool in the private application environment.
  3. Register a prompt template with its required arguments.
  4. Configure the built-in capability instead of recreating it as a local handler.
  5. Publish a properly described MCP tool and its input contract.

Explanation

Correct Answers

B:

To execute a high-privilege enterprise action that must remain inside a corporate network as part of a design that must also obtain a capability already provided as a supported Anthropic server tool, a private handler provides local network and IAM controls that a generic provider-executed server tool may not possess; this is why the action is one of the two required selections.

D:

To obtain a capability already provided as a supported Anthropic server tool as part of a design that must also execute a high-privilege enterprise action that must remain inside a corporate network, provider tools simplify execution ownership, though availability, cost, and data handling still require assessment; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to help a client learn which callable and informational capabilities a server offers because discovery advertises tools, resources, or prompts so clients can use supported contracts rather than guessing names or arguments; the required outcomes are instead to obtain a capability already provided as a supported Anthropic server tool and to execute a high-privilege enterprise action that must remain inside a corporate network.

C:

This alternative serves the separate goal to offer users a reusable parameterized instruction template from an MCP server because MCP prompts provide structured prompt content, but by themselves do not perform external business actions; the required outcomes are instead to obtain a capability already provided as a supported Anthropic server tool and to execute a high-privilege enterprise action that must remain inside a corporate network.

E:

This alternative serves the separate goal to let an MCP client invoke a business capability through a standard server interface because MCP tools represent callable operations with typed parameters; the server executes authorized behavior rather than only providing reference text; the required outcomes are instead to obtain a capability already provided as a supported Anthropic server tool and to execute a high-privilege enterprise action that must remain inside a corporate network.

Question 370

For a secure tool-execution boundary, the missing capability is to stop frontend users from receiving unrestricted backend tool credentials. What should the developers implement?

  1. Validate or moderate final content before release.
  2. Check resource-level authorization for every sensitive tool request.
  3. Use a server-side workload identity or scoped service credential.
  4. Remove or mask unnecessary personal information before model submission.

Explanation

Correct Answer

C:

To stop frontend users from receiving unrestricted backend tool credentials in this secure tool-execution boundary, service identities tie privileges to a runtime workload and avoid exposing long-lived secrets to browsers or untrusted users; 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 stop frontend users from receiving unrestricted backend tool credentials.

B:

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 stop frontend users from receiving unrestricted backend tool credentials.

D:

The proposed alternative helps 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; that mechanism does not meet the different requirement to stop frontend users from receiving unrestricted backend tool credentials.

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