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

Question 440

A production readiness review of a token-consumption optimization sprint finds that the team cannot yet investigate inconsistent throughput during a traffic spike or keep a server responsive while several independent model calls wait on network I/O. Which paired changes directly remedy the two gaps?

  1. Perform both steps: (1) Design an approved fallback model path with compatibility checks; (2) use asynchronous client methods and limit in-flight calls.
  2. Perform both steps: (1) Record rate-limit status and relevant response headers alongside request metrics; (2) include several carefully selected and diverse demonstrations.
  3. Perform both steps: (1) Record rate-limit status and relevant response headers alongside request metrics; (2) use asynchronous client methods and limit in-flight calls.
  4. Perform both steps: (1) Design an approved fallback model path with compatibility checks; (2) include several carefully selected and diverse demonstrations.

Explanation

Correct Answer

C:

The first change enables the team to investigate inconsistent throughput during a traffic spike because quota-related measurements explain capacity failures that may otherwise look like randomly slow model inference; the second addresses the separate need to keep a server responsive while several independent model calls wait on network I/O because event-loop based I/O overlaps waits, but rate and resource bounds are still necessary to avoid overload.

Incorrect Answers

A:

The second step meets the requirement to keep a server responsive while several independent model calls wait on network I/O because event-loop based I/O overlaps waits, but rate and resource bounds are still necessary to avoid overload; the first step would only help to preserve critical service during a temporary primary-model problem because fallbacks improve resilience only when downstream schemas, cost limits, and policy controls work with the alternate model, leaving the separate requirement to investigate inconsistent throughput during a traffic spike unmet.

B:

The first step is appropriate for the requirement to investigate inconsistent throughput during a traffic spike because quota-related measurements explain capacity failures that may otherwise look like randomly slow model inference; the other step instead aims to reduce inconsistent labeling across nuanced examples because multiple examples communicate decision boundaries and desired formatting, although irrelevant or misleading demonstrations can bias the model, which does not meet the second requirement to keep a server responsive while several independent model calls wait on network I/O.

D:

Both steps target different results—preserve critical service during a temporary primary-model problem and reduce inconsistent labeling across nuanced examples—because fallbacks improve resilience only when downstream schemas, cost limits, and policy controls work with the alternate model and multiple examples communicate decision boundaries and desired formatting, although irrelevant or misleading demonstrations can bias the model; the required capabilities are instead to investigate inconsistent throughput during a traffic spike and to keep a server responsive while several independent model calls wait on network I/O.

Question 441

An architecture review of a knowledge-grounded assistant asks how to improve a prompt while preserving performance on previously solved cases. Which action is the best fit?

  1. Catch the parsing error and apply a bounded repair or retry path.
  2. Minimize or redact sensitive fields before constructing context.
  3. Revise one prompt component at a time against a regression evaluation set.
  4. Instruct the application to request clarification for unresolved high-impact ambiguity.

Explanation

Correct Answer

C:

To improve a prompt while preserving performance on previously solved cases in this knowledge-grounded assistant, controlled prompt iteration distinguishes genuine quality gains from regressions or overfitting to one attractive example; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

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 improve a prompt while preserving performance on previously solved cases.

B:

The proposed alternative helps to provide a document's necessary meaning without disclosing irrelevant personal identifiers because data minimization reduces the sensitive information transmitted for inference while retaining the facts the task legitimately requires; that mechanism does not meet the different requirement to improve a prompt while preserving performance on previously solved cases.

D:

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 improve a prompt while preserving performance on previously solved cases.

Question 442

For a high-volume Messages API gateway, the missing capability is to keep sensitive case material within approved processing and retention boundaries. What should the developers implement?

  1. Specify user-visible degraded responses and recovery paths.
  2. Document permitted processing regions and data-handling obligations before selecting a deployment.
  3. Log status, timing, and correlation IDs with sensitive fields redacted.
  4. Define measurable answer-format and citation acceptance criteria.

