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

Question 30

A planned upgrade to an operations research assistant has two requirements that must both pass: pursue an open-ended investigation where the next action depends on intermediate evidence; pinpoint which known workflow stage failed when the final artifact is incomplete. Identify the two direct implementations. Choose TWO.

  1. Delegate source analysis to a subagent and return a concise result.
  2. Enforce explicit completion checks and a maximum iteration budget.
  3. Define and validate a typed schema at the handoff.
  4. Give an agent a bounded objective and a tool-selection loop.
  5. Record stage-level traces and intermediate validation outcomes.

Explanation

Correct Answers

D:

To pursue an open-ended investigation where the next action depends on intermediate evidence as part of a design that must also pinpoint which known workflow stage failed when the final artifact is incomplete, agentic control lets the model choose among permitted steps as observations arrive; budgets and termination conditions still bound its autonomy; this is why the action is one of the two required selections.

E:

To pinpoint which known workflow stage failed when the final artifact is incomplete as part of a design that must also pursue an open-ended investigation where the next action depends on intermediate evidence, deterministic stages are operationally useful when their boundaries are observable; a final answer alone cannot reveal which step produced the fault; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to keep a large source-reading task from crowding the coordinator's working context because isolated workspaces let a specialist process extensive material while the parent receives only task-relevant evidence instead of every intermediate token; the required outcomes are instead to pursue an open-ended investigation where the next action depends on intermediate evidence and to pinpoint which known workflow stage failed when the final artifact is incomplete.

B:

This alternative serves the separate goal to stop iterative tool use when a success condition or resource budget is reached because bounded loops avoid unending tool calls and uncontrolled spend while making incomplete work visible instead of silently continuing; the required outcomes are instead to pursue an open-ended investigation where the next action depends on intermediate evidence and to pinpoint which known workflow stage failed when the final artifact is incomplete.

C:

This alternative serves the separate goal to pass reliable machine-readable outputs between independently developed agent stages because typed outputs make downstream contracts inspectable and reduce ambiguity caused by free-form prose passed as control data; the required outcomes are instead to pursue an open-ended investigation where the next action depends on intermediate evidence and to pinpoint which known workflow stage failed when the final artifact is incomplete.

Question 31

The team responsible for a shared tool gateway for Claude needs to expose an MCP server to clients across a network boundary. What is the most direct engineering change?

  1. Implement a client-side handler and return its result with the tool-use identifier.
  2. Configure a supported remote HTTP transport with authentication and deployment controls.
  3. Configure the supported tool_choice behavior for the request.
  4. Validate model-supplied tool arguments against schema and domain rules.

Explanation

Correct Answer

B:

To expose an MCP server to clients across a network boundary in this shared tool gateway for Claude, remote connectivity needs network routing, identity, and authorization; a local stdio subprocess is not a remotely reachable service; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

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 expose an MCP server to clients across a network boundary.

C:

The proposed alternative helps 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; that mechanism does not meet the different requirement to expose an MCP server to clients across a network boundary.

D:

The proposed alternative helps to reject a date or identifier that violates business constraints before a service call because even syntactically correct generated inputs can violate account scope or allowed values, so execution must validate both levels; that mechanism does not meet the different requirement to expose an MCP server to clients across a network boundary.

Question 32

An operational review of a token-consumption optimization sprint reports distinct failures: it cannot minimize average model cost when most requests are easy but some require deeper reasoning, and it cannot solve demanding multistep reasoning tasks where quality matters more than lowest unit price. Which two repairs are required? Choose TWO.

  1. Compare both candidates on identical representative eval cases.
  2. Benchmark an Opus-family model on the hardest cases.
  3. Measure or count input and output tokens with the supported tokenizer or API.
  4. Configure supported adaptive thinking behavior rather than forcing a fixed pattern.
  5. Route simple requests to a cheaper evaluated tier and escalate difficult ones.

Explanation

Correct Answers

B:

To solve demanding multistep reasoning tasks where quality matters more than lowest unit price as part of a design that must also minimize average model cost when most requests are easy but some require deeper reasoning, higher-capability tiers may improve difficult-task performance, but their cost and latency still need objective justification; this is why the action is one of the two required selections.

E:

