Claude Certified Developer - Foundations CCDV-F Practice Test 19
Question 180
To address the situation: A streaming tool response is corrupted yet logs contain only the final user-visible message. The team implements: "Capture privacy-safe model/tool traces and reproduce failures with controlled test fixtures". Which evidence BEST demonstrates success?
- Unseen examples consistently satisfy the declared fields and constraints.
- A regression run reports per-category results and detects a deliberately inserted known failure.
- A representative evaluation records quality, p95 latency and cost before selecting a model.
- A stored failing trace reproduces the issue and a corrected test passes under the same fixture.
Explanation
Correct Answer
D:A stored failing trace reproduces the issue and a corrected test passes under the same fixture. This directly tests the outcome of capture privacy-safe model/tool traces and reproduce failures with controlled test fixtures. in the described case: A streaming tool response is corrupted yet logs contain only the final user-visible message. The underlying principle is that debugging agent and API behavior requires visibility into inputs, tool sequence and stop reasons. If the change is ineffective, intermittent failures can remain unreproducible or be blamed on the wrong integration layer. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:Unseen examples consistently satisfy the declared fields and constraints. This outcome would validate give clear role, task, constraints and explicit output contract with consistent examples where helpful, not the requested intervention. The required test result is A stored failing trace reproduces the issue and a corrected test passes under the same fixture.
B:A regression run reports per-category results and detects a deliberately inserted known failure. This outcome would validate build a representative held-out evaluation set with measurable correctness criteria and failure categories, not the requested intervention. The required test result is A stored failing trace reproduces the issue and a corrected test passes under the same fixture.
C: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 A stored failing trace reproduces the issue and a corrected test passes under the same fixture.
Question 181
A developer encounters this situation: A chatbot generates inconsistent wording and operations mistakes when random sampling is left uncontrolled. What is the MOST appropriate technical response?
- Evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements.
- Pin or deliberately version model selections and run regression tests during model changes.
- Use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious.
- Budget input and output tokens using the selected model's tokenization and context limits.
Explanation
Correct Answer
A:Evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements. This directly addresses the situation: A chatbot generates inconsistent wording and operations mistakes when random sampling is left uncontrolled. The technical reason is that generative models can vary their output even for similar inputs; application correctness needs explicit checks. Without it, assuming deterministic text can make fragile parsers or policies fail unpredictably. A concrete acceptance check is: Repeated fixture runs satisfy the same structured behavioral contract despite wording differences.
Incorrect Answers
B:Pin or deliberately version model selections and run regression tests during model changes. This does not repair the current workflow because generative models can vary their output even for similar inputs; application correctness needs explicit checks. The targeted change is evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements.
C:Use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious. This does not repair the current workflow because generative models can vary their output even for similar inputs; application correctness needs explicit checks. The targeted change is evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements.
D:Budget input and output tokens using the selected model's tokenization and context limits. This does not repair the current workflow because generative models can vary their output even for similar inputs; application correctness needs explicit checks. The targeted change is evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements.
Question 182
A developer encounters this situation: A multistep research task performs poorly because reasoning effort is overly constrained. What is the MOST appropriate technical response?
- Use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious.
- Choose appropriate thinking or effort settings based on task complexity, latency and budget constraints.
- Benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks.
- Budget input and output tokens using the selected model's tokenization and context limits.
Explanation
Correct Answer
B:Choose appropriate thinking or effort settings based on task complexity, latency and budget constraints. This directly addresses the situation: A multistep research task performs poorly because reasoning effort is overly constrained. The technical reason is that more internal reasoning can help complex decisions but consumes latency or tokens depending on the model and settings. Without it, overspending on trivial tasks or under-allocating difficult analysis can harm cost and quality. A concrete acceptance check is: A benchmark shows required accuracy within agreed latency and token budgets for each task class.
Incorrect Answers
A:Use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious. This does not repair the current workflow because more internal reasoning can help complex decisions but consumes latency or tokens depending on the model and settings. The targeted change is choose appropriate thinking or effort settings based on task complexity, latency and budget constraints.
C:Benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks. This does not repair the current workflow because more internal reasoning can help complex decisions but consumes latency or tokens depending on the model and settings. The targeted change is choose appropriate thinking or effort settings based on task complexity, latency and budget constraints.
D:Budget input and output tokens using the selected model's tokenization and context limits. This does not repair the current workflow because more internal reasoning can help complex decisions but consumes latency or tokens depending on the model and settings. The targeted change is choose appropriate thinking or effort settings based on task complexity, latency and budget constraints.
Question 183
In this situation: A production service ignores API request identifiers when opening a vendor support ticket. The developer proposes: Capture provider request IDs, token usage and model metadata in privacy-safe telemetry. Which principle BEST justifies the approach?
- Prompt and data channels have different trust levels, and source documents must not override application rules.
- Tool descriptions guide model behavior but actual invocation authority remains in client code.
- Operational auditing needs identifiers and metering to diagnose failures and allocate model costs.
- Token limits can terminate generation before a logically complete response.
Explanation
Correct Answer
C:Operational auditing needs identifiers and metering to diagnose failures and allocate model costs. In the given situation, a production service ignores API request identifiers when opening a vendor support ticket. That consideration supports the measure: Capture provider request IDs, token usage and model metadata in privacy-safe telemetry. Ignoring it creates this exposure: An incident cannot be traced and usage budgets can drift unnoticed. Verify the implementation by checking: A test call yields correlated request metadata and measured token consumption without leaking prompt content.
Incorrect Answers
A:Prompt and data channels have different trust levels, and source documents must not override application rules. This principle relates to separate trusted system/developer instructions from untrusted input and validate any requested tool execution. The observed failure instead depends on operational auditing needs identifiers and metering to diagnose failures and allocate model costs. The appropriate choice is operational auditing needs identifiers and metering to diagnose failures and allocate model costs.
B:Tool descriptions guide model behavior but actual invocation authority remains in client code. This principle relates to maintain a registered allowlist of tool schemas and validate returned names and arguments before execution. The observed failure instead depends on operational auditing needs identifiers and metering to diagnose failures and allocate model costs. The appropriate choice is operational auditing needs identifiers and metering to diagnose failures and allocate model costs.
D:Token limits can terminate generation before a logically complete response. This principle relates to validate output length and stop reason; retry or redesign output constraints when truncation occurs. The observed failure instead depends on operational auditing needs identifiers and metering to diagnose failures and allocate model costs. The appropriate choice is operational auditing needs identifiers and metering to diagnose failures and allocate model costs.
Question 184
In this situation: A multi-step research agent appends entire search pages and loses the original user constraints. The developer proposes: Prune low-value tool outputs and preserve a compact summary of goals, decisions and remaining work. Which principle BEST justifies the approach?
- Prompt hierarchy and data delineation help prevent lower-trust content from becoming policy.
- Compaction should preserve durable task state rather than treating a short summary as the entire truth.
- Context boundaries reduce distraction and unauthorized exposure between independent workstreams.
- Context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise.
Explanation
Correct Answer
D:Context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise. In the given situation, a multi-step research agent appends entire search pages and loses the original user constraints. That consideration supports the measure: Prune low-value tool outputs and preserve a compact summary of goals, decisions and remaining work. Ignoring it creates this exposure: Context overload can cause drift, truncation and inconsistent actions. Verify the implementation by checking: A long-run evaluation retains the required constraints while remaining within the context budget.
Incorrect Answers
A: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 engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise. The appropriate choice is context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise.
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 engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise. The appropriate choice is context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise.
C:Context boundaries reduce distraction and unauthorized exposure between independent workstreams. This principle relates to isolate contexts by user and task, passing only necessary evidence to each subagent. The observed failure instead depends on context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise. The appropriate choice is context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise.
Question 185
To address the situation: A Python integration creates a new HTTP client for every model request and leaks sockets under load. The team implements: "Use reusable supported SDK or HTTP clients with connection management and nonblocking I/O". Which evidence BEST demonstrates success?
- A sustained load test shows bounded sockets and stable event-loop response latency.
- Negative HTTP fixtures produce explicit typed failures and valid JSON remains parseable.
- A simulated timeout/retry results in a single authorized record and a traceable request ID.
- A worker restart resumes from the recorded checkpoint without replaying completed actions.
Explanation
Correct Answer
A:A sustained load test shows bounded sockets and stable event-loop response latency. This directly tests the outcome of use reusable supported SDK or HTTP clients with connection management and nonblocking I/O. in the described case: A Python integration creates a new HTTP client for every model request and leaks sockets under load. The underlying principle is that resource-conscious client design prevents connection exhaustion and event-loop stalls in API services. If the change is ineffective, throughput and reliability can collapse as concurrent requests increase. A configuration checkbox alone is insufficient proof.
Incorrect Answers
B: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 A sustained load test shows bounded sockets and stable event-loop response latency.
C:A simulated timeout/retry results in a single authorized record and a traceable request ID. This outcome would validate use idempotency keys or a verified deduplication record around side-effecting operations, not the requested intervention. The required test result is A sustained load test shows bounded sockets and stable event-loop response latency.
D:A worker restart resumes from the recorded checkpoint without replaying completed actions. This outcome would validate persist necessary workflow checkpoints and reconcile completed actions during restarts, not the requested intervention. The required test result is A sustained load test shows bounded sockets and stable event-loop response latency.
Question 186
To address the situation: A client treats all API failures as retryable and repeatedly sends malformed requests. The team implements: "Use status-aware retry policies with exponential backoff, jitter and bounded attempts for transient errors". Which evidence BEST demonstrates success?
- A contract test sends a supported payload and receives a properly typed Messages response.
- Fault tests demonstrate bounded retries for transient codes and immediate rejection of invalid requests.
- CI rejects malformed responses in tests and approves only validated changes.
- Recorded event fixtures reconstruct the same final message as the nonstreaming response.
Explanation
Correct Answer
B:Fault tests demonstrate bounded retries for transient codes and immediate rejection of invalid requests. This directly tests the outcome of use status-aware retry policies with exponential backoff, jitter and bounded attempts for transient errors. in the described case: A client treats all API failures as retryable and repeatedly sends malformed requests. The underlying principle is that rate limits and transient failures require controlled retries; permanent client errors should fail fast. If the change is ineffective, retry storms can magnify outages and increase costs without recovering service. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A contract test sends a supported payload and receives a properly typed Messages response. This outcome would validate use documented Messages API request fields and supported client SDK methods with schema validation, not the requested intervention. The required test result is fault tests demonstrate bounded retries for transient codes and immediate rejection of invalid requests.
C:CI rejects malformed responses in tests and approves only validated changes. This outcome would validate use version control, code review and automated contract plus failure-mode tests for integration changes, not the requested intervention. The required test result is fault tests demonstrate bounded retries for transient codes and immediate rejection of invalid requests.
D:Recorded event fixtures reconstruct the same final message as the nonstreaming response. This outcome would validate process the documented streaming event sequence by event type and finalize only on completion, not the requested intervention. The required test result is fault tests demonstrate bounded retries for transient codes and immediate rejection of invalid requests.
Question 187
In this situation: An AI product has no per-feature token accounting and cannot explain a billing spike. The developer proposes: Track input/output tokens and model, cache and batch usage per operation with privacy-safe reporting. Which principle BEST justifies the approach?
- Caching can reduce repeated processing of identical eligible context while requiring correct cache boundaries.
- Model updates can alter behavior, latency and tool use; compatibility must be tested at release time.
- Cost attribution requires measured usage and explicit prices rather than assumptions about response length.
- More internal reasoning can help complex decisions but consumes latency or tokens depending on the model and settings.
Explanation
Correct Answer
C:Cost attribution requires measured usage and explicit prices rather than assumptions about response length. In the given situation, an AI product has no per-feature token accounting and cannot explain a billing spike. That consideration supports the measure: Track input/output tokens and model, cache and batch usage per operation with privacy-safe reporting. Ignoring it creates this exposure: A chat feature can exceed budget without an owner or per-route cost alert. Verify the implementation by checking: A controlled usage sample yields predictable accounting and an actionable budget alert.
Incorrect Answers
A:Caching can reduce repeated processing of identical eligible context while requiring correct cache boundaries. This principle relates to apply supported prompt caching or reuse patterns for stable prefix content and monitor cache hits. The observed failure instead depends on cost attribution requires measured usage and explicit prices rather than assumptions about response length. The appropriate choice is cost attribution requires measured usage and explicit prices rather than assumptions about response length.
B:Model updates can alter behavior, latency and tool use; compatibility must be tested at release time. This principle relates to pin or deliberately version model selections and run regression tests during model changes. The observed failure instead depends on cost attribution requires measured usage and explicit prices rather than assumptions about response length. The appropriate choice is cost attribution requires measured usage and explicit prices rather than assumptions about response length.
D:More internal reasoning can help complex decisions but consumes latency or tokens depending on the model and settings. This principle relates to choose appropriate thinking or effort settings based on task complexity, latency and budget constraints. The observed failure instead depends on cost attribution requires measured usage and explicit prices rather than assumptions about response length. The appropriate choice is cost attribution requires measured usage and explicit prices rather than assumptions about response length.
Question 188
To address the situation: A product rollout uses ad hoc human impressions and has no baseline accuracy or regression record. The team implements: "Build a representative held-out evaluation set with measurable correctness criteria and failure categories". Which evidence BEST demonstrates success?
- An injected API error yields a truthful sanitized failure and no false success statement.
- A simulated HTTP failure emerges as the expected SDK error with a traceable request ID.
- A stored failing trace reproduces the issue and a corrected test passes under the same fixture.
- A regression run reports per-category results and detects a deliberately inserted known failure.
Explanation
Correct Answer
D:A regression run reports per-category results and detects a deliberately inserted known failure. This directly tests the outcome of build a representative held-out evaluation set with measurable correctness criteria and failure categories. in the described case: A product rollout uses ad hoc human impressions and has no baseline accuracy or regression record. The underlying principle is that reliable LLM evaluation requires repeatable test cases and metrics rather than cherry-picked demonstrations. If the change is ineffective, an update may degrade key user journeys without detection despite an impressive demo. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A: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 A regression run reports per-category results and detects a deliberately inserted known failure.
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 regression run reports per-category results and detects a deliberately inserted known failure.
C:A stored failing trace reproduces the issue and a corrected test passes under the same fixture. This outcome would validate capture privacy-safe model/tool traces and reproduce failures with controlled test fixtures, not the requested intervention. The required test result is A regression run reports per-category results and detects a deliberately inserted known failure.
Question 189
To address the situation: A long document task fails because the app ignores tokens used by instructions and tool descriptions. The team implements: "Budget input and output tokens using the selected model's tokenization and context limits". Which evidence BEST demonstrates success?
- Measured token usage stays within the model's supported window for representative long inputs.
- An upgrade canary passes contract and task evaluations with an available rollback path.
- Repeated fixture runs satisfy the same structured behavioral contract despite wording differences.
- An unseen held-out sample follows the intended schema and policy without relying on memorized examples.
Explanation
Correct Answer
A:Measured token usage stays within the model's supported window for representative long inputs. This directly tests the outcome of budget input and output tokens using the selected model's tokenization and context limits. in the described case: A long document task fails because the app ignores tokens used by instructions and tool descriptions. The underlying principle is that tokens are model-specific units and all relevant context elements contribute to request size. If the change is ineffective, requests may exceed supported context or be truncated despite apparently short word counts. A configuration checkbox alone is insufficient proof.
Incorrect Answers
B:An upgrade canary passes contract and task evaluations with an available rollback path. This outcome would validate pin or deliberately version model selections and run regression tests during model changes, not the requested intervention. The required test result is measured token usage stays within the model's supported window for representative long inputs.
C:Repeated fixture runs satisfy the same structured behavioral contract despite wording differences. This outcome would validate evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements, not the requested intervention. The required test result is measured token usage stays within the model's supported window for representative long inputs.
D:An unseen held-out sample follows the intended schema and policy without relying on memorized examples. This outcome would validate use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious, not the requested intervention. The required test result is measured token usage stays within the model's supported window for representative long inputs.
Question 190
This engineering control is missing: "Validate HTTP status, content types and JSON response contracts before processing API results". The reported condition is: A service trusts network success and never checks the status code or body shape returned by a dependency. What is the most direct failure risk?
- Minor refactors can silently break downstream consumers or error handling.
- Transient errors can be misinterpreted as valid model data or corrupt application state.
- One logical action can produce duplicated invoices, tickets or payments.
- Credentials or personal data can be exposed in log storage, or incidents can be impossible to trace.
Explanation
Correct Answer
B:Transient errors can be misinterpreted as valid model data or corrupt application state. This follows from the reported condition: A service trusts network success and never checks the status code or body shape returned by a dependency. The reason is that rEST clients must handle status codes and payload structure as separate error conditions. The appropriate mitigation is: Validate HTTP status, content types and JSON response contracts before processing API results. Evidence of success would be: Negative HTTP fixtures produce explicit typed failures and valid JSON remains parseable.
Incorrect Answers
A:Minor refactors can silently break downstream consumers or error handling. That exposure calls for use version control, code review and automated contract plus failure-mode tests for integration changes. The scenario here instead risks transient errors can be misinterpreted as valid model data or corrupt application state.
C:One logical action can produce duplicated invoices, tickets or payments. That exposure calls for use idempotency keys or a verified deduplication record around side-effecting operations. The scenario here instead risks transient errors can be misinterpreted as valid model data or corrupt application state.
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 transient errors can be misinterpreted as valid model data or corrupt application state.