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

Question 330

The current design of a privacy controls pipeline does not adequately block a generated database query that targets another tenant's records. Which improvement resolves the gap?

  1. Add an explicit export approval check
  2. Validate tool arguments server-side
  3. Minimize personally identifiable information
  4. Use output escaping to prevent XSS

Explanation

Correct Answer

B:

Backend authorization checks must bind the requested operation to the caller's entitlements; this behavior directly supports the need to block a generated database query that targets another tenant's records. Well-formed arguments are not proof of permission.

Incorrect Answers

A:

When an application needs to prevent unreviewed bulk downloads triggered by an agent's tool plan, a separate authorization or human approval step can gate high-impact operations; the current capability must instead block a generated database query that targets another tenant's records, while the model's confidence in its own plan does not grant export permission.

C:

This approach serves the separate need to avoid transmitting unnecessary customer identifiers with a summarization request because redaction and selective fields reduce exposure before data enters model or logging paths; it does not establish the outcome to block a generated database query that targets another tenant's records, and logging every full prompt can defeat otherwise careful minimization.

D:

Context-aware encoding prevents text from being interpreted as active HTML or JavaScript; despite being useful when a service must display generated customer notes safely in a browser, it is not a solution to block a generated database query that targets another tenant's records; an instruction to the model not to write scripts is not a rendering control.

Question 331

An operations orchestration review requires two independent, explicitly defined outcomes: the first workstream must answer routine account questions without the overhead of orchestrating multiple agents; a second must preserve evidence and data lineage when one agent delegates a subtask to another. Which TWO actions directly provide these capabilities? Choose TWO.

  1. Use an explicit completion condition and step budget
  2. Pass structured handoff artifacts between workers
  3. Keep a single agent with a small tool set
  4. Restrict each specialist's tool permissions
  5. Adopt a supervisor with specialist workers

Explanation

Correct Answers

B:

Defined input and output schemas make it possible to attribute conclusions and detect missing fields at the handoff; this directly supports task 2 to preserve evidence and data lineage when one agent delegates a subtask to another, not the separate task or tasks to answer routine account questions without the overhead of orchestrating multiple agents; free-form chat summaries can omit identifiers required by the next worker.

C:

A single constrained executor simplifies state, authentication, logging, and latency where specialization adds little; this directly supports task 1 to answer routine account questions without the overhead of orchestrating multiple agents, not the separate task or tasks to preserve evidence and data lineage when one agent delegates a subtask to another; a multi-agent hierarchy is not a default requirement for tool use.

Incorrect Answers

A:

A maximum iteration or cost budget plus a clear success criterion stops runaway tool loops; this implements the different outcome to bound the runtime of an agent that repeatedly searches without converging rather than the required tasks to answer routine account questions without the overhead of orchestrating multiple agents and to preserve evidence and data lineage when one agent delegates a subtask to another, and merely asking the model to finish quickly does not enforce execution limits, so it is not a direct solution to any of the assigned workstreams.

D:

Scoped tool capability prevents a delegated role from using authority unrelated to its assignment; this implements the different outcome to allow a research worker to read records without granting its coordinator's write privileges rather than the required tasks to answer routine account questions without the overhead of orchestrating multiple agents and to preserve evidence and data lineage when one agent delegates a subtask to another, and role descriptions alone do not revoke credentials available to the process, so it is not a direct solution to any of the assigned workstreams.

E:

A managing agent delegates bounded subtasks to specialists and reconciles their outputs against a common objective; this implements the different outcome to coordinate separate billing, compliance, and engineering analyses under one final decision rather than the required tasks to answer routine account questions without the overhead of orchestrating multiple agents and to preserve evidence and data lineage when one agent delegates a subtask to another, and independent workers with no coordinator can return inconsistent recommendations, so it is not a direct solution to any of the assigned workstreams.

Question 332

A retrieval pipeline build contains an upstream function and a separate downstream function. The upstream work must reduce unsupported claims in answers about internal procedures; the downstream work must improve extraction quality after discovering consistent edge-case failures. Which configuration pair covers both?

  1. First component: Separate system policy from user content. Second component: Iterate prompts against an evaluation set.
  2. First component: Request evidence before conclusions. Second component: Delimit untrusted source material.
  3. First component: State one measurable outcome per instruction. Second component: Delimit untrusted source material.
  4. First component: Delimit untrusted source material. Second component: Separate system policy from user content.
  5. First component: Request evidence before conclusions. Second component: Iterate prompts against an evaluation set.

Explanation

Correct Answer

E:

