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

Question 260

To ship a TypeScript Claude integration, the application must learn from a tool-side effect caused by an unexpected model action and test experimental prompts and tools without reaching real customer records. Which pair of listed actions is necessary for those stated capabilities? Choose TWO.

  1. Track latency, failure rates, token use, and output-quality signals over time.
  2. Queue or reject excess requests using bounded admission control.
  3. Record a blameless timeline, root causes, and preventive controls.
  4. Enforce per-tenant token and request budgets in the backend.
  5. Separate development credentials, data, and tool endpoints from production.

Explanation

Correct Answers

C:

To learn from a tool-side effect caused by an unexpected model action as part of a design that must also test experimental prompts and tools without reaching real customer records, post-incident review should identify inadequate approvals and monitoring and turn findings into testable changes, rather than blaming the language model; this is why the action is one of the two required selections.

E:

To test experimental prompts and tools without reaching real customer records as part of a design that must also learn from a tool-side effect caused by an unexpected model action, environment isolation prevents exploratory code from inheriting real business permissions and improves reproducibility of failures; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to detect rising inference errors after a feature reaches production because production health spans infrastructure and model behavior, so a healthy HTTP server alone does not prove the AI feature is functioning; the required outcomes are instead to learn from a tool-side effect caused by an unexpected model action and to test experimental prompts and tools without reaching real customer records.

B:

This alternative serves the separate goal to shield customer traffic when inference capacity is exhausted because controlled queuing protects system latency and prevents unbounded retries from overwhelming downstream provider quotas; the required outcomes are instead to learn from a tool-side effect caused by an unexpected model action and to test experimental prompts and tools without reaching real customer records.

D:

This alternative serves the separate goal to keep one customer from consuming an entire shared inference budget because application quotas isolate noisy tenants and control spending; provider-wide rate limits alone do not guarantee fairness between customers; the required outcomes are instead to learn from a tool-side effect caused by an unexpected model action and to test experimental prompts and tools without reaching real customer records.

Question 261

A release check on a shared Claude Code repository found two unsatisfied conditions: the service must delegate an independent code review without filling the main coding session with details, and it must make a reusable development procedure available to Claude Code with supporting files. Which complete engineering plan satisfies both?

  1. Perform both steps: (1) Add concise project guidance to the appropriate CLAUDE.md file; (2) initialize project guidance and review the resulting claude.md content.
  2. Perform both steps: (1) Configure a specialized Claude Code subagent with a narrow remit; (2) initialize project guidance and review the resulting claude.md content.
  3. Perform both steps: (1) Add concise project guidance to the appropriate CLAUDE.md file; (2) create a project skill with the documented skill metadata and content.
  4. Perform both steps: (1) Configure a specialized Claude Code subagent with a narrow remit; (2) create a project skill with the documented skill metadata and content.

Explanation

Correct Answer

D:

The first change enables the team 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 second addresses the separate need to make a reusable development procedure available to Claude Code with supporting files because a skill packages guidance or a workflow for reuse across relevant tasks; it is not identical to granting a runtime tool permission.

Incorrect Answers

A:

Both steps target different results—give Claude Code repository-specific build and test instructions for future sessions and introduce Claude Code to an unfamiliar codebase's conventions and commands—because Claude Code reads persistent project instructions from its memory hierarchy; one-off chat messages do not reliably establish durable repository guidance 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 delegate an independent code review without filling the main coding session with details and to make a reusable development procedure available to Claude Code with supporting files.

B:

The first step is appropriate for 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 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 make a reusable development procedure available to Claude Code with supporting files.

C:

The second step meets the requirement to make a reusable development procedure available to Claude Code with supporting files because a skill packages guidance or a workflow for reuse across relevant tasks; it is not identical to granting a runtime tool permission; the first step would only help 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, leaving the separate requirement to delegate an independent code review without filling the main coding session with details unmet.

Question 262

