Claude Certified Developer - Foundations CCDV-F Practice Test 23
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.
Question 221
A developer encounters this situation: A streaming client reconstructs invalid tool arguments because it concatenates typed deltas as plain text. What is the MOST appropriate technical response?
- 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.
- Control prompt assembly with relevant retrieval, truncation rules and context-budget measurements.
- Validate output length and stop reason; retry or redesign output constraints when truncation occurs.
Explanation
Correct Answer
A:Process the documented streaming event sequence by event type and finalize only on completion. This directly addresses the situation: A streaming client reconstructs invalid tool arguments because it concatenates typed deltas as plain text. The technical reason is that streaming requires preserving event structure and ordering, including tool and usage metadata. Without it, the UI or tool handler can assemble malformed content and act on partial arguments. A concrete acceptance check is: Recorded event fixtures reconstruct the same final message as the nonstreaming response.
Incorrect Answers
B:Inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output. This does not repair the current workflow because streaming requires preserving event structure and ordering, including tool and usage metadata. The targeted change is process the documented streaming event sequence by event type and finalize only on completion.
C:Control prompt assembly with relevant retrieval, truncation rules and context-budget measurements. This does not repair the current workflow because streaming requires preserving event structure and ordering, including tool and usage metadata. The targeted change is process the documented streaming event sequence by event type and finalize only on completion.
D:Validate output length and stop reason; retry or redesign output constraints when truncation occurs. This does not repair the current workflow because streaming requires preserving event structure and ordering, including tool and usage metadata. The targeted change is process the documented streaming event sequence by event type and finalize only on completion.
Question 222
To address the situation: A production prompt change requires manual edits to three services with no version record. The team implements: "Centralize versioned configuration, protected secrets and environment-specific deployment settings". Which evidence BEST demonstrates success?
- A sustained load test shows bounded sockets and stable event-loop response latency.
- A canary deploy changes one approved setting with traceable version and no secrets in code.
- A clean rebuild reproduces the approved version set and a tested upgrade can roll back.
- A test tool request executes only after authorization and a matching result lets the assistant finish.
Explanation
Correct Answer
B:A canary deploy changes one approved setting with traceable version and no secrets in code. This directly tests the outcome of centralize versioned configuration, protected secrets and environment-specific deployment settings. in the described case: A production prompt change requires manual edits to three services with no version record. The underlying principle is that configuration must be controlled independently of application source and securely varied by environment. If the change is ineffective, unreviewed configuration drift can expose keys or create inconsistent model behavior. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A sustained load test shows bounded sockets and stable event-loop response latency. This outcome would validate use reusable supported SDK or HTTP clients with connection management and nonblocking I/O, not the requested intervention. The required test result is A canary deploy changes one approved setting with traceable version and no secrets in code.
C:A clean rebuild reproduces the approved version set and a tested upgrade can roll back. This outcome would validate pin tested dependencies and use staged upgrades with regression tests and rollback, not the requested intervention. The required test result is A canary deploy changes one approved setting with traceable version and no secrets in code.
D:A test tool request executes only after authorization and a matching result lets the assistant finish. This outcome would validate inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output, not the requested intervention. The required test result is A canary deploy changes one approved setting with traceable version and no secrets in code.
Question 223
To address the situation: A team selects a heavyweight graph framework for a two-step API lookup and response. The team implements: "Match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty". Which evidence BEST demonstrates success?
- A forced retry produces one intended side effect and a visible record of reconciliation.
- An intentional risky tool call is blocked by a hook while authorized benign actions continue.
- A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity.
- A simulated unresolvable task stops within limits and creates a clear escalation record.
Explanation
Correct Answer
C:A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity. This directly tests the outcome of match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty. in the described case: A team selects a heavyweight graph framework for a two-step API lookup and response. The underlying principle is that frameworks such as LangGraph or Strands add value when branching, persistence or coordination justify their overhead. If the change is ineffective, overengineering raises maintenance burden, while underengineering loses recovery state on complex flows. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A forced retry produces one intended side effect and a visible record of reconciliation. This outcome would validate add idempotency and completed-work tracking to subagent/tool handoffs, not the requested intervention. The required test result is A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity.
B:An intentional risky tool call is blocked by a hook while authorized benign actions continue. This outcome would validate use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries, not the requested intervention. The required test result is A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity.
D:A simulated unresolvable task stops within limits and creates a clear escalation record. This outcome would validate bound agent iterations, tool budgets and stop conditions with a safe fallback or human escalation, not the requested intervention. The required test result is A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity.
Question 224
To address the situation: An investigation agent retries the same failed action without a budget or user escalation path. The team implements: "Bound agent iterations, tool budgets and stop conditions with a safe fallback or human escalation". Which evidence BEST demonstrates success?
- The workflow produces consistent step traces and enforces the required approval order on representative invoices.
- A fault-injection run terminates predictably and records the failed tool, recovery and final state.
- An unapproved tool request is rejected by code and logged even when the model asks to run it.
- A simulated unresolvable task stops within limits and creates a clear escalation record.
Explanation
Correct Answer
D:A simulated unresolvable task stops within limits and creates a clear escalation record. This directly tests the outcome of bound agent iterations, tool budgets and stop conditions with a safe fallback or human escalation. in the described case: An investigation agent retries the same failed action without a budget or user escalation path. The underlying principle is that autonomous tool loops require termination criteria and explicit limits for predictable operational cost and safety. If the change is ineffective, runaway iterations can consume tokens, spam APIs and repeat harmful or useless operations. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:The workflow produces consistent step traces and enforces the required approval order on representative invoices. This outcome would validate use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions, not the requested intervention. The required test result is A simulated unresolvable task stops within limits and creates a clear escalation record.
B:A fault-injection run terminates predictably and records the failed tool, recovery and final state. This outcome would validate implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness, not the requested intervention. The required test result is A simulated unresolvable task stops within limits and creates a clear escalation record.
C:An unapproved tool request is rejected by code and logged even when the model asks to run it. This outcome would validate keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint, not the requested intervention. The required test result is A simulated unresolvable task stops within limits and creates a clear escalation record.
Question 225
This engineering control is missing: "Use documented Messages API request fields and supported client SDK methods with schema validation". The reported condition is: A developer sends a prompt using undocumented endpoint fields and receives repeated 400 responses. What is the most direct failure risk?
- Requests can be rejected or interpreted differently when fields are malformed.
- The UI or tool handler can assemble malformed content and act on partial arguments.
- Tool-dependent tasks may end incomplete or return an unfulfilled action description.
- Credentials or personal data can be exposed in log storage, or incidents can be impossible to trace.
Explanation
Correct Answer
A:Requests can be rejected or interpreted differently when fields are malformed. This follows from the reported condition: A developer sends a prompt using undocumented endpoint fields and receives repeated 400 responses. The reason is that aPI correctness depends on matching the current endpoint contract for messages, model and token limits. The appropriate mitigation is: Use documented Messages API request fields and supported client SDK methods with schema validation. Evidence of success would be: A contract test sends a supported payload and receives a properly typed Messages response.
Incorrect Answers
B:The UI or tool handler can assemble malformed content and act on partial arguments. That exposure calls for process the documented streaming event sequence by event type and finalize only on completion. The scenario here instead risks requests can be rejected or interpreted differently when fields are malformed.
C:Tool-dependent tasks may end incomplete or return an unfulfilled action description. That exposure calls for inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output. The scenario here instead risks requests can be rejected or interpreted differently when fields are malformed.
D:Credentials or personal data can be exposed in log storage, or incidents can be impossible to trace. That exposure calls for log bounded structured request IDs, latency and failure categories while redacting secrets and sensitive content. The scenario here instead risks requests can be rejected or interpreted differently when fields are malformed.
Question 226
To address the situation: A CI pipeline deploys an integration even though tests for timeout and malformed JSON were skipped. The team implements: "Use version control, code review and automated contract plus failure-mode tests for integration changes". Which evidence BEST demonstrates success?
- Negative HTTP fixtures produce explicit typed failures and valid JSON remains parseable.
- CI rejects malformed responses in tests and approves only validated changes.
- Prompt-injection tests on uploaded content cannot bypass tool authorization or leak restricted values.
- A sustained load test shows bounded sockets and stable event-loop response latency.
Explanation
Correct Answer
B:CI rejects malformed responses in tests and approves only validated changes. This directly tests the outcome of use version control, code review and automated contract plus failure-mode tests for integration changes. in the described case: A CI pipeline deploys an integration even though tests for timeout and malformed JSON were skipped. The underlying principle is that aPI integration safety depends on regression tests for behavior at service boundaries. If the change is ineffective, minor refactors can silently break downstream consumers or error handling. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:Negative HTTP fixtures produce explicit typed failures and valid JSON remains parseable. This outcome would validate validate HTTP status, content types and JSON response contracts before processing API results, not the requested intervention. The required test result is CI rejects malformed responses in tests and approves only validated changes.
C:Prompt-injection tests on uploaded content cannot bypass tool authorization or leak restricted values. This outcome would validate separate trusted system/developer instructions from untrusted input and validate any requested tool execution, not the requested intervention. The required test result is CI rejects malformed responses in tests and approves only validated changes.
D:A sustained load test shows bounded sockets and stable event-loop response latency. This outcome would validate use reusable supported SDK or HTTP clients with connection management and nonblocking I/O, not the requested intervention. The required test result is CI rejects malformed responses in tests and approves only validated changes.
Question 227
In this situation: A model-facing service accepts untrusted markdown containing instructions to modify system settings. The developer proposes: Separate trusted system/developer instructions from untrusted input and validate any requested tool execution. Which principle BEST justifies the approach?
- Reproducible software builds require controlled dependency versions and compatibility gates.
- LLM integrations are distributed systems and must expose genuine downstream failure states.
- Prompt and data channels have different trust levels, and source documents must not override application rules.
- Streaming can improve perceived latency only if the application consumes and renders events correctly.
Explanation
Correct Answer
C:Prompt and data channels have different trust levels, and source documents must not override application rules. In the given situation, a model-facing service accepts untrusted markdown containing instructions to modify system settings. That consideration supports the measure: Separate trusted system/developer instructions from untrusted input and validate any requested tool execution. Ignoring it creates this exposure: A hostile document may persuade the model to reveal policy or call disallowed tools. Verify the implementation by checking: Prompt-injection tests on uploaded content cannot bypass tool authorization or leak restricted values.
Incorrect Answers
A:Reproducible software builds require controlled dependency versions and compatibility gates. This principle relates to pin tested dependencies and use staged upgrades with regression tests and rollback. The observed failure instead depends on prompt and data channels have different trust levels, and source documents must not override application rules. The appropriate choice is prompt and data channels have different trust levels, and source documents must not override application rules.
B:LLM integrations are distributed systems and must expose genuine downstream failure states. This principle relates to design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features. The observed failure instead depends on prompt and data channels have different trust levels, and source documents must not override application rules. The appropriate choice is prompt and data channels have different trust levels, and source documents must not override application rules.
D:Streaming can improve perceived latency only if the application consumes and renders events correctly. This principle relates to use supported streaming events with explicit lifecycle, partial-render and finalization handling. The observed failure instead depends on prompt and data channels have different trust levels, and source documents must not override application rules. The appropriate choice is prompt and data channels have different trust levels, and source documents must not override application rules.
Question 228
To address the situation: A high-stakes architecture review uses a speed-optimized model without testing whether quality meets requirements. The team implements: "Benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks". Which evidence BEST demonstrates success?
- Measured token usage stays within the model's supported window for representative long inputs.
- Evaluation shows difficult cases are escalated and routine tasks meet cost targets.
- 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
D:A representative evaluation records quality, p95 latency and cost before selecting a model. This directly tests the outcome of benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks. in the described case: A high-stakes architecture review uses a speed-optimized model without testing whether quality meets requirements. The underlying principle is that opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement. If the change is ineffective, model selection by name alone can overpay or underperform on important workflows. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:Measured token usage stays within the model's supported window for representative long inputs. This outcome would validate budget input and output tokens using the selected model's tokenization and context limits, not the requested intervention. The required test result is A representative evaluation records quality, p95 latency and cost before selecting a model.
B: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 representative evaluation records quality, p95 latency and cost before selecting a model.
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 A representative evaluation records quality, p95 latency and cost before selecting a model.
Question 229
In this situation: A specialist subagent is given privileged billing history that its task does not require. The developer proposes: Isolate contexts by user and task, passing only necessary evidence to each subagent. Which principle BEST justifies the approach?
- Context boundaries reduce distraction and unauthorized exposure between independent workstreams.
- Compaction should preserve durable task state rather than treating a short summary as the entire truth.
- Prompt hierarchy and data delineation help prevent lower-trust content from becoming policy.
- Specific, noncontradictory instructions reduce interpretation ambiguity and make validation possible.
Explanation
Correct Answer
A:Context boundaries reduce distraction and unauthorized exposure between independent workstreams. In the given situation, a specialist subagent is given privileged billing history that its task does not require. That consideration supports the measure: Isolate contexts by user and task, passing only necessary evidence to each subagent. Ignoring it creates this exposure: Unrelated user data may contaminate answers or leak into another task. Verify the implementation by checking: Cross-user and subagent tests confirm no unauthorized context appears in model input or outputs.
Incorrect Answers
B:Compaction should preserve durable task state rather than treating a short summary as the entire truth. This principle relates to use structured task checkpoints with completed actions, constraints and verified external state. The observed failure instead depends on context boundaries reduce distraction and unauthorized exposure between independent workstreams. The appropriate choice is context boundaries reduce distraction and unauthorized exposure between independent workstreams.
C:Prompt hierarchy and data delineation help prevent lower-trust content from becoming policy. This principle relates to separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly. The observed failure instead depends on context boundaries reduce distraction and unauthorized exposure between independent workstreams. The appropriate choice is context boundaries reduce distraction and unauthorized exposure between independent workstreams.
D:Specific, noncontradictory instructions reduce interpretation ambiguity and make validation possible. This principle relates to give clear role, task, constraints and explicit output contract with consistent examples where helpful. The observed failure instead depends on context boundaries reduce distraction and unauthorized exposure between independent workstreams. The appropriate choice is context boundaries reduce distraction and unauthorized exposure between independent workstreams.
Question 230
A developer encounters this situation: A production service ignores API request identifiers when opening a vendor support ticket. What is the MOST appropriate technical response?
- Validate output length and stop reason; retry or redesign output constraints when truncation occurs.
- Capture provider request IDs, token usage and model metadata in privacy-safe telemetry.
- Use idempotency keys or a verified deduplication record around side-effecting operations.
- Use documented Messages API request fields and supported client SDK methods with schema validation.
Explanation
Correct Answer
B:Capture provider request IDs, token usage and model metadata in privacy-safe telemetry. This directly addresses the situation: A production service ignores API request identifiers when opening a vendor support ticket. The technical reason is that operational auditing needs identifiers and metering to diagnose failures and allocate model costs. Without it, an incident cannot be traced and usage budgets can drift unnoticed. A concrete acceptance check is: A test call yields correlated request metadata and measured token consumption without leaking prompt content.
Incorrect Answers
A:Validate output length and stop reason; retry or redesign output constraints when truncation occurs. This does not repair the current workflow because operational auditing needs identifiers and metering to diagnose failures and allocate model costs. The targeted change is capture provider request IDs, token usage and model metadata in privacy-safe telemetry.
C:Use idempotency keys or a verified deduplication record around side-effecting operations. This does not repair the current workflow because operational auditing needs identifiers and metering to diagnose failures and allocate model costs. The targeted change is capture provider request IDs, token usage and model metadata in privacy-safe telemetry.
D:Use documented Messages API request fields and supported client SDK methods with schema validation. This does not repair the current workflow because operational auditing needs identifiers and metering to diagnose failures and allocate model costs. The targeted change is capture provider request IDs, token usage and model metadata in privacy-safe telemetry.