The first proposal fits its assigned role because asking for citations to provided excerpts promotes inspectable grounding and makes verification possible, while the second proposal fits its assigned role because controlled revisions measured on stable examples show whether a change actually helps; their respective acceptance criteria are to reduce unsupported claims in answers about internal procedures and to improve extraction quality after discovering consistent edge-case failures.

Incorrect Answers

A:

The first proposal serves the different purpose to prevent a customer message from overriding the application's escalation rules instead of the assigned first role because stable higher-priority instructions should be represented in the designated instruction channel, while the second proposal fits its assigned role because controlled revisions measured on stable examples show whether a change actually helps; their respective acceptance criteria are to reduce unsupported claims in answers about internal procedures and to improve extraction quality after discovering consistent edge-case failures.

B:

The first proposal fits its assigned role because asking for citations to provided excerpts promotes inspectable grounding and makes verification possible, while the second proposal serves the different purpose to let the model summarize a hostile email without obeying its embedded commands instead of the assigned second role because clear source boundaries and explicit treatment as quoted evidence help reduce instruction confusion; their respective acceptance criteria are to reduce unsupported claims in answers about internal procedures and to improve extraction quality after discovering consistent edge-case failures.

C:

The first proposal serves the different purpose to stop a summarizer from producing unrelated analysis instead of required action items instead of the assigned first role because clear task goals and acceptance criteria reduce competing interpretations, while the second proposal serves the different purpose to let the model summarize a hostile email without obeying its embedded commands instead of the assigned second role because clear source boundaries and explicit treatment as quoted evidence help reduce instruction confusion; their respective acceptance criteria are to reduce unsupported claims in answers about internal procedures and to improve extraction quality after discovering consistent edge-case failures.

D:

The first proposal serves the different purpose to let the model summarize a hostile email without obeying its embedded commands instead of the assigned first role because clear source boundaries and explicit treatment as quoted evidence help reduce instruction confusion, while the second proposal serves the different purpose to prevent a customer message from overriding the application's escalation rules instead of the assigned second role because stable higher-priority instructions should be represented in the designated instruction channel; their respective acceptance criteria are to reduce unsupported claims in answers about internal procedures and to improve extraction quality after discovering consistent edge-case failures.

Question 333

A customer platform solution has parallel requirements with separate owners. Workstream one must keep a downstream parser from crashing when a request returns no usable text block; workstream two must stop processing when a user cancels a long report and release resources cleanly. Which combination meets both?

  1. First component: Treat retrieval results as untrusted data. Second component: Add cancellation handling to streaming UI.
  2. First component: Handle empty and partial model responses. Second component: Add cancellation handling to streaming UI.
  3. First component: Keep user tasks in the user message. Second component: Treat retrieval results as untrusted data.
  4. First component: Handle empty and partial model responses. Second component: Keep user tasks in the user message.

Explanation

Correct Answer

B:

The first proposal fits its assigned role because content-aware response handling checks block types, stop reasons, and required values before proceeding, while the second proposal fits its assigned role because cancellation signals should propagate through streams, queues, and workers where supported; their respective acceptance criteria are to keep a downstream parser from crashing when a request returns no usable text block and to stop processing when a user cancels a long report and release resources cleanly.

Incorrect Answers

A:

The first proposal serves the different purpose to prevent a malicious help article from ordering the model to reveal secrets instead of the assigned first role because retrieved content should be framed as evidence, never upgraded to new tool or system authority, while the second proposal fits its assigned role because cancellation signals should propagate through streams, queues, and workers where supported; their respective acceptance criteria are to keep a downstream parser from crashing when a request returns no usable text block and to stop processing when a user cancels a long report and release resources cleanly.

C:

The first proposal serves the different purpose to separate an end user's request from the developer's stable operating instructions instead of the assigned first role because explicit message roles distinguish requested work from higher-priority operational framing, while the second proposal serves the different purpose to prevent a malicious help article from ordering the model to reveal secrets instead of the assigned second role because retrieved content should be framed as evidence, never upgraded to new tool or system authority; their respective acceptance criteria are to keep a downstream parser from crashing when a request returns no usable text block and to stop processing when a user cancels a long report and release resources cleanly.

D:

The first proposal fits its assigned role because content-aware response handling checks block types, stop reasons, and required values before proceeding, while the second proposal serves the different purpose to separate an end user's request from the developer's stable operating instructions instead of the assigned second role because explicit message roles distinguish requested work from higher-priority operational framing; their respective acceptance criteria are to keep a downstream parser from crashing when a request returns no usable text block and to stop processing when a user cancels a long report and release resources cleanly.

