Anthropic CCDV-F Practice Test 66
Question 650
A streaming response stops at max_tokens midway through a structured result and the controller accepts it. Which observed result BEST demonstrates the requirement has been satisfied?
- Outputs meet task rules across repeated trials, and strict fields are validated despite generation variability.
- Requests remain within supported limits and critical instructions survive long sessions without silent truncation.
- Complex reasoning receives sufficient resources while simple classification remains responsive within supported model contracts.
- A runaway session stops before exceeding its authorized budget and sends an actionable alert.
Explanation
Correct Answer
B:Requests remain within supported limits and critical instructions survive long sessions without silent truncation. Context windows and output budgets are finite and tokenization differs from character length; increasing text does not guarantee a better answer. Situation: A streaming response stops at max_tokens midway through a structured result and the controller accepts it.
Incorrect Answers
A:Outputs meet task rules across repeated trials, and strict fields are validated despite generation variability. This result tests Sampling and nondeterministic output testing, not the requirement demonstrated by this case. The relevant acceptance condition is: Requests remain within supported limits and critical instructions survive long sessions without silent truncation. Situation: A streaming response stops at max_tokens midway through a structured result and the controller accepts it.
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: Requests remain within supported limits and critical instructions survive long sessions without silent truncation. Situation: A streaming response stops at max_tokens midway through a structured result and the controller accepts it.
D:A runaway session stops before exceeding its authorized budget and sends an actionable alert. This result tests Usage guardrails and spend alerts, not the requirement demonstrated by this case. The relevant acceptance condition is: Requests remain within supported limits and critical instructions survive long sessions without silent truncation. Situation: A streaming response stops at max_tokens midway through a structured result and the controller accepts it.
Question 651
A TypeScript handler forgets to await an LLM promise and responds to clients with an unresolved object. Which observed result BEST demonstrates the requirement has been satisfied?
- Transient failures recover without duplicating stateful writes; permanent errors remain visible and actionable.
- Development commands work within the expected scope while dangerous writes remain blocked until approved.
- Concurrent workloads complete within capacity limits and preserve output-to-input mapping under varying latencies.
- The application preserves intended behavior across supported providers or reports an unsupported feature explicitly.
Explanation
Correct Answer
C:Concurrent workloads complete within capacity limits and preserve output-to-input mapping under varying latencies. Concurrency improves throughput only when external quotas and task dependencies are respected. Situation: A TypeScript handler forgets to await an LLM promise and responds to clients with an unresolved object.
Incorrect Answers
A:Transient failures recover without duplicating stateful writes; permanent errors remain visible and actionable. This result tests REST status and idempotent retries, not the requirement demonstrated by this case. The relevant acceptance condition is: Concurrent workloads complete within capacity limits and preserve output-to-input mapping under varying latencies. Situation: A TypeScript handler forgets to await an LLM promise and responds to clients with an unresolved object.
B:Development commands work within the expected scope while dangerous writes remain blocked until approved. This result tests Environment and permission settings.json controls, not the requirement demonstrated by this case. The relevant acceptance condition is: Concurrent workloads complete within capacity limits and preserve output-to-input mapping under varying latencies. Situation: A TypeScript handler forgets to await an LLM promise and responds to clients with an unresolved object.
D:The application preserves intended behavior across supported providers or reports an unsupported feature explicitly. This result tests Multi-provider boundary and API compatibility, not the requirement demonstrated by this case. The relevant acceptance condition is: Concurrent workloads complete within capacity limits and preserve output-to-input mapping under varying latencies. Situation: A TypeScript handler forgets to await an LLM promise and responds to clients with an unresolved object.
Question 652
An email body requests that the assistant ignore account isolation and retrieve another customer's invoices. Which development or architectural response BEST addresses the primary requirement?
- Keep core constraints stable across adversarial roleplay or quoted instructions, and validate allowed tool actions regardless of persuasive model output.
- Minimize personal data sent to a model, redact unnecessary identifiers and verify outputs do not expose restricted user information.
- Treat documents, search snippets and tool results as lower-trust content and enforce tool permissions outside the model prompt.
- Combine model-level safety instructions with strict server-side authorization, network restrictions, auditing and narrowly scoped action policies.
Explanation
Correct Answer
C:Treat documents, search snippets and tool results as lower-trust content and enforce tool permissions outside the model prompt. Prompt injection is a trust-boundary failure when untrusted material is promoted into controlling instructions. Verify the prerequisites with: Inspect source provenance, attempted instruction overrides, requested actions, tool grants and policy audit outcomes. Situation: An email body requests that the assistant ignore account isolation and retrieve another customer's invoices.
Incorrect Answers
A:Keep core constraints stable across adversarial roleplay or quoted instructions, and validate allowed tool actions regardless of persuasive model output. This response is designed for Jailbreak and untrusted user instruction handling; it is not the controlling fix in the situation. Adversarial instructions can exploit prompt interpretation; critical side effects must still be checked by code. Here the targeted response is: Treat documents, search snippets and tool results as lower-trust content and enforce tool permissions outside the model prompt. Situation: An email body requests that the assistant ignore account isolation and retrieve another customer's invoices.
B: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: Treat documents, search snippets and tool results as lower-trust content and enforce tool permissions outside the model prompt. Situation: An email body requests that the assistant ignore account isolation and retrieve another customer's invoices.
D:Combine model-level safety instructions with strict server-side authorization, network restrictions, auditing and narrowly scoped action policies. This response is designed for Defense-in-depth guardrails around agent tools; it is not the controlling fix in the situation. One guardrail cannot cover all failure modes; permission checks must remain effective even after prompt compromise. Here the targeted response is: Treat documents, search snippets and tool results as lower-trust content and enforce tool permissions outside the model prompt. Situation: An email body requests that the assistant ignore account isolation and retrieve another customer's invoices.
Question 653
A multilingual output format needs one carefully checked example to clarify an unusual required field. Which TWO complementary actions provide an appropriate solution and the evidence needed to verify it? Select TWO.
- Inspect error cases, example coverage, instruction conflicts and token overhead.
- The application selects only supported features and gracefully rejects incompatible combinations.
- Inspect response usage counters, cache creation/read metrics, prefix consistency and workload volume.
- 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.
- Use clear zero-shot instructions for simple tasks and representative few-shot examples when they materially reduce ambiguous output patterns.
Explanation
Correct Answers
A:Inspect error cases, example coverage, instruction conflicts and token overhead. Examples steer output behavior but can also overfit and consume context; they must match real task variance. The appropriate response is: Use clear zero-shot instructions for simple tasks and representative few-shot examples when they materially reduce ambiguous output patterns. Situation: A multilingual output format needs one carefully checked example to clarify an unusual required field.
E:Use clear zero-shot instructions for simple tasks and representative few-shot examples when they materially reduce ambiguous output patterns. Examples steer output behavior but can also overfit and consume context; they must match real task variance. Verify the prerequisites with: Inspect error cases, example coverage, instruction conflicts and token overhead. Situation: A multilingual output format needs one carefully checked example to clarify an unusual required field.
Incorrect Answers
B:The application selects only supported features and gracefully rejects incompatible combinations. This step may apply to Client library and provider compatibility but is not one of the two required complementary decisions. The relevant pair is: Use clear zero-shot instructions for simple tasks and representative few-shot examples when they materially reduce ambiguous output patterns. and Inspect error cases, example coverage, instruction conflicts and token overhead. Situation: A multilingual output format needs one carefully checked example to clarify an unusual required field.
C:Inspect response usage counters, cache creation/read metrics, prefix consistency and workload volume. This step may apply to Prompt caching cost attribution but is not one of the two required complementary decisions. The relevant pair is: Use clear zero-shot instructions for simple tasks and representative few-shot examples when they materially reduce ambiguous output patterns. and Inspect error cases, example coverage, instruction conflicts and token overhead. Situation: A multilingual output format needs one carefully checked example to clarify an unusual required field.
D: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. This step may apply to SDK versus raw REST transport but is not one of the two required complementary decisions. The relevant pair is: Use clear zero-shot instructions for simple tasks and representative few-shot examples when they materially reduce ambiguous output patterns. and Inspect error cases, example coverage, instruction conflicts and token overhead. Situation: A multilingual output format needs one carefully checked example to clarify an unusual required field.
Question 654
An application maintains a persistent browser socket for chat events but forwards each model call through supported HTTP API requests. Which observed result BEST demonstrates the requirement has been satisfied?
- Complex reasoning receives sufficient resources while simple classification remains responsive within supported model contracts.
- Calls preserve the same intentional API semantics and failures remain diagnosable regardless of transport wrapper.
- Requests remain within supported limits and critical instructions survive long sessions without silent truncation.
- The implementation uses a supported transport and handles disconnects without claiming unavailable API methods exist.
Explanation
Correct Answer
D:The implementation uses a supported transport and handles disconnects without claiming unavailable API methods exist. WebSocket is a general networking mechanism, not a guarantee that a specific model endpoint offers native WebSocket semantics. Situation: An application maintains a persistent browser socket for chat events but forwards each model call through supported HTTP API requests.
Incorrect Answers
A: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: The implementation uses a supported transport and handles disconnects without claiming unavailable API methods exist. Situation: An application maintains a persistent browser socket for chat events but forwards each model call through supported HTTP API requests.
B:Calls preserve the same intentional API semantics and failures remain diagnosable regardless of transport wrapper. This result tests SDK versus raw REST transport, not the requirement demonstrated by this case. The relevant acceptance condition is: The implementation uses a supported transport and handles disconnects without claiming unavailable API methods exist. Situation: An application maintains a persistent browser socket for chat events but forwards each model call through supported HTTP API requests.
C:Requests remain within supported limits and critical instructions survive long sessions without silent truncation. This result tests Token accounting and context capacity, not the requirement demonstrated by this case. The relevant acceptance condition is: The implementation uses a supported transport and handles disconnects without claiming unavailable API methods exist. Situation: An application maintains a persistent browser socket for chat events but forwards each model call through supported HTTP API requests.
Question 655
A simple sentiment classifier enables maximum effort and misses its response-time target. Which observed result BEST demonstrates the requirement has been satisfied?
- Authorized requests succeed after rotation and revoked keys no longer work, without exposing credentials in traces.
- Failed calls terminate predictably or recover through bounded retries while external side effects remain consistent.
- Complex reasoning receives sufficient resources while simple classification remains responsive within supported model contracts.
- A version migration reaches required behavior gates or rolls back with known cause and traceable deployment state.
Explanation
Correct Answer
C:Complex reasoning receives sufficient resources while simple classification remains responsive within supported model contracts. Reasoning effort is a resource and compatibility choice; increasing it is not a substitute for external validation. Situation: A simple sentiment classifier enables maximum effort and misses its response-time target.
Incorrect Answers
A:Authorized requests succeed after rotation and revoked keys no longer work, without exposing credentials in traces. This result tests Authentication headers and secret rotation, not the requirement demonstrated by this case. The relevant acceptance condition is: Complex reasoning receives sufficient resources while simple classification remains responsive within supported model contracts. Situation: A simple sentiment classifier enables maximum effort and misses its response-time target.
B: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: Complex reasoning receives sufficient resources while simple classification remains responsive within supported model contracts. Situation: A simple sentiment classifier enables maximum effort and misses its response-time target.
D:A version migration reaches required behavior gates or rolls back with known cause and traceable deployment state. This result tests Version migration and breaking-behavior tests, not the requirement demonstrated by this case. The relevant acceptance condition is: Complex reasoning receives sufficient resources while simple classification remains responsive within supported model contracts. Situation: A simple sentiment classifier enables maximum effort and misses its response-time target.
Question 656
A TypeScript team needs cancellation and event replay yet its selected agent framework hides intermediate state transitions. What evidence or diagnostic detail should the engineer inspect FIRST?
- Inspect hook event type, exit codes, execution order, failure handling and independent policy enforcement.
- Inspect task variability, allowed actions, branch conditions, review obligations, and historical exception rates.
- Inspect durable state, node transitions, error propagation, testability and runtime coupling.
- Inspect step variability, dependency graph, tool side effects, missing-information branches and evaluation outcomes.
Explanation
Correct Answer
C:Inspect durable state, node transitions, error propagation, testability and runtime coupling. Framework selection should follow control-flow and lifecycle requirements; a named framework does not inherently ensure safety or correctness. The appropriate response is: Evaluate Strands, LangGraph or PydanticAI based on state semantics, async execution, graph control and deployment needs, rather than picking a framework by popularity. Situation: A TypeScript team needs cancellation and event replay yet its selected agent framework hides intermediate state transitions.
Incorrect Answers
A:Inspect hook event type, exit codes, execution order, failure handling and independent policy enforcement. This evidence is useful for Hooks for non-model lifecycle actions but would not isolate the primary failure in this scenario. The decisive check is: Inspect durable state, node transitions, error propagation, testability and runtime coupling. Situation: A TypeScript team needs cancellation and event replay yet its selected agent framework hides intermediate state transitions.
B:Inspect task variability, allowed actions, branch conditions, review obligations, and historical exception rates. This evidence is useful for Deterministic workflow versus autonomous agent but would not isolate the primary failure in this scenario. The decisive check is: Inspect durable state, node transitions, error propagation, testability and runtime coupling. Situation: A TypeScript team needs cancellation and event replay yet its selected agent framework hides intermediate state transitions.
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 durable state, node transitions, error propagation, testability and runtime coupling. Situation: A TypeScript team needs cancellation and event replay yet its selected agent framework hides intermediate state transitions.
Question 657
A coding agent retrieves a build status through MCP, then claims deployment succeeded without checking the pipeline result. Which development or architectural response BEST addresses the primary requirement?
- Select supported MCP transport according to locality and deployment, and protect remote connections with identity, access control and secret handling.
- Package a repeatable procedure with clear triggers, inputs, supporting resources and verification steps rather than pasting the same long instructions into every chat.
- Prefer a supported built-in capability when it satisfies requirements, and create a custom tool only for specific missing data or operations with clear authorization.
- Give an agent only the MCP capabilities needed for each task, distinguish retrieval from changes and verify all external outcomes.
Explanation
Correct Answer
D:Give an agent only the MCP capabilities needed for each task, distinguish retrieval from changes and verify all external outcomes. Orchestration may select tools dynamically but service-side authorization and result verification remain nondelegable. Verify the prerequisites with: Inspect MCP catalog, active connection scopes, user permissions, tool results and source attribution. Situation: A coding agent retrieves a build status through MCP, then claims deployment succeeded without checking the pipeline result.
Incorrect Answers
A:Select supported MCP transport according to locality and deployment, and protect remote connections with identity, access control and secret handling. This response is designed for MCP stdio versus network transport and authentication; it is not the controlling fix in the situation. Transport choice affects authentication and operational risk; connecting successfully is not evidence of tenant isolation. Here the targeted response is: Give an agent only the MCP capabilities needed for each task, distinguish retrieval from changes and verify all external outcomes. Situation: A coding agent retrieves a build status through MCP, then claims deployment succeeded without checking the pipeline result.
B:Package a repeatable procedure with clear triggers, inputs, supporting resources and verification steps rather than pasting the same long instructions into every chat. This response is designed for Skills as reusable operational procedures; it is not the controlling fix in the situation. Skills encode process knowledge; they do not themselves grant runtime permission for privileged actions. Here the targeted response is: Give an agent only the MCP capabilities needed for each task, distinguish retrieval from changes and verify all external outcomes. Situation: A coding agent retrieves a build status through MCP, then claims deployment succeeded without checking the pipeline result.
C:Prefer a supported built-in capability when it satisfies requirements, and create a custom tool only for specific missing data or operations with clear authorization. This response is designed for Built-in versus custom tool selection; it is not the controlling fix in the situation. Each custom integration adds maintenance and trust boundaries; novelty is not an architectural benefit. Here the targeted response is: Give an agent only the MCP capabilities needed for each task, distinguish retrieval from changes and verify all external outcomes. Situation: A coding agent retrieves a build status through MCP, then claims deployment succeeded without checking the pipeline result.
Question 658
A CRM automation receives a severity label outside the approved enumeration and silently stores it. Which TWO complementary actions provide an appropriate solution and the evidence needed to verify it? Select TWO.
- Prioritize instructions and current evidence, remove redundant tool output and summarize low-value history before it crowds out task-critical facts.
- Inspect output structure, required types, stop reason, validator errors and retried artifacts.
- Parent responses cite the correct evidence from each subtask without leaking unrelated data across assignments.
- Inspect sample diversity, conflicting demonstrations, token cost and evaluation changes.
- Parse and validate model output against a schema and use a bounded repair or user-visible failure path when it is malformed or incomplete.
Explanation
Correct Answers
B: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 CRM automation receives a severity label outside the approved enumeration and silently stores it.
E: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 CRM automation receives a severity label outside the approved enumeration and silently stores it.
Incorrect Answers
A:Prioritize instructions and current evidence, remove redundant tool output and summarize low-value history before it crowds out task-critical facts. This step may apply to Context-window prioritization and tool-output pruning 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 CRM automation receives a severity label outside the approved enumeration and silently stores it.
C:Parent responses cite the correct evidence from each subtask without leaking unrelated data across assignments. This step may apply to Subagent context partitioning and evidence handoff 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 CRM automation receives a severity label outside the approved enumeration and silently stores it.
D:Inspect sample diversity, conflicting demonstrations, token cost and evaluation changes. This step may apply to Few-shot demonstrations and edge case coverage 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 CRM automation receives a severity label outside the approved enumeration and silently stores it.
Question 659
A backend service needs to process customer tickets automatically with a request/response API. What evidence or diagnostic detail should the engineer inspect FIRST?
- Inspect data classifications, regional restrictions, throughput forecasts, connectivity and approval records.
- Inspect provider-specific model IDs, version availability, request schemas, rate quotas and billing identity.
- Inspect module boundaries, unit-test seams, shared mutable state, transport mocks and error translation.
- Inspect required automation, tool access, user interaction, authentication and supported feature set of each surface.
Explanation
Correct Answer
D:Inspect required automation, tool access, user interaction, authentication and supported feature set of each surface. Different Claude products have different execution contracts; a workflow developed in a chat window cannot be copied unchanged into a server SDK. The appropriate response is: Choose Claude API, Claude Code, Desktop or claude.ai surfaces based on whether a workload needs programmatic calls, interactive authoring, local repository tools or user-facing chat. Situation: A backend service needs to process customer tickets automatically with a request/response API.
Incorrect Answers
A:Inspect data classifications, regional restrictions, throughput forecasts, connectivity and approval records. This evidence is useful for Infrastructure and data residency discovery but would not isolate the primary failure in this scenario. The decisive check is: Inspect required automation, tool access, user interaction, authentication and supported feature set of each surface. Situation: A backend service needs to process customer tickets automatically with a request/response API.
B:Inspect provider-specific model IDs, version availability, request schemas, rate quotas and billing identity. This evidence is useful for Multi-provider boundary and API compatibility but would not isolate the primary failure in this scenario. The decisive check is: Inspect required automation, tool access, user interaction, authentication and supported feature set of each surface. Situation: A backend service needs to process customer tickets automatically with a request/response API.
C:Inspect module boundaries, unit-test seams, shared mutable state, transport mocks and error translation. This evidence is useful for Refactoring and separation of concerns but would not isolate the primary failure in this scenario. The decisive check is: Inspect required automation, tool access, user interaction, authentication and supported feature set of each surface. Situation: A backend service needs to process customer tickets automatically with a request/response API.
Question 660
A Python service requires typed model outputs and validation but adds a custom agent framework without testing failures. Which development or architectural response BEST addresses the primary requirement?
- Build an Agent SDK workflow using explicitly authorized tools, controlled session state and inspected execution events rather than treating the SDK as automatic policy enforcement.
- Persist task-relevant state in a bounded structured store and compact history with provenance while avoiding unreviewed memory of secrets or arbitrary tool output.
- Allow an agent to gather and propose reversible actions, but require human authorization before irreversible payments, data deletion, or permission changes.
- Evaluate Strands, LangGraph or PydanticAI based on state semantics, async execution, graph control and deployment needs, rather than picking a framework by popularity.
Explanation
Correct Answer
D:Evaluate Strands, LangGraph or PydanticAI based on state semantics, async execution, graph control and deployment needs, rather than picking a framework by popularity. Framework selection should follow control-flow and lifecycle requirements; a named framework does not inherently ensure safety or correctness. Verify the prerequisites with: Inspect durable state, node transitions, error propagation, testability and runtime coupling. Situation: A Python service requires typed model outputs and validation but adds a custom agent framework without testing failures.
Incorrect Answers
A:Build an Agent SDK workflow using explicitly authorized tools, controlled session state and inspected execution events rather than treating the SDK as automatic policy enforcement. This response is designed for Claude Agent SDK session and tool boundaries; it is not the controlling fix in the situation. An Agent SDK manages orchestration plumbing but developers still own tool authorization, state scope, and failure handling. Here the targeted response is: Evaluate Strands, LangGraph or PydanticAI based on state semantics, async execution, graph control and deployment needs, rather than picking a framework by popularity. Situation: A Python service requires typed model outputs and validation but adds a custom agent framework without testing failures.
B: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: Evaluate Strands, LangGraph or PydanticAI based on state semantics, async execution, graph control and deployment needs, rather than picking a framework by popularity. Situation: A Python service requires typed model outputs and validation but adds a custom agent framework without testing failures.
C:Allow an agent to gather and propose reversible actions, but require human authorization before irreversible payments, data deletion, or permission changes. This response is designed for Agent autonomy and human approval boundary; it is not the controlling fix in the situation. Model confidence is not authorization; human approval and server-side policy gates are distinct controls. Here the targeted response is: Evaluate Strands, LangGraph or PydanticAI based on state semantics, async execution, graph control and deployment needs, rather than picking a framework by popularity. Situation: A Python service requires typed model outputs and validation but adds a custom agent framework without testing failures.