Claude Certified Developer - Foundations CCDV-F Practice Test 48
Question 470
To address the situation: A zero-shot extraction prompt ignores an organization-specific schema that the model cannot infer. The team implements: "Use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious". Which evidence BEST demonstrates success?
- 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.
- A benchmark shows required accuracy within agreed latency and token budgets for each task class.
- An upgrade canary passes contract and task evaluations with an available rollback path.
Explanation
Correct Answer
B:An unseen held-out sample follows the intended schema and policy without relying on memorized examples. This directly tests the outcome of use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious. in the described case: A zero-shot extraction prompt ignores an organization-specific schema that the model cannot infer. The underlying principle is that examples and instruction clarity improve task alignment but must be consistent with each other. If the change is ineffective, a vague or contradictory prompt can produce inconsistent fields or invalid classifications. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A: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 an unseen held-out sample follows the intended schema and policy without relying on memorized examples.
C: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 an unseen held-out sample follows the intended schema and policy without relying on memorized examples.
D: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 an unseen held-out sample follows the intended schema and policy without relying on memorized examples.
Question 471
In this situation: A zero-shot extraction prompt ignores an organization-specific schema that the model cannot infer. The developer proposes: Use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious. Which principle BEST justifies the approach?
- Tokens are model-specific units and all relevant context elements contribute to request size.
- More internal reasoning can help complex decisions but consumes latency or tokens depending on the model and settings.
- Examples and instruction clarity improve task alignment but must be consistent with each other.
- Opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement.
Explanation
Correct Answer
C:Examples and instruction clarity improve task alignment but must be consistent with each other. In the given situation, a zero-shot extraction prompt ignores an organization-specific schema that the model cannot infer. That consideration supports the measure: Use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious. Ignoring it creates this exposure: A vague or contradictory prompt can produce inconsistent fields or invalid classifications. Verify the implementation by checking: An unseen held-out sample follows the intended schema and policy without relying on memorized examples.
Incorrect Answers
A:Tokens are model-specific units and all relevant context elements contribute to request size. This principle relates to budget input and output tokens using the selected model's tokenization and context limits. The observed failure instead depends on examples and instruction clarity improve task alignment but must be consistent with each other. The appropriate choice is examples and instruction clarity improve task alignment but must be consistent with each other.
B: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 examples and instruction clarity improve task alignment but must be consistent with each other. The appropriate choice is examples and instruction clarity improve task alignment but must be consistent with each other.
D: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 examples and instruction clarity improve task alignment but must be consistent with each other. The appropriate choice is examples and instruction clarity improve task alignment but must be consistent with each other.
Question 472
A developer encounters this situation: A local developer needs an MCP server over standard input/output, but its logs corrupt the protocol stream. What is the MOST appropriate technical response?
- Apply authentication, resource authorization and request validation to each MCP tool/resource operation.
- Implement the documented MCP capability contracts for tools, resources and prompts with restricted access.
- Use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions.
- Choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs.
Explanation
Correct Answer
D:Choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs. This directly addresses the situation: A local developer needs an MCP server over standard input/output, but its logs corrupt the protocol stream. The technical reason is that mCP transport and message framing must match client expectations for reliable interoperability. Without it, clients may fail to connect or parse messages when transport framing is polluted. A concrete acceptance check is: A transport interoperability test exchanges valid requests with clean framing and no leaked log text.
Incorrect Answers
A:Apply authentication, resource authorization and request validation to each MCP tool/resource operation. This does not repair the current workflow because mCP transport and message framing must match client expectations for reliable interoperability. The targeted change is choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs.
B:Implement the documented MCP capability contracts for tools, resources and prompts with restricted access. This does not repair the current workflow because mCP transport and message framing must match client expectations for reliable interoperability. The targeted change is choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs.
C:Use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions. This does not repair the current workflow because mCP transport and message framing must match client expectations for reliable interoperability. The targeted change is choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs.
Question 473
This engineering control is missing: "Control prompt assembly with relevant retrieval, truncation rules and context-budget measurements". The reported condition is: An API-backed chatbot reaches token limits because irrelevant transcripts are appended indefinitely. What is the most direct failure risk?
- Excessive context raises costs, latency and the likelihood of truncating critical instructions.
- Users may experience unnecessary blank screens or partial/inconsistent final responses.
- Credentials or personal data can be exposed in log storage, or incidents can be impossible to trace.
- Users may act on invented or outdated instructions when retrieval provenance is missing.
Explanation
Correct Answer
A:Excessive context raises costs, latency and the likelihood of truncating critical instructions. This follows from the reported condition: An API-backed chatbot reaches token limits because irrelevant transcripts are appended indefinitely. The reason is that request context should contain only task-relevant content while respecting model context and token constraints. The appropriate mitigation is: Control prompt assembly with relevant retrieval, truncation rules and context-budget measurements. Evidence of success would be: A long-session test stays within target token usage while preserving necessary current constraints.
Incorrect Answers
B:Users may experience unnecessary blank screens or partial/inconsistent final responses. That exposure calls for use supported streaming events with explicit lifecycle, partial-render and finalization handling. The scenario here instead risks excessive context raises costs, latency and the likelihood of truncating critical instructions.
C: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 excessive context raises costs, latency and the likelihood of truncating critical instructions.
D:Users may act on invented or outdated instructions when retrieval provenance is missing. That exposure calls for build retrieval with provenance-aware citations and grounded-answer validation before presenting claims. The scenario here instead risks excessive context raises costs, latency and the likelihood of truncating critical instructions.
Question 474
This engineering control is missing: "Layer input, tool-execution and output checks with human approval for sensitive side effects". The reported condition is: A content moderation layer operates only after an agent has already executed a financial action. What is the most direct failure risk?
- A leaked key can enable unauthorized API usage and uncontrolled cost or data access.
- Unsafe actions can occur before a downstream moderation filter sees the result.
- Personal data or credentials may leak through telemetry or unnecessary persistence.
- Compromised or confused agents may modify unrelated production records.
Explanation
Correct Answer
B:Unsafe actions can occur before a downstream moderation filter sees the result. This follows from the reported condition: A content moderation layer operates only after an agent has already executed a financial action. The reason is that safety controls must protect every consequential boundary, not merely the final generated text. The appropriate mitigation is: Layer input, tool-execution and output checks with human approval for sensitive side effects. Evidence of success would be: Adversarial prompts fail authorization at the tool boundary and produce reviewable audit records.
Incorrect Answers
A:A leaked key can enable unauthorized API usage and uncontrolled cost or data access. That exposure calls for store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant. The scenario here instead risks unsafe actions can occur before a downstream moderation filter sees the result.
C:Personal data or credentials may leak through telemetry or unnecessary persistence. That exposure calls for minimize sensitive input and redact, restrict and retain logs according to approved privacy requirements. The scenario here instead risks unsafe actions can occur before a downstream moderation filter sees the result.
D:Compromised or confused agents may modify unrelated production records. That exposure calls for enforce least-privilege tool permissions and distinct identities scoped to each workflow. The scenario here instead risks unsafe actions can occur before a downstream moderation filter sees the result.
Question 475
In this situation: A cloud service shares one production API key across unrelated tenants and environments. The developer proposes: Store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant. Which principle BEST justifies the approach?
- Deterministic hooks provide an enforceable checkpoint around risky tool execution.
- Application authorization constrains the effects of model output even when the model is manipulated.
- Secrets are authentication material that should not be exposed in source code or shared beyond required scope.
- Prompt injection exploits lower-trust text being promoted to trusted operational instructions.
Explanation
Correct Answer
C:Secrets are authentication material that should not be exposed in source code or shared beyond required scope. In the given situation, a cloud service shares one production API key across unrelated tenants and environments. That consideration supports the measure: Store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant. Ignoring it creates this exposure: A leaked key can enable unauthorized API usage and uncontrolled cost or data access. Verify the implementation by checking: Secret scanning finds no embedded keys, rotated credentials work, and revoked credentials fail.
Incorrect Answers
A:Deterministic hooks provide an enforceable checkpoint around risky tool execution. This principle relates to add supported pre-tool hooks or policy checks that deny dangerous commands and preserve audit evidence. The observed failure instead depends on secrets are authentication material that should not be exposed in source code or shared beyond required scope. The appropriate choice is secrets are authentication material that should not be exposed in source code or shared beyond required scope.
B:Application authorization constrains the effects of model output even when the model is manipulated. This principle relates to enforce least-privilege tool permissions and distinct identities scoped to each workflow. The observed failure instead depends on secrets are authentication material that should not be exposed in source code or shared beyond required scope. The appropriate choice is secrets are authentication material that should not be exposed in source code or shared beyond required scope.
D:Prompt injection exploits lower-trust text being promoted to trusted operational instructions. This principle relates to treat retrieved and user-supplied content as untrusted data and enforce tool permissions separately. The observed failure instead depends on secrets are authentication material that should not be exposed in source code or shared beyond required scope. The appropriate choice is secrets are authentication material that should not be exposed in source code or shared beyond required scope.
Question 476
A developer encounters this situation: A developer expects a fast model to solve long multi-step research with the same reliability as a larger model. What is the MOST appropriate technical response?
- Benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks.
- Pin or deliberately version model selections and run regression tests during model changes.
- Evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements.
- Use task difficulty and measured confidence to route work to an appropriate model or escalation path.
Explanation
Correct Answer
D:Use task difficulty and measured confidence to route work to an appropriate model or escalation path. This directly addresses the situation: A developer expects a fast model to solve long multi-step research with the same reliability as a larger model. The technical reason is that different requests require different capability budgets; selective routing balances efficiency and quality. Without it, hard tasks may fail under an underpowered model while easy tasks waste premium capacity. A concrete acceptance check is: Evaluation shows difficult cases are escalated and routine tasks meet cost targets.
Incorrect Answers
A:Benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks. This does not repair the current workflow because different requests require different capability budgets; selective routing balances efficiency and quality. The targeted change is use task difficulty and measured confidence to route work to an appropriate model or escalation path.
B:Pin or deliberately version model selections and run regression tests during model changes. This does not repair the current workflow because different requests require different capability budgets; selective routing balances efficiency and quality. The targeted change is use task difficulty and measured confidence to route work to an appropriate model or escalation path.
C:Evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements. This does not repair the current workflow because different requests require different capability budgets; selective routing balances efficiency and quality. The targeted change is use task difficulty and measured confidence to route work to an appropriate model or escalation path.
Question 477
This engineering control is missing: "Apply authentication, resource authorization and request validation to each MCP tool/resource operation". The reported condition is: A multi-tenant MCP service returns resources from another customer's workspace. What is the most direct failure risk?
- A caller could invoke privileged tools or read another user's data.
- Clients may fail to connect or parse messages when transport framing is polluted.
- Overbroad resources or malformed tool contracts can leak data or break clients.
- Ambiguous or unchecked arguments can invoke an unintended operation or injection path.
Explanation
Correct Answer
A:A caller could invoke privileged tools or read another user's data. This follows from the reported condition: A multi-tenant MCP service returns resources from another customer's workspace. The reason is that mCP capability discovery is not a substitute for identity checks on every protected operation. The appropriate mitigation is: Apply authentication, resource authorization and request validation to each MCP tool/resource operation. Evidence of success would be: Cross-tenant negative requests are denied while appropriately scoped calls succeed.
Incorrect Answers
B:Clients may fail to connect or parse messages when transport framing is polluted. That exposure calls for choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs. The scenario here instead risks A caller could invoke privileged tools or read another user's data.
C: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 A caller could invoke privileged tools or read another user's data.
D: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 A caller could invoke privileged tools or read another user's data.
Question 478
A developer encounters this situation: A Claude Code task uses shell tools for debugging but has no deterministic blocklist or approval hook. What is the MOST appropriate technical response?
- Store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant.
- Add supported pre-tool hooks or policy checks that deny dangerous commands and preserve audit evidence.
- Treat retrieved and user-supplied content as untrusted data and enforce tool permissions separately.
- Enforce least-privilege tool permissions and distinct identities scoped to each workflow.
Explanation
Correct Answer
B:Add supported pre-tool hooks or policy checks that deny dangerous commands and preserve audit evidence. This directly addresses the situation: A Claude Code task uses shell tools for debugging but has no deterministic blocklist or approval hook. The technical reason is that deterministic hooks provide an enforceable checkpoint around risky tool execution. Without it, a prompt-based warning may fail to stop a harmful command from running. A concrete acceptance check is: A harmless command passes, a dangerous simulated action is blocked, and the event is logged.
Incorrect Answers
A:Store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant. This does not repair the current workflow because deterministic hooks provide an enforceable checkpoint around risky tool execution. The targeted change is add supported pre-tool hooks or policy checks that deny dangerous commands and preserve audit evidence.
C:Treat retrieved and user-supplied content as untrusted data and enforce tool permissions separately. This does not repair the current workflow because deterministic hooks provide an enforceable checkpoint around risky tool execution. The targeted change is add supported pre-tool hooks or policy checks that deny dangerous commands and preserve audit evidence.
D:Enforce least-privilege tool permissions and distinct identities scoped to each workflow. This does not repair the current workflow because deterministic hooks provide an enforceable checkpoint around risky tool execution. The targeted change is add supported pre-tool hooks or policy checks that deny dangerous commands and preserve audit evidence.
Question 479
A developer encounters this situation: A developer mixes policy and input text in a long ambiguous paragraph with conflicting instructions. What is the MOST appropriate technical response?
- Separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly.
- Use structured task checkpoints with completed actions, constraints and verified external state.
- Give clear role, task, constraints and explicit output contract with consistent examples where helpful.
- Validate structured model outputs against strict schema and business rules before use.
Explanation
Correct Answer
C:Give clear role, task, constraints and explicit output contract with consistent examples where helpful. This directly addresses the situation: A developer mixes policy and input text in a long ambiguous paragraph with conflicting instructions. The technical reason is that specific, noncontradictory instructions reduce interpretation ambiguity and make validation possible. Without it, the model may choose an unintended format or overlook key business rules. A concrete acceptance check is: Unseen examples consistently satisfy the declared fields and constraints.
Incorrect Answers
A:Separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly. This does not repair the current workflow because specific, noncontradictory instructions reduce interpretation ambiguity and make validation possible. The targeted change is give clear role, task, constraints and explicit output contract with consistent examples where helpful.
B:Use structured task checkpoints with completed actions, constraints and verified external state. This does not repair the current workflow because specific, noncontradictory instructions reduce interpretation ambiguity and make validation possible. The targeted change is give clear role, task, constraints and explicit output contract with consistent examples where helpful.
D:Validate structured model outputs against strict schema and business rules before use. This does not repair the current workflow because specific, noncontradictory instructions reduce interpretation ambiguity and make validation possible. The targeted change is give clear role, task, constraints and explicit output contract with consistent examples where helpful.
Question 480
In this situation: A development agent runs a destructive repository operation without a deterministic pre-execution check. The developer proposes: Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries. Which principle BEST justifies the approach?
- Tool outputs are untrusted observations, not elevated user or system instructions.
- Frameworks such as LangGraph or Strands add value when branching, persistence or coordination justify their overhead.
- An agent orchestration loop must own tool execution and recovery rather than assuming every model step succeeds.
- Hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle.
Explanation
Correct Answer
D:Hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle. In the given situation, a development agent runs a destructive repository operation without a deterministic pre-execution check. That consideration supports the measure: Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries. Ignoring it creates this exposure: Safety requirements expressed only as prose can be ignored or reinterpreted by the model. Verify the implementation by checking: An intentional risky tool call is blocked by a hook while authorized benign actions continue.
Incorrect Answers
A:Tool outputs are untrusted observations, not elevated user or system instructions. This principle relates to pass tool results as lower-trust data and enforce tool authorization in the application layer. The observed failure instead depends on hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle. The appropriate choice is hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle.
B:Frameworks such as LangGraph or Strands add value when branching, persistence or coordination justify their overhead. This principle relates to match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty. The observed failure instead depends on hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle. The appropriate choice is hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle.
C:An agent orchestration loop must own tool execution and recovery rather than assuming every model step succeeds. This principle relates to implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness. The observed failure instead depends on hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle. The appropriate choice is hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle.