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

Question 1

In a shared tool gateway for Claude, testing reveals that the system cannot connect a Claude tool request to an internal service whose logic the application owns and cannot reject a date or identifier that violates business constraints before a service call. Select the two targeted actions that close these gaps. Choose TWO.

  1. Implement a client-side handler and return its result with the tool-use identifier.
  2. Return an explicit tool error indication and an informative safe message.
  3. Configure the supported tool_choice behavior for the request.
  4. Implement a narrowly scoped read-only tool handler.
  5. Validate model-supplied tool arguments against schema and domain rules.

Explanation

Correct Answers

A:

To connect a Claude tool request to an internal service whose logic the application owns as part of a design that must also reject a date or identifier that violates business constraints before a service call, a declared client tool does not execute itself; application code runs it and feeds results back into the conversation; this is why the action is one of the two required selections.

E:

To reject a date or identifier that violates business constraints before a service call as part of a design that must also connect a Claude tool request to an internal service whose logic the application owns, even syntactically correct generated inputs can violate account scope or allowed values, so execution must validate both levels; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal 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; the required outcomes are instead to connect a Claude tool request to an internal service whose logic the application owns and to reject a date or identifier that violates business constraints before a service call.

C:

This alternative serves the separate goal to require or restrict tool use for a specific turn when the API supports that control because tool-selection controls influence whether Claude may call tools, but cannot grant permissions to the underlying systems; the required outcomes are instead to connect a Claude tool request to an internal service whose logic the application owns and to reject a date or identifier that violates business constraints before a service call.

D:

This alternative serves the separate goal to expose a diagnostic capability without allowing the model to modify records because a restricted read interface supports observation while preventing data mutation, unlike giving a diagnostic agent a general administrative API; the required outcomes are instead to connect a Claude tool request to an internal service whose logic the application owns and to reject a date or identifier that violates business constraints before a service call.

Question 2

A test for a token-consumption optimization sprint fails because it cannot forecast spend for a batch of documents with different input sizes. Which change fixes the identified failure?

  1. Provide one accurate input-output demonstration.
  2. Alert on unusual per-job token and tool-call growth.
  3. Benchmark an Opus-family model on the hardest cases.
  4. Estimate cost from expected input and output tokens and current model rates.

Explanation

Correct Answer

D:

To forecast spend for a batch of documents with different input sizes in this token-consumption optimization sprint, workload cost depends on token mix, model choice, and any applicable discounts or caching rather than request count alone; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps 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; that mechanism does not meet the different requirement to forecast spend for a batch of documents with different input sizes.

B:

The proposed alternative helps to detect a looping agent that suddenly multiplies token consumption because monitoring consumption across an entire agent run catches runaway workflows that per-request logs may not reveal; that mechanism does not meet the different requirement to forecast spend for a batch of documents with different input sizes.

C:

The proposed alternative helps to solve demanding multistep reasoning tasks where quality matters more than lowest unit price because higher-capability tiers may improve difficult-task performance, but their cost and latency still need objective justification; that mechanism does not meet the different requirement to forecast spend for a batch of documents with different input sizes.

Question 3

A team maintaining a Python backend using Claude must meet 2 separate acceptance criteria: (1) reduce repeated TLS setup overhead for high-volume application traffic; (2) recover when a response ends because its generation budget was reached. Which two implementation actions directly satisfy the stated requirements? Choose TWO.

  1. Handle stop_reason max_tokens as truncation and continue or revise the limit.
  2. Define availability objectives with failure and recovery criteria.
  3. Reuse an appropriately configured HTTP client or SDK connection pool.
  4. List upstream systems with permissions, quotas, and failure behavior.
  5. Treat model migration as a tested deployment with staged traffic.

Explanation

Correct Answers

A:

The test to recover when a response ends because its generation budget was reached is met because a truncated completion may contain unfinished content, so treating it as a validated final answer risks losing required fields; the remaining selection covers the separate need to reduce repeated TLS setup overhead for high-volume application traffic.

C:

The test to reduce repeated TLS setup overhead for high-volume application traffic is met because connection reuse lowers transport overhead but still requires limits and health handling for long-lived clients; the remaining selection covers the separate need to recover when a response ends because its generation budget was reached.

