Anthropic CCDV-F Practice Test 59
Question 580
A CI job interprets a helpful text summary as a passed build despite the process returning a nonzero status. What evidence or diagnostic detail should the engineer inspect FIRST?
- Inspect CLI invocation flags, machine-readable output, command exit status, changeset and test artifacts.
- Inspect working directory, root/subtree CLAUDE.md files, current git branch, selected repository and effective instructions.
- Inspect data classification, redaction process, consent, allowed retention and output scanning.
- Inspect file type, parser success, attachment origin, text spans and user permissions.
Explanation
Correct Answer
A:Inspect CLI invocation flags, machine-readable output, command exit status, changeset and test artifacts. A successful assistant narrative does not substitute for CI exit codes, repository diff inspection or actual tests. The appropriate response is: Run Claude Code in noninteractive mode with explicit permission controls, structured outputs and programmatic verification before accepting CI results. Situation: A CI job interprets a helpful text summary as a passed build despite the process returning a nonzero status.
Incorrect Answers
B:Inspect working directory, root/subtree CLAUDE.md files, current git branch, selected repository and effective instructions. This evidence is useful for Claude Code project memory and local context but would not isolate the primary failure in this scenario. The decisive check is: Inspect CLI invocation flags, machine-readable output, command exit status, changeset and test artifacts. Situation: A CI job interprets a helpful text summary as a passed build despite the process returning a nonzero status.
C:Inspect data classification, redaction process, consent, allowed retention and output scanning. This evidence is useful for PII minimization and output privacy but would not isolate the primary failure in this scenario. The decisive check is: Inspect CLI invocation flags, machine-readable output, command exit status, changeset and test artifacts. Situation: A CI job interprets a helpful text summary as a passed build despite the process returning a nonzero status.
D:Inspect file type, parser success, attachment origin, text spans and user permissions. This evidence is useful for File processing pipeline with provenance but would not isolate the primary failure in this scenario. The decisive check is: Inspect CLI invocation flags, machine-readable output, command exit status, changeset and test artifacts. Situation: A CI job interprets a helpful text summary as a passed build despite the process returning a nonzero status.
Question 581
An API client lacks tenant quotas and one customer processes massive files at everyone else's expense. Which development or architectural response BEST addresses the primary requirement?
- Choose appropriate temperature and sampling configuration where supported, and evaluate variability across multiple runs rather than expecting bit-for-bit repeatability.
- Model costs using input, output and cache-read/cache-write token accounting with the provider's documented pricing and observed usage.
- Select supported thinking or effort settings according to task complexity, latency and available token budgets; do not assume all models accept identical options.
- Set per-tenant quotas, output-token ceilings and alert thresholds, and couple them with bounded agent/tool iteration policy.
Explanation
Correct Answer
D:Set per-tenant quotas, output-token ceilings and alert thresholds, and couple them with bounded agent/tool iteration policy. The model's context and reasoning can drive cost rapidly; budgets must be enforced in application logic. Verify the prerequisites with: Inspect usage anomalies, per-user consumption, tool call count and escalation approval. Situation: An API client lacks tenant quotas and one customer processes massive files at everyone else's expense.
Incorrect Answers
A:Choose appropriate temperature and sampling configuration where supported, and evaluate variability across multiple runs rather than expecting bit-for-bit repeatability. This response is designed for Sampling and nondeterministic output testing; it is not the controlling fix in the situation. Sampling changes candidate generation but does not guarantee reproducibility or correctness; code-level validation remains necessary. Here the targeted response is: Set per-tenant quotas, output-token ceilings and alert thresholds, and couple them with bounded agent/tool iteration policy. Situation: An API client lacks tenant quotas and one customer processes massive files at everyone else's expense.
B:Model costs using input, output and cache-read/cache-write token accounting with the provider's documented pricing and observed usage. This response is designed for Prompt caching cost attribution; it is not the controlling fix in the situation. Cache economics depend on actual hits and token classes; multiplying all tokens by one flat price misstates spend. Here the targeted response is: Set per-tenant quotas, output-token ceilings and alert thresholds, and couple them with bounded agent/tool iteration policy. Situation: An API client lacks tenant quotas and one customer processes massive files at everyone else's expense.
C:Select supported thinking or effort settings according to task complexity, latency and available token budgets; do not assume all models accept identical options. This response is designed for Extended and adaptive thinking tradeoffs; it is not the controlling fix in the situation. Reasoning effort is a resource and compatibility choice; increasing it is not a substitute for external validation. Here the targeted response is: Set per-tenant quotas, output-token ceilings and alert thresholds, and couple them with bounded agent/tool iteration policy. Situation: An API client lacks tenant quotas and one customer processes massive files at everyone else's expense.
Question 582
A public chatbot response includes a customer address copied from an internal tool result. What evidence or diagnostic detail should the engineer inspect FIRST?
- Inspect role grants, action allowlist, dangerous effects, approval records and network egress.
- Inspect hook trigger names, command arguments, event payload, exit status and rule coverage.
- Inspect data classification, redaction process, consent, allowed retention and output scanning.
- Inspect credential location, granted scope, rotation status, access logs and accidental leakage.
Explanation
Correct Answer
C:Inspect data classification, redaction process, consent, allowed retention and output scanning. Privacy protections require data-flow controls and policy, not merely instructing the model to be discreet. The appropriate response is: Minimize personal data sent to a model, redact unnecessary identifiers and verify outputs do not expose restricted user information. Situation: A public chatbot response includes a customer address copied from an internal tool result.
Incorrect Answers
A:Inspect role grants, action allowlist, dangerous effects, approval records and network egress. This evidence is useful for Defense-in-depth guardrails around agent tools but would not isolate the primary failure in this scenario. The decisive check is: Inspect data classification, redaction process, consent, allowed retention and output scanning. Situation: A public chatbot response includes a customer address copied from an internal tool result.
B:Inspect hook trigger names, command arguments, event payload, exit status and rule coverage. This evidence is useful for Pre-tool hooks for destructive command interception but would not isolate the primary failure in this scenario. The decisive check is: Inspect data classification, redaction process, consent, allowed retention and output scanning. Situation: A public chatbot response includes a customer address copied from an internal tool result.
D:Inspect credential location, granted scope, rotation status, access logs and accidental leakage. This evidence is useful for Secret storage and API-key rotation but would not isolate the primary failure in this scenario. The decisive check is: Inspect data classification, redaction process, consent, allowed retention and output scanning. Situation: A public chatbot response includes a customer address copied from an internal tool result.
Question 583
A monolithic endpoint both constructs prompts and directly writes SQL rows whenever it sees the word approved. Which development or architectural response BEST addresses the primary requirement?
- Construct Messages API requests with the system parameter, correctly typed user/assistant messages and ordered content blocks instead of assuming a generic chat log format.
- Separate Claude API transport, prompt assembly, validation, business rules and tool side effects into testable modules rather than one opaque handler.
- Use bounded asynchronous requests with cancellation, per-call timeouts and consistent result indexing instead of launching uncontrolled concurrent work.
- Design application-level typed output envelopes, validate required values and handle refusal or incomplete states without letting free-form prose corrupt downstream systems.
Explanation
Correct Answer
B:Separate Claude API transport, prompt assembly, validation, business rules and tool side effects into testable modules rather than one opaque handler. Modular boundaries make behavioral tests reliable and limit unintended effects from model-oriented code. Verify the prerequisites with: Inspect module boundaries, unit-test seams, shared mutable state, transport mocks and error translation. Situation: A monolithic endpoint both constructs prompts and directly writes SQL rows whenever it sees the word approved.
Incorrect Answers
A:Construct Messages API requests with the system parameter, correctly typed user/assistant messages and ordered content blocks instead of assuming a generic chat log format. This response is designed for Messages API role and content structure; it is not the controlling fix in the situation. The Claude Messages API has explicit message/content schema; inventing roles or losing block order can alter behavior or cause errors. Here the targeted response is: Separate Claude API transport, prompt assembly, validation, business rules and tool side effects into testable modules rather than one opaque handler. Situation: A monolithic endpoint both constructs prompts and directly writes SQL rows whenever it sees the word approved.
C:Use bounded asynchronous requests with cancellation, per-call timeouts and consistent result indexing instead of launching uncontrolled concurrent work. This response is designed for Async Python and TypeScript concurrency; it is not the controlling fix in the situation. Concurrency improves throughput only when external quotas and task dependencies are respected. Here the targeted response is: Separate Claude API transport, prompt assembly, validation, business rules and tool side effects into testable modules rather than one opaque handler. Situation: A monolithic endpoint both constructs prompts and directly writes SQL rows whenever it sees the word approved.
D:Design application-level typed output envelopes, validate required values and handle refusal or incomplete states without letting free-form prose corrupt downstream systems. This response is designed for Structured application output contract; it is not the controlling fix in the situation. A prompt requesting JSON does not by itself make every response safe to parse or commit. Here the targeted response is: Separate Claude API transport, prompt assembly, validation, business rules and tool side effects into testable modules rather than one opaque handler. Situation: A monolithic endpoint both constructs prompts and directly writes SQL rows whenever it sees the word approved.
Question 584
A public chatbot response includes a customer address copied from an internal tool result. Which TWO complementary actions provide an appropriate solution and the evidence needed to verify it? Select TWO.
- Legitimate tasks continue while unauthorized file deletion or privilege escalation is rejected independently of model intent.
- Minimize personal data sent to a model, redact unnecessary identifiers and verify outputs do not expose restricted user information.
- Inspect data classification, redaction process, consent, allowed retention and output scanning.
- Inspect user claims, tenant-bound resource IDs, delegated scopes, session context and enforcement failures.
- Keep core constraints stable across adversarial roleplay or quoted instructions, and validate allowed tool actions regardless of persuasive model output.
Explanation
Correct Answers
B:Minimize personal data sent to a model, redact unnecessary identifiers and verify outputs do not expose restricted user information. Privacy protections require data-flow controls and policy, not merely instructing the model to be discreet. Verify the prerequisites with: Inspect data classification, redaction process, consent, allowed retention and output scanning. Situation: A public chatbot response includes a customer address copied from an internal tool result.
C:Inspect data classification, redaction process, consent, allowed retention and output scanning. Privacy protections require data-flow controls and policy, not merely instructing the model to be discreet. The appropriate response is: Minimize personal data sent to a model, redact unnecessary identifiers and verify outputs do not expose restricted user information. Situation: A public chatbot response includes a customer address copied from an internal tool result.
Incorrect Answers
A:Legitimate tasks continue while unauthorized file deletion or privilege escalation is rejected independently of model intent. This step may apply to Defense-in-depth guardrails around agent tools but is not one of the two required complementary decisions. The relevant pair is: Minimize personal data sent to a model, redact unnecessary identifiers and verify outputs do not expose restricted user information. and Inspect data classification, redaction process, consent, allowed retention and output scanning. Situation: A public chatbot response includes a customer address copied from an internal tool result.
D:Inspect user claims, tenant-bound resource IDs, delegated scopes, session context and enforcement failures. This step may apply to Tenant identity and delegated resource authorization but is not one of the two required complementary decisions. The relevant pair is: Minimize personal data sent to a model, redact unnecessary identifiers and verify outputs do not expose restricted user information. and Inspect data classification, redaction process, consent, allowed retention and output scanning. Situation: A public chatbot response includes a customer address copied from an internal tool result.
E:Keep core constraints stable across adversarial roleplay or quoted instructions, and validate allowed tool actions regardless of persuasive model output. This step may apply to Jailbreak and untrusted user instruction handling but is not one of the two required complementary decisions. The relevant pair is: Minimize personal data sent to a model, redact unnecessary identifiers and verify outputs do not expose restricted user information. and Inspect data classification, redaction process, consent, allowed retention and output scanning. Situation: A public chatbot response includes a customer address copied from an internal tool result.
Question 585
A long architecture task exhausts the output budget because thinking tokens were not considered. What evidence or diagnostic detail should the engineer inspect FIRST?
- Inspect benchmark outputs, latency histograms, model release identifiers and expected workload complexity.
- Inspect model generation settings, task constraints, repeated responses, and deterministic downstream validators.
- Inspect model capabilities, effort options, output usage, latency budgets and request-validation errors.
- Inspect old/new model IDs, deprecation notices, baseline prompts and tool-call diffs.
Explanation
Correct Answer
C:Inspect model capabilities, effort options, output usage, latency budgets and request-validation errors. Reasoning effort is a resource and compatibility choice; increasing it is not a substitute for external validation. The appropriate response is: Select supported thinking or effort settings according to task complexity, latency and available token budgets; do not assume all models accept identical options. Situation: A long architecture task exhausts the output budget because thinking tokens were not considered.
Incorrect Answers
A:Inspect benchmark outputs, latency histograms, model release identifiers and expected workload complexity. This evidence is useful for Opus Sonnet and Haiku tradeoffs but would not isolate the primary failure in this scenario. The decisive check is: Inspect model capabilities, effort options, output usage, latency budgets and request-validation errors. Situation: A long architecture task exhausts the output budget because thinking tokens were not considered.
B:Inspect model generation settings, task constraints, repeated responses, and deterministic downstream validators. This evidence is useful for Sampling and nondeterministic output testing but would not isolate the primary failure in this scenario. The decisive check is: Inspect model capabilities, effort options, output usage, latency budgets and request-validation errors. Situation: A long architecture task exhausts the output budget because thinking tokens were not considered.
D:Inspect old/new model IDs, deprecation notices, baseline prompts and tool-call diffs. This evidence is useful for Version migration and breaking-behavior tests but would not isolate the primary failure in this scenario. The decisive check is: Inspect model capabilities, effort options, output usage, latency budgets and request-validation errors. Situation: A long architecture task exhausts the output budget because thinking tokens were not considered.
Question 586
A team debugs a tool call by inspecting serialized REST payloads behind its SDK helper. Which observed result BEST demonstrates the requirement has been satisfied?
- Calls preserve the same intentional API semantics and failures remain diagnosable regardless of transport wrapper.
- The job completes with each result assigned to its source and documented cost comparison against immediate calls.
- Complex reasoning receives sufficient resources while simple classification remains responsive within supported model contracts.
- Failed calls terminate predictably or recover through bounded retries while external side effects remain consistent.
Explanation
Correct Answer
A:Calls preserve the same intentional API semantics and failures remain diagnosable regardless of transport wrapper. SDKs wrap the underlying API; they do not eliminate rate limits, authentication or data-validation responsibilities. Situation: A team debugs a tool call by inspecting serialized REST payloads behind its SDK helper.
Incorrect Answers
B:The job completes with each result assigned to its source and documented cost comparison against immediate calls. This result tests Batch scheduling and unit economics, not the requirement demonstrated by this case. The relevant acceptance condition is: Calls preserve the same intentional API semantics and failures remain diagnosable regardless of transport wrapper. Situation: A team debugs a tool call by inspecting serialized REST payloads behind its SDK helper.
C:Complex reasoning receives sufficient resources while simple classification remains responsive within supported model contracts. This result tests Extended and adaptive thinking tradeoffs, not the requirement demonstrated by this case. The relevant acceptance condition is: Calls preserve the same intentional API semantics and failures remain diagnosable regardless of transport wrapper. Situation: A team debugs a tool call by inspecting serialized REST payloads behind its SDK helper.
D:Failed calls terminate predictably or recover through bounded retries while external side effects remain consistent. This result tests Request timeouts and network failure discipline, not the requirement demonstrated by this case. The relevant acceptance condition is: Calls preserve the same intentional API semantics and failures remain diagnosable regardless of transport wrapper. Situation: A team debugs a tool call by inspecting serialized REST payloads behind its SDK helper.
Question 587
An incident playbook accidentally logs full authorization headers during a failed integration call. What evidence or diagnostic detail should the engineer inspect FIRST?
- Inspect input token counts, prompt structure, tool-result sizes, max_tokens and truncation events.
- Inspect API key scope, authorization headers, expiry/revocation, secret storage and server logs.
- Inspect item independence, batch identifiers, completion deadlines, failed records and total cost.
- Inspect desired interaction cadence, connection ownership, backpressure, gateway support and client error recovery.
Explanation
Correct Answer
B:Inspect API key scope, authorization headers, expiry/revocation, secret storage and server logs. Authentication is an API boundary enforced by the server, not by the wording of a model system prompt. The appropriate response is: Send correctly scoped API credentials through protected configuration, rotate them safely and distinguish credential failures from prompt or model failures. Situation: An incident playbook accidentally logs full authorization headers during a failed integration call.
Incorrect Answers
A:Inspect input token counts, prompt structure, tool-result sizes, max_tokens and truncation events. This evidence is useful for Token accounting and context capacity but would not isolate the primary failure in this scenario. The decisive check is: Inspect API key scope, authorization headers, expiry/revocation, secret storage and server logs. Situation: An incident playbook accidentally logs full authorization headers during a failed integration call.
C:Inspect item independence, batch identifiers, completion deadlines, failed records and total cost. This evidence is useful for Batch scheduling and unit economics but would not isolate the primary failure in this scenario. The decisive check is: Inspect API key scope, authorization headers, expiry/revocation, secret storage and server logs. Situation: An incident playbook accidentally logs full authorization headers during a failed integration call.
D:Inspect desired interaction cadence, connection ownership, backpressure, gateway support and client error recovery. This evidence is useful for Websocket versus request-response interaction but would not isolate the primary failure in this scenario. The decisive check is: Inspect API key scope, authorization headers, expiry/revocation, secret storage and server logs. Situation: An incident playbook accidentally logs full authorization headers during a failed integration call.
Question 588
A simple sentiment classifier enables maximum effort and misses its response-time target. Which development or architectural response BEST addresses the primary requirement?
- Configure connection and read timeouts, retry budgets and cancellation so slow models and broken connections do not occupy server workers forever.
- Choose request-response or streaming HTTP for supported Claude calls and use WebSockets only where the surrounding application genuinely needs bidirectional transport.
- Use clear zero-shot instructions for simple tasks and representative few-shot examples when they materially reduce ambiguous output patterns.
- Select supported thinking or effort settings according to task complexity, latency and available token budgets; do not assume all models accept identical options.
Explanation
Correct Answer
D:Select supported thinking or effort settings according to task complexity, latency and available token budgets; do not assume all models accept identical options. Reasoning effort is a resource and compatibility choice; increasing it is not a substitute for external validation. Verify the prerequisites with: Inspect model capabilities, effort options, output usage, latency budgets and request-validation errors. Situation: A simple sentiment classifier enables maximum effort and misses its response-time target.
Incorrect Answers
A:Configure connection and read timeouts, retry budgets and cancellation so slow models and broken connections do not occupy server workers forever. This response is designed for Request timeouts and network failure discipline; it is not the controlling fix in the situation. Network reliability must be engineered around the API; a slow response is not proof that the model is ignoring instructions. Here the targeted response is: Select supported thinking or effort settings according to task complexity, latency and available token budgets; do not assume all models accept identical options. Situation: A simple sentiment classifier enables maximum effort and misses its response-time target.
B:Choose request-response or streaming HTTP for supported Claude calls and use WebSockets only where the surrounding application genuinely needs bidirectional transport. This response is designed for Websocket versus request-response interaction; it is not the controlling fix in the situation. WebSocket is a general networking mechanism, not a guarantee that a specific model endpoint offers native WebSocket semantics. Here the targeted response is: Select supported thinking or effort settings according to task complexity, latency and available token budgets; do not assume all models accept identical options. Situation: A simple sentiment classifier enables maximum effort and misses its response-time target.
C:Use clear zero-shot instructions for simple tasks and representative few-shot examples when they materially reduce ambiguous output patterns. This response is designed for Zero-shot versus few-shot task instructions; it is not the controlling fix in the situation. Examples steer output behavior but can also overfit and consume context; they must match real task variance. Here the targeted response is: Select supported thinking or effort settings according to task complexity, latency and available token budgets; do not assume all models accept identical options. Situation: A simple sentiment classifier enables maximum effort and misses its response-time target.
Question 589
A maintenance agent identifies obsolete database rows and proposes an automatic purge during incident response. Which development or architectural response BEST addresses the primary requirement?
- Implement an application-controlled message/tool loop that checks stop_reason, executes only requested permitted tools, appends tool_result messages and continues until a valid terminal state.
- Allow an agent to gather and propose reversible actions, but require human authorization before irreversible payments, data deletion, or permission changes.
- Persist task-relevant state in a bounded structured store and compact history with provenance while avoiding unreviewed memory of secrets or arbitrary tool output.
- Choose a self-hosted or managed agent runtime based on residency, network access, audit obligations, deployment operations and integration capabilities.
Explanation
Correct Answer
B:Allow an agent to gather and propose reversible actions, but require human authorization before irreversible payments, data deletion, or permission changes. Model confidence is not authorization; human approval and server-side policy gates are distinct controls. Verify the prerequisites with: Inspect action reversibility, policy impact, approval identity, authorized tool scope, and rollback feasibility. Situation: A maintenance agent identifies obsolete database rows and proposes an automatic purge during incident response.
Incorrect Answers
A:Implement an application-controlled message/tool loop that checks stop_reason, executes only requested permitted tools, appends tool_result messages and continues until a valid terminal state. This response is designed for Custom agent loop and stop reason handling; it is not the controlling fix in the situation. A tool-use response is not a completed user answer; forgetting to return tool results causes stalled or malformed continuations. Here the targeted response is: Allow an agent to gather and propose reversible actions, but require human authorization before irreversible payments, data deletion, or permission changes. Situation: A maintenance agent identifies obsolete database rows and proposes an automatic purge during incident response.
C:Persist task-relevant state in a bounded structured store and compact history with provenance while avoiding unreviewed memory of secrets or arbitrary tool output. This response is designed for Agent long-term memory and compaction; it is not the controlling fix in the situation. A context window is a limited working buffer, not an unlimited permanent memory store; compact summaries require fidelity checks. Here the targeted response is: Allow an agent to gather and propose reversible actions, but require human authorization before irreversible payments, data deletion, or permission changes. Situation: A maintenance agent identifies obsolete database rows and proposes an automatic purge during incident response.
D:Choose a self-hosted or managed agent runtime based on residency, network access, audit obligations, deployment operations and integration capabilities. This response is designed for Self-hosted versus managed agent execution; it is not the controlling fix in the situation. Managed runtime convenience does not eliminate architecture constraints; self-hosting adds infrastructure and security responsibilities. Here the targeted response is: Allow an agent to gather and propose reversible actions, but require human authorization before irreversible payments, data deletion, or permission changes. Situation: A maintenance agent identifies obsolete database rows and proposes an automatic purge during incident response.
Question 590
A valid API response contains the right facts but an application mapper drops a nested field. Which observed result BEST demonstrates the requirement has been satisfied?
- The identified defect is corrected at the responsible layer and a regression test proves the specific symptom is resolved.
- A release passes defined quality thresholds across ordinary, edge and adversarial inputs, with known false positives documented.
- A fresh workspace installs the same supported workflow without unexpected permissions or missing resources.
- Malformed payloads are rejected or repaired through a controlled path, never silently interpreted as trustworthy records.
Explanation
Correct Answer
A:The identified defect is corrected at the responsible layer and a regression test proves the specific symptom is resolved. Repeated prompt rewrites cannot fix a 401, invalid JSON tool input or failed external service transaction. Situation: A valid API response contains the right facts but an application mapper drops a nested field.
Incorrect Answers
B:A release passes defined quality thresholds across ordinary, edge and adversarial inputs, with known false positives documented. This result tests Eval fixture design and regression gates, not the requirement demonstrated by this case. The relevant acceptance condition is: The identified defect is corrected at the responsible layer and a regression test proves the specific symptom is resolved. Situation: A valid API response contains the right facts but an application mapper drops a nested field.
C:A fresh workspace installs the same supported workflow without unexpected permissions or missing resources. This result tests Reusable plugin and skill dependency packaging, not the requirement demonstrated by this case. The relevant acceptance condition is: The identified defect is corrected at the responsible layer and a regression test proves the specific symptom is resolved. Situation: A valid API response contains the right facts but an application mapper drops a nested field.
D:Malformed payloads are rejected or repaired through a controlled path, never silently interpreted as trustworthy records. This result tests JSON contract and defensive parsing, not the requirement demonstrated by this case. The relevant acceptance condition is: The identified defect is corrected at the responsible layer and a regression test proves the specific symptom is resolved. Situation: A valid API response contains the right facts but an application mapper drops a nested field.