An end-to-end test for an operations research assistant checks whether it can speed up independent data lookups without causing write-order races and preserve durable user-approved facts across agent sessions outside the context window. Which plan should be approved to satisfy both checks?

  1. Perform both steps: (1) Run side-effect-free tool calls concurrently when their inputs are independent; (2) attach a post-execution observation hook to the tool lifecycle.
  2. Perform both steps: (1) Choose a graph-based orchestration framework when state transitions justify it; (2) write selected durable facts to a controlled external memory store.
  3. Perform both steps: (1) Choose a graph-based orchestration framework when state transitions justify it; (2) attach a post-execution observation hook to the tool lifecycle.
  4. Perform both steps: (1) Run side-effect-free tool calls concurrently when their inputs are independent; (2) write selected durable facts to a controlled external memory store.

Explanation

Correct Answer

D:

The first change enables the team 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 second addresses the separate need to preserve durable user-approved facts across agent sessions outside the context window because external memory allows selective retrieval in later sessions, unlike temporary model context that disappears when calls end.

Incorrect Answers

A:

The first step is appropriate for 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 other step instead aims 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, which does not meet the second requirement to preserve durable user-approved facts across agent sessions outside the context window.

B:

The second step meets the requirement to preserve durable user-approved facts across agent sessions outside the context window because external memory allows selective retrieval in later sessions, unlike temporary model context that disappears when calls end; the first step would only help to coordinate explicit graph transitions among multiple model and tool nodes because graph orchestration clarifies conditional edges and resumability; it adds complexity when a short linear function would suffice, leaving the separate requirement to speed up independent data lookups without causing write-order races unmet.

C:

Both steps target different results—coordinate explicit graph transitions among multiple model and tool nodes and inspect the result of a completed tool call before later model reasoning consumes it—because graph orchestration clarifies conditional edges and resumability; it adds complexity when a short linear function would suffice and post-tool inspection can record or validate outcomes after execution, but it cannot retroactively prevent side effects from the completed call; the required capabilities are instead to speed up independent data lookups without causing write-order races and to preserve durable user-approved facts across agent sessions outside the context window.

Question 263

A planned upgrade to a function-calling service has two requirements that must both pass: process several requested independent tools without mixing their outputs; expose a business lookup with predictable typed arguments. Identify the two direct implementations. Choose TWO.

  1. Expose the manual as an MCP resource rather than a tool.
  2. Implement a narrowly scoped read-only tool handler.
  3. Define a descriptive tool name and validated input schema.
  4. Correlate each tool result with its matching tool_use_id.
  5. Configure the supported tool_choice behavior for the request.

Explanation

Correct Answers

C:

To expose a business lookup with predictable typed arguments as part of a design that must also process several requested independent tools without mixing their outputs, well-described schemas help Claude select a capability and emit usable arguments; the backend still validates authorization and meaning; this is why the action is one of the two required selections.

D:

To process several requested independent tools without mixing their outputs as part of a design that must also expose a business lookup with predictable typed arguments, multi-tool responses can interleave operations, so identifier-based correlation is essential for safe continuation; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to supply a read-only policy manual to an MCP client without giving it an action endpoint because a resource is contextual data; representing a passive document as an imperative function adds unnecessary execution semantics; the required outcomes are instead to process several requested independent tools without mixing their outputs and to expose a business lookup with predictable typed arguments.

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 process several requested independent tools without mixing their outputs and to expose a business lookup with predictable typed arguments.

E:

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 process several requested independent tools without mixing their outputs and to expose a business lookup with predictable typed arguments.

Question 264

Two acceptance tests block a production inference application: one requires the ability to ask Claude to interpret a supported image supplied as part of a request; the other requires the ability to distinguish API transport failures from a successfully returned model refusal. Which plan clears both tests?

  1. Perform both steps: (1) Branch on stop_reason tool_use and dispatch the declared calls; (2) use the provider-specific endpoint, authentication, and request conventions.
  2. Perform both steps: (1) Include a typed image content block in the message; (2) use the provider-specific endpoint, authentication, and request conventions.
  3. Perform both steps: (1) Branch on stop_reason tool_use and dispatch the declared calls; (2) inspect http status and structured error payload before interpreting model output.
  4. Perform both steps: (1) Include a typed image content block in the message; (2) inspect http status and structured error payload before interpreting model output.