Incorrect Answers

B:

The action is useful for the separate capability 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; however, the required test outcomes are to recover when a response ends because its generation budget was reached and to reduce repeated TLS setup overhead for high-volume application traffic.

D:

The action is useful for the separate capability to identify which search services and internal systems are critical to the workflow because a dependency inventory exposes the operational and authorization constraints that a purely model-centered design misses; however, the required test outcomes are to recover when a response ends because its generation budget was reached and to reduce repeated TLS setup overhead for high-volume application traffic.

E:

The action is useful for the separate capability to compare candidate models before switching a mission-critical endpoint because model upgrades may alter output distributions or supported features; staged validation reduces the chance of an unnoticed behavior shift; however, the required test outcomes are to recover when a response ends because its generation budget was reached and to reduce repeated TLS setup overhead for high-volume application traffic.

Question 4

The owner of a model-output validation layer needs to provide a document's necessary meaning without disclosing irrelevant personal identifiers as well as leave space for a model to generate a complete answer after adding source documents. Which two changes belong in the minimum remediation plan? Choose TWO.

  1. Summarize prior decisions and preserve unresolved constraints.
  2. Minimize or redact sensitive fields before constructing context.
  3. Instruct the application to request clarification for unresolved high-impact ambiguity.
  4. Retain essential fields and discard irrelevant tool output from active context.
  5. Reserve an output budget while enforcing input-context limits.

Explanation

Correct Answers

B:

To provide a document's necessary meaning without disclosing irrelevant personal identifiers as part of a design that must also leave space for a model to generate a complete answer after adding source documents, data minimization reduces the sensitive information transmitted for inference while retaining the facts the task legitimately requires; this is why the action is one of the two required selections.

E:

To leave space for a model to generate a complete answer after adding source documents as part of a design that must also provide a document's necessary meaning without disclosing irrelevant personal identifiers, input instructions, history, and evidence share the overall model capacity with generation, so filling it entirely can truncate output; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal 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 required outcomes are instead to provide a document's necessary meaning without disclosing irrelevant personal identifiers and to leave space for a model to generate a complete answer after adding source documents.

C:

This alternative serves the separate goal 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; the required outcomes are instead to provide a document's necessary meaning without disclosing irrelevant personal identifiers and to leave space for a model to generate a complete answer after adding source documents.

D:

This alternative serves the separate goal to stop verbose tool payloads from consuming most of a long-running agent's context because summarizing or filtering observations keeps the reasoning window focused without deleting required facts from durable application state; the required outcomes are instead to provide a document's necessary meaning without disclosing irrelevant personal identifiers and to leave space for a model to generate a complete answer after adding source documents.

Question 5

A production readiness review of a function-calling service finds that the team cannot yet let an MCP client invoke a business capability through a standard server interface or launch a local MCP server as a subprocess managed by a compatible client. Which paired changes directly remedy the two gaps?

  1. Perform both steps: (1) Publish a properly described MCP tool and its input contract; (2) use the mcp stdio transport with properly framed protocol messages.
  2. Perform both steps: (1) Implement the appropriate MCP capability listing and metadata endpoints; (2) define a descriptive tool name and validated input schema.
  3. Perform both steps: (1) Publish a properly described MCP tool and its input contract; (2) define a descriptive tool name and validated input schema.
  4. Perform both steps: (1) Implement the appropriate MCP capability listing and metadata endpoints; (2) use the mcp stdio transport with properly framed protocol messages.

Explanation

Correct Answer

A:

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

Incorrect Answers

B:

Both steps target different results—help a client learn which callable and informational capabilities a server offers and expose a business lookup with predictable typed arguments—because discovery advertises tools, resources, or prompts so clients can use supported contracts rather than guessing names or arguments and well-described schemas help Claude select a capability and emit usable arguments; the backend still validates authorization and meaning; the required capabilities are instead to let an MCP client invoke a business capability through a standard server interface and to launch a local MCP server as a subprocess managed by a compatible client.

C:

The first step is appropriate for the requirement 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 other step instead aims to expose a business lookup with predictable typed arguments because well-described schemas help Claude select a capability and emit usable arguments; the backend still validates authorization and meaning, which does not meet the second requirement to launch a local MCP server as a subprocess managed by a compatible client.

