Claude Certified Developer - Foundations CCDV-F Practice Test 10
Question 90
To address the situation: A team adds examples from only one customer segment and fails on other document types. The team implements: "Curate representative, consistent few-shot examples and evaluate against held-out cases". Which evidence BEST demonstrates success?
- A held-out retrieval test refuses unsupported assertions and links only to actual evidence.
- Segmented evaluation shows improved performance without regressions on unseen formats.
- 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
B:Segmented evaluation shows improved performance without regressions on unseen formats. This directly tests the outcome of curate representative, consistent few-shot examples and evaluate against held-out cases. in the described case: A team adds examples from only one customer segment and fails on other document types. The underlying principle is that examples shape model behavior, so coverage and label accuracy matter more than raw prompt length. If the change is ineffective, biased or contradictory examples can systematically misclassify unusual inputs. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A held-out retrieval test refuses unsupported assertions and links only to actual evidence. This outcome would validate check factual claims and citations against accessible source evidence with an explicit uncertainty path, not the requested intervention. The required test result is segmented evaluation shows improved performance without regressions on unseen formats.
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 segmented evaluation shows improved performance without regressions on unseen formats.
D: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 segmented evaluation shows improved performance without regressions on unseen formats.
Question 91
In this situation: A few-shot extraction prompt contains one incorrect labeled example and model accuracy falls. The developer proposes: Curate representative, consistent few-shot examples and evaluate against held-out cases. Which principle BEST justifies the approach?
- Prompt hierarchy and data delineation help prevent lower-trust content from becoming policy.
- Context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise.
- Examples shape model behavior, so coverage and label accuracy matter more than raw prompt length.
- Specific, noncontradictory instructions reduce interpretation ambiguity and make validation possible.
Explanation
Correct Answer
C:Examples shape model behavior, so coverage and label accuracy matter more than raw prompt length. In the given situation, a few-shot extraction prompt contains one incorrect labeled example and model accuracy falls. That consideration supports the measure: Curate representative, consistent few-shot examples and evaluate against held-out cases. Ignoring it creates this exposure: Biased or contradictory examples can systematically misclassify unusual inputs. Verify the implementation by checking: Segmented evaluation shows improved performance without regressions on unseen formats.
Incorrect Answers
A:Prompt hierarchy and data delineation help prevent lower-trust content from becoming policy. This principle relates to separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly. The observed failure instead depends on examples shape model behavior, so coverage and label accuracy matter more than raw prompt length. The appropriate choice is examples shape model behavior, so coverage and label accuracy matter more than raw prompt length.
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 examples shape model behavior, so coverage and label accuracy matter more than raw prompt length. The appropriate choice is examples shape model behavior, so coverage and label accuracy matter more than raw prompt length.
D:Specific, noncontradictory instructions reduce interpretation ambiguity and make validation possible. This principle relates to give clear role, task, constraints and explicit output contract with consistent examples where helpful. The observed failure instead depends on examples shape model behavior, so coverage and label accuracy matter more than raw prompt length. The appropriate choice is examples shape model behavior, so coverage and label accuracy matter more than raw prompt length.
Question 92
To address the situation: An assistant calls a tool not registered in the application's configured allowlist. The team implements: "Authorize tool name, arguments and caller identity before performing any side effect". Which evidence BEST demonstrates success?
- Invalid tool arguments fail safely and valid documented requests map to one expected operation.
- An injected API error yields a truthful sanitized failure and no false success statement.
- A conforming MCP client discovers allowed capabilities and rejects restricted resource requests.
- Unknown or unauthorized calls are denied even when the model proposes them.
Explanation
Correct Answer
D:Unknown or unauthorized calls are denied even when the model proposes them. This directly tests the outcome of authorize tool name, arguments and caller identity before performing any side effect. in the described case: An assistant calls a tool not registered in the application's configured allowlist. The underlying principle is that tool-use prompts do not replace deterministic authorization in the client or server. If the change is ineffective, a compromised conversation could trigger unauthorized transactions or network access. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:Invalid tool arguments fail safely and valid documented requests map to one expected operation. This outcome would validate define precise tool descriptions and validated JSON argument schemas with narrow capabilities, not the requested intervention. The required test result is unknown or unauthorized calls are denied even when the model proposes them.
B:An injected API error yields a truthful sanitized failure and no false success statement. This outcome would validate return typed, bounded, sanitized tool results with explicit errors and retry metadata, not the requested intervention. The required test result is unknown or unauthorized calls are denied even when the model proposes them.
C:A conforming MCP client discovers allowed capabilities and rejects restricted resource requests. This outcome would validate implement the documented MCP capability contracts for tools, resources and prompts with restricted access, not the requested intervention. The required test result is unknown or unauthorized calls are denied even when the model proposes them.
Question 93
In this situation: An assistant calls a tool not registered in the application's configured allowlist. The developer proposes: Authorize tool name, arguments and caller identity before performing any side effect. Which principle BEST justifies the approach?
- Tool-use prompts do not replace deterministic authorization in the client or server.
- Tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes.
- MCP transport and message framing must match client expectations for reliable interoperability.
- Skills package instructions while tools and MCP servers expose executable capabilities and data interfaces.
Explanation
Correct Answer
A:Tool-use prompts do not replace deterministic authorization in the client or server. In the given situation, an assistant calls a tool not registered in the application's configured allowlist. That consideration supports the measure: Authorize tool name, arguments and caller identity before performing any side effect. Ignoring it creates this exposure: A compromised conversation could trigger unauthorized transactions or network access. Verify the implementation by checking: Unknown or unauthorized calls are denied even when the model proposes them.
Incorrect Answers
B:Tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes. This principle relates to return typed, bounded, sanitized tool results with explicit errors and retry metadata. The observed failure instead depends on tool-use prompts do not replace deterministic authorization in the client or server. The appropriate choice is tool-use prompts do not replace deterministic authorization in the client or server.
C:MCP transport and message framing must match client expectations for reliable interoperability. This principle relates to choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs. The observed failure instead depends on tool-use prompts do not replace deterministic authorization in the client or server. The appropriate choice is tool-use prompts do not replace deterministic authorization in the client or server.
D:Skills package instructions while tools and MCP servers expose executable capabilities and data interfaces. This principle relates to use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions. The observed failure instead depends on tool-use prompts do not replace deterministic authorization in the client or server. The appropriate choice is tool-use prompts do not replace deterministic authorization in the client or server.
Question 94
This engineering control is missing: "Use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious". The reported condition is: A zero-shot extraction prompt ignores an organization-specific schema that the model cannot infer. What is the most direct failure risk?
- Serial calls increase latency, while unconstrained fan-out exhausts limits and connections.
- A vague or contradictory prompt can produce inconsistent fields or invalid classifications.
- Assuming deterministic text can make fragile parsers or policies fail unpredictably.
- Requests may exceed supported context or be truncated despite apparently short word counts.
Explanation
Correct Answer
B:A vague or contradictory prompt can produce inconsistent fields or invalid classifications. This follows from the reported condition: A zero-shot extraction prompt ignores an organization-specific schema that the model cannot infer. The reason is that examples and instruction clarity improve task alignment but must be consistent with each other. The appropriate mitigation is: Use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious. Evidence of success would be: An unseen held-out sample follows the intended schema and policy without relying on memorized examples.
Incorrect Answers
A:Serial calls increase latency, while unconstrained fan-out exhausts limits and connections. That exposure calls for use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks. The scenario here instead risks A vague or contradictory prompt can produce inconsistent fields or invalid classifications.
C:Assuming deterministic text can make fragile parsers or policies fail unpredictably. That exposure calls for evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements. The scenario here instead risks A vague or contradictory prompt can produce inconsistent fields or invalid classifications.
D: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 A vague or contradictory prompt can produce inconsistent fields or invalid classifications.
Question 95
To address the situation: A development team changes SDK versions without pinning dependencies or recording compatibility. The team implements: "Pin tested dependencies and use staged upgrades with regression tests and rollback". Which evidence BEST demonstrates success?
- A worker restart resumes from the recorded checkpoint without replaying completed actions.
- CI rejects malformed responses in tests and approves only validated changes.
- A clean rebuild reproduces the approved version set and a tested upgrade can roll back.
- Prompt-injection tests on uploaded content cannot bypass tool authorization or leak restricted values.
Explanation
Correct Answer
C: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 development team changes SDK versions without pinning dependencies or recording compatibility. 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 worker restart resumes from the recorded checkpoint without replaying completed actions. This outcome would validate persist necessary workflow checkpoints and reconcile completed actions during restarts, not the requested intervention. The required test result is A clean rebuild reproduces the approved version set and a tested upgrade can roll back.
B:CI rejects malformed responses in tests and approves only validated changes. This outcome would validate use version control, code review and automated contract plus failure-mode tests for integration changes, not the requested intervention. The required test result is A clean rebuild reproduces the approved version set and a tested upgrade can roll back.
D:Prompt-injection tests on uploaded content cannot bypass tool authorization or leak restricted values. This outcome would validate separate trusted system/developer instructions from untrusted input and validate any requested tool execution, 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 96
To address the situation: A model requests a money-transfer tool and client code executes it before checking the user role. The team implements: "Authorize tool name, arguments and caller identity before performing any side effect". Which evidence BEST demonstrates success?
- An injected API error yields a truthful sanitized failure and no false success statement.
- A prototype meets functionality and authorization requirements with the smallest maintainable integration.
- Invalid tool arguments fail safely and valid documented requests map to one expected operation.
- Unknown or unauthorized calls are denied even when the model proposes them.
Explanation
Correct Answer
D:Unknown or unauthorized calls are denied even when the model proposes them. This directly tests the outcome of authorize tool name, arguments and caller identity before performing any side effect. in the described case: A model requests a money-transfer tool and client code executes it before checking the user role. The underlying principle is that tool-use prompts do not replace deterministic authorization in the client or server. If the change is ineffective, a compromised conversation could trigger unauthorized transactions or network access. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:An injected API error yields a truthful sanitized failure and no false success statement. This outcome would validate return typed, bounded, sanitized tool results with explicit errors and retry metadata, not the requested intervention. The required test result is unknown or unauthorized calls are denied even when the model proposes them.
B: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 unknown or unauthorized calls are denied even when the model proposes them.
C:Invalid tool arguments fail safely and valid documented requests map to one expected operation. This outcome would validate define precise tool descriptions and validated JSON argument schemas with narrow capabilities, not the requested intervention. The required test result is unknown or unauthorized calls are denied even when the model proposes them.
Question 97
This engineering control is missing: "Capture provider request IDs, token usage and model metadata in privacy-safe telemetry". The reported condition is: A production service ignores API request identifiers when opening a vendor support ticket. What is the most direct failure risk?
- An incident cannot be traced and usage budgets can drift unnoticed.
- The model may answer without critical prior constraints or invent missing context.
- Users may experience unnecessary blank screens or partial/inconsistent final responses.
- A partial or invalid answer can corrupt downstream parsing or display.
Explanation
Correct Answer
A:An incident cannot be traced and usage budgets can drift unnoticed. This follows from the reported condition: A production service ignores API request identifiers when opening a vendor support ticket. The reason is that operational auditing needs identifiers and metering to diagnose failures and allocate model costs. The appropriate mitigation is: Capture provider request IDs, token usage and model metadata in privacy-safe telemetry. Evidence of success would be: A test call yields correlated request metadata and measured token consumption without leaking prompt content.
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 an incident cannot be traced and usage budgets can drift unnoticed.
C: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 an incident cannot be traced and usage budgets can drift unnoticed.
D:A partial or invalid answer can corrupt downstream parsing or display. That exposure calls for validate output length and stop reason; retry or redesign output constraints when truncation occurs. The scenario here instead risks an incident cannot be traced and usage budgets can drift unnoticed.
Question 98
This engineering control is missing: "Match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty". The reported condition is: A business workflow needs durable branching and checkpoints but uses a stateless loop with no persisted progress. What is the most direct failure risk?
- Retries or duplicate delegations can create multiple charges or inconsistent records.
- Overengineering raises maintenance burden, while underengineering loses recovery state on complex flows.
- A prompt-injected suggestion could cross a trust boundary if the app executes it without validation.
- Context bloat can increase costs, truncation and inconsistent task completion.
Explanation
Correct Answer
B:Overengineering raises maintenance burden, while underengineering loses recovery state on complex flows. This follows from the reported condition: A business workflow needs durable branching and checkpoints but uses a stateless loop with no persisted progress. The reason is that frameworks such as LangGraph or Strands add value when branching, persistence or coordination justify their overhead. The appropriate mitigation is: Match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty. Evidence of success would be: A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity.
Incorrect Answers
A:Retries or duplicate delegations can create multiple charges or inconsistent records. That exposure calls for add idempotency and completed-work tracking to subagent/tool handoffs. The scenario here instead risks overengineering raises maintenance burden, while underengineering loses recovery state on complex flows.
C:A prompt-injected suggestion could cross a trust boundary if the app executes it without validation. That exposure calls for keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint. The scenario here instead risks overengineering raises maintenance burden, while underengineering loses recovery state on complex flows.
D: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 overengineering raises maintenance burden, while underengineering loses recovery state on complex flows.
Question 99
This engineering control is missing: "Pin tested dependencies and use staged upgrades with regression tests and rollback". The reported condition is: A development team changes SDK versions without pinning dependencies or recording compatibility. What is the most direct failure risk?
- Unreviewed configuration drift can expose keys or create inconsistent model behavior.
- An incident cannot be traced and usage budgets can drift unnoticed.
- Unreviewed library updates can break production API clients unexpectedly.
- Transient errors can be misinterpreted as valid model data or corrupt application state.
Explanation
Correct Answer
C:Unreviewed library updates can break production API clients unexpectedly. This follows from the reported condition: A development team changes SDK versions without pinning dependencies or recording compatibility. 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:Unreviewed configuration drift can expose keys or create inconsistent model behavior. That exposure calls for centralize versioned configuration, protected secrets and environment-specific deployment settings. The scenario here instead risks unreviewed library updates can break production API clients unexpectedly.
B:An incident cannot be traced and usage budgets can drift unnoticed. That exposure calls for capture provider request IDs, token usage and model metadata in privacy-safe telemetry. The scenario here instead risks unreviewed library updates can break production API clients unexpectedly.
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 unreviewed library updates can break production API clients unexpectedly.
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.