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

Question 580

A technical lead requests a solution that can avoid assuming a custom local database function runs inside Anthropic infrastructure within a backend integration project. Which design should be chosen?

  1. Handle message_stop and final usage events
  2. Include an image content block
  3. Differentiate client and server tool execution
  4. Process tool_use responses in the application

Explanation

Correct Answer

C:

The integration owns execution of client tools, while supported server tools are performed by the provider; this behavior directly supports the need to avoid assuming a custom local database function runs inside Anthropic infrastructure. Tool names alone do not determine who executes the action.

Incorrect Answers

A:

For the alternate objective to record complete streamed output and token usage accurately, the final stream events signal completion and deliver accumulated metadata beyond individual text fragments; the feature here must avoid assuming a custom local database function runs inside Anthropic infrastructure, and stopping after the first content delta truncates responses.

B:

Image inputs are supplied as typed content with appropriate source data or references; this applies to the different goal to analyze a photographed shipping label with the supported multimodal Messages input, not the requirement to avoid assuming a custom local database function runs inside Anthropic infrastructure; describing a local image pathname in ordinary text does not transmit its pixels.

D:

Client tools execute in application code; the model emits structured requests but does not invoke external functions itself; the supported outcome is to actually retrieve a customer's order status requested by Claude, whereas this scenario requires the ability to avoid assuming a custom local database function runs inside Anthropic infrastructure; displaying the tool request as the final answer never performs the lookup.

Question 581

Before an incident response release, three separately owned tasks must be covered: one service must keep a customer service application operating when an expensive specialist agent cannot complete; another must enforce approval, execution, and confirmation order in a compliance workflow; and a third must protect a coordinator's window from huge specialist tool outputs. Which THREE choices directly address the stated tasks? Choose THREE.

  1. Use bounded memory with explicit provenance
  2. Use a graceful fallback path
  3. Use event logs for tool actions
  4. Use retrieval before generation
  5. Prefer a finite state machine for regulated steps
  6. Delegate narrow subtasks with a separate context

Explanation

Correct Answers

B:

A bounded failure branch can return a safe partial result or route to a human rather than loop indefinitely; this directly supports task 1 to keep a customer service application operating when an expensive specialist agent cannot complete, not the separate task or tasks to enforce approval, execution, and confirmation order in a compliance workflow and to protect a coordinator's window from huge specialist tool outputs; unbounded retries do not ensure eventual success.

E:

Explicit states and transitions control who may advance a case independently of generated language; this directly supports task 2 to enforce approval, execution, and confirmation order in a compliance workflow, not the separate task or tasks to keep a customer service application operating when an expensive specialist agent cannot complete and to protect a coordinator's window from huge specialist tool outputs; an unrestricted agent loop can skip expected governance stages.

F:

Each subagent can work in a bounded context and return a concise, verified artifact; this directly supports task 3 to protect a coordinator's window from huge specialist tool outputs, not the separate task or tasks to keep a customer service application operating when an expensive specialist agent cannot complete and to enforce approval, execution, and confirmation order in a compliance workflow; copying every intermediate trace into the parent inflates context and cost.

Incorrect Answers

A:

Typed, attributable records prevent outdated or unverified memories from becoming unquestioned instructions; this implements the different outcome to preserve customer preferences across permitted sessions while distinguishing facts from assumptions rather than the required tasks to protect a coordinator's window from huge specialist tool outputs and to enforce approval, execution, and confirmation order in a compliance workflow and to keep a customer service application operating when an expensive specialist agent cannot complete, and arbitrary model-generated memories can become a source of drift, so it is not a direct solution to any of the assigned workstreams.

C:

Structured traces connect tool intent, arguments, results, and subsequent decisions for audit and replay; this implements the different outcome to explain why an agent modified a configuration during a failed automated release rather than the required tasks to protect a coordinator's window from huge specialist tool outputs and to enforce approval, execution, and confirmation order in a compliance workflow and to keep a customer service application operating when an expensive specialist agent cannot complete, and a final chat summary omits the exact causal sequence, so it is not a direct solution to any of the assigned workstreams.