Explanation

Correct Answer

D:

The first change enables the team 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; the second addresses the separate need to distinguish API transport failures from a successfully returned model refusal because rate limits, authorization failures, and server errors happen at the request layer, unlike a normal response with a refusal stop reason.

Incorrect Answers

A:

Both steps target different results—recognize that the model is asking the application to execute a client tool and support Claude models accessed through different supported cloud offerings—because a tool-use stop requires host-side handling and a follow-up message containing results, not presenting the call as final prose and Claude API, Bedrock, and Vertex-style integrations are not interchangeable URLs; host authentication and service wrappers differ; the required capabilities are instead to ask Claude to interpret a supported image supplied as part of a request and to distinguish API transport failures from a successfully returned model refusal.

B:

The first step is appropriate for the requirement 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; the other step instead aims 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, which does not meet the second requirement to distinguish API transport failures from a successfully returned model refusal.

C:

The second step meets the requirement to distinguish API transport failures from a successfully returned model refusal because rate limits, authorization failures, and server errors happen at the request layer, unlike a normal response with a refusal stop reason; the first step would only help to recognize that the model is asking the application to execute a client tool because a tool-use stop requires host-side handling and a follow-up message containing results, not presenting the call as final prose, leaving the separate requirement to ask Claude to interpret a supported image supplied as part of a request unmet.

Question 265

The team responsible for a document investigation agent needs to minimize infrastructure ownership for a supported hosted agent execution surface. What is the most direct engineering change?

  1. Run side-effect-free tool calls concurrently when their inputs are independent.
  2. Catch tool failures and report typed errors into the agent loop.
  3. Evaluate a managed agent runtime against the deployment requirements.
  4. Configure tool permissions rather than depending only on a prompt.

Explanation

Correct Answer

C:

To minimize infrastructure ownership for a supported hosted agent execution surface in this document investigation agent, a managed runtime can take on execution infrastructure, but access controls, product availability, and data-handling needs still require evaluation; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps 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; that mechanism does not meet the different requirement to minimize infrastructure ownership for a supported hosted agent execution surface.

B:

The proposed alternative helps to keep a failed tool from being mistaken for successful completion of an objective because explicit failure messages let the model or controller choose recovery; swallowing exceptions makes later actions rely on results that never existed; that mechanism does not meet the different requirement to minimize infrastructure ownership for a supported hosted agent execution surface.

D:

The proposed alternative helps to restrict a development agent to a defined set of file and command capabilities because runtime permissions constrain what actions can run even if the model requests more access; prompt instructions alone are not a security boundary; that mechanism does not meet the different requirement to minimize infrastructure ownership for a supported hosted agent execution surface.

Question 266

A test for a token-consumption optimization sprint fails because it cannot run a straightforward well-specified classification without consuming examples. Which change fixes the identified failure?

  1. Run contract and integration tests against the upgraded SDK in staging.
  2. Design an approved fallback model path with compatibility checks.
  3. Start with a clear instruction and no demonstrations.
  4. Measure or count input and output tokens with the supported tokenizer or API.

Explanation

Correct Answer

C:

To run a straightforward well-specified classification without consuming examples in this token-consumption optimization sprint, zero-shot prompting relies on direct task instructions and can save context when the task requires little format teaching; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps 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; that mechanism does not meet the different requirement to run a straightforward well-specified classification without consuming examples.

B:

The proposed alternative helps 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; that mechanism does not meet the different requirement to run a straightforward well-specified classification without consuming examples.

D:

The proposed alternative helps 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; that mechanism does not meet the different requirement to run a straightforward well-specified classification without consuming examples.

Question 267

