Anthropic CCDV-F Practice Test 98
Question 970
An Azure deployment offers a different model version from a direct API tenant and tests reveal changed responses. Which observed result BEST demonstrates the requirement has been satisfied?
- Malformed payloads are rejected or repaired through a controlled path, never silently interpreted as trustworthy records.
- Concurrent workloads complete within capacity limits and preserve output-to-input mapping under varying latencies.
- The receiving service accepts only conforming validated objects, and failures remain explicit with trace identifiers.
- The application preserves intended behavior across supported providers or reports an unsupported feature explicitly.
Explanation
Correct Answer
D:The application preserves intended behavior across supported providers or reports an unsupported feature explicitly. Third-party hosts may expose Claude with provider-specific configuration; transport compatibility is not feature parity. Situation: An Azure deployment offers a different model version from a direct API tenant and tests reveal changed responses.
Incorrect Answers
A: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 application preserves intended behavior across supported providers or reports an unsupported feature explicitly. Situation: An Azure deployment offers a different model version from a direct API tenant and tests reveal changed responses.
B:Concurrent workloads complete within capacity limits and preserve output-to-input mapping under varying latencies. This result tests Async Python and TypeScript concurrency, not the requirement demonstrated by this case. The relevant acceptance condition is: The application preserves intended behavior across supported providers or reports an unsupported feature explicitly. Situation: An Azure deployment offers a different model version from a direct API tenant and tests reveal changed responses.
C:The receiving service accepts only conforming validated objects, and failures remain explicit with trace identifiers. This result tests Structured application output contract, not the requirement demonstrated by this case. The relevant acceptance condition is: The application preserves intended behavior across supported providers or reports an unsupported feature explicitly. Situation: An Azure deployment offers a different model version from a direct API tenant and tests reveal changed responses.
Question 971
A refactor moves input validation into an isolated function but accidentally bypasses it for streaming responses. Which observed result BEST demonstrates the requirement has been satisfied?
- Small changes roll out with measurable evidence, and regressions trigger rollback before broad exposure.
- Malformed payloads are rejected or repaired through a controlled path, never silently interpreted as trustworthy records.
- A test can reproduce an integration failure without calling production APIs, and a changed prompt does not break unrelated billing logic.
- Builds use scoped runtime credentials and can be reproduced without embedding secrets or relying on unvetted packages.
Explanation
Correct Answer
C:A test can reproduce an integration failure without calling production APIs, and a changed prompt does not break unrelated billing logic. Modular boundaries make behavioral tests reliable and limit unintended effects from model-oriented code. Situation: A refactor moves input validation into an isolated function but accidentally bypasses it for streaming responses.
Incorrect Answers
A:Small changes roll out with measurable evidence, and regressions trigger rollback before broad exposure. This result tests Iterative delivery and change management, not the requirement demonstrated by this case. The relevant acceptance condition is: A test can reproduce an integration failure without calling production APIs, and a changed prompt does not break unrelated billing logic. Situation: A refactor moves input validation into an isolated function but accidentally bypasses it for streaming responses.
B: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: A test can reproduce an integration failure without calling production APIs, and a changed prompt does not break unrelated billing logic. Situation: A refactor moves input validation into an isolated function but accidentally bypasses it for streaming responses.
D:Builds use scoped runtime credentials and can be reproduced without embedding secrets or relying on unvetted packages. This result tests Secret and dependency hygiene in development, not the requirement demonstrated by this case. The relevant acceptance condition is: A test can reproduce an integration failure without calling production APIs, and a changed prompt does not break unrelated billing logic. Situation: A refactor moves input validation into an isolated function but accidentally bypasses it for streaming responses.
Question 972
Two teams independently change the API schema and prompt template and then blame each other for parse errors. Which observed result BEST demonstrates the requirement has been satisfied?
- Tool calls execute only when requested, final outputs are presented only at terminal states, and truncation is surfaced or continued safely.
- Small changes roll out with measurable evidence, and regressions trigger rollback before broad exposure.
- A completed stream reconstructs the same logical response as a nonstreamed call, and interruptions do not produce phantom tool calls.
- The incident is mapped to a reproducible cause and a verified targeted fix is deployed with a regression test.
Explanation
Correct Answer
B:Small changes roll out with measurable evidence, and regressions trigger rollback before broad exposure. Prompts and tool schemas are production behavior artifacts and need review comparable to ordinary code. Situation: Two teams independently change the API schema and prompt template and then blame each other for parse errors.
Incorrect Answers
A:Tool calls execute only when requested, final outputs are presented only at terminal states, and truncation is surfaced or continued safely. This result tests Message stop reasons and continuation states, not the requirement demonstrated by this case. The relevant acceptance condition is: Small changes roll out with measurable evidence, and regressions trigger rollback before broad exposure. Situation: Two teams independently change the API schema and prompt template and then blame each other for parse errors.
C:A completed stream reconstructs the same logical response as a nonstreamed call, and interruptions do not produce phantom tool calls. This result tests Server-sent events streaming and reconstruction, not the requirement demonstrated by this case. The relevant acceptance condition is: Small changes roll out with measurable evidence, and regressions trigger rollback before broad exposure. Situation: Two teams independently change the API schema and prompt template and then blame each other for parse errors.
D:The incident is mapped to a reproducible cause and a verified targeted fix is deployed with a regression test. This result tests Postrelease incident feedback and defect triage, not the requirement demonstrated by this case. The relevant acceptance condition is: Small changes roll out with measurable evidence, and regressions trigger rollback before broad exposure. Situation: Two teams independently change the API schema and prompt template and then blame each other for parse errors.
Question 973
A prompt change improves fluency while silently reducing correct field extraction on multilingual documents. Which development or architectural response BEST addresses the primary requirement?
- Construct representative datasets with expected properties, deterministic checks and carefully reviewed model-based scoring when exact-string matching is inadequate.
- Classify failures as transport, API contract, tool execution, prompt or model behavior using traces and a repeatable failing input.
- Move from a prompt demo to a controlled release using requirements traceability, staged environments, integration tests and operational acceptance.
- Register a deterministic pre-tool hook that denies forbidden commands and logs the attempted operation even if an agent requests it.
Explanation
Correct Answer
A:Construct representative datasets with expected properties, deterministic checks and carefully reviewed model-based scoring when exact-string matching is inadequate. Anecdotal successful demos do not quantify regression; model graders need calibration and human review. Verify the prerequisites with: Inspect test coverage by failure type, stable fixtures, scoring rubric, sample outputs and reviewer disagreements. Situation: A prompt change improves fluency while silently reducing correct field extraction on multilingual documents.
Incorrect Answers
B:Classify failures as transport, API contract, tool execution, prompt or model behavior using traces and a repeatable failing input. This response is designed for Failure-layer isolation for model applications; it is not the controlling fix in the situation. Repeated prompt rewrites cannot fix a 401, invalid JSON tool input or failed external service transaction. Here the targeted response is: Construct representative datasets with expected properties, deterministic checks and carefully reviewed model-based scoring when exact-string matching is inadequate. Situation: A prompt change improves fluency while silently reducing correct field extraction on multilingual documents.
C:Move from a prompt demo to a controlled release using requirements traceability, staged environments, integration tests and operational acceptance. This response is designed for Discovery prototype to production readiness gates; it is not the controlling fix in the situation. A persuasive demo is not production reliability; deployment lifecycle gates must check external effects and recovery paths. Here the targeted response is: Construct representative datasets with expected properties, deterministic checks and carefully reviewed model-based scoring when exact-string matching is inadequate. Situation: A prompt change improves fluency while silently reducing correct field extraction on multilingual documents.
D: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: Construct representative datasets with expected properties, deterministic checks and carefully reviewed model-based scoring when exact-string matching is inadequate. Situation: A prompt change improves fluency while silently reducing correct field extraction on multilingual documents.
Question 974
A service embeds a Claude Agent SDK runner whose file tool can accidentally read another tenant workspace. Which observed result BEST demonstrates the requirement has been satisfied?
- Each tool request receives one matching result and the model either produces a final answer or raises a bounded terminal error.
- The implementation chooses only necessary tools for each case and avoids needless repeated calls.
- The deployed runtime respects the required environment and can operate, trace and recover all permitted tasks.
- A controlled agent run reaches the intended goal with attributable tools and no access beyond its allowed environment.
Explanation
Correct Answer
D:A controlled agent run reaches the intended goal with attributable tools and no access beyond its allowed environment. An Agent SDK manages orchestration plumbing but developers still own tool authorization, state scope, and failure handling. Situation: A service embeds a Claude Agent SDK runner whose file tool can accidentally read another tenant workspace.
Incorrect Answers
A:Each tool request receives one matching result and the model either produces a final answer or raises a bounded terminal error. This result tests Custom agent loop and stop reason handling, not the requirement demonstrated by this case. The relevant acceptance condition is: A controlled agent run reaches the intended goal with attributable tools and no access beyond its allowed environment. Situation: A service embeds a Claude Agent SDK runner whose file tool can accidentally read another tenant workspace.
B:The implementation chooses only necessary tools for each case and avoids needless repeated calls. This result tests Tool-use pattern versus fixed chain, not the requirement demonstrated by this case. The relevant acceptance condition is: A controlled agent run reaches the intended goal with attributable tools and no access beyond its allowed environment. Situation: A service embeds a Claude Agent SDK runner whose file tool can accidentally read another tenant workspace.
C:The deployed runtime respects the required environment and can operate, trace and recover all permitted tasks. This result tests Self-hosted versus managed agent execution, not the requirement demonstrated by this case. The relevant acceptance condition is: A controlled agent run reaches the intended goal with attributable tools and no access beyond its allowed environment. Situation: A service embeds a Claude Agent SDK runner whose file tool can accidentally read another tenant workspace.
Question 975
A frontend subtree has formatting rules that differ from root defaults and the assistant ignores the nested file. Which development or architectural response BEST addresses the primary requirement?
- Select plugins, Skills, subagents and MCP servers according to the required lifecycle and document dependencies, permissions and upgrade behavior.
- Run Claude Code in noninteractive mode with explicit permission controls, structured outputs and programmatic verification before accepting CI results.
- Use the CLAUDE.md hierarchy, repository context and explicit task scope so Claude Code follows the correct local development conventions.
- Use Rules for persistent constraints, Skills for repeatable task guidance and specialized agents for bounded delegated subtasks.
Explanation
Correct Answer
C:Use the CLAUDE.md hierarchy, repository context and explicit task scope so Claude Code follows the correct local development conventions. Local project guidance improves continuity but is not proof a generated patch is correct or authorized for deployment. Verify the prerequisites with: Inspect working directory, root/subtree CLAUDE.md files, current git branch, selected repository and effective instructions. Situation: A frontend subtree has formatting rules that differ from root defaults and the assistant ignores the nested file.
Incorrect Answers
A:Select plugins, Skills, subagents and MCP servers according to the required lifecycle and document dependencies, permissions and upgrade behavior. This response is designed for Custom agent capabilities and lifecycle maintenance; it is not the controlling fix in the situation. Tool extension decisions are distinct from prompt wording; operational ownership and version discipline are required. Here the targeted response is: Use the CLAUDE.md hierarchy, repository context and explicit task scope so Claude Code follows the correct local development conventions. Situation: A frontend subtree has formatting rules that differ from root defaults and the assistant ignores the nested file.
B:Run Claude Code in noninteractive mode with explicit permission controls, structured outputs and programmatic verification before accepting CI results. This response is designed for Headless Claude Code and automation result verification; it is not the controlling fix in the situation. A successful assistant narrative does not substitute for CI exit codes, repository diff inspection or actual tests. Here the targeted response is: Use the CLAUDE.md hierarchy, repository context and explicit task scope so Claude Code follows the correct local development conventions. Situation: A frontend subtree has formatting rules that differ from root defaults and the assistant ignores the nested file.
D:Use Rules for persistent constraints, Skills for repeatable task guidance and specialized agents for bounded delegated subtasks. This response is designed for Rules, Skills and specialized agents in Claude Code; it is not the controlling fix in the situation. Different customization primitives serve different lifecycles; adding a custom agent does not replace a straightforward skill or rule. Here the targeted response is: Use the CLAUDE.md hierarchy, repository context and explicit task scope so Claude Code follows the correct local development conventions. Situation: A frontend subtree has formatting rules that differ from root defaults and the assistant ignores the nested file.
Question 976
A service reaches a 429 rate limit and immediately floods the endpoint with additional requests. Which observed result BEST demonstrates the requirement has been satisfied?
- Transient failures recover without duplicating stateful writes; permanent errors remain visible and actionable.
- Builds use scoped runtime credentials and can be reproduced without embedding secrets or relying on unvetted packages.
- A completed stream reconstructs the same logical response as a nonstreamed call, and interruptions do not produce phantom tool calls.
- Repeated requests achieve intended cache reuse without serving a different tenant's private prefix or stale instructions.
Explanation
Correct Answer
A:Transient failures recover without duplicating stateful writes; permanent errors remain visible and actionable. A timeout after a write does not prove the write failed, so blind replays can cause duplicate effects. Situation: A service reaches a 429 rate limit and immediately floods the endpoint with additional requests.
Incorrect Answers
B:Builds use scoped runtime credentials and can be reproduced without embedding secrets or relying on unvetted packages. This result tests Secret and dependency hygiene in development, not the requirement demonstrated by this case. The relevant acceptance condition is: Transient failures recover without duplicating stateful writes; permanent errors remain visible and actionable. Situation: A service reaches a 429 rate limit and immediately floods the endpoint with additional requests.
C:A completed stream reconstructs the same logical response as a nonstreamed call, and interruptions do not produce phantom tool calls. This result tests Server-sent events streaming and reconstruction, not the requirement demonstrated by this case. The relevant acceptance condition is: Transient failures recover without duplicating stateful writes; permanent errors remain visible and actionable. Situation: A service reaches a 429 rate limit and immediately floods the endpoint with additional requests.
D:Repeated requests achieve intended cache reuse without serving a different tenant's private prefix or stale instructions. This result tests Prompt caching placement and invalidation, not the requirement demonstrated by this case. The relevant acceptance condition is: Transient failures recover without duplicating stateful writes; permanent errors remain visible and actionable. Situation: A service reaches a 429 rate limit and immediately floods the endpoint with additional requests.
Question 977
A developer adds a shell tool for simple arithmetic instead of using a deterministic calculation library. Which observed result BEST demonstrates the requirement has been satisfied?
- Calls choose the appropriate tool and pass valid typed arguments under real test cases.
- The workflow uses the simplest capable tool without introducing a redundant privileged service.
- Permitted reads complete normally while irreversible writes wait for or fail without authorization.
- The external operation runs exactly once under the correct user identity and its verified result feeds the next model turn.
Explanation
Correct Answer
B:The workflow uses the simplest capable tool without introducing a redundant privileged service. Each custom integration adds maintenance and trust boundaries; novelty is not an architectural benefit. Situation: A developer adds a shell tool for simple arithmetic instead of using a deterministic calculation library.
Incorrect Answers
A:Calls choose the appropriate tool and pass valid typed arguments under real test cases. This result tests Tool description and schema clarity, not the requirement demonstrated by this case. The relevant acceptance condition is: The workflow uses the simplest capable tool without introducing a redundant privileged service. Situation: A developer adds a shell tool for simple arithmetic instead of using a deterministic calculation library.
C: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: The workflow uses the simplest capable tool without introducing a redundant privileged service. Situation: A developer adds a shell tool for simple arithmetic instead of using a deterministic calculation library.
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: The workflow uses the simplest capable tool without introducing a redundant privileged service. Situation: A developer adds a shell tool for simple arithmetic instead of using a deterministic calculation library.
Question 978
An API field includes a megabyte-long text blob that exhausts the configured context window. Which observed result BEST demonstrates the requirement has been satisfied?
- Ordinary user content passes while untrusted documents cannot alter privileged tool or system rules.
- Each answer traces back to authorized input documents and unreadable sections are labeled rather than invented.
- An approved change can be reproduced and reverted, with prompt and tool differences traceable to their exact versions.
- The incident is mapped to a reproducible cause and a verified targeted fix is deployed with a regression test.
Explanation
Correct Answer
A:Ordinary user content passes while untrusted documents cannot alter privileged tool or system rules. External text belongs to a lower trust tier than application instructions even when placed in the same model context. Situation: An API field includes a megabyte-long text blob that exhausts the configured context window.
Incorrect Answers
B:Each answer traces back to authorized input documents and unreadable sections are labeled rather than invented. This result tests File processing pipeline with provenance, not the requirement demonstrated by this case. The relevant acceptance condition is: Ordinary user content passes while untrusted documents cannot alter privileged tool or system rules. Situation: An API field includes a megabyte-long text blob that exhausts the configured context window.
C:An approved change can be reproduced and reverted, with prompt and tool differences traceable to their exact versions. This result tests Version control and pull-request review, not the requirement demonstrated by this case. The relevant acceptance condition is: Ordinary user content passes while untrusted documents cannot alter privileged tool or system rules. Situation: An API field includes a megabyte-long text blob that exhausts the configured context window.
D:The incident is mapped to a reproducible cause and a verified targeted fix is deployed with a regression test. This result tests Postrelease incident feedback and defect triage, not the requirement demonstrated by this case. The relevant acceptance condition is: Ordinary user content passes while untrusted documents cannot alter privileged tool or system rules. Situation: An API field includes a megabyte-long text blob that exhausts the configured context window.
Question 979
An API field includes a megabyte-long text blob that exhausts the configured context window. What evidence or diagnostic detail should the engineer inspect FIRST?
- Inspect provider-specific model IDs, version availability, request schemas, rate quotas and billing identity.
- Inspect repository state, acceptance suite, environment configuration, rollback steps and service owners.
- Inspect root and nested instruction files, working directory, effective context, and conflicting directives.
- Inspect input size, file provenance, malicious instructions, escaping, content classifications and rejection behavior.
Explanation
Correct Answer
D:Inspect input size, file provenance, malicious instructions, escaping, content classifications and rejection behavior. External text belongs to a lower trust tier than application instructions even when placed in the same model context. The appropriate response is: Sanitize and classify external inputs before prompt assembly, then apply allowlists and output validation at application boundaries. Situation: An API field includes a megabyte-long text blob that exhausts the configured context window.
Incorrect Answers
A: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 input size, file provenance, malicious instructions, escaping, content classifications and rejection behavior. Situation: An API field includes a megabyte-long text blob that exhausts the configured context window.
B:Inspect repository state, acceptance suite, environment configuration, rollback steps and service owners. This evidence is useful for Discovery prototype to production readiness gates but would not isolate the primary failure in this scenario. The decisive check is: Inspect input size, file provenance, malicious instructions, escaping, content classifications and rejection behavior. Situation: An API field includes a megabyte-long text blob that exhausts the configured context window.
C:Inspect root and nested instruction files, working directory, effective context, and conflicting directives. This evidence is useful for CLAUDE.md scope and project instruction hierarchy but would not isolate the primary failure in this scenario. The decisive check is: Inspect input size, file provenance, malicious instructions, escaping, content classifications and rejection behavior. Situation: An API field includes a megabyte-long text blob that exhausts the configured context window.
Question 980
An agent reuses a changed system prompt but assumes prior cache entries necessarily represent the new version. Which TWO complementary actions provide an appropriate solution and the evidence needed to verify it? Select TWO.
- 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.
- Inspect repeated prefix byte identity, cache breakpoint, model compatibility, cache TTL and usage accounting.
- Place stable reusable prefix content before varying user material, use cache controls appropriately and monitor token accounting and hit rates.
- Inspect stop_reason, response blocks, token budgets, tool call IDs and continuation policy.
- Each answer traces back to authorized input documents and unreadable sections are labeled rather than invented.
Explanation
Correct Answers
B:Inspect repeated prefix byte identity, cache breakpoint, model compatibility, cache TTL and usage accounting. Prompt caching optimizes matching prefixes, not semantic similarity; variable content before a breakpoint defeats reuse. The appropriate response is: Place stable reusable prefix content before varying user material, use cache controls appropriately and monitor token accounting and hit rates. Situation: An agent reuses a changed system prompt but assumes prior cache entries necessarily represent the new version.
C:Place stable reusable prefix content before varying user material, use cache controls appropriately and monitor token accounting and hit rates. Prompt caching optimizes matching prefixes, not semantic similarity; variable content before a breakpoint defeats reuse. Verify the prerequisites with: Inspect repeated prefix byte identity, cache breakpoint, model compatibility, cache TTL and usage accounting. Situation: An agent reuses a changed system prompt but assumes prior cache entries necessarily represent the new version.
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 step may apply to Messages API role and content structure but is not one of the two required complementary decisions. The relevant pair is: Place stable reusable prefix content before varying user material, use cache controls appropriately and monitor token accounting and hit rates. and Inspect repeated prefix byte identity, cache breakpoint, model compatibility, cache TTL and usage accounting. Situation: An agent reuses a changed system prompt but assumes prior cache entries necessarily represent the new version.
D:Inspect stop_reason, response blocks, token budgets, tool call IDs and continuation policy. This step may apply to Message stop reasons and continuation states but is not one of the two required complementary decisions. The relevant pair is: Place stable reusable prefix content before varying user material, use cache controls appropriately and monitor token accounting and hit rates. and Inspect repeated prefix byte identity, cache breakpoint, model compatibility, cache TTL and usage accounting. Situation: An agent reuses a changed system prompt but assumes prior cache entries necessarily represent the new version.
E:Each answer traces back to authorized input documents and unreadable sections are labeled rather than invented. This step may apply to File processing pipeline with provenance but is not one of the two required complementary decisions. The relevant pair is: Place stable reusable prefix content before varying user material, use cache controls appropriately and monitor token accounting and hit rates. and Inspect repeated prefix byte identity, cache breakpoint, model compatibility, cache TTL and usage accounting. Situation: An agent reuses a changed system prompt but assumes prior cache entries necessarily represent the new version.