To minimize average model cost when most requests are easy but some require deeper reasoning as part of a design that must also solve demanding multistep reasoning tasks where quality matters more than lowest unit price, cascading matches compute to task difficulty but requires a reliable escalation rule and measurement of misrouting; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal 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; the required outcomes are instead to minimize average model cost when most requests are easy but some require deeper reasoning and to solve demanding multistep reasoning tasks where quality matters more than lowest unit price.

C:

This alternative serves the separate goal to estimate model usage from encoded text rather than counting words because billing and context consumption track tokens, which do not map one-to-one to English words or characters; the required outcomes are instead to minimize average model cost when most requests are easy but some require deeper reasoning and to solve demanding multistep reasoning tasks where quality matters more than lowest unit price.

D:

This alternative serves the separate goal 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; the required outcomes are instead to minimize average model cost when most requests are easy but some require deeper reasoning and to solve demanding multistep reasoning tasks where quality matters more than lowest unit price.

Question 33

The technical owner of a business workflow that calls Claude has to serve many concurrent network-bound Claude requests without blocking worker threads unnecessarily. A separate requirement is to trace exactly which prompt template was deployed with a code change. Which two-part remediation covers both?

  1. Perform both steps: (1) Use asynchronous SDK calls with bounded concurrency; (2) version prompt files alongside relevant application code.
  2. Perform both steps: (1) Give mutating operations an application-level idempotency key; (2) use the user's own claude code settings file.
  3. Perform both steps: (1) Give mutating operations an application-level idempotency key; (2) version prompt files alongside relevant application code.
  4. Perform both steps: (1) Use asynchronous SDK calls with bounded concurrency; (2) use the user's own claude code settings file.

Explanation

Correct Answer

A:

The first change enables the team to serve many concurrent network-bound Claude requests without blocking worker threads unnecessarily because async I/O can overlap network waits, but it does not remove provider limits or make CPU-heavy postprocessing nonblocking; the second addresses the separate need 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.

Incorrect Answers

B:

Both steps target different results—prevent duplicate purchases or tickets if an agent repeats a tool call and customize one developer's default Claude Code behavior across local projects—because idempotency ensures replays of the same intended action do not create duplicate real-world effects even when orchestration retries and user settings are scoped to one person, so they should not be relied on for enforcing team-wide policy; the required capabilities are instead to serve many concurrent network-bound Claude requests without blocking worker threads unnecessarily and to trace exactly which prompt template was deployed with a code change.

C:

The second step meets the requirement 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; the first step would only help to prevent duplicate purchases or tickets if an agent repeats a tool call because idempotency ensures replays of the same intended action do not create duplicate real-world effects even when orchestration retries, leaving the separate requirement to serve many concurrent network-bound Claude requests without blocking worker threads unnecessarily unmet.

D:

The first step is appropriate for the requirement to serve many concurrent network-bound Claude requests without blocking worker threads unnecessarily because async I/O can overlap network waits, but it does not remove provider limits or make CPU-heavy postprocessing nonblocking; the other step instead aims to customize one developer's default Claude Code behavior across local projects because user settings are scoped to one person, so they should not be relied on for enforcing team-wide policy, which does not meet the second requirement to trace exactly which prompt template was deployed with a code change.

Question 34

A team maintaining a model-output validation layer has two different engineering requirements: (1) ask for missing essential parameters rather than inventing a consequential choice, and (2) prioritize mandatory legal requirements over optional stylistic preferences. Which TWO independent changes directly meet them? Choose TWO.

  1. Ground consequential statements in retrieved evidence or external checks.
  2. Revise one prompt component at a time against a regression evaluation set.
  3. State explicit priority and conflict resolution for the task constraints.
  4. Instruct the application to request clarification for unresolved high-impact ambiguity.
  5. Put stable application constraints in the system instruction field.

Explanation

Correct Answers

C:

To prioritize mandatory legal requirements over optional stylistic preferences as part of a design that must also ask for missing essential parameters rather than inventing a consequential choice, without a priority rule, competing directives can create ambiguous outputs; hard requirements should guide how optional preferences are applied; this is why the action is one of the two required selections.

D:

To ask for missing essential parameters rather than inventing a consequential choice as part of a design that must also prioritize mandatory legal requirements over optional stylistic preferences, clarification reduces irreversible guesses when requirements do not uniquely determine a safe action; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to avoid treating fluent model wording as evidence that a claim is verified because linguistic confidence is not a calibrated truth guarantee, so factual correctness requires independent support; the required outcomes are instead to ask for missing essential parameters rather than inventing a consequential choice and to prioritize mandatory legal requirements over optional stylistic preferences.

B:

This alternative serves the separate goal to improve a prompt while preserving performance on previously solved cases because controlled prompt iteration distinguishes genuine quality gains from regressions or overfitting to one attractive example; the required outcomes are instead to ask for missing essential parameters rather than inventing a consequential choice and to prioritize mandatory legal requirements over optional stylistic preferences.

E:

This alternative serves the separate goal to apply the same compliance restrictions across many different end-user requests because high-priority application instructions should not be delivered as ordinary user content where they compete with user questions and document text; the required outcomes are instead to ask for missing essential parameters rather than inventing a consequential choice and to prioritize mandatory legal requirements over optional stylistic preferences.

Question 35

A team maintaining a model selection trial has two different engineering requirements: (1) investigate inconsistent throughput during a traffic spike, and (2) prevent a tool_use block from being displayed as if it were natural-language text. Which TWO independent changes directly meet them? Choose TWO.

  1. Use a synchronous client with explicit timeout and error handling.
  2. Record rate-limit status and relevant response headers alongside request metrics.
  3. Check each response block's type before extracting its fields.
  4. Measure or count input and output tokens with the supported tokenizer or API.
  5. Iterate the SDK or HTTP event stream until its terminal event.

Explanation

Correct Answers

B:

To investigate inconsistent throughput during a traffic spike as part of a design that must also prevent a tool_use block from being displayed as if it were natural-language text, quota-related measurements explain capacity failures that may otherwise look like randomly slow model inference; this is why the action is one of the two required selections.

C:

To prevent a tool_use block from being displayed as if it were natural-language text as part of a design that must also investigate inconsistent throughput during a traffic spike, typed response objects can contain several block families; assuming every block has a text field causes logic errors; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to implement a low-volume command-line utility that handles one inference at a time because synchronous calls are simplest for strictly sequential work, where concurrency would add complexity without improving throughput; the required outcomes are instead to investigate inconsistent throughput during a traffic spike and to prevent a tool_use block from being displayed as if it were natural-language text.

D:

This alternative serves the separate goal to estimate model usage from encoded text rather than counting words because billing and context consumption track tokens, which do not map one-to-one to English words or characters; the required outcomes are instead to investigate inconsistent throughput during a traffic spike and to prevent a tool_use block from being displayed as if it were natural-language text.

E:

This alternative serves the separate goal to process partial model output as it is delivered over a streaming connection because streaming clients must handle both content deltas and final status rather than assuming the first chunk is the complete response; the required outcomes are instead to investigate inconsistent throughput during a traffic spike and to prevent a tool_use block from being displayed as if it were natural-language text.

Question 36

A team maintaining a Python backend using Claude must meet 2 separate acceptance criteria: (1) authenticate a server-to-server Claude API request; (2) keep one customer from consuming an entire shared inference budget. Which two implementation actions directly satisfy the stated requirements? Choose TWO.

  1. Assign and preserve unique custom identifiers for batched requests.
  2. Place a valid secret in the documented API authentication header.
  3. Store team settings in the project's shared configuration file.
  4. Enforce per-tenant token and request budgets in the backend.
  5. Track provider deprecation notices and test migration before the removal date.

Explanation

Correct Answers

B:

The test to authenticate a server-to-server Claude API request is met because API authentication is a request transport concern; placing a key inside the prompt body neither authenticates the request nor protects it; the remaining selection covers the separate need to keep one customer from consuming an entire shared inference budget.

D:

The test to keep one customer from consuming an entire shared inference budget is met because application quotas isolate noisy tenants and control spending; provider-wide rate limits alone do not guarantee fairness between customers; the remaining selection covers the separate need to authenticate a server-to-server Claude API request.

Incorrect Answers

A:

The action is useful for the separate capability to map out-of-order batch outputs back to source records reliably because asynchronous results need stable correlation keys; relying on processing order can attach an output to the wrong input; however, the required test outcomes are to authenticate a server-to-server Claude API request and to keep one customer from consuming an entire shared inference budget.