Explanation

Correct Answer

B:

To keep sensitive case material within approved processing and retention boundaries in this high-volume Messages API gateway, legal or organizational constraints must inform provider routing, logging, and retention rather than being added after data already flows; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to preserve an understandable outcome when model generation cannot complete because a fallback requirement defines what customers see when an API call times out or is refused rather than assuming every inference will succeed; that mechanism does not meet the different requirement to keep sensitive case material within approved processing and retention boundaries.

C:

The proposed alternative helps to debug a failed request without exposing the user's confidential document because operational records can identify a failure path without retaining raw secrets or protected prompt content; that mechanism does not meet the different requirement to keep sensitive case material within approved processing and retention boundaries.

D:

The proposed alternative helps to translate a request for citation-backed answers into observable application behavior because a functional requirement specifies what the user must receive and how success is evaluated, not merely that the team will use a language model; that mechanism does not meet the different requirement to keep sensitive case material within approved processing and retention boundaries.

Question 443

A design review for a tool-using incident triage agent asks for support to keep a large source-reading task from crowding the coordinator's working context, together with a way to ensure each later tool receives a validated artifact from its preceding stage. Select the two appropriate changes. Choose TWO.

  1. Attach a post-execution observation hook to the tool lifecycle.
  2. Delegate source analysis to a subagent and return a concise result.
  3. Chain dependent operations serially with explicit input and output contracts.
  4. Insert an approval gate before the high-risk action.
  5. Record stage-level traces and intermediate validation outcomes.

Explanation

Correct Answers

B:

To keep a large source-reading task from crowding the coordinator's working context as part of a design that must also ensure each later tool receives a validated artifact from its preceding stage, isolated workspaces let a specialist process extensive material while the parent receives only task-relevant evidence instead of every intermediate token; this is why the action is one of the two required selections.

C:

To ensure each later tool receives a validated artifact from its preceding stage as part of a design that must also keep a large source-reading task from crowding the coordinator's working context, later steps cannot safely start until upstream data exists; passing validated outputs prevents races and malformed downstream input; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to inspect the result of a completed tool call before later model reasoning consumes it because post-tool inspection can record or validate outcomes after execution, but it cannot retroactively prevent side effects from the completed call; the required outcomes are instead to keep a large source-reading task from crowding the coordinator's working context and to ensure each later tool receives a validated artifact from its preceding stage.

D:

This alternative serves the separate goal to require human approval before an autonomous task crosses a high-impact decision boundary because human-in-the-loop control interrupts execution at a defined boundary; an agent's natural-language assurance cannot substitute for authorization; the required outcomes are instead to keep a large source-reading task from crowding the coordinator's working context and to ensure each later tool receives a validated artifact from its preceding stage.

E:

This alternative serves the separate goal to pinpoint which known workflow stage failed when the final artifact is incomplete because deterministic stages are operationally useful when their boundaries are observable; a final answer alone cannot reveal which step produced the fault; the required outcomes are instead to keep a large source-reading task from crowding the coordinator's working context and to ensure each later tool receives a validated artifact from its preceding stage.

Question 444

A design review for an internal agent-extension rollout asks for support to share one integration with several compatible AI clients or agent runtimes, together with a way to supply a read-only policy manual to an MCP client without giving it an action endpoint. Select the two appropriate changes. Choose TWO.

  1. Package the connector behind an MCP server.
  2. Use the MCP stdio transport with properly framed protocol messages.
  3. Register a prompt template with its required arguments.
  4. Expose the manual as an MCP resource rather than a tool.
  5. Implement a client-side handler and return its result with the tool-use identifier.

Explanation

Correct Answers

A:

To share one integration with several compatible AI clients or agent runtimes as part of a design that must also supply a read-only policy manual to an MCP client without giving it an action endpoint, MCP standardizes capability exposure across clients, reducing duplicate integration logic compared with proprietary tool schemas everywhere; this is why the action is one of the two required selections.