D:

Retrieval grounds a model answer in current authoritative text rather than hoping parametric knowledge is current; this implements the different outcome to answer questions from changing internal documentation with traceable source excerpts rather than the required tasks to protect a coordinator's window from huge specialist tool outputs and to enforce approval, execution, and confirmation order in a compliance workflow and to keep a customer service application operating when an expensive specialist agent cannot complete, and the retrieved text remains untrusted as instructions and needs relevance checks, so it is not a direct solution to any of the assigned workstreams.

Question 582

Two separate tickets in an agent governance backlog require different controls. One needs to prevent unreviewed bulk downloads triggered by an agent's tool plan; the other needs to protect payload confidentiality between the application and its API endpoint. Which implementation pair is correct?

  1. First component: Use output escaping to prevent XSS. Second component: Validate tool arguments server-side.
  2. First component: Add an explicit export approval check. Second component: Encrypt sensitive data in transit.
  3. First component: Validate tool arguments server-side. Second component: Encrypt sensitive data in transit.
  4. First component: Add an explicit export approval check. Second component: Use output escaping to prevent XSS.

Explanation

Correct Answer

B:

The first proposal fits its assigned role because a separate authorization or human approval step can gate high-impact operations, while the second proposal fits its assigned role because modern transport encryption limits interception across network boundaries; their respective acceptance criteria are to prevent unreviewed bulk downloads triggered by an agent's tool plan and to protect payload confidentiality between the application and its API endpoint.

Incorrect Answers

A:

The first proposal serves the different purpose to display generated customer notes safely in a browser instead of the assigned first role because context-aware encoding prevents text from being interpreted as active HTML or JavaScript, while the second proposal serves the different purpose to block a generated database query that targets another tenant's records instead of the assigned second role because backend authorization checks must bind the requested operation to the caller's entitlements; their respective acceptance criteria are to prevent unreviewed bulk downloads triggered by an agent's tool plan and to protect payload confidentiality between the application and its API endpoint.

C:

The first proposal serves the different purpose to block a generated database query that targets another tenant's records instead of the assigned first role because backend authorization checks must bind the requested operation to the caller's entitlements, while the second proposal fits its assigned role because modern transport encryption limits interception across network boundaries; their respective acceptance criteria are to prevent unreviewed bulk downloads triggered by an agent's tool plan and to protect payload confidentiality between the application and its API endpoint.

D:

The first proposal fits its assigned role because a separate authorization or human approval step can gate high-impact operations, while the second proposal serves the different purpose to display generated customer notes safely in a browser instead of the assigned second role because context-aware encoding prevents text from being interpreted as active HTML or JavaScript; their respective acceptance criteria are to prevent unreviewed bulk downloads triggered by an agent's tool plan and to protect payload confidentiality between the application and its API endpoint.

Question 583

A backend integration application is approaching release, but the team still needs to decide between streaming and offline processing for a time-sensitive support assistant. What is the most appropriate implementation?

  1. Calculate expected traffic and concurrency
  2. Record nonfunctional latency targets
  3. Set an explicit data residency constraint
  4. Document functional acceptance criteria

Explanation

Correct Answer

B:

A measurable response-time objective constrains interaction design and infrastructure choices; this behavior directly supports the need to decide between streaming and offline processing for a time-sensitive support assistant. Functional prompts alone cannot establish acceptable performance.

Incorrect Answers

A:

When an application needs to provision an interactive application for peak seasonal traffic, workload assumptions drive rate-limit planning, queue capacity, and retry strategy; the current capability must instead decide between streaming and offline processing for a time-sensitive support assistant, while average request volume alone hides burst behavior.

C:

This approach serves the separate need to ensure protected records are processed only in approved jurisdictions because documented residency requirements inform cloud placement, logging, storage, and vendor selection; it does not establish the outcome to decide between streaming and offline processing for a time-sensitive support assistant, and a statement about answer quality does not control geographic data handling.

D:

