Anthropic CCDV-F Practice Test 63
Question 620
A JSON answer is cut off at max_tokens and an importer saves it as an empty record. Which TWO complementary actions provide an appropriate solution and the evidence needed to verify it? Select TWO.
- Parse and validate model output against a schema and use a bounded repair or user-visible failure path when it is malformed or incomplete.
- Distinguish source-supported statements from unsupported model inference, and avoid treating fluent confident prose as proof of correctness.
- Inspect output structure, required types, stop reason, validator errors and retried artifacts.
- Inspect document version, access rights, retrieval scores, timestamps and underlying source span.
- Data remains data, and the response conforms to the required format without hidden instructions escaping their boundary.
Explanation
Correct Answers
A:Parse and validate model output against a schema and use a bounded repair or user-visible failure path when it is malformed or incomplete. A valid-looking model response can contain missing required fields, hallucinated enum values or truncated JSON. Verify the prerequisites with: Inspect output structure, required types, stop reason, validator errors and retried artifacts. Situation: A JSON answer is cut off at max_tokens and an importer saves it as an empty record.
C:Inspect output structure, required types, stop reason, validator errors and retried artifacts. A valid-looking model response can contain missing required fields, hallucinated enum values or truncated JSON. The appropriate response is: Parse and validate model output against a schema and use a bounded repair or user-visible failure path when it is malformed or incomplete. Situation: A JSON answer is cut off at max_tokens and an importer saves it as an empty record.
Incorrect Answers
B:Distinguish source-supported statements from unsupported model inference, and avoid treating fluent confident prose as proof of correctness. This step may apply to Evidence skepticism and uncertainty handling but is not one of the two required complementary decisions. The relevant pair is: Parse and validate model output against a schema and use a bounded repair or user-visible failure path when it is malformed or incomplete. and Inspect output structure, required types, stop reason, validator errors and retried artifacts. Situation: A JSON answer is cut off at max_tokens and an importer saves it as an empty record.
D:Inspect document version, access rights, retrieval scores, timestamps and underlying source span. This step may apply to Retrieval and source freshness discipline but is not one of the two required complementary decisions. The relevant pair is: Parse and validate model output against a schema and use a bounded repair or user-visible failure path when it is malformed or incomplete. and Inspect output structure, required types, stop reason, validator errors and retried artifacts. Situation: A JSON answer is cut off at max_tokens and an importer saves it as an empty record.
E:Data remains data, and the response conforms to the required format without hidden instructions escaping their boundary. This step may apply to Structured constraints and XML-style delimiting but is not one of the two required complementary decisions. The relevant pair is: Parse and validate model output against a schema and use a bounded repair or user-visible failure path when it is malformed or incomplete. and Inspect output structure, required types, stop reason, validator errors and retried artifacts. Situation: A JSON answer is cut off at max_tokens and an importer saves it as an empty record.
Question 621
A document pipeline needs free-form investigation only for unmatched vendor clauses; all ordinary matches follow a fixed rule. What evidence or diagnostic detail should the engineer inspect FIRST?
- Inspect durable state, node transitions, error propagation, testability and runtime coupling.
- Inspect response stop_reason, tool_use identifiers, tool-result pairing, input schemas, and retry counters.
- Inspect task variability, allowed actions, branch conditions, review obligations, and historical exception rates.
- Inspect step variability, dependency graph, tool side effects, missing-information branches and evaluation outcomes.
Explanation
Correct Answer
C:Inspect task variability, allowed actions, branch conditions, review obligations, and historical exception rates. An agent incurs unpredictable tool trajectories and costs; workflow orchestration remains preferable when control flow is specified in advance. The appropriate response is: Use a fixed, auditable workflow when steps and branching rules are known; select an agent only when the next action genuinely depends on open-ended model judgment. Situation: A document pipeline needs free-form investigation only for unmatched vendor clauses; all ordinary matches follow a fixed rule.
Incorrect Answers
A:Inspect durable state, node transitions, error propagation, testability and runtime coupling. This evidence is useful for Agent framework selection and abstraction leaks but would not isolate the primary failure in this scenario. The decisive check is: Inspect task variability, allowed actions, branch conditions, review obligations, and historical exception rates. Situation: A document pipeline needs free-form investigation only for unmatched vendor clauses; all ordinary matches follow a fixed rule.
B:Inspect response stop_reason, tool_use identifiers, tool-result pairing, input schemas, and retry counters. This evidence is useful for Custom agent loop and stop reason handling but would not isolate the primary failure in this scenario. The decisive check is: Inspect task variability, allowed actions, branch conditions, review obligations, and historical exception rates. Situation: A document pipeline needs free-form investigation only for unmatched vendor clauses; all ordinary matches follow a fixed rule.
D:Inspect step variability, dependency graph, tool side effects, missing-information branches and evaluation outcomes. This evidence is useful for Tool-use pattern versus fixed chain but would not isolate the primary failure in this scenario. The decisive check is: Inspect task variability, allowed actions, branch conditions, review obligations, and historical exception rates. Situation: A document pipeline needs free-form investigation only for unmatched vendor clauses; all ordinary matches follow a fixed rule.
Question 622
A browser-only demo ships a live Anthropic API key as a JavaScript constant. Which development or architectural response BEST addresses the primary requirement?
- Use scoped server-side credentials, approved secret stores and rotation with audit logging, never place production keys inside prompts or browser bundles.
- Register a deterministic pre-tool hook that denies forbidden commands and logs the attempted operation even if an agent requests it.
- Apply authenticated tenant identity and fine-grained resource permissions to every retrieval and tool action, including agent memory and MCP backends.
- Minimize personal data sent to a model, redact unnecessary identifiers and verify outputs do not expose restricted user information.
Explanation
Correct Answer
A:Use scoped server-side credentials, approved secret stores and rotation with audit logging, never place production keys inside prompts or browser bundles. A model cannot keep credentials safe if the application includes them in untrusted context or public client code. Verify the prerequisites with: Inspect credential location, granted scope, rotation status, access logs and accidental leakage. Situation: A browser-only demo ships a live Anthropic API key as a JavaScript constant.
Incorrect Answers
B:Register a deterministic pre-tool hook that denies forbidden commands and logs the attempted operation even if an agent requests it. This response is designed for Pre-tool hooks for destructive command interception; it is not the controlling fix in the situation. A hook must sit on the actual execution path and fail safely; a prompt saying do not delete is not equivalent. Here the targeted response is: Use scoped server-side credentials, approved secret stores and rotation with audit logging, never place production keys inside prompts or browser bundles. Situation: A browser-only demo ships a live Anthropic API key as a JavaScript constant.
C:Apply authenticated tenant identity and fine-grained resource permissions to every retrieval and tool action, including agent memory and MCP backends. This response is designed for Tenant identity and delegated resource authorization; it is not the controlling fix in the situation. Identity boundary enforcement belongs to the system of record; a model's assertion of access is insufficient. Here the targeted response is: Use scoped server-side credentials, approved secret stores and rotation with audit logging, never place production keys inside prompts or browser bundles. Situation: A browser-only demo ships a live Anthropic API key as a JavaScript constant.
D:Minimize personal data sent to a model, redact unnecessary identifiers and verify outputs do not expose restricted user information. This response is designed for PII minimization and output privacy; it is not the controlling fix in the situation. Privacy protections require data-flow controls and policy, not merely instructing the model to be discreet. Here the targeted response is: Use scoped server-side credentials, approved secret stores and rotation with audit logging, never place production keys inside prompts or browser bundles. Situation: A browser-only demo ships a live Anthropic API key as a JavaScript constant.
Question 623
A service buys large cache writes but repeats the prefix only once and reports unrealistic savings. Which TWO complementary actions provide an appropriate solution and the evidence needed to verify it? Select TWO.
- Model costs using input, output and cache-read/cache-write token accounting with the provider's documented pricing and observed usage.
- Set per-tenant quotas, output-token ceilings and alert thresholds, and couple them with bounded agent/tool iteration policy.
- Inspect response usage counters, cache creation/read metrics, prefix consistency and workload volume.
- Inspect desired interaction cadence, connection ownership, backpressure, gateway support and client error recovery.
- Complex reasoning receives sufficient resources while simple classification remains responsive within supported model contracts.
Explanation
Correct Answers
A:Model costs using input, output and cache-read/cache-write token accounting with the provider's documented pricing and observed usage. Cache economics depend on actual hits and token classes; multiplying all tokens by one flat price misstates spend. Verify the prerequisites with: Inspect response usage counters, cache creation/read metrics, prefix consistency and workload volume. Situation: A service buys large cache writes but repeats the prefix only once and reports unrealistic savings.
C:Inspect response usage counters, cache creation/read metrics, prefix consistency and workload volume. Cache economics depend on actual hits and token classes; multiplying all tokens by one flat price misstates spend. The appropriate response is: Model costs using input, output and cache-read/cache-write token accounting with the provider's documented pricing and observed usage. Situation: A service buys large cache writes but repeats the prefix only once and reports unrealistic savings.
Incorrect Answers
B:Set per-tenant quotas, output-token ceilings and alert thresholds, and couple them with bounded agent/tool iteration policy. This step may apply to Usage guardrails and spend alerts but is not one of the two required complementary decisions. The relevant pair is: Model costs using input, output and cache-read/cache-write token accounting with the provider's documented pricing and observed usage. and Inspect response usage counters, cache creation/read metrics, prefix consistency and workload volume. Situation: A service buys large cache writes but repeats the prefix only once and reports unrealistic savings.
D:Inspect desired interaction cadence, connection ownership, backpressure, gateway support and client error recovery. This step may apply to Websocket versus request-response interaction but is not one of the two required complementary decisions. The relevant pair is: Model costs using input, output and cache-read/cache-write token accounting with the provider's documented pricing and observed usage. and Inspect response usage counters, cache creation/read metrics, prefix consistency and workload volume. Situation: A service buys large cache writes but repeats the prefix only once and reports unrealistic savings.
E:Complex reasoning receives sufficient resources while simple classification remains responsive within supported model contracts. This step may apply to Extended and adaptive thinking tradeoffs but is not one of the two required complementary decisions. The relevant pair is: Model costs using input, output and cache-read/cache-write token accounting with the provider's documented pricing and observed usage. and Inspect response usage counters, cache creation/read metrics, prefix consistency and workload volume. Situation: A service buys large cache writes but repeats the prefix only once and reports unrealistic savings.
Question 624
A Python application upgrades SDK packages and changes error exception classes without adapting its handler. What evidence or diagnostic detail should the engineer inspect FIRST?
- Inspect API key scope, authorization headers, expiry/revocation, secret storage and server logs.
- Inspect usage anomalies, per-user consumption, tool call count and escalation approval.
- Inspect language runtime, SDK version, endpoint behavior, network middleware and response serialization.
- Inspect item independence, batch identifiers, completion deadlines, failed records and total cost.
Explanation
Correct Answer
C:Inspect language runtime, SDK version, endpoint behavior, network middleware and response serialization. SDKs wrap the underlying API; they do not eliminate rate limits, authentication or data-validation responsibilities. The appropriate response is: Use an official supported SDK when it reduces integration boilerplate, or direct REST when low-level request control is required, while retaining observable HTTP errors. Situation: A Python application upgrades SDK packages and changes error exception classes without adapting its handler.
Incorrect Answers
A:Inspect API key scope, authorization headers, expiry/revocation, secret storage and server logs. This evidence is useful for Authentication headers and secret rotation but would not isolate the primary failure in this scenario. The decisive check is: Inspect language runtime, SDK version, endpoint behavior, network middleware and response serialization. Situation: A Python application upgrades SDK packages and changes error exception classes without adapting its handler.
B:Inspect usage anomalies, per-user consumption, tool call count and escalation approval. This evidence is useful for Usage guardrails and spend alerts but would not isolate the primary failure in this scenario. The decisive check is: Inspect language runtime, SDK version, endpoint behavior, network middleware and response serialization. Situation: A Python application upgrades SDK packages and changes error exception classes without adapting its handler.
D: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 language runtime, SDK version, endpoint behavior, network middleware and response serialization. Situation: A Python application upgrades SDK packages and changes error exception classes without adapting its handler.
Question 625
A developer switches an MCP server version and a previously required schema field is renamed. Which observed result BEST demonstrates the requirement has been satisfied?
- Permitted reads complete normally while irreversible writes wait for or fail without authorization.
- Reusable capabilities upgrade without silently widening access or breaking the agent workflow.
- Temporary failures recover predictably and permanent failures are reported without silent duplicate external effects.
- The external operation runs exactly once under the correct user identity and its verified result feeds the next model turn.
Explanation
Correct Answer
B:Reusable capabilities upgrade without silently widening access or breaking the agent workflow. Tool extension decisions are distinct from prompt wording; operational ownership and version discipline are required. Situation: A developer switches an MCP server version and a previously required schema field is renamed.
Incorrect Answers
A:Permitted reads complete normally while irreversible writes wait for or fail without authorization. This result tests Tool approval and side-effect gating, not the requirement demonstrated by this case. The relevant acceptance condition is: Reusable capabilities upgrade without silently widening access or breaking the agent workflow. Situation: A developer switches an MCP server version and a previously required schema field is renamed.
C:Temporary failures recover predictably and permanent failures are reported without silent duplicate external effects. This result tests Tool timeout, exception and retry design, not the requirement demonstrated by this case. The relevant acceptance condition is: Reusable capabilities upgrade without silently widening access or breaking the agent workflow. Situation: A developer switches an MCP server version and a previously required schema field is renamed.
D:The external operation runs exactly once under the correct user identity and its verified result feeds the next model turn. This result tests Client-side and server-side tool execution, not the requirement demonstrated by this case. The relevant acceptance condition is: Reusable capabilities upgrade without silently widening access or breaking the agent workflow. Situation: A developer switches an MCP server version and a previously required schema field is renamed.
Question 626
A refactor moves input validation into an isolated function but accidentally bypasses it for streaming responses. What evidence or diagnostic detail should the engineer inspect FIRST?
- Inspect module boundaries, unit-test seams, shared mutable state, transport mocks and error translation.
- Inspect output schema fields, stop status, refusal indicators, validator errors and consumer expectations.
- Inspect stakeholders, sample requests, prohibited actions, service-level targets and failure examples.
- Inspect session keys, authorization on retrieval, cache namespaces, resource identifiers and expiration controls.
Explanation
Correct Answer
A:Inspect module boundaries, unit-test seams, shared mutable state, transport mocks and error translation. Modular boundaries make behavioral tests reliable and limit unintended effects from model-oriented code. The appropriate 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 refactor moves input validation into an isolated function but accidentally bypasses it for streaming responses.
Incorrect Answers
B:Inspect output schema fields, stop status, refusal indicators, validator errors and consumer expectations. This evidence is useful for Structured application output contract but would not isolate the primary failure in this scenario. The decisive check is: Inspect module boundaries, unit-test seams, shared mutable state, transport mocks and error translation. Situation: A refactor moves input validation into an isolated function but accidentally bypasses it for streaming responses.
C:Inspect stakeholders, sample requests, prohibited actions, service-level targets and failure examples. This evidence is useful for Business requirement to acceptance specification but would not isolate the primary failure in this scenario. The decisive check is: Inspect module boundaries, unit-test seams, shared mutable state, transport mocks and error translation. Situation: A refactor moves input validation into an isolated function but accidentally bypasses it for streaming responses.
D:Inspect session keys, authorization on retrieval, cache namespaces, resource identifiers and expiration controls. This evidence is useful for Session and user context isolation but would not isolate the primary failure in this scenario. The decisive check is: Inspect module boundaries, unit-test seams, shared mutable state, transport mocks and error translation. Situation: A refactor moves input validation into an isolated function but accidentally bypasses it for streaming responses.
Question 627
A platform team upgrades one runtime while leaving another service on an older SDK with incompatible tool schemas. Which TWO complementary actions provide an appropriate solution and the evidence needed to verify it? Select TWO.
- Route low-risk common work to an efficient model while escalating ambiguous or high-stakes cases using validated criteria and preserving context boundaries.
- Test language SDK features against supported model versions and provider deployments rather than assuming every helper is available everywhere.
- Inspect SDK changelog, provider adapter, model capability flags, API version and feature-gate failures.
- Outputs meet task rules across repeated trials, and strict fields are validated despite generation variability.
- Inspect model capabilities, effort options, output usage, latency budgets and request-validation errors.
Explanation
Correct Answers
B:Test language SDK features against supported model versions and provider deployments rather than assuming every helper is available everywhere. SDK convenience methods may lag or lead backend support, and provider-specific options can alter behavior. Verify the prerequisites with: Inspect SDK changelog, provider adapter, model capability flags, API version and feature-gate failures. Situation: A platform team upgrades one runtime while leaving another service on an older SDK with incompatible tool schemas.
C:Inspect SDK changelog, provider adapter, model capability flags, API version and feature-gate failures. SDK convenience methods may lag or lead backend support, and provider-specific options can alter behavior. The appropriate response is: Test language SDK features against supported model versions and provider deployments rather than assuming every helper is available everywhere. Situation: A platform team upgrades one runtime while leaving another service on an older SDK with incompatible tool schemas.
Incorrect Answers
A:Route low-risk common work to an efficient model while escalating ambiguous or high-stakes cases using validated criteria and preserving context boundaries. This step may apply to Tiered routing and escalation policies but is not one of the two required complementary decisions. The relevant pair is: Test language SDK features against supported model versions and provider deployments rather than assuming every helper is available everywhere. and Inspect SDK changelog, provider adapter, model capability flags, API version and feature-gate failures. Situation: A platform team upgrades one runtime while leaving another service on an older SDK with incompatible tool schemas.
D:Outputs meet task rules across repeated trials, and strict fields are validated despite generation variability. This step may apply to Sampling and nondeterministic output testing but is not one of the two required complementary decisions. The relevant pair is: Test language SDK features against supported model versions and provider deployments rather than assuming every helper is available everywhere. and Inspect SDK changelog, provider adapter, model capability flags, API version and feature-gate failures. Situation: A platform team upgrades one runtime while leaving another service on an older SDK with incompatible tool schemas.
E:Inspect model capabilities, effort options, output usage, latency budgets and request-validation errors. This step may apply to Extended and adaptive thinking tradeoffs but is not one of the two required complementary decisions. The relevant pair is: Test language SDK features against supported model versions and provider deployments rather than assuming every helper is available everywhere. and Inspect SDK changelog, provider adapter, model capability flags, API version and feature-gate failures. Situation: A platform team upgrades one runtime while leaving another service on an older SDK with incompatible tool schemas.
Question 628
A sales team wants automatic quote approval without specifying price limits or human exceptions. What evidence or diagnostic detail should the engineer inspect FIRST?
- Inspect stakeholders, sample requests, prohibited actions, service-level targets and failure examples.
- Inspect required automation, tool access, user interaction, authentication and supported feature set of each surface.
- Inspect stop_reason, response blocks, token budgets, tool call IDs and continuation policy.
- Inspect repository diffs, test reports, secrets scanning, dependency lockfiles and reviewer decisions.
Explanation
Correct Answer
A:Inspect stakeholders, sample requests, prohibited actions, service-level targets and failure examples. A vague request is not an implementable interface contract; define measurable outcomes and exceptions before choosing architecture. The appropriate response is: Translate a vague business request into inputs, outputs, permitted data, measurable acceptance criteria and nonfunctional constraints before building a Claude application. Situation: A sales team wants automatic quote approval without specifying price limits or human exceptions.
Incorrect Answers
B:Inspect required automation, tool access, user interaction, authentication and supported feature set of each surface. This evidence is useful for Deployment surface selection and capabilities but would not isolate the primary failure in this scenario. The decisive check is: Inspect stakeholders, sample requests, prohibited actions, service-level targets and failure examples. Situation: A sales team wants automatic quote approval without specifying price limits or human exceptions.
C:Inspect stop_reason, response blocks, token budgets, tool call IDs and continuation policy. This evidence is useful for Message stop reasons and continuation states but would not isolate the primary failure in this scenario. The decisive check is: Inspect stakeholders, sample requests, prohibited actions, service-level targets and failure examples. Situation: A sales team wants automatic quote approval without specifying price limits or human exceptions.
D:Inspect repository diffs, test reports, secrets scanning, dependency lockfiles and reviewer decisions. This evidence is useful for Version control and pull-request review but would not isolate the primary failure in this scenario. The decisive check is: Inspect stakeholders, sample requests, prohibited actions, service-level targets and failure examples. Situation: A sales team wants automatic quote approval without specifying price limits or human exceptions.
Question 629
A canary deployment changes one prompt variable and compares outcomes with the stable group. What evidence or diagnostic detail should the engineer inspect FIRST?
- Inspect manifest versions, dependency availability, plugin scopes, installation logs and upgrade notes.
- Inspect release config, model identifier, prompt revision, evaluation baseline, and rollback identifiers.
- Inspect image MIME types, resolution, source references, parser results and payload size limits.
- Inspect change scope, test coverage, baseline outputs, dependencies and release approvals.
Explanation
Correct Answer
B:Inspect release config, model identifier, prompt revision, evaluation baseline, and rollback identifiers. Model version shifts can affect outputs and tool decisions; reproducibility requires recording both code and prompt state. The appropriate response is: Pin model identifiers and version prompts in configuration with controlled rollout and evaluation rather than relying on mutable defaults. Situation: A canary deployment changes one prompt variable and compares outcomes with the stable group.
Incorrect Answers
A:Inspect manifest versions, dependency availability, plugin scopes, installation logs and upgrade notes. This evidence is useful for Reusable plugin and skill dependency packaging but would not isolate the primary failure in this scenario. The decisive check is: Inspect release config, model identifier, prompt revision, evaluation baseline, and rollback identifiers. Situation: A canary deployment changes one prompt variable and compares outcomes with the stable group.
C:Inspect image MIME types, resolution, source references, parser results and payload size limits. This evidence is useful for Vision and document input handling but would not isolate the primary failure in this scenario. The decisive check is: Inspect release config, model identifier, prompt revision, evaluation baseline, and rollback identifiers. Situation: A canary deployment changes one prompt variable and compares outcomes with the stable group.
D:Inspect change scope, test coverage, baseline outputs, dependencies and release approvals. This evidence is useful for Iterative delivery and change management but would not isolate the primary failure in this scenario. The decisive check is: Inspect release config, model identifier, prompt revision, evaluation baseline, and rollback identifiers. Situation: A canary deployment changes one prompt variable and compares outcomes with the stable group.
Question 630
A streaming response stops at max_tokens midway through a structured result and the controller accepts it. 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 item independence, batch identifiers, completion deadlines, failed records and total cost.
- Inspect benchmark outputs, latency histograms, model release identifiers and expected workload complexity.
- Inspect API key scope, authorization headers, expiry/revocation, secret storage and server logs.
Explanation
Correct Answer
A:Inspect input token counts, prompt structure, tool-result sizes, max_tokens and truncation events. Context windows and output budgets are finite and tokenization differs from character length; increasing text does not guarantee a better answer. The appropriate response is: Budget input, output, tool results and cached material as tokens rather than characters, and enforce context and output limits for the selected model. Situation: A streaming response stops at max_tokens midway through a structured result and the controller accepts it.
Incorrect Answers
B: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 input token counts, prompt structure, tool-result sizes, max_tokens and truncation events. Situation: A streaming response stops at max_tokens midway through a structured result and the controller accepts it.
C: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 input token counts, prompt structure, tool-result sizes, max_tokens and truncation events. Situation: A streaming response stops at max_tokens midway through a structured result and the controller accepts it.
D:Inspect API key scope, authorization headers, expiry/revocation, secret storage and server logs. This evidence is useful for Authentication headers and secret rotation but would not isolate the primary failure in this scenario. The decisive check is: Inspect input token counts, prompt structure, tool-result sizes, max_tokens and truncation events. Situation: A streaming response stops at max_tokens midway through a structured result and the controller accepts it.