Question 334

Two features of a model platform system are under review. One feature must clarify a specific formatting convention that a plain instruction was not conveying; the other must design tests that tolerate benign wording variation while detecting semantic failures. Which plan matches the respective needs?

  1. First component: Use varied sampling only for ideation. Second component: Use low-temperature generation for repeatable extraction.
  2. First component: Use one representative example. Second component: Treat model outputs as stochastic.
  3. First component: Use low-temperature generation for repeatable extraction. Second component: Treat model outputs as stochastic.
  4. First component: Use one representative example. Second component: Use varied sampling only for ideation.

Explanation

Correct Answer

B:

The first proposal fits its assigned role because a single demonstration can anchor the expected shape and tone of a generated response, while the second proposal fits its assigned role because non-determinism requires evaluation by criteria and repeated examples rather than exact-string equality everywhere; their respective acceptance criteria are to clarify a specific formatting convention that a plain instruction was not conveying and to design tests that tolerate benign wording variation while detecting semantic failures.

Incorrect Answers

A:

The first proposal serves the different purpose to brainstorm diverse naming candidates without demanding identical wording on every run instead of the assigned first role because greater sampling diversity can produce a wider range of suggestions for exploratory work, while the second proposal serves the different purpose to reduce variation when a service maps documents into consistent categories instead of the assigned second role because lower randomness often improves consistency for narrow, constrained tasks; their respective acceptance criteria are to clarify a specific formatting convention that a plain instruction was not conveying and to design tests that tolerate benign wording variation while detecting semantic failures.

C:

The first proposal serves the different purpose to reduce variation when a service maps documents into consistent categories instead of the assigned first role because lower randomness often improves consistency for narrow, constrained tasks, while the second proposal fits its assigned role because non-determinism requires evaluation by criteria and repeated examples rather than exact-string equality everywhere; their respective acceptance criteria are to clarify a specific formatting convention that a plain instruction was not conveying and to design tests that tolerate benign wording variation while detecting semantic failures.

D:

The first proposal fits its assigned role because a single demonstration can anchor the expected shape and tone of a generated response, while the second proposal serves the different purpose to brainstorm diverse naming candidates without demanding identical wording on every run instead of the assigned second role because greater sampling diversity can produce a wider range of suggestions for exploratory work; their respective acceptance criteria are to clarify a specific formatting convention that a plain instruction was not conveying and to design tests that tolerate benign wording variation while detecting semantic failures.

Question 335

An incident investigation application is approaching release, but the team still needs to diagnose a generated summary that contradicts the latest database balance. What is the most appropriate implementation?

  1. Handle a 429 rate limit error
  2. Validate data before blaming model quality
  3. Trace a missing tool_result
  4. Diagnose a 5xx provider error

Explanation

Correct Answer

B:

Source payloads, retrieval filters, and timestamps must be checked before attributing a wrong answer to inference; this behavior directly supports the need to diagnose a generated summary that contradicts the latest database balance. Prompt changes cannot repair a stale upstream ledger response.

Incorrect Answers

A:

When an application needs to prevent a bursty job service from exceeding allowed request throughput, a bounded retry policy and workload shaping address quota or rate throttling; the current capability must instead diagnose a generated summary that contradicts the latest database balance, while repeating the request immediately can intensify the limit.

C:

This approach serves the separate need to fix an agent loop that repeatedly requests the same lookup without using the returned data because inspecting message history and tool IDs reveals whether execution output reached the next model turn; it does not establish the outcome to diagnose a generated summary that contradicts the latest database balance, and blaming model reasoning first overlooks an integration-layer omission.

D:

Server-side failures may warrant bounded retries, jitter, and a fallback rather than request-shape changes; despite being useful when a service must keep a batch pipeline resilient when the upstream service briefly fails, it is not a solution to diagnose a generated summary that contradicts the latest database balance; treating every provider outage as a malformed JSON prompt hides the real cause.

Question 336

During a document processing rollout, two different failure paths need remediation. The first component must keep an integration functional when a pinned model version approaches retirement; separately, the second must catch schema and policy failures after a model or tool update. Which changes should be adopted?

  1. First component: Separate development, staging, and production environments. Second component: Implement automated regression tests.
  2. First component: Set a maintenance and deprecation plan. Second component: Implement automated regression tests.
  3. First component: Assign an owner to every integration. Second component: Separate development, staging, and production environments.
  4. First component: Set a maintenance and deprecation plan. Second component: Assign an owner to every integration.

Explanation