Acceptance criteria specify inputs, outputs, and successful behavior that can be tested before release; despite being useful when a service must turn a vague request for an AI claims assistant into observable user actions and outputs, it is not a solution to decide between streaming and offline processing for a time-sensitive support assistant; choosing a model first does not define what the application must accomplish.

Question 584

A privacy controls team owns two independent components. The first must prevent an unnoticed local edit from disabling a team's protection of secret files; the second must prevent a tool action from proceeding when its authorization service is unreachable. Which paired plan fulfills both?

  1. First component: Keep hook scripts under change control. Second component: Fail closed when a required safety hook fails.
  2. First component: Keep hook scripts under change control. Second component: Test hook input and exit handling.
  3. First component: Test hook input and exit handling. Second component: Use a post-tool hook to record outcomes.
  4. First component: Use a post-tool hook to record outcomes. Second component: Fail closed when a required safety hook fails.
  5. First component: Use a pre-tool hook to deny dangerous commands. Second component: Test hook input and exit handling.

Explanation

Correct Answer

A:

The first proposal fits its assigned role because versioning and review make guardrail behavior inspectable and reproducible, while the second proposal fits its assigned role because a fail-closed gate treats missing approval as denial for sensitive operations; their respective acceptance criteria are to prevent an unnoticed local edit from disabling a team's protection of secret files and to prevent a tool action from proceeding when its authorization service is unreachable.

Incorrect Answers

B:

The first proposal fits its assigned role because versioning and review make guardrail behavior inspectable and reproducible, while the second proposal serves the different purpose to ensure a policy block is interpreted correctly by the Claude Code runtime instead of the assigned second role because hook contracts specify the event, supplied data, and supported control response; integration tests verify expected enforcement; their respective acceptance criteria are to prevent an unnoticed local edit from disabling a team's protection of secret files and to prevent a tool action from proceeding when its authorization service is unreachable.

C:

The first proposal serves the different purpose to ensure a policy block is interpreted correctly by the Claude Code runtime instead of the assigned first role because hook contracts specify the event, supplied data, and supported control response; integration tests verify expected enforcement, while the second proposal serves the different purpose to capture which files an approved agent operation actually modified instead of the assigned second role because post-execution events are useful for audit, metrics, and follow-up checks once the tool has run; their respective acceptance criteria are to prevent an unnoticed local edit from disabling a team's protection of secret files and to prevent a tool action from proceeding when its authorization service is unreachable.

D:

The first proposal serves the different purpose to capture which files an approved agent operation actually modified instead of the assigned first role because post-execution events are useful for audit, metrics, and follow-up checks once the tool has run, while the second proposal fits its assigned role because a fail-closed gate treats missing approval as denial for sensitive operations; their respective acceptance criteria are to prevent an unnoticed local edit from disabling a team's protection of secret files and to prevent a tool action from proceeding when its authorization service is unreachable.

E:

The first proposal serves the different purpose to stop a coding agent from running a destructive deployment command before execution instead of the assigned first role because pre-execution interception provides a deterministic opportunity to reject a proposed tool call, while the second proposal serves the different purpose to ensure a policy block is interpreted correctly by the Claude Code runtime instead of the assigned second role because hook contracts specify the event, supplied data, and supported control response; integration tests verify expected enforcement; their respective acceptance criteria are to prevent an unnoticed local edit from disabling a team's protection of secret files and to prevent a tool action from proceeding when its authorization service is unreachable.

Question 585

During acceptance testing for an external system access service, one requirement is to prevent a helpful assistant from issuing refunds automatically. What should the developer implement?

  1. Define narrow tool input schemas
  2. Handle parallel tool requests carefully
  3. Separate read tools from write tools
  4. Add an approval boundary before sensitive writes

Explanation

Correct Answer

D:

Authorization by a user or operator can be enforced before the executor commits changes; this behavior directly supports the need to prevent a helpful assistant from issuing refunds automatically. A note in the model's prompt is not a transaction approval.

Incorrect Answers

A:

Typed parameter definitions constrain requests and enable strict validation before execution; this applies to the different goal to prevent ambiguous generated arguments from reaching an inventory service, not the requirement to prevent a helpful assistant from issuing refunds automatically; a prose-only command description cannot validate required field types.

