Claude Certified Developer - Foundations CCDV-F Practice Test 8
Question 70
This engineering control is missing: "Pin or deliberately version model selections and run regression tests during model changes". The reported condition is: A team upgrades Claude models and suddenly sees different tool-call frequency despite unchanged prompts. What is the most direct failure risk?
- Model selection by name alone can overpay or underperform on important workflows.
- Silent model change can break output contracts or downstream user experience.
- Unnecessary repeated context processing raises token cost and time to first response.
- Hard tasks may fail under an underpowered model while easy tasks waste premium capacity.
Explanation
Correct Answer
B:Silent model change can break output contracts or downstream user experience. This follows from the reported condition: A team upgrades Claude models and suddenly sees different tool-call frequency despite unchanged prompts. The reason is that model updates can alter behavior, latency and tool use; compatibility must be tested at release time. The appropriate mitigation is: Pin or deliberately version model selections and run regression tests during model changes. Evidence of success would be: An upgrade canary passes contract and task evaluations with an available rollback path.
Incorrect Answers
A:Model selection by name alone can overpay or underperform on important workflows. That exposure calls for benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks. The scenario here instead risks silent model change can break output contracts or downstream user experience.
C:Unnecessary repeated context processing raises token cost and time to first response. That exposure calls for apply supported prompt caching or reuse patterns for stable prefix content and monitor cache hits. The scenario here instead risks silent model change can break output contracts or downstream user experience.
D:Hard tasks may fail under an underpowered model while easy tasks waste premium capacity. That exposure calls for use task difficulty and measured confidence to route work to an appropriate model or escalation path. The scenario here instead risks silent model change can break output contracts or downstream user experience.
Question 71
A developer encounters this situation: A remote client expects a supported network transport while the server only implements local process pipes. What is the MOST appropriate technical response?
- Implement the documented MCP capability contracts for tools, resources and prompts with restricted access.
- Apply authentication, resource authorization and request validation to each MCP tool/resource operation.
- Choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs.
- Choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements.
Explanation
Correct Answer
C:Choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs. This directly addresses the situation: A remote client expects a supported network transport while the server only implements local process pipes. 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: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.
B: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.
D:Choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements. 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 72
To address the situation: A multi-tenant document assistant indexes customer files together without tenant-based retrieval filters. The team implements: "Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model". Which evidence BEST demonstrates success?
- A simulated timeout/retry results in a single authorized record and a traceable request ID.
- Fault injection yields a truthful limited-service response without executing duplicate actions.
- A worker restart resumes from the recorded checkpoint without replaying completed actions.
- Cross-tenant negative tests are denied before documents enter model context.
Explanation
Correct Answer
D:Cross-tenant negative tests are denied before documents enter model context. This directly tests the outcome of enforce tenant identity, authorization and retrieval filtering before data is supplied to the model. in the described case: A multi-tenant document assistant indexes customer files together without tenant-based retrieval filters. The underlying principle is that data separation belongs in storage and tool access controls rather than relying on prompt instructions. If the change is ineffective, a user may retrieve another tenant's confidential content through search or tool access. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A simulated timeout/retry results in a single authorized record and a traceable request ID. This outcome would validate use idempotency keys or a verified deduplication record around side-effecting operations, not the requested intervention. The required test result is cross-tenant negative tests are denied before documents enter model context.
B:Fault injection yields a truthful limited-service response without executing duplicate actions. This outcome would validate design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features, not the requested intervention. The required test result is cross-tenant negative tests are denied before documents enter model context.
C: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 cross-tenant negative tests are denied before documents enter model context.
Question 73
In this situation: A Python integration creates a new HTTP client for every model request and leaks sockets under load. The developer proposes: Use reusable supported SDK or HTTP clients with connection management and nonblocking I/O. Which principle BEST justifies the approach?
- Resource-conscious client design prevents connection exhaustion and event-loop stalls in API services.
- The Messages API carries structured content that must be handled by type and state.
- LLM integrations are distributed systems and must expose genuine downstream failure states.
- Reproducible software builds require controlled dependency versions and compatibility gates.
Explanation
Correct Answer
A:Resource-conscious client design prevents connection exhaustion and event-loop stalls in API services. In the given situation, a Python integration creates a new HTTP client for every model request and leaks sockets under load. That consideration supports the measure: Use reusable supported SDK or HTTP clients with connection management and nonblocking I/O. Ignoring it creates this exposure: Throughput and reliability can collapse as concurrent requests increase. Verify the implementation by checking: A sustained load test shows bounded sockets and stable event-loop response latency.
Incorrect Answers
B:The Messages API carries structured content that must be handled by type and state. This principle relates to parse documented typed content blocks and stop reasons rather than flattening responses into text. The observed failure instead depends on resource-conscious client design prevents connection exhaustion and event-loop stalls in API services. The appropriate choice is resource-conscious client design prevents connection exhaustion and event-loop stalls in API services.
C:LLM integrations are distributed systems and must expose genuine downstream failure states. This principle relates to design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features. The observed failure instead depends on resource-conscious client design prevents connection exhaustion and event-loop stalls in API services. The appropriate choice is resource-conscious client design prevents connection exhaustion and event-loop stalls in API services.
D:Reproducible software builds require controlled dependency versions and compatibility gates. This principle relates to pin tested dependencies and use staged upgrades with regression tests and rollback. The observed failure instead depends on resource-conscious client design prevents connection exhaustion and event-loop stalls in API services. The appropriate choice is resource-conscious client design prevents connection exhaustion and event-loop stalls in API services.
Question 74
A developer encounters this situation: A team selects a heavyweight graph framework for a two-step API lookup and response. What is the MOST appropriate technical response?
- Add idempotency and completed-work tracking to subagent/tool handoffs.
- Match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty.
- Prune tool outputs and maintain concise task state or checkpoints to keep context useful.
- Separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization.
Explanation
Correct Answer
B:Match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty. This directly addresses the situation: A team selects a heavyweight graph framework for a two-step API lookup and response. The technical reason is that frameworks such as LangGraph or Strands add value when branching, persistence or coordination justify their overhead. Without it, overengineering raises maintenance burden, while underengineering loses recovery state on complex flows. A concrete acceptance check is: A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity.
Incorrect Answers
A:Add idempotency and completed-work tracking to subagent/tool handoffs. This does not repair the current workflow because frameworks such as LangGraph or Strands add value when branching, persistence or coordination justify their overhead. The targeted change is match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty.
C:Prune tool outputs and maintain concise task state or checkpoints to keep context useful. This does not repair the current workflow because frameworks such as LangGraph or Strands add value when branching, persistence or coordination justify their overhead. The targeted change is match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty.
D:Separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization. This does not repair the current workflow because frameworks such as LangGraph or Strands add value when branching, persistence or coordination justify their overhead. The targeted change is match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty.
Question 75
This engineering control is missing: "Implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness". The reported condition is: A custom tool-using agent returns partial output after a tool error but never records its final state. What is the most direct failure risk?
- Prompt injection in retrieved results may redirect the agent into unauthorized execution.
- Context bloat can increase costs, truncation and inconsistent task completion.
- Tool failures can leave an agent stuck, silently incomplete or repeatedly calling services.
- Safety requirements expressed only as prose can be ignored or reinterpreted by the model.
Explanation
Correct Answer
C:Tool failures can leave an agent stuck, silently incomplete or repeatedly calling services. This follows from the reported condition: A custom tool-using agent returns partial output after a tool error but never records its final state. The reason is that an agent orchestration loop must own tool execution and recovery rather than assuming every model step succeeds. The appropriate mitigation is: Implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness. Evidence of success would be: A fault-injection run terminates predictably and records the failed tool, recovery and final state.
Incorrect Answers
A: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 tool failures can leave an agent stuck, silently incomplete or repeatedly calling services.
B: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 tool failures can leave an agent stuck, silently incomplete or repeatedly calling services.
D:Safety requirements expressed only as prose can be ignored or reinterpreted by the model. That exposure calls for use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries. The scenario here instead risks tool failures can leave an agent stuck, silently incomplete or repeatedly calling services.
Question 76
In this situation: An external API call fails but the tool wrapper returns a success-shaped empty object. The developer proposes: Return typed, bounded, sanitized tool results with explicit errors and retry metadata. Which principle BEST justifies the approach?
- MCP transport and message framing must match client expectations for reliable interoperability.
- A clear tool contract helps model selection while code-side validation keeps execution within allowed types.
- 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.
Explanation
Correct Answer
D:Tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes. In the given situation, an external API call fails but the tool wrapper returns a success-shaped empty object. That consideration supports the measure: Return typed, bounded, sanitized tool results with explicit errors and retry metadata. Ignoring it creates this exposure: The model may hallucinate completion or leak protected information in an error message. Verify the implementation by checking: An injected API error yields a truthful sanitized failure and no false success statement.
Incorrect Answers
A: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 outputs must be accurate and safe observations; they are not trusted instructions or silent successes. The appropriate choice is tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes.
B:A clear tool contract helps model selection while code-side validation keeps execution within allowed types. This principle relates to define precise tool descriptions and validated JSON argument schemas with narrow capabilities. The observed failure instead depends on tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes. The appropriate choice is tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes.
C:Tool-use prompts do not replace deterministic authorization in the client or server. This principle relates to authorize tool name, arguments and caller identity before performing any side effect. The observed failure instead depends on tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes. The appropriate choice is tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes.
Question 77
This engineering control is missing: "Pin or deliberately version model selections and run regression tests during model changes". The reported condition is: A production app changes to a new model alias without checking structured output compatibility. What is the most direct failure risk?
- Silent model change can break output contracts or downstream user experience.
- Unnecessary repeated context processing raises token cost and time to first response.
- Model selection by name alone can overpay or underperform on important workflows.
- Credential exposure or repeated unauthorized requests can disrupt service and incur security risk.
Explanation
Correct Answer
A:Silent model change can break output contracts or downstream user experience. This follows from the reported condition: A production app changes to a new model alias without checking structured output compatibility. The reason is that model updates can alter behavior, latency and tool use; compatibility must be tested at release time. The appropriate mitigation is: Pin or deliberately version model selections and run regression tests during model changes. Evidence of success would be: An upgrade canary passes contract and task evaluations with an available rollback path.
Incorrect Answers
B:Unnecessary repeated context processing raises token cost and time to first response. That exposure calls for apply supported prompt caching or reuse patterns for stable prefix content and monitor cache hits. The scenario here instead risks silent model change can break output contracts or downstream user experience.
C:Model selection by name alone can overpay or underperform on important workflows. That exposure calls for benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks. The scenario here instead risks silent model change can break output contracts or downstream user experience.
D: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 silent model change can break output contracts or downstream user experience.
Question 78
To address the situation: An engineer assumes token counts equal word counts when sizing Claude context windows. The team implements: "Budget input and output tokens using the selected model's tokenization and context limits". Which evidence BEST demonstrates success?
- 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.
- A benchmark shows required accuracy within agreed latency and token budgets for each task class.
- A controlled usage sample yields predictable accounting and an actionable budget alert.
Explanation
Correct Answer
B:Measured token usage stays within the model's supported window for representative long inputs. This directly tests the outcome of budget input and output tokens using the selected model's tokenization and context limits. in the described case: An engineer assumes token counts equal word counts when sizing Claude context windows. The underlying principle is that tokens are model-specific units and all relevant context elements contribute to request size. If the change is ineffective, requests may exceed supported context or be truncated despite apparently short word counts. 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 measured token usage stays within the model's supported window for representative long inputs.
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 measured token usage stays within the model's supported window for representative long inputs.
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 measured token usage stays within the model's supported window for representative long inputs.
Question 79
In this situation: An application assumes a JSON-looking response always parses and never validates types or required fields. The developer proposes: Validate structured model outputs against strict schema and business rules before use. Which principle BEST justifies the approach?
- 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.
- Syntactic JSON validity is necessary but insufficient for safe application state changes.
- Fluent model text is not proof that a statement is grounded in the supplied evidence.
Explanation
Correct Answer
C:Syntactic JSON validity is necessary but insufficient for safe application state changes. In the given situation, an application assumes a JSON-looking response always parses and never validates types or required fields. That consideration supports the measure: Validate structured model outputs against strict schema and business rules before use. Ignoring it creates this exposure: Malformed or out-of-range fields can trigger incorrect actions or crashes. Verify the implementation by checking: Invalid values are rejected before side effects and valid cases pass typed parsing.
Incorrect Answers
A: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 syntactic JSON validity is necessary but insufficient for safe application state changes. The appropriate choice is syntactic JSON validity is necessary but insufficient for safe application state changes.
B: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 syntactic JSON validity is necessary but insufficient for safe application state changes. The appropriate choice is syntactic JSON validity is necessary but insufficient for safe application state changes.
D:Fluent model text is not proof that a statement is grounded in the supplied evidence. This principle relates to check factual claims and citations against accessible source evidence with an explicit uncertainty path. The observed failure instead depends on syntactic JSON validity is necessary but insufficient for safe application state changes. The appropriate choice is syntactic JSON validity is necessary but insufficient for safe application state changes.
Question 80
A developer encounters this situation: A code-executing agent takes untrusted repository text as permission to run shell commands. What is the MOST appropriate technical response?
- Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries.
- Choose managed versus self-hosted agent execution by evaluating residency, observability, permissions and operational responsibility.
- Separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization.
- Pass tool results as lower-trust data and enforce tool authorization in the application layer.
Explanation
Correct Answer
D:Pass tool results as lower-trust data and enforce tool authorization in the application layer. This directly addresses the situation: A code-executing agent takes untrusted repository text as permission to run shell commands. The technical reason is that tool outputs are untrusted observations, not elevated user or system instructions. Without it, prompt injection in retrieved results may redirect the agent into unauthorized execution. A concrete acceptance check is: A malicious tool-result fixture cannot gain permissions or override the declared control policy.
Incorrect Answers
A:Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries. This does not repair the current workflow because tool outputs are untrusted observations, not elevated user or system instructions. The targeted change is pass tool results as lower-trust data and enforce tool authorization in the application layer.
B:Choose managed versus self-hosted agent execution by evaluating residency, observability, permissions and operational responsibility. This does not repair the current workflow because tool outputs are untrusted observations, not elevated user or system instructions. The targeted change is pass tool results as lower-trust data and enforce tool authorization in the application layer.
C:Separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization. This does not repair the current workflow because tool outputs are untrusted observations, not elevated user or system instructions. The targeted change is pass tool results as lower-trust data and enforce tool authorization in the application layer.