Claude Certified Developer - Foundations CCDV-F Practice Test 26
Question 250
This engineering control is missing: "Prune tool outputs and maintain concise task state or checkpoints to keep context useful". The reported condition is: A long-running tool agent keeps every old tool log in context until requests exceed the model window. What is the most direct failure risk?
- Overengineering raises maintenance burden, while underengineering loses recovery state on complex flows.
- Context bloat can increase costs, truncation and inconsistent task completion.
- Runaway iterations can consume tokens, spam APIs and repeat harmful or useless operations.
- A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable.
Explanation
Correct Answer
B:Context bloat can increase costs, truncation and inconsistent task completion. This follows from the reported condition: A long-running tool agent keeps every old tool log in context until requests exceed the model window. The reason is that agent memory should preserve decision-relevant state rather than an unbounded history of low-value observations. The appropriate mitigation is: Prune tool outputs and maintain concise task state or checkpoints to keep context useful. Evidence of success would be: A multi-step test stays within budget while retaining key constraints and completed steps.
Incorrect Answers
A:Overengineering raises maintenance burden, while underengineering loses recovery state on complex flows. That exposure calls for match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty. The scenario here instead risks context bloat can increase costs, truncation and inconsistent task completion.
C:Runaway iterations can consume tokens, spam APIs and repeat harmful or useless operations. That exposure calls for bound agent iterations, tool budgets and stop conditions with a safe fallback or human escalation. The scenario here instead risks context bloat can increase costs, truncation and inconsistent task completion.
D:A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable. That exposure calls for choose managed versus self-hosted agent execution by evaluating residency, observability, permissions and operational responsibility. The scenario here instead risks context bloat can increase costs, truncation and inconsistent task completion.
Question 251
In this situation: An agentic coding run forgets the project's test commands and style constraints between sessions. The developer proposes: Maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy. Which principle BEST justifies the approach?
- MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces.
- Deterministic approval boundaries prevent autonomous coding suggestions from becoming unreviewed operational changes.
- Coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent.
- AI-produced patches remain software changes requiring human or automated code-quality validation.
Explanation
Correct Answer
C:Coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent. In the given situation, an agentic coding run forgets the project's test commands and style constraints between sessions. That consideration supports the measure: Maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy. Ignoring it creates this exposure: The assistant may change protected files or ignore required tests during code generation. Verify the implementation by checking: A controlled coding task follows project instructions and avoids excluded files while producing a reviewable diff.
Incorrect Answers
A: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 coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent. The appropriate choice is coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent.
B:Deterministic approval boundaries prevent autonomous coding suggestions from becoming unreviewed operational changes. This principle relates to use Claude Code permissions and supported pre-tool hooks to enforce command approval and safety checks. The observed failure instead depends on coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent. The appropriate choice is coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent.
D:AI-produced patches remain software changes requiring human or automated code-quality validation. This principle relates to review Claude Code changes as small diffs and run targeted tests before accepting or committing them. The observed failure instead depends on coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent. The appropriate choice is coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent.
Question 252
A developer encounters this situation: A long document task fails because the app ignores tokens used by instructions and tool descriptions. What is the MOST appropriate technical response?
- Track input/output tokens and model, cache and batch usage per operation with privacy-safe reporting.
- Use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious.
- Evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements.
- Budget input and output tokens using the selected model's tokenization and context limits.
Explanation
Correct Answer
D:Budget input and output tokens using the selected model's tokenization and context limits. This directly addresses the situation: A long document task fails because the app ignores tokens used by instructions and tool descriptions. The technical reason is that tokens are model-specific units and all relevant context elements contribute to request size. Without it, requests may exceed supported context or be truncated despite apparently short word counts. A concrete acceptance check is: Measured token usage stays within the model's supported window for representative long inputs.
Incorrect Answers
A:Track input/output tokens and model, cache and batch usage per operation with privacy-safe reporting. This does not repair the current workflow because tokens are model-specific units and all relevant context elements contribute to request size. The targeted change is budget input and output tokens using the selected model's tokenization and context limits.
B:Use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious. This does not repair the current workflow because tokens are model-specific units and all relevant context elements contribute to request size. The targeted change is budget input and output tokens using the selected model's tokenization and context limits.
C:Evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements. This does not repair the current workflow because tokens are model-specific units and all relevant context elements contribute to request size. The targeted change is budget input and output tokens using the selected model's tokenization and context limits.
Question 253
This engineering control is missing: "Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries". The reported condition is: A development agent runs a destructive repository operation without a deterministic pre-execution check. What is the most direct failure risk?
- Safety requirements expressed only as prose can be ignored or reinterpreted by the model.
- Prompt injection in retrieved results may redirect the agent into unauthorized execution.
- A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable.
- An unnecessary agent can introduce variable actions, cost and approval gaps into a fixed business process.
Explanation
Correct Answer
A:Safety requirements expressed only as prose can be ignored or reinterpreted by the model. This follows from the reported condition: A development agent runs a destructive repository operation without a deterministic pre-execution check. The reason is that hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle. The appropriate mitigation is: Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries. Evidence of success would be: An intentional risky tool call is blocked by a hook while authorized benign actions continue.
Incorrect Answers
B:Prompt injection in retrieved results may redirect the agent into unauthorized execution. That exposure calls for pass tool results as lower-trust data and enforce tool authorization in the application layer. The scenario here instead risks safety requirements expressed only as prose can be ignored or reinterpreted by the model.
C:A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable. That exposure calls for choose managed versus self-hosted agent execution by evaluating residency, observability, permissions and operational responsibility. The scenario here instead risks safety requirements expressed only as prose can be ignored or reinterpreted by the model.
D:An unnecessary agent can introduce variable actions, cost and approval gaps into a fixed business process. That exposure calls for use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions. The scenario here instead risks safety requirements expressed only as prose can be ignored or reinterpreted by the model.
Question 254
In this situation: A team has no usage attribution after introducing multiple Claude models into one tenant. The developer proposes: Capture provider request IDs, token usage and model metadata in privacy-safe telemetry. Which principle BEST justifies the approach?
- Application-facing output must be parsed and validated against a contract, not inferred from unconstrained prose.
- Operational auditing needs identifiers and metering to diagnose failures and allocate model costs.
- Tool descriptions guide model behavior but actual invocation authority remains in client code.
- Batch APIs can improve throughput and cost for nonurgent independent workloads but require asynchronous completion handling.
Explanation
Correct Answer
B:Operational auditing needs identifiers and metering to diagnose failures and allocate model costs. In the given situation, a team has no usage attribution after introducing multiple Claude models into one tenant. That consideration supports the measure: Capture provider request IDs, token usage and model metadata in privacy-safe telemetry. Ignoring it creates this exposure: An incident cannot be traced and usage budgets can drift unnoticed. Verify the implementation by checking: A test call yields correlated request metadata and measured token consumption without leaking prompt content.
Incorrect Answers
A:Application-facing output must be parsed and validated against a contract, not inferred from unconstrained prose. This principle relates to require structured validated outputs or constrained tool schemas before business-side execution. The observed failure instead depends on operational auditing needs identifiers and metering to diagnose failures and allocate model costs. The appropriate choice is operational auditing needs identifiers and metering to diagnose failures and allocate model costs.
C:Tool descriptions guide model behavior but actual invocation authority remains in client code. This principle relates to maintain a registered allowlist of tool schemas and validate returned names and arguments before execution. The observed failure instead depends on operational auditing needs identifiers and metering to diagnose failures and allocate model costs. The appropriate choice is operational auditing needs identifiers and metering to diagnose failures and allocate model costs.
D:Batch APIs can improve throughput and cost for nonurgent independent workloads but require asynchronous completion handling. This principle relates to select supported batch processing where appropriate and monitor batch lifecycle and individual results. The observed failure instead depends on operational auditing needs identifiers and metering to diagnose failures and allocate model costs. The appropriate choice is operational auditing needs identifiers and metering to diagnose failures and allocate model costs.
Question 255
A developer encounters this situation: A Node service uses synchronous blocking operations during bursts of Claude streaming responses. What is the MOST appropriate technical response?
- Control prompt assembly with relevant retrieval, truncation rules and context-budget measurements.
- Pin tested dependencies and use staged upgrades with regression tests and rollback.
- Use reusable supported SDK or HTTP clients with connection management and nonblocking I/O.
- Persist necessary workflow checkpoints and reconcile completed actions during restarts.
Explanation
Correct Answer
C:Use reusable supported SDK or HTTP clients with connection management and nonblocking I/O. This directly addresses the situation: A Node service uses synchronous blocking operations during bursts of Claude streaming responses. The technical reason is that resource-conscious client design prevents connection exhaustion and event-loop stalls in API services. Without it, throughput and reliability can collapse as concurrent requests increase. A concrete acceptance check is: A sustained load test shows bounded sockets and stable event-loop response latency.
Incorrect Answers
A:Control prompt assembly with relevant retrieval, truncation rules and context-budget measurements. This does not repair the current workflow because resource-conscious client design prevents connection exhaustion and event-loop stalls in API services. The targeted change is use reusable supported SDK or HTTP clients with connection management and nonblocking I/O.
B:Pin tested dependencies and use staged upgrades with regression tests and rollback. This does not repair the current workflow because resource-conscious client design prevents connection exhaustion and event-loop stalls in API services. The targeted change is use reusable supported SDK or HTTP clients with connection management and nonblocking I/O.
D:Persist necessary workflow checkpoints and reconcile completed actions during restarts. This does not repair the current workflow because resource-conscious client design prevents connection exhaustion and event-loop stalls in API services. The targeted change is use reusable supported SDK or HTTP clients with connection management and nonblocking I/O.
Question 256
This engineering control is missing: "Require structured validated outputs or constrained tool schemas before business-side execution". The reported condition is: A checkout assistant parses prose by splitting punctuation and occasionally triggers the wrong operation. What is the most direct failure risk?
- Users may experience unnecessary blank screens or partial/inconsistent final responses.
- Users may act on invented or outdated instructions when retrieval provenance is missing.
- An incident cannot be traced and usage budgets can drift unnoticed.
- Malformed responses can become incorrect API mutations or broken user workflows.
Explanation
Correct Answer
D:Malformed responses can become incorrect API mutations or broken user workflows. This follows from the reported condition: A checkout assistant parses prose by splitting punctuation and occasionally triggers the wrong operation. The reason is that application-facing output must be parsed and validated against a contract, not inferred from unconstrained prose. The appropriate mitigation is: Require structured validated outputs or constrained tool schemas before business-side execution. Evidence of success would be: Invalid payloads are rejected without side effects and valid schema-conformant commands execute once.
Incorrect Answers
A: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 malformed responses can become incorrect API mutations or broken user workflows.
B: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 malformed responses can become incorrect API mutations or broken user workflows.
C: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 malformed responses can become incorrect API mutations or broken user workflows.
Question 257
A developer encounters this situation: An AI service fails open by returning an invented success result after a dependency times out. What is the MOST appropriate technical response?
- Design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features.
- Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model.
- Process the documented streaming event sequence by event type and finalize only on completion.
- Use idempotency keys or a verified deduplication record around side-effecting operations.
Explanation
Correct Answer
A:Design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features. This directly addresses the situation: An AI service fails open by returning an invented success result after a dependency times out. The technical reason is that lLM integrations are distributed systems and must expose genuine downstream failure states. Without it, users can receive false completion messages or experience cascading outages and wasted requests. A concrete acceptance check is: Fault injection yields a truthful limited-service response without executing duplicate actions.
Incorrect Answers
B:Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model. This does not repair the current workflow because lLM integrations are distributed systems and must expose genuine downstream failure states. The targeted change is design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features.
C:Process the documented streaming event sequence by event type and finalize only on completion. This does not repair the current workflow because lLM integrations are distributed systems and must expose genuine downstream failure states. The targeted change is design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features.
D:Use idempotency keys or a verified deduplication record around side-effecting operations. This does not repair the current workflow because lLM integrations are distributed systems and must expose genuine downstream failure states. The targeted change is design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features.
Question 258
This engineering control is missing: "Benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks". The reported condition is: A high-stakes architecture review uses a speed-optimized model without testing whether quality meets requirements. What is the most direct failure risk?
- Unnecessary repeated context processing raises token cost and time to first response.
- Model selection by name alone can overpay or underperform on important workflows.
- Hard tasks may fail under an underpowered model while easy tasks waste premium capacity.
- Unnecessary persistent sockets add complexity, while polling can waste resources and lose events.
Explanation
Correct Answer
B:Model selection by name alone can overpay or underperform on important workflows. This follows from the reported condition: A high-stakes architecture review uses a speed-optimized model without testing whether quality meets requirements. The reason is that opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement. The appropriate mitigation is: Benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks. Evidence of success would be: A representative evaluation records quality, p95 latency and cost before selecting a model.
Incorrect Answers
A: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 model selection by name alone can overpay or underperform on important workflows.
C: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 model selection by name alone can overpay or underperform on important workflows.
D:Unnecessary persistent sockets add complexity, while polling can waste resources and lose events. That exposure calls for select request/response HTTP, streaming, or persistent connections based on the real interaction pattern. The scenario here instead risks model selection by name alone can overpay or underperform on important workflows.
Question 259
A developer encounters this situation: A development agent runs a destructive repository operation without a deterministic pre-execution check. What is the MOST appropriate technical response?
- Prune tool outputs and maintain concise task state or checkpoints to keep context useful.
- Pass tool results as lower-trust data and enforce tool authorization in the application layer.
- Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries.
- Implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness.
Explanation
Correct Answer
C:Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries. This directly addresses the situation: A development agent runs a destructive repository operation without a deterministic pre-execution check. The technical reason is that hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle. Without it, safety requirements expressed only as prose can be ignored or reinterpreted by the model. A concrete acceptance check is: An intentional risky tool call is blocked by a hook while authorized benign actions continue.
Incorrect Answers
A:Prune tool outputs and maintain concise task state or checkpoints to keep context useful. This does not repair the current workflow because hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle. The targeted change is use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries.
B:Pass tool results as lower-trust data and enforce tool authorization in the application layer. This does not repair the current workflow because hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle. The targeted change is use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries.
D:Implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness. This does not repair the current workflow because hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle. The targeted change is use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries.
Question 260
This engineering control is missing: "Design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features". The reported condition is: An AI service fails open by returning an invented success result after a dependency times out. What is the most direct failure risk?
- A hostile document may persuade the model to reveal policy or call disallowed tools.
- Excessive context raises costs, latency and the likelihood of truncating critical instructions.
- Unreviewed configuration drift can expose keys or create inconsistent model behavior.
- Users can receive false completion messages or experience cascading outages and wasted requests.
Explanation
Correct Answer
D:Users can receive false completion messages or experience cascading outages and wasted requests. This follows from the reported condition: An AI service fails open by returning an invented success result after a dependency times out. The reason is that lLM integrations are distributed systems and must expose genuine downstream failure states. The appropriate mitigation is: Design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features. Evidence of success would be: Fault injection yields a truthful limited-service response without executing duplicate actions.
Incorrect Answers
A:A hostile document may persuade the model to reveal policy or call disallowed tools. That exposure calls for separate trusted system/developer instructions from untrusted input and validate any requested tool execution. The scenario here instead risks users can receive false completion messages or experience cascading outages and wasted requests.
B:Excessive context raises costs, latency and the likelihood of truncating critical instructions. That exposure calls for control prompt assembly with relevant retrieval, truncation rules and context-budget measurements. The scenario here instead risks users can receive false completion messages or experience cascading outages and wasted requests.
C: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 users can receive false completion messages or experience cascading outages and wasted requests.