B:

When an application needs to speed up independent product lookups without racing dependent account updates, independent reads can run concurrently but dependent mutations need ordering or transactions; the current capability must instead prevent a helpful assistant from issuing refunds automatically, while unconditional parallel dispatch can violate business invariants.

C:

Distinct interfaces simplify least-privilege grants and side-effect controls; the supported outcome is to require stricter approval for actions that change customer data, whereas this scenario requires the ability to prevent a helpful assistant from issuing refunds automatically; a generic execute-anything function makes authorization difficult to enforce.

Question 586

A source-control workflow team owns two independent components. The first must run Claude Code inside a CI job and capture its output without interactive prompts; the second must establish a discoverable set of build and test conventions for a new Claude Code workspace. Which paired plan fulfills both?

  1. First component: Use headless invocation for automation. Second component: Use a project-level CLAUDE.md file.
  2. First component: Use a project-level CLAUDE.md file. Second component: Define a custom slash command workflow.
  3. First component: Define a custom slash command workflow. Second component: Run repository initialization to create project guidance.
  4. First component: Connect an MCP server to Claude Code. Second component: Use a project-level CLAUDE.md file.
  5. First component: Use headless invocation for automation. Second component: Run repository initialization to create project guidance.

Explanation

Correct Answer

E:

The first proposal fits its assigned role because noninteractive execution lets scripts integrate agent work into existing pipelines with controlled formats, while the second proposal fits its assigned role because repository initialization can generate or prepare project instruction material that the team subsequently reviews; their respective acceptance criteria are to run Claude Code inside a CI job and capture its output without interactive prompts and to establish a discoverable set of build and test conventions for a new Claude Code workspace.

Incorrect Answers

A:

The first proposal fits its assigned role because noninteractive execution lets scripts integrate agent work into existing pipelines with controlled formats, while the second proposal serves the different purpose to share coding conventions with every collaborator entering the same repository instead of the assigned second role because a checked-in memory file supplies persistent project context across relevant coding sessions; their respective acceptance criteria are to run Claude Code inside a CI job and capture its output without interactive prompts and to establish a discoverable set of build and test conventions for a new Claude Code workspace.

B:

The first proposal serves the different purpose to share coding conventions with every collaborator entering the same repository instead of the assigned first role because a checked-in memory file supplies persistent project context across relevant coding sessions, while the second proposal serves the different purpose to provide a consistent shortcut for a common repository maintenance task instead of the assigned second role because command-based workflows supply repeatable user-invoked instructions and arguments; their respective acceptance criteria are to run Claude Code inside a CI job and capture its output without interactive prompts and to establish a discoverable set of build and test conventions for a new Claude Code workspace.

C:

The first proposal serves the different purpose to provide a consistent shortcut for a common repository maintenance task instead of the assigned first role because command-based workflows supply repeatable user-invoked instructions and arguments, while the second proposal fits its assigned role because repository initialization can generate or prepare project instruction material that the team subsequently reviews; their respective acceptance criteria are to run Claude Code inside a CI job and capture its output without interactive prompts and to establish a discoverable set of build and test conventions for a new Claude Code workspace.

D:

The first proposal serves the different purpose to expose approved project-specific actions without copying credentials into prompts instead of the assigned first role because an MCP integration declares external capabilities and their transport while access remains controlled by the server, while the second proposal serves the different purpose to share coding conventions with every collaborator entering the same repository instead of the assigned second role because a checked-in memory file supplies persistent project context across relevant coding sessions; their respective acceptance criteria are to run Claude Code inside a CI job and capture its output without interactive prompts and to establish a discoverable set of build and test conventions for a new Claude Code workspace.

Question 587

A language-model integration team is evaluating two disjoint use cases. For one use case, it must prevent a background processor from overwhelming the upstream API during bursts; for the other, it must smooth sudden ingestion spikes before workers call a capacity-limited model API. Which paired choices are justified?

  1. First component: Honor server rate-limit signals. Second component: Use a queue for burst absorption.
  2. First component: Honor server rate-limit signals. Second component: Specify request deadlines in the caller.
  3. First component: Use the official SDK for standard requests. Second component: Use a queue for burst absorption.
  4. First component: Specify request deadlines in the caller. Second component: Use the official SDK for standard requests.