D:

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 share one integration with several compatible AI clients or agent runtimes, 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.

Incorrect Answers

B:

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 share one integration with several compatible AI clients or agent runtimes and to supply a read-only policy manual to an MCP client without giving it an action endpoint.

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 share one integration with several compatible AI clients or agent runtimes and to supply a read-only policy manual to an MCP client without giving it an action endpoint.

E:

This alternative serves the separate goal 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; the required outcomes are instead to share one integration with several compatible AI clients or agent runtimes and to supply a read-only policy manual to an MCP client without giving it an action endpoint.

Question 445

A planned upgrade to a multi-tenant support application has two requirements that must both pass: prevent a retrieved article's embedded commands from being treated as developer instructions; let a reviewer trace claims to the material actually consulted. Identify the two direct implementations. Choose TWO.

  1. Retain source identifiers with retrieved evidence and render supported citations.
  2. Place stable application rules in system instructions and untrusted requests in user content.
  3. Store and retrieve message history by authenticated tenant and conversation ID.
  4. Delimit retrieved text as untrusted source material.
  5. Apply content checks at suitable input and output boundaries.

Explanation

Correct Answers

A:

To let a reviewer trace claims to the material actually consulted as part of a design that must also prevent a retrieved article's embedded commands from being treated as developer instructions, traceability requires linking claims to accessible source passages; fabricated URLs or unlabeled snippets do not provide verifiable provenance; this is why the action is one of the two required selections.

D:

To prevent a retrieved article's embedded commands from being treated as developer instructions as part of a design that must also let a reviewer trace claims to the material actually consulted, explicit trust boundaries help the model interpret documents as evidence rather than operational orders, and runtime controls must enforce privileged actions; this is why the action is one of the two required selections.

Incorrect Answers

B:

This alternative serves the separate goal to keep application policy separate from a user's question because instruction placement preserves the distinction between developer intent and user-supplied data; concatenating everything blurs that boundary; the required outcomes are instead to prevent a retrieved article's embedded commands from being treated as developer instructions and to let a reviewer trace claims to the material actually consulted.

C:

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 prevent a retrieved article's embedded commands from being treated as developer instructions and to let a reviewer trace claims to the material actually consulted.

E:

This alternative serves the separate goal to filter risky user-visible content according to application policy because moderation is a defense layer applied around generation, not a substitute for authenticated tool access or scoped retrieval; the required outcomes are instead to prevent a retrieved article's embedded commands from being treated as developer instructions and to let a reviewer trace claims to the material actually consulted.

Question 446

A test for a codebase used by several Claude Code operators fails because it cannot continue a previously interrupted Claude Code work session. Which change fixes the identified failure?

  1. Invoke the supported noninteractive or print-mode command interface.
  2. Use the supported session continuation or resume mechanism.
  3. Define policy in the appropriate managed or shared settings scope.
  4. Add concise project guidance to the appropriate CLAUDE.md file.

Explanation

Correct Answer

B:

To continue a previously interrupted Claude Code work session in this codebase used by several Claude Code operators, restoring session context reduces lost work while preserving continuity of prior tool activity; opening a new unrelated session does not do the same; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps 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; that mechanism does not meet the different requirement to continue a previously interrupted Claude Code work session.

C:

The proposed alternative helps 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; that mechanism does not meet the different requirement to continue a previously interrupted Claude Code work session.

D:

The proposed alternative helps to give Claude Code repository-specific build and test instructions for future sessions because Claude Code reads persistent project instructions from its memory hierarchy; one-off chat messages do not reliably establish durable repository guidance; that mechanism does not meet the different requirement to continue a previously interrupted Claude Code work session.

Question 447

