Claude Certified Developer - Foundations CCDV-F Practice Test 37
Question 360
This engineering control is missing: "Maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy". The reported condition is: A Claude Code session repeatedly changes files that the repository instructions explicitly prohibit editing. What is the most direct failure risk?
- A generated command could delete files, leak secrets or deploy unapproved code.
- Unreviewed broad changes can hide regressions or introduce unsafe dependencies.
- Malformed responses can become incorrect API mutations or broken user workflows.
- The assistant may change protected files or ignore required tests during code generation.
Explanation
Correct Answer
D:The assistant may change protected files or ignore required tests during code generation. This follows from the reported condition: A Claude Code session repeatedly changes files that the repository instructions explicitly prohibit editing. The reason is that coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent. The appropriate mitigation is: Maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy. Evidence of success would be: A controlled coding task follows project instructions and avoids excluded files while producing a reviewable diff.
Incorrect Answers
A:A generated command could delete files, leak secrets or deploy unapproved code. That exposure calls for use Claude Code permissions and supported pre-tool hooks to enforce command approval and safety checks. The scenario here instead risks the assistant may change protected files or ignore required tests during code generation.
B:Unreviewed broad changes can hide regressions or introduce unsafe dependencies. That exposure calls for review Claude Code changes as small diffs and run targeted tests before accepting or committing them. The scenario here instead risks the assistant may change protected files or ignore required tests during code generation.
C:Malformed responses can become incorrect API mutations or broken user workflows. That exposure calls for require structured validated outputs or constrained tool schemas before business-side execution. The scenario here instead risks the assistant may change protected files or ignore required tests during code generation.
Question 361
A developer encounters this situation: A developer picks a heavyweight integration layer for a single fixed calculation function. What is the MOST appropriate technical response?
- Choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements.
- 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.
- Use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions.
Explanation
Correct Answer
A:Choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements. This directly addresses the situation: A developer picks a heavyweight integration layer for a single fixed calculation function. The technical reason is that customization should add needed control or interoperability, not unnecessary maintenance complexity. Without it, unneeded custom infrastructure can increase failure modes and security review burden. A concrete acceptance check is: A prototype meets functionality and authorization requirements with the smallest maintainable integration.
Incorrect Answers
B:Implement the documented MCP capability contracts for tools, resources and prompts with restricted access. This does not repair the current workflow because customization should add needed control or interoperability, not unnecessary maintenance complexity. The targeted change is choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements.
C:Apply authentication, resource authorization and request validation to each MCP tool/resource operation. This does not repair the current workflow because customization should add needed control or interoperability, not unnecessary maintenance complexity. The targeted change is choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements.
D:Use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions. This does not repair the current workflow because customization should add needed control or interoperability, not unnecessary maintenance complexity. The targeted change is choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements.
Question 362
A developer encounters this situation: A high-stakes architecture review uses a speed-optimized model without testing whether quality meets requirements. What is the MOST appropriate technical response?
- Use task difficulty and measured confidence to route work to an appropriate model or escalation path.
- Benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks.
- Pin or deliberately version model selections and run regression tests during model changes.
- Budget input and output tokens using the selected model's tokenization and context limits.
Explanation
Correct Answer
B:Benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks. This directly addresses the situation: A high-stakes architecture review uses a speed-optimized model without testing whether quality meets requirements. The technical reason is that opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement. Without it, model selection by name alone can overpay or underperform on important workflows. A concrete acceptance check is: A representative evaluation records quality, p95 latency and cost before selecting a model.
Incorrect Answers
A:Use task difficulty and measured confidence to route work to an appropriate model or escalation path. This does not repair the current workflow because opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement. The targeted change is benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks.
C:Pin or deliberately version model selections and run regression tests during model changes. This does not repair the current workflow because opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement. The targeted change is benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks.
D:Budget input and output tokens using the selected model's tokenization and context limits. This does not repair the current workflow because opus, Sonnet and Haiku are positioned for different capability/speed/cost trade-offs that require measurement. The targeted change is benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks.
Question 363
A developer encounters this situation: An agentic coding run forgets the project's test commands and style constraints between sessions. What is the MOST appropriate technical response?
- Review Claude Code changes as small diffs and run targeted tests before accepting or committing them.
- Inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output.
- Maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy.
- Use Claude Code permissions and supported pre-tool hooks to enforce command approval and safety checks.
Explanation
Correct Answer
C:Maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy. This directly addresses the situation: An agentic coding run forgets the project's test commands and style constraints between sessions. 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: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.
B:Inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output. 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.
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 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.
Question 364
A developer encounters this situation: A Claude Agent SDK workflow allows subagents to call tools without a shared termination budget. What is the MOST appropriate technical response?
- Choose managed versus self-hosted agent execution by evaluating residency, observability, permissions and operational responsibility.
- Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries.
- Use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions.
- Implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness.
Explanation
Correct Answer
D:Implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness. This directly addresses the situation: A Claude Agent SDK workflow allows subagents to call tools without a shared termination budget. The technical reason is that an agent orchestration loop must own tool execution and recovery rather than assuming every model step succeeds. Without it, tool failures can leave an agent stuck, silently incomplete or repeatedly calling services. A concrete acceptance check is: A fault-injection run terminates predictably and records the failed tool, recovery and final state.
Incorrect Answers
A:Choose managed versus self-hosted agent execution by evaluating residency, observability, permissions and operational responsibility. This does not repair the current workflow because an agent orchestration loop must own tool execution and recovery rather than assuming every model step succeeds. The targeted change is implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness.
B:Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries. This does not repair the current workflow because an agent orchestration loop must own tool execution and recovery rather than assuming every model step succeeds. The targeted change is implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness.
C:Use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions. This does not repair the current workflow because an agent orchestration loop must own tool execution and recovery rather than assuming every model step succeeds. The targeted change is implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness.
Question 365
To address the situation: A team enables extended thinking for every simple classification call without measuring latency. The team implements: "Choose appropriate thinking or effort settings based on task complexity, latency and budget constraints". Which evidence BEST demonstrates success?
- A benchmark shows required accuracy within agreed latency and token budgets for each task class.
- Repeated fixture runs satisfy the same structured behavioral contract despite wording differences.
- An unseen held-out sample follows the intended schema and policy without relying on memorized examples.
- A load test shows bounded parallelism, proper cancellation and stable latency under normal traffic.
Explanation
Correct Answer
A:A benchmark shows required accuracy within agreed latency and token budgets for each task class. This directly tests the outcome of choose appropriate thinking or effort settings based on task complexity, latency and budget constraints. in the described case: A team enables extended thinking for every simple classification call without measuring latency. The underlying principle is that more internal reasoning can help complex decisions but consumes latency or tokens depending on the model and settings. If the change is ineffective, overspending on trivial tasks or under-allocating difficult analysis can harm cost and quality. A configuration checkbox alone is insufficient proof.
Incorrect Answers
B: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 A benchmark shows required accuracy within agreed latency and token budgets for each task class.
C: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 A benchmark shows required accuracy within agreed latency and token budgets for each task class.
D:A load test shows bounded parallelism, proper cancellation and stable latency under normal traffic. This outcome would validate use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks, not the requested intervention. The required test result is A benchmark shows required accuracy within agreed latency and token budgets for each task class.
Question 366
To address the situation: An enterprise agent must call a proprietary inventory service across multiple clients and runtimes. The team implements: "Use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions". Which evidence BEST demonstrates success?
- Invalid tool arguments fail safely and valid documented requests map to one expected operation.
- A test confirms the Skill guides a workflow and the tool separately enforces real data access.
- A conforming MCP client discovers allowed capabilities and rejects restricted resource requests.
- A prototype meets functionality and authorization requirements with the smallest maintainable integration.
Explanation
Correct Answer
B:A test confirms the Skill guides a workflow and the tool separately enforces real data access. This directly tests the outcome of use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions. in the described case: An enterprise agent must call a proprietary inventory service across multiple clients and runtimes. The underlying principle is that skills package instructions while tools and MCP servers expose executable capabilities and data interfaces. If the change is ineffective, treating an instruction document as a network integration can create brittle or unauthorized behavior. 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 A test confirms the Skill guides a workflow and the tool separately enforces real data access.
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 A test confirms the Skill guides a workflow and the tool separately enforces real data access.
D: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 A test confirms the Skill guides a workflow and the tool separately enforces real data access.
Question 367
To address the situation: Incident responders cannot correlate a failed model call because request identifiers were discarded. The team implements: "Log bounded structured request IDs, latency and failure categories while redacting secrets and sensitive content". Which evidence BEST demonstrates success?
- A simulated timeout/retry results in a single authorized record and a traceable request ID.
- Negative HTTP fixtures produce explicit typed failures and valid JSON remains parseable.
- Sample traces correlate request IDs and error types without including keys or protected prompt content.
- CI rejects malformed responses in tests and approves only validated changes.
Explanation
Correct Answer
C:Sample traces correlate request IDs and error types without including keys or protected prompt content. This directly tests the outcome of log bounded structured request IDs, latency and failure categories while redacting secrets and sensitive content. in the described case: Incident responders cannot correlate a failed model call because request identifiers were discarded. The underlying principle is that observability must preserve operational diagnostics without turning logs into a data-leak channel. If the change is ineffective, credentials or personal data can be exposed in log storage, or incidents can be impossible to trace. 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 sample traces correlate request IDs and error types without including keys or protected prompt content.
B:Negative HTTP fixtures produce explicit typed failures and valid JSON remains parseable. This outcome would validate validate HTTP status, content types and JSON response contracts before processing API results, not the requested intervention. The required test result is sample traces correlate request IDs and error types without including keys or protected prompt content.
D: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 sample traces correlate request IDs and error types without including keys or protected prompt content.
Question 368
In this situation: A coding assistant opens a large pull request that mixes unrelated refactors and security fixes. The developer proposes: Review Claude Code changes as small diffs and run targeted tests before accepting or committing them. Which principle BEST justifies the approach?
- Operational auditing needs identifiers and metering to diagnose failures and allocate model costs.
- Deterministic approval boundaries prevent autonomous coding suggestions from becoming unreviewed operational changes.
- Agent memory should preserve decision-relevant state rather than an unbounded history of low-value observations.
- AI-produced patches remain software changes requiring human or automated code-quality validation.
Explanation
Correct Answer
D:AI-produced patches remain software changes requiring human or automated code-quality validation. In the given situation, a coding assistant opens a large pull request that mixes unrelated refactors and security fixes. That consideration supports the measure: Review Claude Code changes as small diffs and run targeted tests before accepting or committing them. Ignoring it creates this exposure: Unreviewed broad changes can hide regressions or introduce unsafe dependencies. Verify the implementation by checking: A bounded patch passes tests and review without unrelated file modifications.
Incorrect Answers
A:Operational auditing needs identifiers and metering to diagnose failures and allocate model costs. This principle relates to capture provider request IDs, token usage and model metadata in privacy-safe telemetry. The observed failure instead depends on AI-produced patches remain software changes requiring human or automated code-quality validation. The appropriate choice is AI-produced patches remain software changes requiring human or automated code-quality validation.
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 AI-produced patches remain software changes requiring human or automated code-quality validation. The appropriate choice is AI-produced patches remain software changes requiring human or automated code-quality validation.
C:Agent memory should preserve decision-relevant state rather than an unbounded history of low-value observations. This principle relates to prune tool outputs and maintain concise task state or checkpoints to keep context useful. The observed failure instead depends on AI-produced patches remain software changes requiring human or automated code-quality validation. The appropriate choice is AI-produced patches remain software changes requiring human or automated code-quality validation.
Question 369
In this situation: A tool advertises a vague name like run_task and the model sends mismatched arguments. The developer proposes: Define precise tool descriptions and validated JSON argument schemas with narrow capabilities. Which principle BEST justifies the approach?
- 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.
- Skills package instructions while tools and MCP servers expose executable capabilities and data interfaces.
- Tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes.
Explanation
Correct Answer
A:A clear tool contract helps model selection while code-side validation keeps execution within allowed types. In the given situation, a tool advertises a vague name like run_task and the model sends mismatched arguments. That consideration supports the measure: Define precise tool descriptions and validated JSON argument schemas with narrow capabilities. Ignoring it creates this exposure: Ambiguous or unchecked arguments can invoke an unintended operation or injection path. Verify the implementation by checking: Invalid tool arguments fail safely and valid documented requests map to one expected operation.
Incorrect Answers
B: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 A clear tool contract helps model selection while code-side validation keeps execution within allowed types. The appropriate choice is A clear tool contract helps model selection while code-side validation keeps execution within allowed types.
C: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 A clear tool contract helps model selection while code-side validation keeps execution within allowed types. The appropriate choice is A clear tool contract helps model selection while code-side validation keeps execution within allowed types.
D: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 A clear tool contract helps model selection while code-side validation keeps execution within allowed types. The appropriate choice is A clear tool contract helps model selection while code-side validation keeps execution within allowed types.
Question 370
To address the situation: An application retries rate-limited requests instantly from hundreds of workers. The team implements: "Use status-aware retry policies with exponential backoff, jitter and bounded attempts for transient errors". Which evidence BEST demonstrates success?
- Negative HTTP fixtures produce explicit typed failures and valid JSON remains parseable.
- Fault tests demonstrate bounded retries for transient codes and immediate rejection of invalid requests.
- Recorded event fixtures reconstruct the same final message as the nonstreaming response.
- A test tool request executes only after authorization and a matching result lets the assistant finish.
Explanation
Correct Answer
B:Fault tests demonstrate bounded retries for transient codes and immediate rejection of invalid requests. This directly tests the outcome of use status-aware retry policies with exponential backoff, jitter and bounded attempts for transient errors. in the described case: An application retries rate-limited requests instantly from hundreds of workers. The underlying principle is that rate limits and transient failures require controlled retries; permanent client errors should fail fast. If the change is ineffective, retry storms can magnify outages and increase costs without recovering service. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:Negative HTTP fixtures produce explicit typed failures and valid JSON remains parseable. This outcome would validate validate HTTP status, content types and JSON response contracts before processing API results, not the requested intervention. The required test result is fault tests demonstrate bounded retries for transient codes and immediate rejection of invalid requests.
C:Recorded event fixtures reconstruct the same final message as the nonstreaming response. This outcome would validate process the documented streaming event sequence by event type and finalize only on completion, not the requested intervention. The required test result is fault tests demonstrate bounded retries for transient codes and immediate rejection of invalid requests.
D:A test tool request executes only after authorization and a matching result lets the assistant finish. This outcome would validate inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output, not the requested intervention. The required test result is fault tests demonstrate bounded retries for transient codes and immediate rejection of invalid requests.