Claude Certified Developer - Foundations CCDV-F Practice Test 11
Question 100
To address the situation: An application sends every chat exchange and entire knowledge base on every turn regardless of task. The team implements: "Control prompt assembly with relevant retrieval, truncation rules and context-budget measurements". Which evidence BEST demonstrates success?
- A canary deploy changes one approved setting with traceable version and no secrets in code.
- Cross-tenant negative tests are denied before documents enter model context.
- A streaming test shows progressive output and a complete, properly finalized message.
- A long-session test stays within target token usage while preserving necessary current constraints.
Explanation
Correct Answer
D:A long-session test stays within target token usage while preserving necessary current constraints. This directly tests the outcome of control prompt assembly with relevant retrieval, truncation rules and context-budget measurements. in the described case: An application sends every chat exchange and entire knowledge base on every turn regardless of task. The underlying principle is that request context should contain only task-relevant content while respecting model context and token constraints. If the change is ineffective, excessive context raises costs, latency and the likelihood of truncating critical instructions. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A canary deploy changes one approved setting with traceable version and no secrets in code. This outcome would validate centralize versioned configuration, protected secrets and environment-specific deployment settings, not the requested intervention. The required test result is A long-session test stays within target token usage while preserving necessary current constraints.
B:Cross-tenant negative tests are denied before documents enter model context. This outcome would validate enforce tenant identity, authorization and retrieval filtering before data is supplied to the model, not the requested intervention. The required test result is A long-session test stays within target token usage while preserving necessary current constraints.
C:A streaming test shows progressive output and a complete, properly finalized message. This outcome would validate use supported streaming events with explicit lifecycle, partial-render and finalization handling, not the requested intervention. The required test result is A long-session test stays within target token usage while preserving necessary current constraints.
Question 101
This engineering control is missing: "Use version control, code review and automated contract plus failure-mode tests for integration changes". The reported condition is: A developer merges an LLM prompt change without tests for the expected structured output contract. What is the most direct failure risk?
- Minor refactors can silently break downstream consumers or error handling.
- The UI or tool handler can assemble malformed content and act on partial arguments.
- Throughput and reliability can collapse as concurrent requests increase.
- Transient errors can be misinterpreted as valid model data or corrupt application state.
Explanation
Correct Answer
A:Minor refactors can silently break downstream consumers or error handling. This follows from the reported condition: A developer merges an LLM prompt change without tests for the expected structured output contract. The reason is that aPI integration safety depends on regression tests for behavior at service boundaries. The appropriate mitigation is: Use version control, code review and automated contract plus failure-mode tests for integration changes. Evidence of success would be: CI rejects malformed responses in tests and approves only validated changes.
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 minor refactors can silently break downstream consumers or error handling.
C:Throughput and reliability can collapse as concurrent requests increase. That exposure calls for use reusable supported SDK or HTTP clients with connection management and nonblocking I/O. The scenario here instead risks minor refactors can silently break downstream consumers or error handling.
D:Transient errors can be misinterpreted as valid model data or corrupt application state. That exposure calls for validate HTTP status, content types and JSON response contracts before processing API results. The scenario here instead risks minor refactors can silently break downstream consumers or error handling.
Question 102
To address the situation: An application accepts free-form model output directly as executable business commands. The team implements: "Require structured validated outputs or constrained tool schemas before business-side execution". Which evidence BEST demonstrates success?
- A streaming test shows progressive output and a complete, properly finalized message.
- Invalid payloads are rejected without side effects and valid schema-conformant commands execute once.
- A held-out query returns a supported answer citing only documents actually retrieved for that query.
- A worker restart resumes from the recorded checkpoint without replaying completed actions.
Explanation
Correct Answer
B:Invalid payloads are rejected without side effects and valid schema-conformant commands execute once. This directly tests the outcome of require structured validated outputs or constrained tool schemas before business-side execution. in the described case: An application accepts free-form model output directly as executable business commands. The underlying principle is that application-facing output must be parsed and validated against a contract, not inferred from unconstrained prose. If the change is ineffective, malformed responses can become incorrect API mutations or broken user workflows. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A streaming test shows progressive output and a complete, properly finalized message. This outcome would validate use supported streaming events with explicit lifecycle, partial-render and finalization handling, not the requested intervention. The required test result is invalid payloads are rejected without side effects and valid schema-conformant commands execute once.
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 invalid payloads are rejected without side effects and valid schema-conformant commands execute once.
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 invalid payloads are rejected without side effects and valid schema-conformant commands execute once.
Question 103
In this situation: A development team changes SDK versions without pinning dependencies or recording compatibility. The developer proposes: Pin tested dependencies and use staged upgrades with regression tests and rollback. Which principle BEST justifies the approach?
- Rate limits and transient failures require controlled retries; permanent client errors should fail fast.
- Observability must preserve operational diagnostics without turning logs into a data-leak channel.
- Reproducible software builds require controlled dependency versions and compatibility gates.
- The Messages API carries structured content that must be handled by type and state.
Explanation
Correct Answer
C:Reproducible software builds require controlled dependency versions and compatibility gates. In the given situation, a development team changes SDK versions without pinning dependencies or recording compatibility. That consideration supports the measure: Pin tested dependencies and use staged upgrades with regression tests and rollback. Ignoring it creates this exposure: Unreviewed library updates can break production API clients unexpectedly. Verify the implementation by checking: A clean rebuild reproduces the approved version set and a tested upgrade can roll back.
Incorrect Answers
A:Rate limits and transient failures require controlled retries; permanent client errors should fail fast. This principle relates to use status-aware retry policies with exponential backoff, jitter and bounded attempts for transient errors. The observed failure instead depends on reproducible software builds require controlled dependency versions and compatibility gates. The appropriate choice is reproducible software builds require controlled dependency versions and compatibility gates.
B:Observability must preserve operational diagnostics without turning logs into a data-leak channel. This principle relates to log bounded structured request IDs, latency and failure categories while redacting secrets and sensitive content. The observed failure instead depends on reproducible software builds require controlled dependency versions and compatibility gates. The appropriate choice is reproducible software builds require controlled dependency versions and compatibility gates.
D:The Messages API carries structured content that must be handled by type and state. This principle relates to parse documented typed content blocks and stop reasons rather than flattening responses into text. The observed failure instead depends on reproducible software builds require controlled dependency versions and compatibility gates. The appropriate choice is reproducible software builds require controlled dependency versions and compatibility gates.
Question 104
A developer encounters this situation: A support agent handles both policy research and financial mutations with no trust boundary between roles. What is the MOST appropriate technical response?
- Keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint.
- Use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions.
- Prune tool outputs and maintain concise task state or checkpoints to keep context useful.
- Separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization.
Explanation
Correct Answer
D:Separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization. This directly addresses the situation: A support agent handles both policy research and financial mutations with no trust boundary between roles. The technical reason is that decomposing specialized responsibilities creates clear tool permissions and reduces cross-task privilege confusion. Without it, a compromised research context could trigger unauthorized payment changes if tools share excessive authority. A concrete acceptance check is: An adversarial research input cannot invoke payment tools, while an authorized approval path still works.
Incorrect Answers
A:Keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint. This does not repair the current workflow because decomposing specialized responsibilities creates clear tool permissions and reduces cross-task privilege confusion. The targeted change is separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization.
B:Use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions. This does not repair the current workflow because decomposing specialized responsibilities creates clear tool permissions and reduces cross-task privilege confusion. The targeted change is separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization.
C:Prune tool outputs and maintain concise task state or checkpoints to keep context useful. This does not repair the current workflow because decomposing specialized responsibilities creates clear tool permissions and reduces cross-task privilege confusion. The targeted change is separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization.
Question 105
This engineering control is missing: "Persist necessary workflow checkpoints and reconcile completed actions during restarts". The reported condition is: An API worker crash causes the same customer request to restart from the beginning with repeated side effects. What is the most direct failure risk?
- A restart can lose progress or duplicate external mutations.
- The model may answer without critical prior constraints or invent missing context.
- Throughput and reliability can collapse as concurrent requests increase.
- Tool requests and multi-part results may be lost or misinterpreted by a text-only parser.
Explanation
Correct Answer
A:A restart can lose progress or duplicate external mutations. This follows from the reported condition: An API worker crash causes the same customer request to restart from the beginning with repeated side effects. The reason is that reliable distributed workflows separate durable state from transient worker memory. The appropriate mitigation is: Persist necessary workflow checkpoints and reconcile completed actions during restarts. Evidence of success would be: A worker restart resumes from the recorded checkpoint without replaying completed actions.
Incorrect Answers
B:The model may answer without critical prior constraints or invent missing context. That exposure calls for persist and re-supply required prior message context explicitly according to the stateless Messages API pattern. The scenario here instead risks A restart can lose progress or duplicate external mutations.
C:Throughput and reliability can collapse as concurrent requests increase. That exposure calls for use reusable supported SDK or HTTP clients with connection management and nonblocking I/O. The scenario here instead risks A restart can lose progress or duplicate external mutations.
D:Tool requests and multi-part results may be lost or misinterpreted by a text-only parser. That exposure calls for parse documented typed content blocks and stop reasons rather than flattening responses into text. The scenario here instead risks A restart can lose progress or duplicate external mutations.
Question 106
This engineering control is missing: "Pin tested dependencies and use staged upgrades with regression tests and rollback". The reported condition is: A scheduled CI deployment breaks because a new package version changes a response type unexpectedly. What is the most direct failure risk?
- Tool requests and multi-part results may be lost or misinterpreted by a text-only parser.
- Unreviewed library updates can break production API clients unexpectedly.
- A restart can lose progress or duplicate external mutations.
- Malformed responses can become incorrect API mutations or broken user workflows.
Explanation
Correct Answer
B:Unreviewed library updates can break production API clients unexpectedly. This follows from the reported condition: A scheduled CI deployment breaks because a new package version changes a response type unexpectedly. The reason is that reproducible software builds require controlled dependency versions and compatibility gates. The appropriate mitigation is: Pin tested dependencies and use staged upgrades with regression tests and rollback. Evidence of success would be: A clean rebuild reproduces the approved version set and a tested upgrade can roll back.
Incorrect Answers
A:Tool requests and multi-part results may be lost or misinterpreted by a text-only parser. That exposure calls for parse documented typed content blocks and stop reasons rather than flattening responses into text. The scenario here instead risks unreviewed library updates can break production API clients unexpectedly.
C:A restart can lose progress or duplicate external mutations. That exposure calls for persist necessary workflow checkpoints and reconcile completed actions during restarts. The scenario here instead risks unreviewed library updates can break production API clients unexpectedly.
D:Malformed responses can become incorrect API mutations or broken user workflows. That exposure calls for require structured validated outputs or constrained tool schemas before business-side execution. The scenario here instead risks unreviewed library updates can break production API clients unexpectedly.
Question 107
To address the situation: A developer mixes policy and input text in a long ambiguous paragraph with conflicting instructions. The team implements: "Give clear role, task, constraints and explicit output contract with consistent examples where helpful". Which evidence BEST demonstrates success?
- A resumed task honors the documented checkpoint and does not rerun completed side effects.
- A malicious embedded instruction is treated as data, not an executable task directive.
- Unseen examples consistently satisfy the declared fields and constraints.
- A long-run evaluation retains the required constraints while remaining within the context budget.
Explanation
Correct Answer
C:Unseen examples consistently satisfy the declared fields and constraints. This directly tests the outcome of give clear role, task, constraints and explicit output contract with consistent examples where helpful. in the described case: A developer mixes policy and input text in a long ambiguous paragraph with conflicting instructions. The underlying principle is that specific, noncontradictory instructions reduce interpretation ambiguity and make validation possible. If the change is ineffective, the model may choose an unintended format or overlook key business rules. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A resumed task honors the documented checkpoint and does not rerun completed side effects. This outcome would validate use structured task checkpoints with completed actions, constraints and verified external state, not the requested intervention. The required test result is unseen examples consistently satisfy the declared fields and constraints.
B:A malicious embedded instruction is treated as data, not an executable task directive. This outcome would validate separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly, not the requested intervention. The required test result is unseen examples consistently satisfy the declared fields and constraints.
D:A long-run evaluation retains the required constraints while remaining within the context budget. This outcome would validate prune low-value tool outputs and preserve a compact summary of goals, decisions and remaining work, not the requested intervention. The required test result is unseen examples consistently satisfy the declared fields and constraints.
Question 108
To address the situation: A long-running tool agent keeps every old tool log in context until requests exceed the model window. The team implements: "Prune tool outputs and maintain concise task state or checkpoints to keep context useful". Which evidence BEST demonstrates success?
- A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity.
- A forced retry produces one intended side effect and a visible record of reconciliation.
- A simulated unresolvable task stops within limits and creates a clear escalation record.
- A multi-step test stays within budget while retaining key constraints and completed steps.
Explanation
Correct Answer
D:A multi-step test stays within budget while retaining key constraints and completed steps. This directly tests the outcome of prune tool outputs and maintain concise task state or checkpoints to keep context useful. in the described case: A long-running tool agent keeps every old tool log in context until requests exceed the model window. The underlying principle is that agent memory should preserve decision-relevant state rather than an unbounded history of low-value observations. If the change is ineffective, context bloat can increase costs, truncation and inconsistent task completion. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity. This outcome would validate match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty, not the requested intervention. The required test result is A multi-step test stays within budget while retaining key constraints and completed steps.
B: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 multi-step test stays within budget while retaining key constraints and completed steps.
C: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 multi-step test stays within budget while retaining key constraints and completed steps.
Question 109
To address the situation: A chatbot generates inconsistent wording and operations mistakes when random sampling is left uncontrolled. The team implements: "Evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements". Which evidence BEST demonstrates success?
- Repeated fixture runs satisfy the same structured behavioral contract despite wording differences.
- Rotated credentials work without code changes and invalid keys produce a bounded clear error.
- An unseen held-out sample follows the intended schema and policy without relying on memorized examples.
- A benchmark shows required accuracy within agreed latency and token budgets for each task class.
Explanation
Correct Answer
A:Repeated fixture runs satisfy the same structured behavioral contract despite wording differences. This directly tests the outcome of evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements. in the described case: A chatbot generates inconsistent wording and operations mistakes when random sampling is left uncontrolled. The underlying principle is that generative models can vary their output even for similar inputs; application correctness needs explicit checks. If the change is ineffective, assuming deterministic text can make fragile parsers or policies fail unpredictably. A configuration checkbox alone is insufficient proof.
Incorrect Answers
B: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 repeated fixture runs satisfy the same structured behavioral contract despite wording differences.
C: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 repeated fixture runs satisfy the same structured behavioral contract despite wording differences.
D:A benchmark shows required accuracy within agreed latency and token budgets for each task class. This outcome would validate choose appropriate thinking or effort settings based on task complexity, latency and budget constraints, not the requested intervention. The required test result is repeated fixture runs satisfy the same structured behavioral contract despite wording differences.
Question 110
This engineering control is missing: "Capture privacy-safe model/tool traces and reproduce failures with controlled test fixtures". The reported condition is: An application fails intermittently after a prompt change but developers have no trace of tool calls. What is the most direct failure risk?
- Unrelated user data may contaminate answers or leak into another task.
- Intermittent failures can remain unreproducible or be blamed on the wrong integration layer.
- Context bloat can increase costs, truncation and inconsistent task completion.
- An update may degrade key user journeys without detection despite an impressive demo.
Explanation
Correct Answer
B:Intermittent failures can remain unreproducible or be blamed on the wrong integration layer. This follows from the reported condition: An application fails intermittently after a prompt change but developers have no trace of tool calls. The reason is that debugging agent and API behavior requires visibility into inputs, tool sequence and stop reasons. The appropriate mitigation is: Capture privacy-safe model/tool traces and reproduce failures with controlled test fixtures. Evidence of success would be: A stored failing trace reproduces the issue and a corrected test passes under the same fixture.
Incorrect Answers
A:Unrelated user data may contaminate answers or leak into another task. That exposure calls for isolate contexts by user and task, passing only necessary evidence to each subagent. The scenario here instead risks intermittent failures can remain unreproducible or be blamed on the wrong integration layer.
C:Context bloat can increase costs, truncation and inconsistent task completion. That exposure calls for prune tool outputs and maintain concise task state or checkpoints to keep context useful. The scenario here instead risks intermittent failures can remain unreproducible or be blamed on the wrong integration layer.
D:An update may degrade key user journeys without detection despite an impressive demo. That exposure calls for build a representative held-out evaluation set with measurable correctness criteria and failure categories. The scenario here instead risks intermittent failures can remain unreproducible or be blamed on the wrong integration layer.