A change request for a Claude API workload benchmark combines two needs: protect model API traffic against an impersonated network endpoint, and work in an environment that lacks a compatible Claude SDK. Which implementation pair addresses both, not just one?

  1. Perform both steps: (1) Keep HTTPS certificate and hostname verification enabled; (2) call the documented https endpoint with explicit headers and json serialization.
  2. Perform both steps: (1) Keep HTTPS certificate and hostname verification enabled; (2) parse structured payloads with explicit failure handling.
  3. Perform both steps: (1) Use a synchronous client with explicit timeout and error handling; (2) call the documented https endpoint with explicit headers and json serialization.
  4. Perform both steps: (1) Use a synchronous client with explicit timeout and error handling; (2) parse structured payloads with explicit failure handling.

Explanation

Correct Answer

A:

The first change enables the team to protect model API traffic against an impersonated network endpoint because verified TLS authenticates the service and protects data in transit; disabling validation defeats a key transport security property; the second addresses the separate need to work in an environment that lacks a compatible Claude SDK because direct REST access remains possible when an SDK is unavailable, but the caller owns wire-format correctness and response parsing.

Incorrect Answers

B:

The first step is appropriate for the requirement to protect model API traffic against an impersonated network endpoint because verified TLS authenticates the service and protects data in transit; disabling validation defeats a key transport security property; the other step instead aims to reject incomplete or malformed response data before business logic consumes it because JSON parsing validates syntax, while separate schema and semantic checks verify types and permitted values, which does not meet the second requirement to work in an environment that lacks a compatible Claude SDK.

C:

The second step meets the requirement to work in an environment that lacks a compatible Claude SDK because direct REST access remains possible when an SDK is unavailable, but the caller owns wire-format correctness and response parsing; the first step would only help 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, leaving the separate requirement to protect model API traffic against an impersonated network endpoint unmet.

D:

Both steps target different results—implement a low-volume command-line utility that handles one inference at a time and reject incomplete or malformed response data before business logic consumes it—because synchronous calls are simplest for strictly sequential work, where concurrency would add complexity without improving throughput and JSON parsing validates syntax, while separate schema and semantic checks verify types and permitted values; the required capabilities are instead to protect model API traffic against an impersonated network endpoint and to work in an environment that lacks a compatible Claude SDK.

Question 448

A team maintaining an enterprise MCP client has two different engineering requirements: (1) ensure an agent obtains explicit authorization before updating a customer record, and (2) prevent two similarly named lookup tools from being confused. Which TWO independent changes directly meet them? Choose TWO.

  1. Implement the approval in application workflow control rather than only in a Skill.
  2. Implement a narrowly scoped read-only tool handler.
  3. Put an approval gate in the host-side write handler.
  4. Describe each tool's purpose, required inputs, and limitations clearly.
  5. Register a prompt template with its required arguments.

Explanation

Correct Answers

C:

To ensure an agent obtains explicit authorization before updating a customer record as part of a design that must also prevent two similarly named lookup tools from being confused, an irreversible or sensitive write must be permitted by trusted application logic, not merely because the model selected a tool; this is why the action is one of the two required selections.

D:

To prevent two similarly named lookup tools from being confused as part of a design that must also ensure an agent obtains explicit authorization before updating a customer record, tool descriptions influence the model's selection, so overlapping or vague names make dispatch less reliable; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal 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; the required outcomes are instead to ensure an agent obtains explicit authorization before updating a customer record and to prevent two similarly named lookup tools from being confused.

B:

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 ensure an agent obtains explicit authorization before updating a customer record and to prevent two similarly named lookup tools from being confused.

E:

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 ensure an agent obtains explicit authorization before updating a customer record and to prevent two similarly named lookup tools from being confused.

Question 449

A team maintaining a multi-tenant inference service has two different engineering requirements: (1) reduce exposure after an API key is suspected compromised, and (2) stop an authenticated user from reading another tenant's records via a tool. Which TWO independent changes directly meet them? Choose TWO.

  1. Pause execution for explicit approval at the high-impact action boundary.
  2. Retrieve keys through a managed secrets facility at runtime.
  3. Check resource-level authorization for every sensitive tool request.
  4. Revoke and rotate the affected credential and update dependent services.
  5. Enforce a pre-tool hook that denies the disallowed call.

