Claude Certified Developer - Foundations CCDV-F Practice Test 52
Question 510
In this situation: A team adds examples from only one customer segment and fails on other document types. The developer proposes: Curate representative, consistent few-shot examples and evaluate against held-out cases. Which principle BEST justifies the approach?
- Compaction should preserve durable task state rather than treating a short summary as the entire truth.
- 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.
- Prompt hierarchy and data delineation help prevent lower-trust content from becoming policy.
Explanation
Correct Answer
B:Examples shape model behavior, so coverage and label accuracy matter more than raw prompt length. In the given situation, a team adds examples from only one customer segment and fails on other document types. 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:Compaction should preserve durable task state rather than treating a short summary as the entire truth. This principle relates to use structured task checkpoints with completed actions, constraints and verified external state. 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.
C: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.
D: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.
Question 511
To address the situation: A multi-shot instruction includes contradictory examples that bias model behavior. 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.
- A representative evaluation records quality, p95 latency and cost before selecting a model.
- An unseen held-out sample follows the intended schema and policy without relying on memorized examples.
- Measured token usage stays within the model's supported window for representative long inputs.
Explanation
Correct Answer
C: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 multi-shot instruction includes contradictory examples that bias model behavior. 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.
B:A representative evaluation records quality, p95 latency and cost before selecting a model. This outcome would validate benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks, 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:Measured token usage stays within the model's supported window for representative long inputs. This outcome would validate budget input and output tokens using the selected model's tokenization and context limits, 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 512
This engineering control is missing: "Implement the documented MCP capability contracts for tools, resources and prompts with restricted access". The reported condition is: A tool integration implements an MCP method with undocumented argument names and untyped results. What is the most direct failure risk?
- A caller could invoke privileged tools or read another user's data.
- Treating an instruction document as a network integration can create brittle or unauthorized behavior.
- A compromised conversation could trigger unauthorized transactions or network access.
- Overbroad resources or malformed tool contracts can leak data or break clients.
Explanation
Correct Answer
D:Overbroad resources or malformed tool contracts can leak data or break clients. This follows from the reported condition: A tool integration implements an MCP method with undocumented argument names and untyped results. The reason is that mCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces. The appropriate mitigation is: Implement the documented MCP capability contracts for tools, resources and prompts with restricted access. Evidence of success would be: A conforming MCP client discovers allowed capabilities and rejects restricted resource requests.
Incorrect Answers
A:A caller could invoke privileged tools or read another user's data. That exposure calls for apply authentication, resource authorization and request validation to each MCP tool/resource operation. The scenario here instead risks overbroad resources or malformed tool contracts can leak data or break clients.
B: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 overbroad resources or malformed tool contracts can leak data or break clients.
C:A compromised conversation could trigger unauthorized transactions or network access. That exposure calls for authorize tool name, arguments and caller identity before performing any side effect. The scenario here instead risks overbroad resources or malformed tool contracts can leak data or break clients.
Question 513
A developer encounters this situation: A coding assistant opens a large pull request that mixes unrelated refactors and security fixes. What is the MOST appropriate technical response?
- Review Claude Code changes as small diffs and run targeted tests before accepting or committing them.
- Maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy.
- Validate structured model outputs against strict schema and business rules before use.
- Use Claude Code permissions and supported pre-tool hooks to enforce command approval and safety checks.
Explanation
Correct Answer
A:Review Claude Code changes as small diffs and run targeted tests before accepting or committing them. This directly addresses the situation: A coding assistant opens a large pull request that mixes unrelated refactors and security fixes. The technical reason is that aI-produced patches remain software changes requiring human or automated code-quality validation. Without it, unreviewed broad changes can hide regressions or introduce unsafe dependencies. A concrete acceptance check is: A bounded patch passes tests and review without unrelated file modifications.
Incorrect Answers
B:Maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy. This does not repair the current workflow because aI-produced patches remain software changes requiring human or automated code-quality validation. The targeted change is review Claude Code changes as small diffs and run targeted tests before accepting or committing them.
C:Validate structured model outputs against strict schema and business rules before use. This does not repair the current workflow because aI-produced patches remain software changes requiring human or automated code-quality validation. The targeted change is review Claude Code changes as small diffs and run targeted tests before accepting or committing them.
D:Use Claude Code permissions and supported pre-tool hooks to enforce command approval and safety checks. This does not repair the current workflow because aI-produced patches remain software changes requiring human or automated code-quality validation. The targeted change is review Claude Code changes as small diffs and run targeted tests before accepting or committing them.
Question 514
In this situation: An application fails intermittently after a prompt change but developers have no trace of tool calls. The developer proposes: Capture privacy-safe model/tool traces and reproduce failures with controlled test fixtures. Which principle BEST justifies the approach?
- Skills package instructions while tools and MCP servers expose executable capabilities and data interfaces.
- Debugging agent and API behavior requires visibility into inputs, tool sequence and stop reasons.
- Reliable LLM evaluation requires repeatable test cases and metrics rather than cherry-picked demonstrations.
- MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces.
Explanation
Correct Answer
B:Debugging agent and API behavior requires visibility into inputs, tool sequence and stop reasons. In the given situation, an application fails intermittently after a prompt change but developers have no trace of tool calls. That consideration supports the measure: Capture privacy-safe model/tool traces and reproduce failures with controlled test fixtures. Ignoring it creates this exposure: Intermittent failures can remain unreproducible or be blamed on the wrong integration layer. Verify the implementation by checking: A stored failing trace reproduces the issue and a corrected test passes under the same fixture.
Incorrect Answers
A: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 debugging agent and API behavior requires visibility into inputs, tool sequence and stop reasons. The appropriate choice is debugging agent and API behavior requires visibility into inputs, tool sequence and stop reasons.
C:Reliable LLM evaluation requires repeatable test cases and metrics rather than cherry-picked demonstrations. This principle relates to build a representative held-out evaluation set with measurable correctness criteria and failure categories. The observed failure instead depends on debugging agent and API behavior requires visibility into inputs, tool sequence and stop reasons. The appropriate choice is debugging agent and API behavior requires visibility into inputs, tool sequence and stop reasons.
D:MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces. This principle relates to implement the documented MCP capability contracts for tools, resources and prompts with restricted access. The observed failure instead depends on debugging agent and API behavior requires visibility into inputs, tool sequence and stop reasons. The appropriate choice is debugging agent and API behavior requires visibility into inputs, tool sequence and stop reasons.
Question 515
A developer encounters this situation: A Python client serializes network requests even though they are independent and I/O-bound. What is the MOST appropriate technical response?
- Select request/response HTTP, streaming, or persistent connections based on the real interaction pattern.
- Choose appropriate thinking or effort settings based on task complexity, latency and budget constraints.
- Use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks.
- Configure authenticated requests, secret rotation and clear failure handling in the SDK/client.
Explanation
Correct Answer
C:Use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks. This directly addresses the situation: A Python client serializes network requests even though they are independent and I/O-bound. The technical reason is that nonblocking request handling improves throughput only when concurrency remains controlled and resource-safe. Without it, serial calls increase latency, while unconstrained fan-out exhausts limits and connections. A concrete acceptance check is: A load test shows bounded parallelism, proper cancellation and stable latency under normal traffic.
Incorrect Answers
A:Select request/response HTTP, streaming, or persistent connections based on the real interaction pattern. This does not repair the current workflow because nonblocking request handling improves throughput only when concurrency remains controlled and resource-safe. The targeted change is use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks.
B:Choose appropriate thinking or effort settings based on task complexity, latency and budget constraints. This does not repair the current workflow because nonblocking request handling improves throughput only when concurrency remains controlled and resource-safe. The targeted change is use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks.
D:Configure authenticated requests, secret rotation and clear failure handling in the SDK/client. This does not repair the current workflow because nonblocking request handling improves throughput only when concurrency remains controlled and resource-safe. The targeted change is use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks.
Question 516
This engineering control is missing: "Budget input and output tokens using the selected model's tokenization and context limits". The reported condition is: A long document task fails because the app ignores tokens used by instructions and tool descriptions. What is the most direct failure risk?
- Assuming deterministic text can make fragile parsers or policies fail unpredictably.
- Overspending on trivial tasks or under-allocating difficult analysis can harm cost and quality.
- Silent model change can break output contracts or downstream user experience.
- Requests may exceed supported context or be truncated despite apparently short word counts.
Explanation
Correct Answer
D:Requests may exceed supported context or be truncated despite apparently short word counts. This follows from the reported condition: A long document task fails because the app ignores tokens used by instructions and tool descriptions. The reason is that tokens are model-specific units and all relevant context elements contribute to request size. The appropriate mitigation is: Budget input and output tokens using the selected model's tokenization and context limits. Evidence of success would be: Measured token usage stays within the model's supported window for representative long inputs.
Incorrect Answers
A: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 requests may exceed supported context or be truncated despite apparently short word counts.
B:Overspending on trivial tasks or under-allocating difficult analysis can harm cost and quality. That exposure calls for choose appropriate thinking or effort settings based on task complexity, latency and budget constraints. The scenario here instead risks requests may exceed supported context or be truncated despite apparently short word counts.
C:Silent model change can break output contracts or downstream user experience. That exposure calls for pin or deliberately version model selections and run regression tests during model changes. The scenario here instead risks requests may exceed supported context or be truncated despite apparently short word counts.
Question 517
This engineering control is missing: "Understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata". The reported condition is: A REST integration uses an SDK but ignores status codes and upstream request IDs. What is the most direct failure risk?
- Hidden transport failures can be misinterpreted as model quality problems.
- Credential exposure or repeated unauthorized requests can disrupt service and incur security risk.
- Requests may exceed supported context or be truncated despite apparently short word counts.
- Serial calls increase latency, while unconstrained fan-out exhausts limits and connections.
Explanation
Correct Answer
A:Hidden transport failures can be misinterpreted as model quality problems. This follows from the reported condition: A REST integration uses an SDK but ignores status codes and upstream request IDs. The reason is that client libraries simplify transport but do not remove network failure modes, auth or API contracts. The appropriate mitigation is: Understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata. Evidence of success would be: A simulated HTTP failure emerges as the expected SDK error with a traceable request ID.
Incorrect Answers
B: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 hidden transport failures can be misinterpreted as model quality problems.
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 hidden transport failures can be misinterpreted as model quality problems.
D: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 hidden transport failures can be misinterpreted as model quality problems.
Question 518
In this situation: A TypeScript API server blocks an event loop while waiting for multiple Claude calls. The developer proposes: Use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks. Which principle BEST justifies the approach?
- Connection models should match directional and state requirements rather than be chosen for novelty.
- Nonblocking request handling improves throughput only when concurrency remains controlled and resource-safe.
- Client libraries simplify transport but do not remove network failure modes, auth or API contracts.
- Caching can reduce repeated processing of identical eligible context while requiring correct cache boundaries.
Explanation
Correct Answer
B:Nonblocking request handling improves throughput only when concurrency remains controlled and resource-safe. In the given situation, a TypeScript API server blocks an event loop while waiting for multiple Claude calls. That consideration supports the measure: Use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks. Ignoring it creates this exposure: Serial calls increase latency, while unconstrained fan-out exhausts limits and connections. Verify the implementation by checking: A load test shows bounded parallelism, proper cancellation and stable latency under normal traffic.
Incorrect Answers
A:Connection models should match directional and state requirements rather than be chosen for novelty. This principle relates to select request/response HTTP, streaming, or persistent connections based on the real interaction pattern. The observed failure instead depends on nonblocking request handling improves throughput only when concurrency remains controlled and resource-safe. The appropriate choice is nonblocking request handling improves throughput only when concurrency remains controlled and resource-safe.
C:Client libraries simplify transport but do not remove network failure modes, auth or API contracts. This principle relates to understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata. The observed failure instead depends on nonblocking request handling improves throughput only when concurrency remains controlled and resource-safe. The appropriate choice is nonblocking request handling improves throughput only when concurrency remains controlled and resource-safe.
D:Caching can reduce repeated processing of identical eligible context while requiring correct cache boundaries. This principle relates to apply supported prompt caching or reuse patterns for stable prefix content and monitor cache hits. The observed failure instead depends on nonblocking request handling improves throughput only when concurrency remains controlled and resource-safe. The appropriate choice is nonblocking request handling improves throughput only when concurrency remains controlled and resource-safe.
Question 519
In this situation: A long document task fails because the app ignores tokens used by instructions and tool descriptions. The developer proposes: Budget input and output tokens using the selected model's tokenization and context limits. Which principle BEST justifies the approach?
- More internal reasoning can help complex decisions but consumes latency or tokens depending on the model and settings.
- Opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement.
- Tokens are model-specific units and all relevant context elements contribute to request size.
- Generative models can vary their output even for similar inputs; application correctness needs explicit checks.
Explanation
Correct Answer
C:Tokens are model-specific units and all relevant context elements contribute to request size. In the given situation, a long document task fails because the app ignores tokens used by instructions and tool descriptions. That consideration supports the measure: Budget input and output tokens using the selected model's tokenization and context limits. Ignoring it creates this exposure: Requests may exceed supported context or be truncated despite apparently short word counts. Verify the implementation by checking: Measured token usage stays within the model's supported window for representative long inputs.
Incorrect Answers
A: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 tokens are model-specific units and all relevant context elements contribute to request size. The appropriate choice is tokens are model-specific units and all relevant context elements contribute to request size.
B: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 tokens are model-specific units and all relevant context elements contribute to request size. The appropriate choice is tokens are model-specific units and all relevant context elements contribute to request size.
D:Generative models can vary their output even for similar inputs; application correctness needs explicit checks. This principle relates to evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements. The observed failure instead depends on tokens are model-specific units and all relevant context elements contribute to request size. The appropriate choice is tokens are model-specific units and all relevant context elements contribute to request size.
Question 520
A developer encounters this situation: A Claude Code session repeatedly changes files that the repository instructions explicitly prohibit editing. What is the MOST appropriate technical response?
- Separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization.
- Review Claude Code changes as small diffs and run targeted tests before accepting or committing them.
- Use Claude Code permissions and supported pre-tool hooks to enforce command approval and safety checks.
- Maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy.
Explanation
Correct Answer
D:Maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy. This directly addresses the situation: A Claude Code session repeatedly changes files that the repository instructions explicitly prohibit editing. The technical reason is that coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent. Without it, the assistant may change protected files or ignore required tests during code generation. A concrete acceptance check is: A controlled coding task follows project instructions and avoids excluded files while producing a reviewable diff.
Incorrect Answers
A:Separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization. This does not repair the current workflow because coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent. The targeted change is maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy.
B:Review Claude Code changes as small diffs and run targeted tests before accepting or committing them. This does not repair the current workflow because coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent. The targeted change is maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy.
C:Use Claude Code permissions and supported pre-tool hooks to enforce command approval and safety checks. This does not repair the current workflow because coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent. The targeted change is maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy.