Claude Certified Developer - Foundations CCDV-F Practice Test 42
Question 410
This engineering control is missing: "Evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements". The reported condition is: A chatbot generates inconsistent wording and operations mistakes when random sampling is left uncontrolled. What is the most direct failure risk?
- Credential exposure or repeated unauthorized requests can disrupt service and incur security risk.
- Assuming deterministic text can make fragile parsers or policies fail unpredictably.
- Requests may exceed supported context or be truncated despite apparently short word counts.
- A vague or contradictory prompt can produce inconsistent fields or invalid classifications.
Explanation
Correct Answer
B:Assuming deterministic text can make fragile parsers or policies fail unpredictably. This follows from the reported condition: A chatbot generates inconsistent wording and operations mistakes when random sampling is left uncontrolled. The reason is that generative models can vary their output even for similar inputs; application correctness needs explicit checks. The appropriate mitigation is: Evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements. Evidence of success would be: Repeated fixture runs satisfy the same structured behavioral contract despite wording differences.
Incorrect Answers
A:Credential exposure or repeated unauthorized requests can disrupt service and incur security risk. That exposure calls for configure authenticated requests, secret rotation and clear failure handling in the SDK/client. The scenario here instead risks assuming deterministic text can make fragile parsers or policies fail unpredictably.
C:Requests may exceed supported context or be truncated despite apparently short word counts. That exposure calls for budget input and output tokens using the selected model's tokenization and context limits. The scenario here instead risks assuming deterministic text can make fragile parsers or policies fail unpredictably.
D:A vague or contradictory prompt can produce inconsistent fields or invalid classifications. That exposure calls for use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious. The scenario here instead risks assuming deterministic text can make fragile parsers or policies fail unpredictably.
Question 411
In this situation: An agent repeatedly reopens the same document after automatic context compaction. The developer proposes: Use structured task checkpoints with completed actions, constraints and verified external state. Which principle BEST justifies the approach?
- Syntactic JSON validity is necessary but insufficient for safe application state changes.
- Context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise.
- 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.
Explanation
Correct Answer
C:Compaction should preserve durable task state rather than treating a short summary as the entire truth. In the given situation, an agent repeatedly reopens the same document after automatic context compaction. That consideration supports the measure: Use structured task checkpoints with completed actions, constraints and verified external state. Ignoring it creates this exposure: The agent can duplicate work or violate earlier requirements after losing context. Verify the implementation by checking: A resumed task honors the documented checkpoint and does not rerun completed side effects.
Incorrect Answers
A:Syntactic JSON validity is necessary but insufficient for safe application state changes. This principle relates to validate structured model outputs against strict schema and business rules before use. The observed failure instead depends on compaction should preserve durable task state rather than treating a short summary as the entire truth. The appropriate choice is compaction should preserve durable task state rather than treating a short summary as the entire truth.
B:Context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise. This principle relates to prune low-value tool outputs and preserve a compact summary of goals, decisions and remaining work. The observed failure instead depends on compaction should preserve durable task state rather than treating a short summary as the entire truth. The appropriate choice is compaction should preserve durable task state rather than treating a short summary as the entire truth.
D: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 compaction should preserve durable task state rather than treating a short summary as the entire truth. The appropriate choice is compaction should preserve durable task state rather than treating a short summary as the entire truth.
Question 412
A developer encounters this situation: A CI pipeline deploys an integration even though tests for timeout and malformed JSON were skipped. What is the MOST appropriate technical response?
- Pin tested dependencies and use staged upgrades with regression tests and rollback.
- Separate trusted system/developer instructions from untrusted input and validate any requested tool execution.
- Persist necessary workflow checkpoints and reconcile completed actions during restarts.
- Use version control, code review and automated contract plus failure-mode tests for integration changes.
Explanation
Correct Answer
D:Use version control, code review and automated contract plus failure-mode tests for integration changes. This directly addresses the situation: A CI pipeline deploys an integration even though tests for timeout and malformed JSON were skipped. The technical reason is that aPI integration safety depends on regression tests for behavior at service boundaries. Without it, minor refactors can silently break downstream consumers or error handling. A concrete acceptance check is: CI rejects malformed responses in tests and approves only validated changes.
Incorrect Answers
A:Pin tested dependencies and use staged upgrades with regression tests and rollback. This does not repair the current workflow because aPI integration safety depends on regression tests for behavior at service boundaries. The targeted change is use version control, code review and automated contract plus failure-mode tests for integration changes.
B:Separate trusted system/developer instructions from untrusted input and validate any requested tool execution. This does not repair the current workflow because aPI integration safety depends on regression tests for behavior at service boundaries. The targeted change is use version control, code review and automated contract plus failure-mode tests for integration changes.
C:Persist necessary workflow checkpoints and reconcile completed actions during restarts. This does not repair the current workflow because aPI integration safety depends on regression tests for behavior at service boundaries. The targeted change is use version control, code review and automated contract plus failure-mode tests for integration changes.
Question 413
A developer encounters this situation: An API worker crash causes the same customer request to restart from the beginning with repeated side effects. What is the MOST appropriate technical response?
- Persist necessary workflow checkpoints and reconcile completed actions during restarts.
- Pin tested dependencies and use staged upgrades with regression tests and rollback.
- Validate HTTP status, content types and JSON response contracts before processing API results.
- Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model.
Explanation
Correct Answer
A:Persist necessary workflow checkpoints and reconcile completed actions during restarts. This directly addresses the situation: An API worker crash causes the same customer request to restart from the beginning with repeated side effects. The technical reason is that reliable distributed workflows separate durable state from transient worker memory. Without it, a restart can lose progress or duplicate external mutations. A concrete acceptance check is: A worker restart resumes from the recorded checkpoint without replaying completed actions.
Incorrect Answers
B:Pin tested dependencies and use staged upgrades with regression tests and rollback. This does not repair the current workflow because reliable distributed workflows separate durable state from transient worker memory. The targeted change is persist necessary workflow checkpoints and reconcile completed actions during restarts.
C:Validate HTTP status, content types and JSON response contracts before processing API results. This does not repair the current workflow because reliable distributed workflows separate durable state from transient worker memory. The targeted change is persist necessary workflow checkpoints and reconcile completed actions during restarts.
D:Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model. This does not repair the current workflow because reliable distributed workflows separate durable state from transient worker memory. The targeted change is persist necessary workflow checkpoints and reconcile completed actions during restarts.
Question 414
In this situation: A repository refactor uses a privileged terminal tool with no pre-command validation or reviewer gate. The developer proposes: Use Claude Code permissions and supported pre-tool hooks to enforce command approval and safety checks. Which principle BEST justifies the approach?
- Coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent.
- Deterministic approval boundaries prevent autonomous coding suggestions from becoming unreviewed operational changes.
- Opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement.
- AI-produced patches remain software changes requiring human or automated code-quality validation.
Explanation
Correct Answer
B:Deterministic approval boundaries prevent autonomous coding suggestions from becoming unreviewed operational changes. In the given situation, a repository refactor uses a privileged terminal tool with no pre-command validation or reviewer gate. That consideration supports the measure: Use Claude Code permissions and supported pre-tool hooks to enforce command approval and safety checks. Ignoring it creates this exposure: A generated command could delete files, leak secrets or deploy unapproved code. Verify the implementation by checking: An unsafe command is intercepted and refused while a harmless build/test command succeeds.
Incorrect Answers
A:Coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent. This principle relates to maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy. The observed failure instead depends on deterministic approval boundaries prevent autonomous coding suggestions from becoming unreviewed operational changes. The appropriate choice is deterministic approval boundaries prevent autonomous coding suggestions from becoming unreviewed operational changes.
C:Opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement. This principle relates to benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks. The observed failure instead depends on deterministic approval boundaries prevent autonomous coding suggestions from becoming unreviewed operational changes. The appropriate choice is deterministic approval boundaries prevent autonomous coding suggestions from becoming unreviewed operational changes.
D:AI-produced patches remain software changes requiring human or automated code-quality validation. This principle relates to review Claude Code changes as small diffs and run targeted tests before accepting or committing them. The observed failure instead depends on deterministic approval boundaries prevent autonomous coding suggestions from becoming unreviewed operational changes. The appropriate choice is deterministic approval boundaries prevent autonomous coding suggestions from becoming unreviewed operational changes.
Question 415
A developer encounters this situation: An API integration works locally with an embedded development key but fails after production secret rotation. What is the MOST appropriate technical response?
- Understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata.
- Select request/response HTTP, streaming, or persistent connections based on the real interaction pattern.
- Configure authenticated requests, secret rotation and clear failure handling in the SDK/client.
- Benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks.
Explanation
Correct Answer
C:Configure authenticated requests, secret rotation and clear failure handling in the SDK/client. This directly addresses the situation: An API integration works locally with an embedded development key but fails after production secret rotation. The technical reason is that claude API access depends on correctly scoped credentials and explicit authentication failures. Without it, credential exposure or repeated unauthorized requests can disrupt service and incur security risk. A concrete acceptance check is: Rotated credentials work without code changes and invalid keys produce a bounded clear error.
Incorrect Answers
A:Understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata. This does not repair the current workflow because claude API access depends on correctly scoped credentials and explicit authentication failures. The targeted change is configure authenticated requests, secret rotation and clear failure handling in the SDK/client.
B:Select request/response HTTP, streaming, or persistent connections based on the real interaction pattern. This does not repair the current workflow because claude API access depends on correctly scoped credentials and explicit authentication failures. The targeted change is configure authenticated requests, secret rotation and clear failure handling in the SDK/client.
D:Benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks. This does not repair the current workflow because claude API access depends on correctly scoped credentials and explicit authentication failures. The targeted change is configure authenticated requests, secret rotation and clear failure handling in the SDK/client.
Question 416
To address the situation: A billing reconciliation follows a fixed approval sequence but engineers propose an unconstrained autonomous agent. The team implements: "Use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions". Which evidence BEST demonstrates success?
- An unapproved tool request is rejected by code and logged even when the model asks to run it.
- An adversarial research input cannot invoke payment tools, while an authorized approval path still works.
- A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity.
- The workflow produces consistent step traces and enforces the required approval order on representative invoices.
Explanation
Correct Answer
D:The workflow produces consistent step traces and enforces the required approval order on representative invoices. This directly tests the outcome of use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions. in the described case: A billing reconciliation follows a fixed approval sequence but engineers propose an unconstrained autonomous agent. The underlying principle is that workflows provide predictable control flow while autonomous agents trade flexibility for added uncertainty and oversight needs. If the change is ineffective, an unnecessary agent can introduce variable actions, cost and approval gaps into a fixed business process. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A: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 the workflow produces consistent step traces and enforces the required approval order on representative invoices.
B:An adversarial research input cannot invoke payment tools, while an authorized approval path still works. This outcome would validate separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization, not the requested intervention. The required test result is the workflow produces consistent step traces and enforces the required approval order on representative invoices.
C: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 the workflow produces consistent step traces and enforces the required approval order on representative invoices.
Question 417
This engineering control is missing: "Choose managed versus self-hosted agent execution by evaluating residency, observability, permissions and operational responsibility". The reported condition is: A product team builds a managed agent but needs to keep all data and tool execution within its own boundary. What is the most direct failure risk?
- A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable.
- Prompt injection in retrieved results may redirect the agent into unauthorized execution.
- Tool failures can leave an agent stuck, silently incomplete or repeatedly calling services.
- An unnecessary agent can introduce variable actions, cost and approval gaps into a fixed business process.
Explanation
Correct Answer
A:A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable. This follows from the reported condition: A product team builds a managed agent but needs to keep all data and tool execution within its own boundary. The reason is that agent hosting models change who controls execution state, logs and network or data access. The appropriate mitigation is: Choose managed versus self-hosted agent execution by evaluating residency, observability, permissions and operational responsibility. Evidence of success would be: A design test confirms data paths, tool permissions and log ownership match the approved deployment constraints.
Incorrect Answers
B:Prompt injection in retrieved results may redirect the agent into unauthorized execution. That exposure calls for pass tool results as lower-trust data and enforce tool authorization in the application layer. The scenario here instead risks A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable.
C:Tool failures can leave an agent stuck, silently incomplete or repeatedly calling services. That exposure calls for implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness. The scenario here instead risks A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable.
D:An unnecessary agent can introduce variable actions, cost and approval gaps into a fixed business process. That exposure calls for use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions. The scenario here instead risks A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable.
Question 418
To address the situation: A multistep research task performs poorly because reasoning effort is overly constrained. The team implements: "Choose appropriate thinking or effort settings based on task complexity, latency and budget constraints". Which evidence BEST demonstrates success?
- 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.
- Repeated fixture runs satisfy the same structured behavioral contract despite wording differences.
- A controlled usage sample yields predictable accounting and an actionable budget alert.
Explanation
Correct Answer
B:A benchmark shows required accuracy within agreed latency and token budgets for each task class. This directly tests the outcome of choose appropriate thinking or effort settings based on task complexity, latency and budget constraints. in the described case: A multistep research task performs poorly because reasoning effort is overly constrained. The underlying principle is that more internal reasoning can help complex decisions but consumes latency or tokens depending on the model and settings. If the change is ineffective, overspending on trivial tasks or under-allocating difficult analysis can harm cost and quality. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A: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 A benchmark shows required accuracy within agreed latency and token budgets for each task class.
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 A benchmark shows required accuracy within agreed latency and token budgets for each task class.
D:A controlled usage sample yields predictable accounting and an actionable budget alert. This outcome would validate track input/output tokens and model, cache and batch usage per operation with privacy-safe reporting, not the requested intervention. The required test result is A benchmark shows required accuracy within agreed latency and token budgets for each task class.
Question 419
This engineering control is missing: "Check factual claims and citations against accessible source evidence with an explicit uncertainty path". The reported condition is: A generated summary confidently cites facts missing from the retrieved documents. What is the most direct failure risk?
- Malformed or out-of-range fields can trigger incorrect actions or crashes.
- The model may choose an unintended format or overlook key business rules.
- Users may trust fabricated sources or unsupported policy advice.
- Biased or contradictory examples can systematically misclassify unusual inputs.
Explanation
Correct Answer
C:Users may trust fabricated sources or unsupported policy advice. This follows from the reported condition: A generated summary confidently cites facts missing from the retrieved documents. The reason is that fluent model text is not proof that a statement is grounded in the supplied evidence. The appropriate mitigation is: Check factual claims and citations against accessible source evidence with an explicit uncertainty path. Evidence of success would be: A held-out retrieval test refuses unsupported assertions and links only to actual evidence.
Incorrect Answers
A:Malformed or out-of-range fields can trigger incorrect actions or crashes. That exposure calls for validate structured model outputs against strict schema and business rules before use. The scenario here instead risks users may trust fabricated sources or unsupported policy advice.
B:The model may choose an unintended format or overlook key business rules. That exposure calls for give clear role, task, constraints and explicit output contract with consistent examples where helpful. The scenario here instead risks users may trust fabricated sources or unsupported policy advice.
D:Biased or contradictory examples can systematically misclassify unusual inputs. That exposure calls for curate representative, consistent few-shot examples and evaluate against held-out cases. The scenario here instead risks users may trust fabricated sources or unsupported policy advice.
Question 420
This engineering control is missing: "Return typed, bounded, sanitized tool results with explicit errors and retry metadata". The reported condition is: An external API call fails but the tool wrapper returns a success-shaped empty object. What is the most direct failure risk?
- Ambiguous or unchecked arguments can invoke an unintended operation or injection path.
- Overbroad resources or malformed tool contracts can leak data or break clients.
- Treating an instruction document as a network integration can create brittle or unauthorized behavior.
- The model may hallucinate completion or leak protected information in an error message.
Explanation
Correct Answer
D:The model may hallucinate completion or leak protected information in an error message. This follows from the reported condition: An external API call fails but the tool wrapper returns a success-shaped empty object. The reason is that tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes. The appropriate mitigation is: Return typed, bounded, sanitized tool results with explicit errors and retry metadata. Evidence of success would be: An injected API error yields a truthful sanitized failure and no false success statement.
Incorrect Answers
A:Ambiguous or unchecked arguments can invoke an unintended operation or injection path. That exposure calls for define precise tool descriptions and validated JSON argument schemas with narrow capabilities. The scenario here instead risks the model may hallucinate completion or leak protected information in an error message.
B:Overbroad resources or malformed tool contracts can leak data or break clients. That exposure calls for implement the documented MCP capability contracts for tools, resources and prompts with restricted access. The scenario here instead risks the model may hallucinate completion or leak protected information in an error message.
C:Treating an instruction document as a network integration can create brittle or unauthorized behavior. That exposure calls for use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions. The scenario here instead risks the model may hallucinate completion or leak protected information in an error message.