D:

The second step meets the requirement 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 first step would only help 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, leaving the separate requirement to let an MCP client invoke a business capability through a standard server interface unmet.

Question 6

A team maintaining a Python Claude API backend has two different engineering requirements: (1) determine whether a quality regression came from a recent instruction edit, and (2) migrate tool argument fields without breaking older workers. Which TWO independent changes directly meet them? Choose TWO.

  1. Cache an eligible unchanged prefix with cache_control.
  2. Store and retrieve message history by authenticated tenant and conversation ID.
  3. Require structured request IDs, tool traces, and version metadata with privacy controls.
  4. Store prompt versions with release identifiers and rollback history.
  5. Version tool input schemas and coordinate dependent client changes.

Explanation

Correct Answers

D:

To determine whether a quality regression came from a recent instruction edit as part of a design that must also migrate tool argument fields without breaking older workers, a prompt is a behavior-changing artifact; versioning makes comparisons and safe reversions possible during incident response; this is why the action is one of the two required selections.

E:

To migrate tool argument fields without breaking older workers as part of a design that must also determine whether a quality regression came from a recent instruction edit, contract versioning prevents producers and consumers from silently disagreeing about required fields or meanings; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal 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 required outcomes are instead to determine whether a quality regression came from a recent instruction edit and to migrate tool argument fields without breaking older workers.

B:

This alternative serves the separate goal 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; the required outcomes are instead to determine whether a quality regression came from a recent instruction edit and to migrate tool argument fields without breaking older workers.

C:

This alternative serves the separate goal to enable an administrator to determine how a particular AI decision was produced because traceability depends on consistent operational evidence, not just retaining the final generated answer or a screenshot; the required outcomes are instead to determine whether a quality regression came from a recent instruction edit and to migrate tool argument fields without breaking older workers.

Question 7

A team maintaining an autonomous repository maintenance job has two different engineering requirements: (1) preserve durable user-approved facts across agent sessions outside the context window, and (2) avoid adding orchestration infrastructure to a single request-and-response feature. Which TWO independent changes directly meet them? Choose TWO.

  1. Write selected durable facts to a controlled external memory store.
  2. Prefer a simple API call over a general-purpose multi-agent framework.
  3. Persist checkpoints for tool outputs and accepted decisions.
  4. Classify the request and dispatch to an appropriate specialized workflow.
  5. Run side-effect-free tool calls concurrently when their inputs are independent.

Explanation

Correct Answers

A:

To preserve durable user-approved facts across agent sessions outside the context window as part of a design that must also avoid adding orchestration infrastructure to a single request-and-response feature, external memory allows selective retrieval in later sessions, unlike temporary model context that disappears when calls end; this is why the action is one of the two required selections.

B:

To avoid adding orchestration infrastructure to a single request-and-response feature as part of a design that must also preserve durable user-approved facts across agent sessions outside the context window, frameworks are useful for genuinely branching, long-lived execution, but increase complexity when no orchestration problem exists; this is why the action is one of the two required selections.

Incorrect Answers

C:

This alternative serves the separate goal 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 required outcomes are instead to preserve durable user-approved facts across agent sessions outside the context window and to avoid adding orchestration infrastructure to a single request-and-response feature.

D:

This alternative serves the separate goal to send distinct request types to specialized handlers while keeping the routing rule inspectable because routing separates distinct pathways without making the entire task autonomously planned; the classification decision must be observable and tested; the required outcomes are instead to preserve durable user-approved facts across agent sessions outside the context window and to avoid adding orchestration infrastructure to a single request-and-response feature.

E:

This alternative serves the separate goal 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 required outcomes are instead to preserve durable user-approved facts across agent sessions outside the context window and to avoid adding orchestration infrastructure to a single request-and-response feature.

Question 8

To ship a production prompt pipeline, the application must reject model output missing a field that a downstream service requires and prevent a generated status outside a database's accepted code set. Which pair of listed actions is necessary for those stated capabilities? Choose TWO.

  1. Apply domain-specific authorization and business rules after schema validation.
  2. Validate parsed output against the application's declared schema.
  3. Reserve an output budget while enforcing input-context limits.
  4. Specify the forbidden content alongside an enforceable validation check.
  5. Map or reject values not in the approved enumeration.