C:

The action is useful for the separate capability to apply consistent reviewed tool permissions to an entire Claude Code repository team because repository-level settings can be versioned and reviewed, unlike private preferences that vary across each developer's machine; however, the required test outcomes are to authenticate a server-to-server Claude API request and to keep one customer from consuming an entire shared inference budget.

E:

The action is useful for the separate capability 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; however, the required test outcomes are to authenticate a server-to-server Claude API request and to keep one customer from consuming an entire shared inference budget.

Question 37

The technical owner of a structured output service has to stop verbose tool payloads from consuming most of a long-running agent's context. A separate requirement is to analyze a large source set without exposing every raw document to the parent agent. Which two-part remediation covers both?

  1. Perform both steps: (1) State the task, audience, scope, and required deliverable explicitly; (2) have a scoped subagent process sources and return a concise verified handoff.
  2. Perform both steps: (1) State the task, audience, scope, and required deliverable explicitly; (2) name each mandatory field or section and provide formatting constraints.
  3. Perform both steps: (1) Retain essential fields and discard irrelevant tool output from active context; (2) have a scoped subagent process sources and return a concise verified handoff.
  4. Perform both steps: (1) Retain essential fields and discard irrelevant tool output from active context; (2) name each mandatory field or section and provide formatting constraints.

Explanation

Correct Answer

C:

The first change enables the team 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 second addresses the separate need to analyze a large source set without exposing every raw document to the parent agent because separate contexts let specialists work deeply while the coordinator sees only claims and references needed for the final decision.

Incorrect Answers

A:

The second step meets the requirement to analyze a large source set without exposing every raw document to the parent agent because separate contexts let specialists work deeply while the coordinator sees only claims and references needed for the final decision; the first step would only help 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, leaving the separate requirement to stop verbose tool payloads from consuming most of a long-running agent's context unmet.

B:

Both steps target different results—stop a model from alternating unpredictably between summary and extraction and require that a generated report have a fixed set of sections—because specific task wording narrows reasonable interpretations and gives validation rules a clear target without relying on implied intent and concrete desired structure is easier to verify than a vague instruction to be professional or comprehensive; the required capabilities are instead to stop verbose tool payloads from consuming most of a long-running agent's context and to analyze a large source set without exposing every raw document to the parent agent.

D:

The first step is appropriate for the requirement 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 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 analyze a large source set without exposing every raw document to the parent agent.

Question 38

An end-to-end test for an operations research assistant checks whether it can run the same retrieval, validation, and publishing stages in an approved order for every request and coordinate several specialized investigations and assemble one accountable final answer. Which plan should be approved to satisfy both checks?

  1. Perform both steps: (1) Define structured inputs, expected outputs, and failure states for each delegate; (2) use a supervisor agent to delegate bounded tasks and synthesize results.
  2. Perform both steps: (1) Encode a deterministic workflow with explicit transitions between stages; (2) use a supervisor agent to delegate bounded tasks and synthesize results.
  3. Perform both steps: (1) Define structured inputs, expected outputs, and failure states for each delegate; (2) chain dependent operations serially with explicit input and output contracts.
  4. Perform both steps: (1) Encode a deterministic workflow with explicit transitions between stages; (2) chain dependent operations serially with explicit input and output contracts.

Explanation

Correct Answer

B:

The first change enables the team to run the same retrieval, validation, and publishing stages in an approved order for every request because known control flow belongs in application code, allowing each stage to be tested and audited without asking a model to improvise the sequence; the second addresses the separate need to coordinate several specialized investigations and assemble one accountable final answer because a supervisor owns the overall objective and integrates subagent findings; each delegate should have a narrow mandate and return a constrained summary.

Incorrect Answers

A:

The second step meets the requirement to coordinate several specialized investigations and assemble one accountable final answer because a supervisor owns the overall objective and integrates subagent findings; each delegate should have a narrow mandate and return a constrained summary; 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 run the same retrieval, validation, and publishing stages in an approved order for every request unmet.

C:

Both steps target different results—prevent specialists from producing incompatible artifacts for the orchestrator and ensure each later tool receives a validated artifact from its preceding stage—because explicit delegation contracts make multi-agent integration testable; free-form handoffs often obscure whether a child finished its assigned task and later steps cannot safely start until upstream data exists; passing validated outputs prevents races and malformed downstream input; the required capabilities are instead to run the same retrieval, validation, and publishing stages in an approved order for every request and to coordinate several specialized investigations and assemble one accountable final answer.