A production readiness review of a hosted document-processing service finds that the team cannot yet connect execution output to the exact tool request Claude made or avoid assuming a structured SDK response is a plain string. Which paired changes directly remedy the two gaps?

  1. Perform both steps: (1) Parse response content by block type and follow current thinking-field rules; (2) use stop_sequences and inspect the returned stop_sequence field.
  2. Perform both steps: (1) Return tool_result blocks containing the corresponding tool_use_id; (2) use stop_sequences and inspect the returned stop_sequence field.
  3. Perform both steps: (1) Return tool_result blocks containing the corresponding tool_use_id; (2) inspect response.content blocks and metadata through the sdk's typed representation.
  4. Perform both steps: (1) Parse response content by block type and follow current thinking-field rules; (2) inspect response.content blocks and metadata through the sdk's typed representation.

Explanation

Correct Answer

C:

The first change enables the team to connect execution output to the exact tool request Claude made because tool correlation preserves call-to-result semantics in the message sequence, especially when several tools were requested together; the second addresses the separate need to avoid assuming a structured SDK response is a plain string because the SDK exposes block types, stop reason, and usage separately; naïve string concatenation can lose tool requests or other content.

Incorrect Answers

A:

Both steps target different results—handle a response containing reasoning-related blocks without confusing them with ordinary final text and enforce a caller-defined textual boundary on generation—because structured content may contain distinct block types and signatures; a parser that assumes only plain text can discard important protocol data and a stop sequence halts generation at a specified marker, distinct from natural completion and separate from a JSON schema validator; the required capabilities are instead to connect execution output to the exact tool request Claude made and to avoid assuming a structured SDK response is a plain string.

B:

The first step is appropriate for the requirement to connect execution output to the exact tool request Claude made because tool correlation preserves call-to-result semantics in the message sequence, especially when several tools were requested together; the other step instead aims 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, which does not meet the second requirement to avoid assuming a structured SDK response is a plain string.

D:

The second step meets the requirement to avoid assuming a structured SDK response is a plain string because the SDK exposes block types, stop reason, and usage separately; naïve string concatenation can lose tool requests or other content; the first step would only help to handle a response containing reasoning-related blocks without confusing them with ordinary final text because structured content may contain distinct block types and signatures; a parser that assumes only plain text can discard important protocol data, leaving the separate requirement to connect execution output to the exact tool request Claude made unmet.

Question 268

Two acceptance tests block a model-output validation layer: one requires the ability to stop a model from alternating unpredictably between summary and extraction; the other requires the ability to prioritize mandatory legal requirements over optional stylistic preferences. Which plan clears both tests?

  1. Perform both steps: (1) State the task, audience, scope, and required deliverable explicitly; (2) validate parsed output against the application's declared schema.
  2. Perform both steps: (1) State the task, audience, scope, and required deliverable explicitly; (2) state explicit priority and conflict resolution for the task constraints.
  3. Perform both steps: (1) Specify the forbidden content alongside an enforceable validation check; (2) state explicit priority and conflict resolution for the task constraints.
  4. Perform both steps: (1) Specify the forbidden content alongside an enforceable validation check; (2) validate parsed output against the application's declared schema.

Explanation

Correct Answer

B:

The first change enables the team 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; the second addresses the separate need to prioritize mandatory legal requirements over optional stylistic preferences because without a priority rule, competing directives can create ambiguous outputs; hard requirements should guide how optional preferences are applied.

Incorrect Answers

A:

The first step is appropriate for the requirement 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; the other step instead aims to reject model output missing a field that a downstream service requires because parsing proves a string is legal JSON, but schema validation checks required keys, types, and structural constraints, which does not meet the second requirement to prioritize mandatory legal requirements over optional stylistic preferences.

C:

The second step meets the requirement to prioritize mandatory legal requirements over optional stylistic preferences because without a priority rule, competing directives can create ambiguous outputs; hard requirements should guide how optional preferences are applied; the first step would only help 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, leaving the separate requirement to stop a model from alternating unpredictably between summary and extraction unmet.

D:

Both steps target different results—avoid a prohibited output element such as confidential identifiers and reject model output missing a field that a downstream service requires—because negative prompt guidance signals the intended boundary, but a deterministic validator is needed where violating it has consequences and parsing proves a string is legal JSON, but schema validation checks required keys, types, and structural constraints; the required capabilities are instead to stop a model from alternating unpredictably between summary and extraction and to prioritize mandatory legal requirements over optional stylistic preferences.

Question 269

Two acceptance tests block a model selection trial: one requires the ability to preserve arrays of typed content blocks when sending multimodal input; the other requires the ability to implement a low-volume command-line utility that handles one inference at a time. Which plan clears both tests?

  1. Perform both steps: (1) Serialize the documented nested request shape rather than flattening it; (2) use a synchronous client with explicit timeout and error handling.
  2. Perform both steps: (1) Parse structured payloads with explicit failure handling; (2) keep https certificate and hostname verification enabled.
  3. Perform both steps: (1) Serialize the documented nested request shape rather than flattening it; (2) keep https certificate and hostname verification enabled.
  4. Perform both steps: (1) Parse structured payloads with explicit failure handling; (2) use a synchronous client with explicit timeout and error handling.

Explanation

Correct Answer

A:

The first change enables the team to preserve arrays of typed content blocks when sending multimodal input because typed content and role fields carry protocol meaning that is lost if developers simply concatenate them into plain text; the second addresses the separate need 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.

Incorrect Answers

B:

Both steps target different results—reject incomplete or malformed response data before business logic consumes it and protect model API traffic against an impersonated network endpoint—because JSON parsing validates syntax, while separate schema and semantic checks verify types and permitted values and verified TLS authenticates the service and protects data in transit; disabling validation defeats a key transport security property; the required capabilities are instead to preserve arrays of typed content blocks when sending multimodal input and to implement a low-volume command-line utility that handles one inference at a time.

C:

The first step is appropriate for the requirement to preserve arrays of typed content blocks when sending multimodal input because typed content and role fields carry protocol meaning that is lost if developers simply concatenate them into plain text; the other step instead aims 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, which does not meet the second requirement to implement a low-volume command-line utility that handles one inference at a time.

D:

The second step meets the requirement 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 first step would only help 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, leaving the separate requirement to preserve arrays of typed content blocks when sending multimodal input unmet.

Question 270

A team maintaining a Python Claude API backend has two different engineering requirements: (1) migrate tool argument fields without breaking older workers, and (2) customize one developer's default Claude Code behavior across local projects. Which TWO independent changes directly meet them? Choose TWO.

  1. Pin a supported explicit model version where stability is required.
  2. Use the user's own Claude Code settings file.
  3. Use stop_sequences and inspect the returned stop_sequence field.
  4. Version tool input schemas and coordinate dependent client changes.
  5. Track enabled plugins and their compatible versions as release dependencies.

Explanation

Correct Answers

B:

To customize one developer's default Claude Code behavior across local projects as part of a design that must also migrate tool argument fields without breaking older workers, user settings are scoped to one person, so they should not be relied on for enforcing team-wide policy; this is why the action is one of the two required selections.

D:

To migrate tool argument fields without breaking older workers as part of a design that must also customize one developer's default Claude Code behavior across local projects, 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 reproduce production behavior across deploys instead of silently adopting a new model release because explicit version selection limits unexpected changes; a release process should evaluate upgrades and retirement timelines deliberately; the required outcomes are instead to migrate tool argument fields without breaking older workers and to customize one developer's default Claude Code behavior across local projects.

C:

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 migrate tool argument fields without breaking older workers and to customize one developer's default Claude Code behavior across local projects.

E:

This alternative serves the separate goal to avoid a plugin update unexpectedly changing tools available to a coding agent because plugin capability changes can affect tool names and permissions, so production configuration should be reproducible and reviewed; the required outcomes are instead to migrate tool argument fields without breaking older workers and to customize one developer's default Claude Code behavior across local projects.

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