Explanation

Correct Answers

B:

To reject model output missing a field that a downstream service requires as part of a design that must also prevent a generated status outside a database's accepted code set, parsing proves a string is legal JSON, but schema validation checks required keys, types, and structural constraints; this is why the action is one of the two required selections.

E:

To prevent a generated status outside a database's accepted code set as part of a design that must also reject model output missing a field that a downstream service requires, controlled vocabularies need explicit allowed values; a plausible new status label can still break downstream contracts; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal 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 required outcomes are instead to reject model output missing a field that a downstream service requires and to prevent a generated status outside a database's accepted code set.

C:

This alternative serves the separate goal to leave space for a model to generate a complete answer after adding source documents because input instructions, history, and evidence share the overall model capacity with generation, so filling it entirely can truncate output; the required outcomes are instead to reject model output missing a field that a downstream service requires and to prevent a generated status outside a database's accepted code set.

D:

This alternative serves the separate goal to avoid a prohibited output element such as confidential identifiers because negative prompt guidance signals the intended boundary, but a deterministic validator is needed where violating it has consequences; the required outcomes are instead to reject model output missing a field that a downstream service requires and to prevent a generated status outside a database's accepted code set.

Question 9

Two approval criteria are still open for a business workflow that calls Claude: the team must cap the maximum output generated by a Messages API request and ask questions about information in a user-provided PDF through a supported document input. Which two implementation actions satisfy them? Choose TWO.

  1. Treat stop_reason end_turn as a completed assistant turn.
  2. Attach the PDF using the supported document content form.
  3. Configure the max_tokens request parameter appropriately.
  4. Use the provider-specific endpoint, authentication, and request conventions.
  5. Use stop_sequences and inspect the returned stop_sequence field.

Explanation

Correct Answers

B:

To ask questions about information in a user-provided PDF through a supported document input as part of a design that must also cap the maximum output generated by a Messages API request, document analysis depends on actual supported content blocks and size limits; a local file path alone is not accessible to the remote model; this is why the action is one of the two required selections.

C:

To cap the maximum output generated by a Messages API request as part of a design that must also ask questions about information in a user-provided PDF through a supported document input, a generation limit controls maximum output length, not total cost or correctness; too low a value can truncate useful answers; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to detect that the assistant has naturally finished a response because the completion signal is explicit in the response metadata; it should not be inferred solely from a sentence ending in punctuation; the required outcomes are instead to cap the maximum output generated by a Messages API request and to ask questions about information in a user-provided PDF through a supported document input.

D:

This alternative serves the separate goal to support Claude models accessed through different supported cloud offerings because Claude API, Bedrock, and Vertex-style integrations are not interchangeable URLs; host authentication and service wrappers differ; the required outcomes are instead to cap the maximum output generated by a Messages API request and to ask questions about information in a user-provided PDF through a supported document input.

E:

This alternative serves the separate goal to enforce a caller-defined textual boundary on generation because a stop sequence halts generation at a specified marker, distinct from natural completion and separate from a JSON schema validator; the required outcomes are instead to cap the maximum output generated by a Messages API request and to ask questions about information in a user-provided PDF through a supported document input.

Question 10

For an enterprise MCP client, the missing capability is to obtain a capability already provided as a supported Anthropic server tool. What should the developers implement?

  1. Put an approval gate in the host-side write handler.
  2. Disable the capability at configuration or tool-registration level.
  3. Implement the approval in application workflow control rather than only in a Skill.
  4. Configure the built-in capability instead of recreating it as a local handler.

Explanation

Correct Answer

D:

To obtain a capability already provided as a supported Anthropic server tool in this enterprise MCP client, provider tools simplify execution ownership, though availability, cost, and data handling still require assessment; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps 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; that mechanism does not meet the different requirement to obtain a capability already provided as a supported Anthropic server tool.

B:

The proposed alternative helps 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; that mechanism does not meet the different requirement to obtain a capability already provided as a supported Anthropic server tool.

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 obtain a capability already provided as a supported Anthropic server tool.

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