Explanation

Correct Answer

A:

The first proposal fits its assigned role because throttling and backoff work with provider limits rather than assuming infinite request capacity, while the second proposal fits its assigned role because queueing decouples producers from consumer throughput and enables controlled retries; their respective acceptance criteria are to prevent a background processor from overwhelming the upstream API during bursts and to smooth sudden ingestion spikes before workers call a capacity-limited model API.

Incorrect Answers

B:

The first proposal fits its assigned role because throttling and backoff work with provider limits rather than assuming infinite request capacity, while the second proposal serves the different purpose to keep a web request from hanging indefinitely if a network path stalls instead of the assigned second role because a client timeout bounds waiting for transport and response completion; their respective acceptance criteria are to prevent a background processor from overwhelming the upstream API during bursts and to smooth sudden ingestion spikes before workers call a capacity-limited model API.

C:

The first proposal serves the different purpose to simplify authentication, serialization, and response typing in a Python service instead of the assigned first role because maintained client libraries wrap the HTTP API and expose structured response objects, while the second proposal fits its assigned role because queueing decouples producers from consumer throughput and enables controlled retries; their respective acceptance criteria are to prevent a background processor from overwhelming the upstream API during bursts and to smooth sudden ingestion spikes before workers call a capacity-limited model API.

D:

The first proposal serves the different purpose to keep a web request from hanging indefinitely if a network path stalls instead of the assigned first role because a client timeout bounds waiting for transport and response completion, while the second proposal serves the different purpose to simplify authentication, serialization, and response typing in a Python service instead of the assigned second role because maintained client libraries wrap the HTTP API and expose structured response objects; their respective acceptance criteria are to prevent a background processor from overwhelming the upstream API during bursts and to smooth sudden ingestion spikes before workers call a capacity-limited model API.

Question 588

A backend integration review asks the team to close two unrelated gaps without merging their execution paths. Service A must analyze a photographed shipping label with the supported multimodal Messages input; service B must avoid assuming a custom local database function runs inside Anthropic infrastructure. Which paired remediation works?

  1. First component: Send tool_result content back to Claude. Second component: Supply a tool definition with input schema.
  2. First component: Include an image content block. Second component: Send tool_result content back to Claude.
  3. First component: Include an image content block. Second component: Differentiate client and server tool execution.
  4. First component: Supply a tool definition with input schema. Second component: Differentiate client and server tool execution.

Explanation

Correct Answer

C:

The first proposal fits its assigned role because image inputs are supplied as typed content with appropriate source data or references, while the second proposal fits its assigned role because the integration owns execution of client tools, while supported server tools are performed by the provider; their respective acceptance criteria are to analyze a photographed shipping label with the supported multimodal Messages input and to avoid assuming a custom local database function runs inside Anthropic infrastructure.

Incorrect Answers

A:

The first proposal serves the different purpose to produce a user-facing answer after a successful inventory lookup instead of the assigned first role because a result block tied to the tool call returns the external observation to the model for synthesis, while the second proposal serves the different purpose to let Claude request a read-only inventory lookup with typed arguments instead of the assigned second role because a declared tool name, description, and schema constrain the interface offered to the model; their respective acceptance criteria are to analyze a photographed shipping label with the supported multimodal Messages input and to avoid assuming a custom local database function runs inside Anthropic infrastructure.

B:

The first proposal fits its assigned role because image inputs are supplied as typed content with appropriate source data or references, while the second proposal serves the different purpose to produce a user-facing answer after a successful inventory lookup instead of the assigned second role because a result block tied to the tool call returns the external observation to the model for synthesis; their respective acceptance criteria are to analyze a photographed shipping label with the supported multimodal Messages input and to avoid assuming a custom local database function runs inside Anthropic infrastructure.

D:

The first proposal serves the different purpose to let Claude request a read-only inventory lookup with typed arguments instead of the assigned first role because a declared tool name, description, and schema constrain the interface offered to the model, while the second proposal fits its assigned role because the integration owns execution of client tools, while supported server tools are performed by the provider; their respective acceptance criteria are to analyze a photographed shipping label with the supported multimodal Messages input and to avoid assuming a custom local database function runs inside Anthropic infrastructure.

Question 589

A production-readiness check for a latency optimization component requires the service to deliver tokens to a browser without maintaining a bidirectional command channel. Which approach passes this check?

  1. Use connection pooling for repeated HTTP calls
  2. Choose WebSockets for bidirectional realtime exchange
  3. Choose SSE for one-way streamed responses
  4. Send the correct API authentication header

Explanation

Correct Answer

C:

Server-sent events provide ordered server-to-client updates over an HTTP stream; this behavior directly supports the need to deliver tokens to a browser without maintaining a bidirectional command channel. A WebSocket is not required solely to push a response as it arrives.

Incorrect Answers

A:

Reusable clients avoid unnecessary connection establishment under compatible networking conditions; despite being useful when a service must reduce setup overhead when a service sends many short requests, it is not a solution to deliver tokens to a browser without maintaining a bidirectional command channel; creating a fresh client per request can increase latency and resource churn.

B:

For the alternate objective to implement an interactive collaboration channel requiring messages in both directions, persistent two-way channels fit interactive event exchange where the client also sends messages during a session; the feature here must deliver tokens to a browser without maintaining a bidirectional command channel, and standard response streaming alone is not a general bidirectional messaging protocol.

D:

When an application needs to avoid unauthenticated model requests from a backend worker, the API validates the provided credential before accepting a request; the current capability must instead deliver tokens to a browser without maintaining a bidirectional command channel, while embedding a secret in a user prompt does not authenticate an HTTP call.

Question 590

A technical specification for a document processing application assigns two jobs to separate modules: module A must let Claude request a read-only inventory lookup with typed arguments, and module B must return an answer to a short user request through a backend service. Which two-part solution is appropriate?

  1. First component: Supply a tool definition with input schema. Second component: Call the Messages API with explicit model and max_tokens.
  2. First component: Read the HTTP error status before retrying. Second component: Call the Messages API with explicit model and max_tokens.
  3. First component: Supply a tool definition with input schema. Second component: Include an image content block.
  4. First component: Include an image content block. Second component: Read the HTTP error status before retrying.

Explanation

Correct Answer

A:

The first proposal fits its assigned role because a declared tool name, description, and schema constrain the interface offered to the model, while the second proposal fits its assigned role because a message request identifies the target model, a message list, and an output-token ceiling; their respective acceptance criteria are to let Claude request a read-only inventory lookup with typed arguments and to return an answer to a short user request through a backend service.

Incorrect Answers

B:

The first proposal serves the different purpose to distinguish an invalid request from a temporary provider or rate-limit failure instead of the assigned first role because status codes and structured errors guide correction versus bounded retry, while the second proposal fits its assigned role because a message request identifies the target model, a message list, and an output-token ceiling; their respective acceptance criteria are to let Claude request a read-only inventory lookup with typed arguments and to return an answer to a short user request through a backend service.

C:

The first proposal fits its assigned role because a declared tool name, description, and schema constrain the interface offered to the model, while the second proposal serves the different purpose to analyze a photographed shipping label with the supported multimodal Messages input instead of the assigned second role because image inputs are supplied as typed content with appropriate source data or references; their respective acceptance criteria are to let Claude request a read-only inventory lookup with typed arguments and to return an answer to a short user request through a backend service.

D:

The first proposal serves the different purpose to analyze a photographed shipping label with the supported multimodal Messages input instead of the assigned first role because image inputs are supplied as typed content with appropriate source data or references, while the second proposal serves the different purpose to distinguish an invalid request from a temporary provider or rate-limit failure instead of the assigned second role because status codes and structured errors guide correction versus bounded retry; their respective acceptance criteria are to let Claude request a read-only inventory lookup with typed arguments and to return an answer to a short user request through a backend service.

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