Correct Answer

B:

The first proposal fits its assigned role because a dependency inventory and upgrade schedule create time for evaluation and migration, while the second proposal fits its assigned role because repeatable cases compare changes against documented acceptance criteria; their respective acceptance criteria are to keep an integration functional when a pinned model version approaches retirement and to catch schema and policy failures after a model or tool update.

Incorrect Answers

A:

The first proposal serves the different purpose to exercise an agent's database tool without touching live customer records instead of the assigned first role because environment boundaries keep credentials, data, and writes isolated during testing, while the second proposal fits its assigned role because repeatable cases compare changes against documented acceptance criteria; their respective acceptance criteria are to keep an integration functional when a pinned model version approaches retirement and to catch schema and policy failures after a model or tool update.

C:

The first proposal serves the different purpose to prevent abandoned connectors from retaining access after an application is transferred instead of the assigned first role because ownership enables rotation, monitoring, change approval, and retirement decisions, while the second proposal serves the different purpose to exercise an agent's database tool without touching live customer records instead of the assigned second role because environment boundaries keep credentials, data, and writes isolated during testing; their respective acceptance criteria are to keep an integration functional when a pinned model version approaches retirement and to catch schema and policy failures after a model or tool update.

D:

The first proposal fits its assigned role because a dependency inventory and upgrade schedule create time for evaluation and migration, while the second proposal serves the different purpose to prevent abandoned connectors from retaining access after an application is transferred instead of the assigned second role because ownership enables rotation, monitoring, change approval, and retirement decisions; their respective acceptance criteria are to keep an integration functional when a pinned model version approaches retirement and to catch schema and policy failures after a model or tool update.

Question 337

In a production API project, acceptance test A checks whether a component can trace a quality regression to the exact instruction revision used. Acceptance test B checks whether a different component can deploy the same application build to staging and production with distinct endpoints. Which plan satisfies both tests?

  1. First component: Track MCP server versions and contracts. Second component: Keep environment-specific settings external.
  2. First component: Use settings.json for Claude Code permissions. Second component: Track MCP server versions and contracts.
  3. First component: Version prompt templates alongside code. Second component: Keep environment-specific settings external.
  4. First component: Version prompt templates alongside code. Second component: Use settings.json for Claude Code permissions.

Explanation

Correct Answer

C:

The first proposal fits its assigned role because source-controlled prompt assets make rollbacks, diffs, and evaluations possible, while the second proposal fits its assigned role because configuration injection separates environment differences from immutable application artifacts; their respective acceptance criteria are to trace a quality regression to the exact instruction revision used and to deploy the same application build to staging and production with distinct endpoints.

Incorrect Answers

A:

The first proposal serves the different purpose to keep external tool connectors compatible after client upgrades instead of the assigned first role because declared versions and integration tests expose resource or schema changes before deployment, while the second proposal fits its assigned role because configuration injection separates environment differences from immutable application artifacts; their respective acceptance criteria are to trace a quality regression to the exact instruction revision used and to deploy the same application build to staging and production with distinct endpoints.

B:

The first proposal serves the different purpose to constrain a repository coding assistant's allowed tools and execution behavior instead of the assigned first role because permission settings define configurable controls for Claude Code rather than merely describing preferences, while the second proposal serves the different purpose to keep external tool connectors compatible after client upgrades instead of the assigned second role because declared versions and integration tests expose resource or schema changes before deployment; their respective acceptance criteria are to trace a quality regression to the exact instruction revision used and to deploy the same application build to staging and production with distinct endpoints.

D:

The first proposal fits its assigned role because source-controlled prompt assets make rollbacks, diffs, and evaluations possible, while the second proposal serves the different purpose to constrain a repository coding assistant's allowed tools and execution behavior instead of the assigned second role because permission settings define configurable controls for Claude Code rather than merely describing preferences; their respective acceptance criteria are to trace a quality regression to the exact instruction revision used and to deploy the same application build to staging and production with distinct endpoints.

Question 338

During a credential management rollout, two different failure paths need remediation. The first component must prevent unreviewed bulk downloads triggered by an agent's tool plan; separately, the second must prevent a compromised tool step from sending internal files to arbitrary destinations. Which changes should be adopted?

  1. First component: Validate tool arguments server-side. Second component: Treat tool and retrieval text as untrusted.
  2. First component: Treat tool and retrieval text as untrusted. Second component: Limit external network egress for agents.
  3. First component: Add an explicit export approval check. Second component: Validate tool arguments server-side.
  4. First component: Add an explicit export approval check. Second component: Limit external network egress for agents.

