Claude Certified Developer - Foundations CCDV-F Practice Test 22
Question 210
To address the situation: A team upgrades Claude models and suddenly sees different tool-call frequency despite unchanged prompts. The team implements: "Pin or deliberately version model selections and run regression tests during model changes". Which evidence BEST demonstrates success?
- A controlled usage sample yields predictable accounting and an actionable budget alert.
- An upgrade canary passes contract and task evaluations with an available rollback path.
- Usage metrics show cache reads or reduced eligible prefix processing without mixing user-specific data.
- A representative evaluation records quality, p95 latency and cost before selecting a model.
Explanation
Correct Answer
B:An upgrade canary passes contract and task evaluations with an available rollback path. This directly tests the outcome of pin or deliberately version model selections and run regression tests during model changes. in the described case: A team upgrades Claude models and suddenly sees different tool-call frequency despite unchanged prompts. The underlying principle is that model updates can alter behavior, latency and tool use; compatibility must be tested at release time. If the change is ineffective, silent model change can break output contracts or downstream user experience. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A controlled usage sample yields predictable accounting and an actionable budget alert. This outcome would validate track input/output tokens and model, cache and batch usage per operation with privacy-safe reporting, not the requested intervention. The required test result is an upgrade canary passes contract and task evaluations with an available rollback path.
C:Usage metrics show cache reads or reduced eligible prefix processing without mixing user-specific data. This outcome would validate apply supported prompt caching or reuse patterns for stable prefix content and monitor cache hits, not the requested intervention. The required test result is an upgrade canary passes contract and task evaluations with an available rollback path.
D:A representative evaluation records quality, p95 latency and cost before selecting a model. This outcome would validate benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks, not the requested intervention. The required test result is an upgrade canary passes contract and task evaluations with an available rollback path.
Question 211
This engineering control is missing: "Build retrieval with provenance-aware citations and grounded-answer validation before presenting claims". The reported condition is: A customer-facing assistant answers from internal documentation but cites paragraphs it never retrieved. What is the most direct failure risk?
- Users can receive false completion messages or experience cascading outages and wasted requests.
- Unreviewed library updates can break production API clients unexpectedly.
- Users may act on invented or outdated instructions when retrieval provenance is missing.
- A user may retrieve another tenant's confidential content through search or tool access.
Explanation
Correct Answer
C:Users may act on invented or outdated instructions when retrieval provenance is missing. This follows from the reported condition: A customer-facing assistant answers from internal documentation but cites paragraphs it never retrieved. The reason is that rAG effectiveness depends on relevant evidence and an explicit boundary between retrieved facts and model inference. The appropriate mitigation is: Build retrieval with provenance-aware citations and grounded-answer validation before presenting claims. Evidence of success would be: A held-out query returns a supported answer citing only documents actually retrieved for that query.
Incorrect Answers
A:Users can receive false completion messages or experience cascading outages and wasted requests. That exposure calls for design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features. The scenario here instead risks users may act on invented or outdated instructions when retrieval provenance is missing.
B:Unreviewed library updates can break production API clients unexpectedly. That exposure calls for pin tested dependencies and use staged upgrades with regression tests and rollback. The scenario here instead risks users may act on invented or outdated instructions when retrieval provenance is missing.
D:A user may retrieve another tenant's confidential content through search or tool access. That exposure calls for enforce tenant identity, authorization and retrieval filtering before data is supplied to the model. The scenario here instead risks users may act on invented or outdated instructions when retrieval provenance is missing.
Question 212
This engineering control is missing: "Separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization". The reported condition is: A support agent handles both policy research and financial mutations with no trust boundary between roles. What is the most direct failure risk?
- A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable.
- An unnecessary agent can introduce variable actions, cost and approval gaps into a fixed business process.
- A prompt-injected suggestion could cross a trust boundary if the app executes it without validation.
- A compromised research context could trigger unauthorized payment changes if tools share excessive authority.
Explanation
Correct Answer
D:A compromised research context could trigger unauthorized payment changes if tools share excessive authority. This follows from the reported condition: A support agent handles both policy research and financial mutations with no trust boundary between roles. The reason is that decomposing specialized responsibilities creates clear tool permissions and reduces cross-task privilege confusion. The appropriate mitigation is: Separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization. Evidence of success would be: An adversarial research input cannot invoke payment tools, while an authorized approval path still works.
Incorrect Answers
A:A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable. That exposure calls for choose managed versus self-hosted agent execution by evaluating residency, observability, permissions and operational responsibility. The scenario here instead risks A compromised research context could trigger unauthorized payment changes if tools share excessive authority.
B:An unnecessary agent can introduce variable actions, cost and approval gaps into a fixed business process. That exposure calls for use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions. The scenario here instead risks A compromised research context could trigger unauthorized payment changes if tools share excessive authority.
C:A prompt-injected suggestion could cross a trust boundary if the app executes it without validation. That exposure calls for keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint. The scenario here instead risks A compromised research context could trigger unauthorized payment changes if tools share excessive authority.
Question 213
To address the situation: A Claude tool schema accepts arbitrary strings that a backend concatenates into a shell command. The team implements: "Define precise tool descriptions and validated JSON argument schemas with narrow capabilities". Which evidence BEST demonstrates success?
- Invalid tool arguments fail safely and valid documented requests map to one expected operation.
- An injected API error yields a truthful sanitized failure and no false success statement.
- A transport interoperability test exchanges valid requests with clean framing and no leaked log text.
- Cross-tenant negative requests are denied while appropriately scoped calls succeed.
Explanation
Correct Answer
A:Invalid tool arguments fail safely and valid documented requests map to one expected operation. This directly tests the outcome of define precise tool descriptions and validated JSON argument schemas with narrow capabilities. in the described case: A Claude tool schema accepts arbitrary strings that a backend concatenates into a shell command. The underlying principle is that a clear tool contract helps model selection while code-side validation keeps execution within allowed types. If the change is ineffective, ambiguous or unchecked arguments can invoke an unintended operation or injection path. A configuration checkbox alone is insufficient proof.
Incorrect Answers
B:An injected API error yields a truthful sanitized failure and no false success statement. This outcome would validate return typed, bounded, sanitized tool results with explicit errors and retry metadata, not the requested intervention. The required test result is invalid tool arguments fail safely and valid documented requests map to one expected operation.
C:A transport interoperability test exchanges valid requests with clean framing and no leaked log text. This outcome would validate choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs, not the requested intervention. The required test result is invalid tool arguments fail safely and valid documented requests map to one expected operation.
D:Cross-tenant negative requests are denied while appropriately scoped calls succeed. This outcome would validate apply authentication, resource authorization and request validation to each MCP tool/resource operation, not the requested intervention. The required test result is invalid tool arguments fail safely and valid documented requests map to one expected operation.
Question 214
This engineering control is missing: "Separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly". The reported condition is: A document-processing assistant follows user-supplied markdown commands to reveal internal templates. What is the most direct failure risk?
- Biased or contradictory examples can systematically misclassify unusual inputs.
- Prompt injection may redirect behavior or induce unauthorized disclosure.
- The model may choose an unintended format or overlook key business rules.
- Users may trust fabricated sources or unsupported policy advice.
Explanation
Correct Answer
B:Prompt injection may redirect behavior or induce unauthorized disclosure. This follows from the reported condition: A document-processing assistant follows user-supplied markdown commands to reveal internal templates. The reason is that prompt hierarchy and data delineation help prevent lower-trust content from becoming policy. The appropriate mitigation is: Separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly. Evidence of success would be: A malicious embedded instruction is treated as data, not an executable task directive.
Incorrect Answers
A:Biased or contradictory examples can systematically misclassify unusual inputs. That exposure calls for curate representative, consistent few-shot examples and evaluate against held-out cases. The scenario here instead risks prompt injection may redirect behavior or induce unauthorized disclosure.
C:The model may choose an unintended format or overlook key business rules. That exposure calls for give clear role, task, constraints and explicit output contract with consistent examples where helpful. The scenario here instead risks prompt injection may redirect behavior or induce unauthorized disclosure.
D:Users may trust fabricated sources or unsupported policy advice. That exposure calls for check factual claims and citations against accessible source evidence with an explicit uncertainty path. The scenario here instead risks prompt injection may redirect behavior or induce unauthorized disclosure.
Question 215
A developer encounters this situation: A client handles a tool-use stop reason as if Claude had finished a normal text response. What is the MOST appropriate technical response?
- Use documented Messages API request fields and supported client SDK methods with schema validation.
- Process the documented streaming event sequence by event type and finalize only on completion.
- Inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output.
- Separate trusted system/developer instructions from untrusted input and validate any requested tool execution.
Explanation
Correct Answer
C:Inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output. This directly addresses the situation: A client handles a tool-use stop reason as if Claude had finished a normal text response. The technical reason is that model tool requests are distinct content and require client-side orchestration to supply results correctly. Without it, tool-dependent tasks may end incomplete or return an unfulfilled action description. A concrete acceptance check is: A test tool request executes only after authorization and a matching result lets the assistant finish.
Incorrect Answers
A:Use documented Messages API request fields and supported client SDK methods with schema validation. This does not repair the current workflow because model tool requests are distinct content and require client-side orchestration to supply results correctly. The targeted change is inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output.
B:Process the documented streaming event sequence by event type and finalize only on completion. This does not repair the current workflow because model tool requests are distinct content and require client-side orchestration to supply results correctly. The targeted change is inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output.
D:Separate trusted system/developer instructions from untrusted input and validate any requested tool execution. This does not repair the current workflow because model tool requests are distinct content and require client-side orchestration to supply results correctly. The targeted change is inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output.
Question 216
This engineering control is missing: "Maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy". The reported condition is: An agentic coding run forgets the project's test commands and style constraints between sessions. What is the most direct failure risk?
- Unnecessary repeated context processing raises token cost and time to first response.
- Unreviewed broad changes can hide regressions or introduce unsafe dependencies.
- A generated command could delete files, leak secrets or deploy unapproved code.
- The assistant may change protected files or ignore required tests during code generation.
Explanation
Correct Answer
D:The assistant may change protected files or ignore required tests during code generation. This follows from the reported condition: An agentic coding run forgets the project's test commands and style constraints between sessions. The reason is that coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent. The appropriate mitigation is: Maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy. Evidence of success would be: A controlled coding task follows project instructions and avoids excluded files while producing a reviewable diff.
Incorrect Answers
A:Unnecessary repeated context processing raises token cost and time to first response. That exposure calls for apply supported prompt caching or reuse patterns for stable prefix content and monitor cache hits. The scenario here instead risks the assistant may change protected files or ignore required tests during code generation.
B:Unreviewed broad changes can hide regressions or introduce unsafe dependencies. That exposure calls for review Claude Code changes as small diffs and run targeted tests before accepting or committing them. The scenario here instead risks the assistant may change protected files or ignore required tests during code generation.
C:A generated command could delete files, leak secrets or deploy unapproved code. That exposure calls for use Claude Code permissions and supported pre-tool hooks to enforce command approval and safety checks. The scenario here instead risks the assistant may change protected files or ignore required tests during code generation.
Question 217
A developer encounters this situation: An agent may call a user-facing tool several times with the same arguments after a timeout. What is the MOST appropriate technical response?
- Add idempotency and completed-work tracking to subagent/tool handoffs.
- Prune tool outputs and maintain concise task state or checkpoints to keep context useful.
- Match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty.
- Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries.
Explanation
Correct Answer
A:Add idempotency and completed-work tracking to subagent/tool handoffs. This directly addresses the situation: An agent may call a user-facing tool several times with the same arguments after a timeout. The technical reason is that at-least-once execution patterns require deduplication when actions have external side effects. Without it, retries or duplicate delegations can create multiple charges or inconsistent records. A concrete acceptance check is: A forced retry produces one intended side effect and a visible record of reconciliation.
Incorrect Answers
B:Prune tool outputs and maintain concise task state or checkpoints to keep context useful. This does not repair the current workflow because at-least-once execution patterns require deduplication when actions have external side effects. The targeted change is add idempotency and completed-work tracking to subagent/tool handoffs.
C:Match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty. This does not repair the current workflow because at-least-once execution patterns require deduplication when actions have external side effects. The targeted change is add idempotency and completed-work tracking to subagent/tool handoffs.
D:Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries. This does not repair the current workflow because at-least-once execution patterns require deduplication when actions have external side effects. The targeted change is add idempotency and completed-work tracking to subagent/tool handoffs.
Question 218
This engineering control is missing: "Give clear role, task, constraints and explicit output contract with consistent examples where helpful". The reported condition is: A developer mixes policy and input text in a long ambiguous paragraph with conflicting instructions. What is the most direct failure risk?
- Biased or contradictory examples can systematically misclassify unusual inputs.
- The model may choose an unintended format or overlook key business rules.
- Prompt injection may redirect behavior or induce unauthorized disclosure.
- Malformed or out-of-range fields can trigger incorrect actions or crashes.
Explanation
Correct Answer
B:The model may choose an unintended format or overlook key business rules. This follows from the reported condition: A developer mixes policy and input text in a long ambiguous paragraph with conflicting instructions. The reason is that specific, noncontradictory instructions reduce interpretation ambiguity and make validation possible. The appropriate mitigation is: Give clear role, task, constraints and explicit output contract with consistent examples where helpful. Evidence of success would be: Unseen examples consistently satisfy the declared fields and constraints.
Incorrect Answers
A:Biased or contradictory examples can systematically misclassify unusual inputs. That exposure calls for curate representative, consistent few-shot examples and evaluate against held-out cases. The scenario here instead risks the model may choose an unintended format or overlook key business rules.
C:Prompt injection may redirect behavior or induce unauthorized disclosure. That exposure calls for separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly. The scenario here instead risks the model may choose an unintended format or overlook key business rules.
D:Malformed or out-of-range fields can trigger incorrect actions or crashes. That exposure calls for validate structured model outputs against strict schema and business rules before use. The scenario here instead risks the model may choose an unintended format or overlook key business rules.
Question 219
In this situation: A production app changes to a new model alias without checking structured output compatibility. The developer proposes: Pin or deliberately version model selections and run regression tests during model changes. Which principle BEST justifies the approach?
- Client libraries simplify transport but do not remove network failure modes, auth or API contracts.
- Different requests require different capability budgets; selective routing balances efficiency and quality.
- Model updates can alter behavior, latency and tool use; compatibility must be tested at release time.
- Opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement.
Explanation
Correct Answer
C:Model updates can alter behavior, latency and tool use; compatibility must be tested at release time. In the given situation, a production app changes to a new model alias without checking structured output compatibility. That consideration supports the measure: Pin or deliberately version model selections and run regression tests during model changes. Ignoring it creates this exposure: Silent model change can break output contracts or downstream user experience. Verify the implementation by checking: An upgrade canary passes contract and task evaluations with an available rollback path.
Incorrect Answers
A:Client libraries simplify transport but do not remove network failure modes, auth or API contracts. This principle relates to understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata. The observed failure instead depends on model updates can alter behavior, latency and tool use; compatibility must be tested at release time. The appropriate choice is model updates can alter behavior, latency and tool use; compatibility must be tested at release time.
B:Different requests require different capability budgets; selective routing balances efficiency and quality. This principle relates to use task difficulty and measured confidence to route work to an appropriate model or escalation path. The observed failure instead depends on model updates can alter behavior, latency and tool use; compatibility must be tested at release time. The appropriate choice is model updates can alter behavior, latency and tool use; compatibility must be tested at release time.
D:Opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement. This principle relates to benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks. The observed failure instead depends on model updates can alter behavior, latency and tool use; compatibility must be tested at release time. The appropriate choice is model updates can alter behavior, latency and tool use; compatibility must be tested at release time.
Question 220
To address the situation: A TypeScript API server blocks an event loop while waiting for multiple Claude calls. The team implements: "Use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks". Which evidence BEST demonstrates success?
- Rotated credentials work without code changes and invalid keys produce a bounded clear error.
- A simulated HTTP failure emerges as the expected SDK error with a traceable request ID.
- Evaluation shows difficult cases are escalated and routine tasks meet cost targets.
- A load test shows bounded parallelism, proper cancellation and stable latency under normal traffic.
Explanation
Correct Answer
D:A load test shows bounded parallelism, proper cancellation and stable latency under normal traffic. This directly tests the outcome of use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks. in the described case: A TypeScript API server blocks an event loop while waiting for multiple Claude calls. The underlying principle is that nonblocking request handling improves throughput only when concurrency remains controlled and resource-safe. If the change is ineffective, serial calls increase latency, while unconstrained fan-out exhausts limits and connections. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:Rotated credentials work without code changes and invalid keys produce a bounded clear error. This outcome would validate configure authenticated requests, secret rotation and clear failure handling in the SDK/client, not the requested intervention. The required test result is A load test shows bounded parallelism, proper cancellation and stable latency under normal traffic.
B:A simulated HTTP failure emerges as the expected SDK error with a traceable request ID. This outcome would validate understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata, not the requested intervention. The required test result is A load test shows bounded parallelism, proper cancellation and stable latency under normal traffic.
C:Evaluation shows difficult cases are escalated and routine tasks meet cost targets. This outcome would validate use task difficulty and measured confidence to route work to an appropriate model or escalation path, not the requested intervention. The required test result is A load test shows bounded parallelism, proper cancellation and stable latency under normal traffic.