Claude Certified Developer - Foundations CCDV-F Practice Test 28
Question 270
To address the situation: A scheduled CI deployment breaks because a new package version changes a response type unexpectedly. The team implements: "Pin tested dependencies and use staged upgrades with regression tests and rollback". Which evidence BEST demonstrates success?
- A contract test sends a supported payload and receives a properly typed Messages response.
- A clean rebuild reproduces the approved version set and a tested upgrade can roll back.
- A sustained load test shows bounded sockets and stable event-loop response latency.
- Sample traces correlate request IDs and error types without including keys or protected prompt content.
Explanation
Correct Answer
B:A clean rebuild reproduces the approved version set and a tested upgrade can roll back. This directly tests the outcome of pin tested dependencies and use staged upgrades with regression tests and rollback. in the described case: A scheduled CI deployment breaks because a new package version changes a response type unexpectedly. The underlying principle is that reproducible software builds require controlled dependency versions and compatibility gates. If the change is ineffective, unreviewed library updates can break production API clients unexpectedly. 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 A clean rebuild reproduces the approved version set and a tested upgrade can roll back.
C: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 clean rebuild reproduces the approved version set and a tested upgrade can roll back.
D:Sample traces correlate request IDs and error types without including keys or protected prompt content. This outcome would validate log bounded structured request IDs, latency and failure categories while redacting secrets and sensitive content, not the requested intervention. The required test result is A clean rebuild reproduces the approved version set and a tested upgrade can roll back.
Question 271
A developer encounters this situation: An application uses its most capable model for every trivial intent classification and exceeds budget. What is the MOST appropriate technical response?
- Pin or deliberately version model selections and run regression tests during model changes.
- Use task difficulty and measured confidence to route work to an appropriate model or escalation path.
- Benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks.
- Understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata.
Explanation
Correct Answer
C:Benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks. This directly addresses the situation: An application uses its most capable model for every trivial intent classification and exceeds budget. The technical reason is that opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement. Without it, model selection by name alone can overpay or underperform on important workflows. A concrete acceptance check is: A representative evaluation records quality, p95 latency and cost before selecting a model.
Incorrect Answers
A:Pin or deliberately version model selections and run regression tests during model changes. This does not repair the current workflow because opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement. The targeted change is benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks.
B:Use task difficulty and measured confidence to route work to an appropriate model or escalation path. This does not repair the current workflow because opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement. The targeted change is benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks.
D:Understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata. This does not repair the current workflow because opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement. The targeted change is benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks.
Question 272
To address the situation: A document-processing assistant follows user-supplied markdown commands to reveal internal templates. The team implements: "Separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly". Which evidence BEST demonstrates success?
- Segmented evaluation shows improved performance without regressions on unseen formats.
- Cross-user and subagent tests confirm no unauthorized context appears in model input or outputs.
- Unseen examples consistently satisfy the declared fields and constraints.
- A malicious embedded instruction is treated as data, not an executable task directive.
Explanation
Correct Answer
D:A malicious embedded instruction is treated as data, not an executable task directive. This directly tests the outcome of separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly. in the described case: A document-processing assistant follows user-supplied markdown commands to reveal internal templates. The underlying principle is that prompt hierarchy and data delineation help prevent lower-trust content from becoming policy. If the change is ineffective, prompt injection may redirect behavior or induce unauthorized disclosure. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:Segmented evaluation shows improved performance without regressions on unseen formats. This outcome would validate curate representative, consistent few-shot examples and evaluate against held-out cases, not the requested intervention. The required test result is A malicious embedded instruction is treated as data, not an executable task directive.
B:Cross-user and subagent tests confirm no unauthorized context appears in model input or outputs. This outcome would validate isolate contexts by user and task, passing only necessary evidence to each subagent, not the requested intervention. The required test result is A malicious embedded instruction is treated as data, not an executable task directive.
C: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 malicious embedded instruction is treated as data, not an executable task directive.
Question 273
In this situation: A routing system never escalates difficult or uncertain tasks to a more capable model. The developer proposes: Use task difficulty and measured confidence to route work to an appropriate model or escalation path. Which principle BEST justifies the approach?
- 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.
- Claude API access depends on correctly scoped credentials and explicit authentication failures.
- Examples and instruction clarity improve task alignment but must be consistent with each other.
Explanation
Correct Answer
A:Different requests require different capability budgets; selective routing balances efficiency and quality. In the given situation, a routing system never escalates difficult or uncertain tasks to a more capable model. That consideration supports the measure: Use task difficulty and measured confidence to route work to an appropriate model or escalation path. Ignoring it creates this exposure: Hard tasks may fail under an underpowered model while easy tasks waste premium capacity. Verify the implementation by checking: Evaluation shows difficult cases are escalated and routine tasks meet cost targets.
Incorrect Answers
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 different requests require different capability budgets; selective routing balances efficiency and quality. The appropriate choice is different requests require different capability budgets; selective routing balances efficiency and quality.
C:Claude API access depends on correctly scoped credentials and explicit authentication failures. This principle relates to configure authenticated requests, secret rotation and clear failure handling in the SDK/client. The observed failure instead depends on different requests require different capability budgets; selective routing balances efficiency and quality. The appropriate choice is different requests require different capability budgets; selective routing balances efficiency and quality.
D:Examples and instruction clarity improve task alignment but must be consistent with each other. This principle relates to use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious. The observed failure instead depends on different requests require different capability budgets; selective routing balances efficiency and quality. The appropriate choice is different requests require different capability budgets; selective routing balances efficiency and quality.
Question 274
A developer encounters this situation: A checkout assistant parses prose by splitting punctuation and occasionally triggers the wrong operation. What is the MOST appropriate technical response?
- Use idempotency keys or a verified deduplication record around side-effecting operations.
- Require structured validated outputs or constrained tool schemas before business-side execution.
- Persist necessary workflow checkpoints and reconcile completed actions during restarts.
- Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model.
Explanation
Correct Answer
B:Require structured validated outputs or constrained tool schemas before business-side execution. This directly addresses the situation: A checkout assistant parses prose by splitting punctuation and occasionally triggers the wrong operation. The technical reason is that application-facing output must be parsed and validated against a contract, not inferred from unconstrained prose. Without it, malformed responses can become incorrect API mutations or broken user workflows. A concrete acceptance check is: Invalid payloads are rejected without side effects and valid schema-conformant commands execute once.
Incorrect Answers
A:Use idempotency keys or a verified deduplication record around side-effecting operations. This does not repair the current workflow because application-facing output must be parsed and validated against a contract, not inferred from unconstrained prose. The targeted change is require structured validated outputs or constrained tool schemas before business-side execution.
C:Persist necessary workflow checkpoints and reconcile completed actions during restarts. This does not repair the current workflow because application-facing output must be parsed and validated against a contract, not inferred from unconstrained prose. The targeted change is require structured validated outputs or constrained tool schemas before business-side execution.
D:Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model. This does not repair the current workflow because application-facing output must be parsed and validated against a contract, not inferred from unconstrained prose. The targeted change is require structured validated outputs or constrained tool schemas before business-side execution.
Question 275
A developer encounters this situation: A product team assumes every completion ends naturally and ignores max_tokens stop reasons. What is the MOST appropriate technical response?
- Maintain a registered allowlist of tool schemas and validate returned names and arguments before execution.
- Process the documented streaming event sequence by event type and finalize only on completion.
- Validate output length and stop reason; retry or redesign output constraints when truncation occurs.
- Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model.
Explanation
Correct Answer
C:Validate output length and stop reason; retry or redesign output constraints when truncation occurs. This directly addresses the situation: A product team assumes every completion ends naturally and ignores max_tokens stop reasons. The technical reason is that token limits can terminate generation before a logically complete response. Without it, a partial or invalid answer can corrupt downstream parsing or display. A concrete acceptance check is: A constrained-output test detects truncation and prevents accepting incomplete JSON.
Incorrect Answers
A:Maintain a registered allowlist of tool schemas and validate returned names and arguments before execution. This does not repair the current workflow because token limits can terminate generation before a logically complete response. The targeted change is validate output length and stop reason; retry or redesign output constraints when truncation occurs.
B:Process the documented streaming event sequence by event type and finalize only on completion. This does not repair the current workflow because token limits can terminate generation before a logically complete response. The targeted change is validate output length and stop reason; retry or redesign output constraints when truncation occurs.
D:Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model. This does not repair the current workflow because token limits can terminate generation before a logically complete response. The targeted change is validate output length and stop reason; retry or redesign output constraints when truncation occurs.
Question 276
In this situation: A local developer needs an MCP server over standard input/output, but its logs corrupt the protocol stream. The developer proposes: Choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs. Which principle BEST justifies the approach?
- Customization should add needed control or interoperability, not unnecessary maintenance complexity.
- MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces.
- MCP capability discovery is not a substitute for identity checks on every protected operation.
- MCP transport and message framing must match client expectations for reliable interoperability.
Explanation
Correct Answer
D:MCP transport and message framing must match client expectations for reliable interoperability. In the given situation, a local developer needs an MCP server over standard input/output, but its logs corrupt the protocol stream. That consideration supports the measure: Choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs. Ignoring it creates this exposure: Clients may fail to connect or parse messages when transport framing is polluted. Verify the implementation by checking: A transport interoperability test exchanges valid requests with clean framing and no leaked log text.
Incorrect Answers
A:Customization should add needed control or interoperability, not unnecessary maintenance complexity. This principle relates to choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements. The observed failure instead depends on MCP transport and message framing must match client expectations for reliable interoperability. The appropriate choice is MCP transport and message framing must match client expectations for reliable interoperability.
B:MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces. This principle relates to implement the documented MCP capability contracts for tools, resources and prompts with restricted access. The observed failure instead depends on MCP transport and message framing must match client expectations for reliable interoperability. The appropriate choice is MCP transport and message framing must match client expectations for reliable interoperability.
C:MCP capability discovery is not a substitute for identity checks on every protected operation. This principle relates to apply authentication, resource authorization and request validation to each MCP tool/resource operation. The observed failure instead depends on MCP transport and message framing must match client expectations for reliable interoperability. The appropriate choice is MCP transport and message framing must match client expectations for reliable interoperability.
Question 277
To address the situation: A compliance app presents plausible citations even when the referenced source section was not returned. The team implements: "Check factual claims and citations against accessible source evidence with an explicit uncertainty path". Which evidence BEST demonstrates success?
- A held-out retrieval test refuses unsupported assertions and links only to actual evidence.
- Invalid values are rejected before side effects and valid cases pass typed parsing.
- Segmented evaluation shows improved performance without regressions on unseen formats.
- Cross-user and subagent tests confirm no unauthorized context appears in model input or outputs.
Explanation
Correct Answer
A:A held-out retrieval test refuses unsupported assertions and links only to actual evidence. This directly tests the outcome of check factual claims and citations against accessible source evidence with an explicit uncertainty path. in the described case: A compliance app presents plausible citations even when the referenced source section was not returned. The underlying principle is that fluent model text is not proof that a statement is grounded in the supplied evidence. If the change is ineffective, users may trust fabricated sources or unsupported policy advice. A configuration checkbox alone is insufficient proof.
Incorrect Answers
B:Invalid values are rejected before side effects and valid cases pass typed parsing. This outcome would validate validate structured model outputs against strict schema and business rules before use, not the requested intervention. The required test result is A held-out retrieval test refuses unsupported assertions and links only to actual evidence.
C:Segmented evaluation shows improved performance without regressions on unseen formats. This outcome would validate curate representative, consistent few-shot examples and evaluate against held-out cases, not the requested intervention. The required test result is A held-out retrieval test refuses unsupported assertions and links only to actual evidence.
D:Cross-user and subagent tests confirm no unauthorized context appears in model input or outputs. This outcome would validate isolate contexts by user and task, passing only necessary evidence to each subagent, not the requested intervention. The required test result is A held-out retrieval test refuses unsupported assertions and links only to actual evidence.
Question 278
To address the situation: An application fails intermittently after a prompt change but developers have no trace of tool calls. The team implements: "Capture privacy-safe model/tool traces and reproduce failures with controlled test fixtures". Which evidence BEST demonstrates success?
- A prototype meets functionality and authorization requirements with the smallest maintainable integration.
- A stored failing trace reproduces the issue and a corrected test passes under the same fixture.
- A held-out query returns a supported answer citing only documents actually retrieved for that query.
- A regression run reports per-category results and detects a deliberately inserted known failure.
Explanation
Correct Answer
B: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: An application fails intermittently after a prompt change but developers have no trace of tool calls. 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:A prototype meets functionality and authorization requirements with the smallest maintainable integration. This outcome would validate choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements, 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 held-out query returns a supported answer citing only documents actually retrieved for that query. This outcome would validate build retrieval with provenance-aware citations and grounded-answer validation before presenting claims, 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.
D: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.
Question 279
In this situation: An application uses its most capable model for every trivial intent classification and exceeds budget. The developer proposes: Benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks. Which principle BEST justifies the approach?
- 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.
- Connection models should match directional and state requirements rather than be chosen for novelty.
Explanation
Correct Answer
C:Opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement. In the given situation, an application uses its most capable model for every trivial intent classification and exceeds budget. That consideration supports the measure: Benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks. Ignoring it creates this exposure: Model selection by name alone can overpay or underperform on important workflows. Verify the implementation by checking: A representative evaluation records quality, p95 latency and cost before selecting a model.
Incorrect Answers
A: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 opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement. The appropriate choice is opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement.
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 opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement. The appropriate choice is opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement.
D:Connection models should match directional and state requirements rather than be chosen for novelty. This principle relates to select request/response HTTP, streaming, or persistent connections based on the real interaction pattern. The observed failure instead depends on opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement. The appropriate choice is opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement.
Question 280
A developer encounters this situation: A workspace assistant uses a shared tool token to fetch records across organizations. What is the MOST appropriate technical response?
- Use supported streaming events with explicit lifecycle, partial-render and finalization handling.
- Design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features.
- Use status-aware retry policies with exponential backoff, jitter and bounded attempts for transient errors.
- Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model.
Explanation
Correct Answer
D:Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model. This directly addresses the situation: A workspace assistant uses a shared tool token to fetch records across organizations. The technical reason is that data separation belongs in storage and tool access controls rather than relying on prompt instructions. Without it, a user may retrieve another tenant's confidential content through search or tool access. A concrete acceptance check is: Cross-tenant negative tests are denied before documents enter model context.
Incorrect Answers
A:Use supported streaming events with explicit lifecycle, partial-render and finalization handling. This does not repair the current workflow because data separation belongs in storage and tool access controls rather than relying on prompt instructions. The targeted change is enforce tenant identity, authorization and retrieval filtering before data is supplied to the model.
B:Design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features. This does not repair the current workflow because data separation belongs in storage and tool access controls rather than relying on prompt instructions. The targeted change is enforce tenant identity, authorization and retrieval filtering before data is supplied to the model.
C:Use status-aware retry policies with exponential backoff, jitter and bounded attempts for transient errors. This does not repair the current workflow because data separation belongs in storage and tool access controls rather than relying on prompt instructions. The targeted change is enforce tenant identity, authorization and retrieval filtering before data is supplied to the model.