Explanation

Correct Answer

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 fits its assigned role because network policy restricts which services a tool process can contact; their respective acceptance criteria are to prevent unreviewed bulk downloads triggered by an agent's tool plan and to prevent a compromised tool step from sending internal files to arbitrary destinations.

Incorrect Answers

A:

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 serves the different purpose to stop an injected wiki page from asking an assistant to export credentials instead of the assigned second role because lower-trust content is evidence only; control decisions remain with authenticated policy and tool gates; their respective acceptance criteria are to prevent unreviewed bulk downloads triggered by an agent's tool plan and to prevent a compromised tool step from sending internal files to arbitrary destinations.

B:

The first proposal serves the different purpose to stop an injected wiki page from asking an assistant to export credentials instead of the assigned first role because lower-trust content is evidence only; control decisions remain with authenticated policy and tool gates, while the second proposal fits its assigned role because network policy restricts which services a tool process can contact; their respective acceptance criteria are to prevent unreviewed bulk downloads triggered by an agent's tool plan and to prevent a compromised tool step from sending internal files to arbitrary destinations.

C:

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 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 prevent a compromised tool step from sending internal files to arbitrary destinations.

Question 339

An engineer extending an application security workflow has been asked to find vulnerabilities in a retrieval-augmented assistant before it accesses production tools. Which choice addresses the request most precisely?

  1. Rate-limit high-risk endpoints
  2. Run adversarial prompt-injection tests
  3. Use layered checks for unsafe requests
  4. Enforce least-privilege tool permissions

Explanation

Correct Answer

B:

Purposeful hostile test cases probe whether the trust boundary holds under manipulated evidence; this behavior directly supports the need to find vulnerabilities in a retrieval-augmented assistant before it accesses production tools. Ordinary happy-path tests rarely exercise attacker instructions.

Incorrect Answers

A:

For the alternate objective to reduce automated abuse of a model-backed export or search capability, per-identity quotas and anomaly monitoring make bulk misuse harder; the feature here must find vulnerabilities in a retrieval-augmented assistant before it accesses production tools, and a single global throughput cap may still let one actor consume all capacity.

C:

When an application needs to detect harmful instructions at input, tool-call, and output boundaries, independent controls catch failures that a single prompt-level rule may miss; the current capability must instead find vulnerabilities in a retrieval-augmented assistant before it accesses production tools, while a system prompt alone is not a complete enforcement strategy.

D:

Restricted scopes and read-only interfaces limit impact if a tool request is manipulated; the supported outcome is to let a support assistant read shipment status without issuing refunds, whereas this scenario requires the ability to find vulnerabilities in a retrieval-augmented assistant before it accesses production tools; role language in the prompt cannot prevent an overprivileged API token from writing.

Question 340

The acceptance criteria for a token economics change state that it must forecast cost for an application that sends long documents but returns brief classifications. Which implementation aligns with that criterion?

  1. Estimate output length before scaling
  2. Track input and output usage separately
  3. Set maximum step counts for agents
  4. Use batch pricing where deadline permits
  5. Set budget alerts and tenant caps

Explanation

Correct Answer

B:

Metering by token category reveals the main cost driver and supports realistic forecasts; this behavior directly supports the need to forecast cost for an application that sends long documents but returns brief classifications. Counting only request totals hides prompt-size variability.

Incorrect Answers

A:

Cost models should include the generated token volume and task-specific variance; this applies to the different goal to avoid underbudgeting a report-writing feature whose completions are much longer than inputs, not the requirement to forecast cost for an application that sends long documents but returns brief classifications; input-only estimates miss potentially dominant completion expense.

C:

A bound on iterations prevents repeated generation and calls from growing without limit; the supported outcome is to contain cumulative token and tool cost across a recursive research session, whereas this scenario requires the ability to forecast cost for an application that sends long documents but returns brief classifications; a per-message output cap alone does not control total multi-step spend.

D:

This approach serves the separate need to lower spend for large scheduled classification jobs that do not need immediate responses because asynchronous batch processing can offer a cost-effective throughput path under supported terms; it does not establish the outcome to forecast cost for an application that sends long documents but returns brief classifications, and a night job should not be optimized with live streaming unless its users need it.

E:

Accounting plus enforced limits bounds exposure to unexpected traffic and agent loops; despite being useful when a service must stop a single customer from consuming the entire API allowance during a runaway workflow, it is not a solution to forecast cost for an application that sends long documents but returns brief classifications; usage dashboards alone only report overspend after the fact.

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