Explanation

Correct Answers

C:

To stop an authenticated user from reading another tenant's records via a tool as part of a design that must also reduce exposure after an API key is suspected compromised, proving identity does not grant access to every object; the backend must enforce tenant and resource permissions separately; this is why the action is one of the two required selections.

D:

To reduce exposure after an API key is suspected compromised as part of a design that must also stop an authenticated user from reading another tenant's records via a tool, rotation restores credential control only when the old secret is disabled and consumers move to the replacement safely; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to require a person to approve an irreversible administrative change because human approval is a policy-enforced transition, not a note written in the model's plan or a message displayed afterward; the required outcomes are instead to reduce exposure after an API key is suspected compromised and to stop an authenticated user from reading another tenant's records via a tool.

B:

This alternative serves the separate goal to keep Claude API credentials out of repository source and deployment images because central secret handling improves rotation and auditing and avoids accidental credential disclosure through source control; the required outcomes are instead to reduce exposure after an API key is suspected compromised and to stop an authenticated user from reading another tenant's records via a tool.

E:

This alternative serves the separate goal 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; the required outcomes are instead to reduce exposure after an API key is suspected compromised and to stop an authenticated user from reading another tenant's records via a tool.

Question 450

A change request for a high-volume Messages API gateway combines two needs: distinguish queued, running, waiting-for-approval, failed, and completed agent jobs, and reject tool arguments that fail a declared shape before tool execution. Which implementation pair addresses both, not just one?

  1. Perform both steps: (1) Persist explicit job states with allowed transitions; (2) version tool input schemas and coordinate dependent client changes.
  2. Perform both steps: (1) Queue or reject excess requests using bounded admission control; (2) use strict tool input validation for the exposed tool interface.
  3. Perform both steps: (1) Queue or reject excess requests using bounded admission control; (2) version tool input schemas and coordinate dependent client changes.
  4. Perform both steps: (1) Persist explicit job states with allowed transitions; (2) use strict tool input validation for the exposed tool interface.

Explanation

Correct Answer

D:

The first change enables the team to distinguish queued, running, waiting-for-approval, failed, and completed agent jobs because a state machine prevents an incomplete tool operation from being shown as successful and makes retries and cancellation predictable; the second addresses the separate need to reject tool arguments that fail a declared shape before tool execution because a strict schema constrains the arguments a model may emit, but application authorization and business-rule checks remain necessary.

Incorrect Answers

A:

The first step is appropriate for the requirement to distinguish queued, running, waiting-for-approval, failed, and completed agent jobs because a state machine prevents an incomplete tool operation from being shown as successful and makes retries and cancellation predictable; the other step instead aims to migrate tool argument fields without breaking older workers because contract versioning prevents producers and consumers from silently disagreeing about required fields or meanings, which does not meet the second requirement to reject tool arguments that fail a declared shape before tool execution.

B:

The second step meets the requirement to reject tool arguments that fail a declared shape before tool execution because a strict schema constrains the arguments a model may emit, but application authorization and business-rule checks remain necessary; the first step would only help to shield customer traffic when inference capacity is exhausted because controlled queuing protects system latency and prevents unbounded retries from overwhelming downstream provider quotas, leaving the separate requirement to distinguish queued, running, waiting-for-approval, failed, and completed agent jobs unmet.

C:

Both steps target different results—shield customer traffic when inference capacity is exhausted and migrate tool argument fields without breaking older workers—because controlled queuing protects system latency and prevents unbounded retries from overwhelming downstream provider quotas and contract versioning prevents producers and consumers from silently disagreeing about required fields or meanings; the required capabilities are instead to distinguish queued, running, waiting-for-approval, failed, and completed agent jobs and to reject tool arguments that fail a declared shape before tool execution.

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