D:

The first step is appropriate for the requirement to run the same retrieval, validation, and publishing stages in an approved order for every request because known control flow belongs in application code, allowing each stage to be tested and audited without asking a model to improvise the sequence; the other step instead aims to ensure each later tool receives a validated artifact from its preceding stage because later steps cannot safely start until upstream data exists; passing validated outputs prevents races and malformed downstream input, which does not meet the second requirement to coordinate several specialized investigations and assemble one accountable final answer.

Question 39

A design review for a Claude API workload benchmark asks for support to protect model API traffic against an impersonated network endpoint, together with a way to keep a server responsive while several independent model calls wait on network I/O. Select the two appropriate changes. Choose TWO.

  1. Keep HTTPS certificate and hostname verification enabled.
  2. Use a synchronous client with explicit timeout and error handling.
  3. Branch on HTTP status and decode the provider's error structure.
  4. Use asynchronous client methods and limit in-flight calls.
  5. Check each response block's type before extracting its fields.

Explanation

Correct Answers

A:

To protect model API traffic against an impersonated network endpoint as part of a design that must also keep a server responsive while several independent model calls wait on network I/O, verified TLS authenticates the service and protects data in transit; disabling validation defeats a key transport security property; this is why the action is one of the two required selections.

D:

To keep a server responsive while several independent model calls wait on network I/O as part of a design that must also protect model API traffic against an impersonated network endpoint, event-loop based I/O overlaps waits, but rate and resource bounds are still necessary to avoid overload; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal to implement a low-volume command-line utility that handles one inference at a time because synchronous calls are simplest for strictly sequential work, where concurrency would add complexity without improving throughput; the required outcomes are instead to protect model API traffic against an impersonated network endpoint and to keep a server responsive while several independent model calls wait on network I/O.

C:

This alternative serves the separate goal 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; the required outcomes are instead to protect model API traffic against an impersonated network endpoint and to keep a server responsive while several independent model calls wait on network I/O.

E:

This alternative serves the separate goal to prevent a tool_use block from being displayed as if it were natural-language text because typed response objects can contain several block families; assuming every block has a text field causes logic errors; the required outcomes are instead to protect model API traffic against an impersonated network endpoint and to keep a server responsive while several independent model calls wait on network I/O.

Question 40

A planned upgrade to a secure tool-execution boundary has two requirements that must both pass: protect customer identity fields when only document topics are needed for classification; prevent an adversarial user from bypassing safety policy by roleplay instructions. Identify the two direct implementations. Choose TWO.

  1. Redact secrets and protect log access with retention controls.
  2. Use layered policy enforcement and restrict powerful tools independently of chat text.
  3. Verify origin and integrity of sensitive external data where supported.
  4. Remove or mask unnecessary personal information before model submission.
  5. Revoke and rotate the affected credential and update dependent services.

Explanation

Correct Answers

B:

To prevent an adversarial user from bypassing safety policy by roleplay instructions as part of a design that must also protect customer identity fields when only document topics are needed for classification, adversarial prompting can target instruction hierarchy, so product controls and tool authorization must remain effective when wording is manipulated; this is why the action is one of the two required selections.

D:

To protect customer identity fields when only document topics are needed for classification as part of a design that must also prevent an adversarial user from bypassing safety policy by roleplay instructions, minimization limits exposure while preserving task inputs; relying on the model to ignore visible PII does not provide the same protection; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to investigate user actions without leaking API keys into operational records because logs support accountability only when access and retention are restricted; copying all prompt content into logs creates another exposure surface; the required outcomes are instead to protect customer identity fields when only document topics are needed for classification and to prevent an adversarial user from bypassing safety policy by roleplay instructions.

C:

This alternative serves the separate goal 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 required outcomes are instead to protect customer identity fields when only document topics are needed for classification and to prevent an adversarial user from bypassing safety policy by roleplay instructions.

E:

This alternative serves the separate goal 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 required outcomes are instead to protect customer identity fields when only document topics are needed for classification and to prevent an adversarial user from bypassing safety policy by roleplay instructions.

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