Claude Certified Developer - Foundations CCDV-F Practice Test 49
Question 480
In this situation: A development agent runs a destructive repository operation without a deterministic pre-execution check. The developer proposes: Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries. Which principle BEST justifies the approach?
- Tool outputs are untrusted observations, not elevated user or system instructions.
- Frameworks such as LangGraph or Strands add value when branching, persistence or coordination justify their overhead.
- An agent orchestration loop must own tool execution and recovery rather than assuming every model step succeeds.
- Hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle.
Explanation
Correct Answer
D:Hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle. In the given situation, a development agent runs a destructive repository operation without a deterministic pre-execution check. That consideration supports the measure: Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries. Ignoring it creates this exposure: Safety requirements expressed only as prose can be ignored or reinterpreted by the model. Verify the implementation by checking: An intentional risky tool call is blocked by a hook while authorized benign actions continue.
Incorrect Answers
A:Tool outputs are untrusted observations, not elevated user or system instructions. This principle relates to pass tool results as lower-trust data and enforce tool authorization in the application layer. The observed failure instead depends on hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle. The appropriate choice is hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle.
B:Frameworks such as LangGraph or Strands add value when branching, persistence or coordination justify their overhead. This principle relates to match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty. The observed failure instead depends on hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle. The appropriate choice is hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle.
C:An agent orchestration loop must own tool execution and recovery rather than assuming every model step succeeds. This principle relates to implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness. The observed failure instead depends on hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle. The appropriate choice is hooks can apply nonprobabilistic policy checks around tool use when installed in the correct execution lifecycle.
Question 481
A developer encounters this situation: A planning agent relies on a prompt to prevent an unauthorized action but the harness never checks permissions. What is the MOST appropriate technical response?
- Keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint.
- Match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty.
- 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
A:Keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint. This directly addresses the situation: A planning agent relies on a prompt to prevent an unauthorized action but the harness never checks permissions. The technical reason is that the agent's model output is a proposal; the hosting system must validate and enforce authorized actions. Without it, a prompt-injected suggestion could cross a trust boundary if the app executes it without validation. A concrete acceptance check is: An unapproved tool request is rejected by code and logged even when the model asks to run it.
Incorrect Answers
B:Match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty. This does not repair the current workflow because the agent's model output is a proposal; the hosting system must validate and enforce authorized actions. The targeted change is keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint.
C:Separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization. This does not repair the current workflow because the agent's model output is a proposal; the hosting system must validate and enforce authorized actions. The targeted change is keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint.
D:Pass tool results as lower-trust data and enforce tool authorization in the application layer. This does not repair the current workflow because the agent's model output is a proposal; the hosting system must validate and enforce authorized actions. The targeted change is keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint.
Question 482
In this situation: A user uploads a document containing disguised tool commands that contradict developer policy. The developer proposes: Treat retrieved and user-supplied content as untrusted data and enforce tool permissions separately. Which principle BEST justifies the approach?
- AI application privacy depends on data handling throughout ingestion, prompting, logging and retention.
- Prompt injection exploits lower-trust text being promoted to trusted operational instructions.
- Safety controls must protect every consequential boundary, not merely the final generated text.
- Application authorization constrains the effects of model output even when the model is manipulated.
Explanation
Correct Answer
B:Prompt injection exploits lower-trust text being promoted to trusted operational instructions. In the given situation, a user uploads a document containing disguised tool commands that contradict developer policy. That consideration supports the measure: Treat retrieved and user-supplied content as untrusted data and enforce tool permissions separately. Ignoring it creates this exposure: A malicious document could induce data exfiltration or unauthorized tool calls. Verify the implementation by checking: Red-team fixtures cannot cross tool authorization boundaries or extract secrets.
Incorrect Answers
A:AI application privacy depends on data handling throughout ingestion, prompting, logging and retention. This principle relates to minimize sensitive input and redact, restrict and retain logs according to approved privacy requirements. The observed failure instead depends on prompt injection exploits lower-trust text being promoted to trusted operational instructions. The appropriate choice is prompt injection exploits lower-trust text being promoted to trusted operational instructions.
C:Safety controls must protect every consequential boundary, not merely the final generated text. This principle relates to layer input, tool-execution and output checks with human approval for sensitive side effects. The observed failure instead depends on prompt injection exploits lower-trust text being promoted to trusted operational instructions. The appropriate choice is prompt injection exploits lower-trust text being promoted to trusted operational instructions.
D:Application authorization constrains the effects of model output even when the model is manipulated. This principle relates to enforce least-privilege tool permissions and distinct identities scoped to each workflow. The observed failure instead depends on prompt injection exploits lower-trust text being promoted to trusted operational instructions. The appropriate choice is prompt injection exploits lower-trust text being promoted to trusted operational instructions.
Question 483
This engineering control is missing: "Prune tool outputs and maintain concise task state or checkpoints to keep context useful". The reported condition is: An agent summarizes previous findings poorly and repeatedly reopens the same documents. What is the most direct failure risk?
- A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable.
- Overengineering raises maintenance burden, while underengineering loses recovery state on complex flows.
- Context bloat can increase costs, truncation and inconsistent task completion.
- Retries or duplicate delegations can create multiple charges or inconsistent records.
Explanation
Correct Answer
C:Context bloat can increase costs, truncation and inconsistent task completion. This follows from the reported condition: An agent summarizes previous findings poorly and repeatedly reopens the same documents. 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: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.
B: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.
D:Retries or duplicate delegations can create multiple charges or inconsistent records. That exposure calls for add idempotency and completed-work tracking to subagent/tool handoffs. The scenario here instead risks context bloat can increase costs, truncation and inconsistent task completion.
Question 484
To address the situation: A custom tool-using agent returns partial output after a tool error but never records its final state. The team implements: "Implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness". Which evidence BEST demonstrates success?
- The workflow produces consistent step traces and enforces the required approval order on representative invoices.
- A design test confirms data paths, tool permissions and log ownership match the approved deployment constraints.
- A simulated unresolvable task stops within limits and creates a clear escalation record.
- A fault-injection run terminates predictably and records the failed tool, recovery and final state.
Explanation
Correct Answer
D:A fault-injection run terminates predictably and records the failed tool, recovery and final state. This directly tests the outcome of implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness. in the described case: A custom tool-using agent returns partial output after a tool error but never records its final state. The underlying principle is that an agent orchestration loop must own tool execution and recovery rather than assuming every model step succeeds. If the change is ineffective, tool failures can leave an agent stuck, silently incomplete or repeatedly calling services. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:The workflow produces consistent step traces and enforces the required approval order on representative invoices. This outcome would validate use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions, not the requested intervention. The required test result is A fault-injection run terminates predictably and records the failed tool, recovery and final state.
B:A design test confirms data paths, tool permissions and log ownership match the approved deployment constraints. This outcome would validate choose managed versus self-hosted agent execution by evaluating residency, observability, permissions and operational responsibility, not the requested intervention. The required test result is A fault-injection run terminates predictably and records the failed tool, recovery and final state.
C:A simulated unresolvable task stops within limits and creates a clear escalation record. This outcome would validate bound agent iterations, tool budgets and stop conditions with a safe fallback or human escalation, not the requested intervention. The required test result is A fault-injection run terminates predictably and records the failed tool, recovery and final state.
Question 485
A developer encounters this situation: An MCP tool server accepts remote calls without verifying token scopes or origin. What is the MOST appropriate technical response?
- Apply authentication, resource authorization and request validation to each MCP tool/resource operation.
- Define precise tool descriptions and validated JSON argument schemas with narrow capabilities.
- Implement the documented MCP capability contracts for tools, resources and prompts with restricted access.
- Return typed, bounded, sanitized tool results with explicit errors and retry metadata.
Explanation
Correct Answer
A:Apply authentication, resource authorization and request validation to each MCP tool/resource operation. This directly addresses the situation: An MCP tool server accepts remote calls without verifying token scopes or origin. The technical reason is that mCP capability discovery is not a substitute for identity checks on every protected operation. Without it, a caller could invoke privileged tools or read another user's data. A concrete acceptance check is: Cross-tenant negative requests are denied while appropriately scoped calls succeed.
Incorrect Answers
B:Define precise tool descriptions and validated JSON argument schemas with narrow capabilities. This does not repair the current workflow because mCP capability discovery is not a substitute for identity checks on every protected operation. The targeted change is apply authentication, resource authorization and request validation to each MCP tool/resource operation.
C:Implement the documented MCP capability contracts for tools, resources and prompts with restricted access. This does not repair the current workflow because mCP capability discovery is not a substitute for identity checks on every protected operation. The targeted change is apply authentication, resource authorization and request validation to each MCP tool/resource operation.
D:Return typed, bounded, sanitized tool results with explicit errors and retry metadata. This does not repair the current workflow because mCP capability discovery is not a substitute for identity checks on every protected operation. The targeted change is apply authentication, resource authorization and request validation to each MCP tool/resource operation.
Question 486
A developer encounters this situation: A developer merges an LLM prompt change without tests for the expected structured output contract. What is the MOST appropriate technical response?
- Validate HTTP status, content types and JSON response contracts before processing API results.
- Use version control, code review and automated contract plus failure-mode tests for integration changes.
- Process the documented streaming event sequence by event type and finalize only on completion.
- Parse documented typed content blocks and stop reasons rather than flattening responses into text.
Explanation
Correct Answer
B:Use version control, code review and automated contract plus failure-mode tests for integration changes. This directly addresses the situation: A developer merges an LLM prompt change without tests for the expected structured output contract. The technical reason is that aPI integration safety depends on regression tests for behavior at service boundaries. Without it, minor refactors can silently break downstream consumers or error handling. A concrete acceptance check is: CI rejects malformed responses in tests and approves only validated changes.
Incorrect Answers
A:Validate HTTP status, content types and JSON response contracts before processing API results. This does not repair the current workflow because aPI integration safety depends on regression tests for behavior at service boundaries. The targeted change is use version control, code review and automated contract plus failure-mode tests for integration changes.
C:Process the documented streaming event sequence by event type and finalize only on completion. This does not repair the current workflow because aPI integration safety depends on regression tests for behavior at service boundaries. The targeted change is use version control, code review and automated contract plus failure-mode tests for integration changes.
D:Parse documented typed content blocks and stop reasons rather than flattening responses into text. This does not repair the current workflow because aPI integration safety depends on regression tests for behavior at service boundaries. The targeted change is use version control, code review and automated contract plus failure-mode tests for integration changes.
Question 487
A developer encounters this situation: A job runner replays an LLM-triggered write after network interruption without an operation identifier. What is the MOST appropriate technical response?
- Use reusable supported SDK or HTTP clients with connection management and nonblocking I/O.
- Require structured validated outputs or constrained tool schemas before business-side execution.
- Use idempotency keys or a verified deduplication record around side-effecting operations.
- Select supported batch processing where appropriate and monitor batch lifecycle and individual results.
Explanation
Correct Answer
C:Use idempotency keys or a verified deduplication record around side-effecting operations. This directly addresses the situation: A job runner replays an LLM-triggered write after network interruption without an operation identifier. The technical reason is that retries are necessary for reliability but should not repeat external mutations when a response is lost. Without it, one logical action can produce duplicated invoices, tickets or payments. A concrete acceptance check is: A simulated timeout/retry results in a single authorized record and a traceable request ID.
Incorrect Answers
A:Use reusable supported SDK or HTTP clients with connection management and nonblocking I/O. This does not repair the current workflow because retries are necessary for reliability but should not repeat external mutations when a response is lost. The targeted change is use idempotency keys or a verified deduplication record around side-effecting operations.
B:Require structured validated outputs or constrained tool schemas before business-side execution. This does not repair the current workflow because retries are necessary for reliability but should not repeat external mutations when a response is lost. The targeted change is use idempotency keys or a verified deduplication record around side-effecting operations.
D:Select supported batch processing where appropriate and monitor batch lifecycle and individual results. This does not repair the current workflow because retries are necessary for reliability but should not repeat external mutations when a response is lost. The targeted change is use idempotency keys or a verified deduplication record around side-effecting operations.
Question 488
This engineering control is missing: "Use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions". The reported condition is: A reusable coding workflow needs repeatable instructions but no external system access. What is the most direct failure risk?
- Unneeded custom infrastructure can increase failure modes and security review burden.
- Ambiguous or unchecked arguments can invoke an unintended operation or injection path.
- 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.
Explanation
Correct Answer
D:Treating an instruction document as a network integration can create brittle or unauthorized behavior. This follows from the reported condition: A reusable coding workflow needs repeatable instructions but no external system access. The reason is that skills package instructions while tools and MCP servers expose executable capabilities and data interfaces. The appropriate mitigation is: Use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions. Evidence of success would be: A test confirms the Skill guides a workflow and the tool separately enforces real data access.
Incorrect Answers
A:Unneeded custom infrastructure can increase failure modes and security review burden. That exposure calls for choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements. The scenario here instead risks treating an instruction document as a network integration can create brittle or unauthorized behavior.
B:Ambiguous or unchecked arguments can invoke an unintended operation or injection path. That exposure calls for define precise tool descriptions and validated JSON argument schemas with narrow capabilities. The scenario here instead risks treating an instruction document as a network integration can create brittle or unauthorized behavior.
C: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 treating an instruction document as a network integration can create brittle or unauthorized behavior.
Question 489
This engineering control is missing: "Persist and re-supply required prior message context explicitly according to the stateless Messages API pattern". The reported condition is: A developer sends only the latest follow-up and expects Claude to recall details not included in the request. What is the most direct failure risk?
- The model may answer without critical prior constraints or invent missing context.
- Tool-dependent tasks may end incomplete or return an unfulfilled action description.
- Jobs can be lost or cost more when the wrong execution mode is used.
- Unreviewed configuration drift can expose keys or create inconsistent model behavior.
Explanation
Correct Answer
A:The model may answer without critical prior constraints or invent missing context. This follows from the reported condition: A developer sends only the latest follow-up and expects Claude to recall details not included in the request. The reason is that conversation continuity depends on the application supplying relevant history or state in each request. The appropriate mitigation is: Persist and re-supply required prior message context explicitly according to the stateless Messages API pattern. Evidence of success would be: A multi-turn regression test succeeds when required history is supplied and fails safely when it is absent.
Incorrect Answers
B:Tool-dependent tasks may end incomplete or return an unfulfilled action description. That exposure calls for inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output. The scenario here instead risks the model may answer without critical prior constraints or invent missing context.
C:Jobs can be lost or cost more when the wrong execution mode is used. That exposure calls for select supported batch processing where appropriate and monitor batch lifecycle and individual results. The scenario here instead risks the model may answer without critical prior constraints or invent missing context.
D: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 the model may answer without critical prior constraints or invent missing context.
Question 490
To address the situation: A developer picks a heavyweight integration layer for a single fixed calculation function. The team implements: "Choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements". Which evidence BEST demonstrates success?
- Unknown or unauthorized calls are denied even when the model proposes them.
- A prototype meets functionality and authorization requirements with the smallest maintainable integration.
- A transport interoperability test exchanges valid requests with clean framing and no leaked log text.
- A test confirms the Skill guides a workflow and the tool separately enforces real data access.
Explanation
Correct Answer
B:A prototype meets functionality and authorization requirements with the smallest maintainable integration. This directly tests the outcome of choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements. in the described case: A developer picks a heavyweight integration layer for a single fixed calculation function. The underlying principle is that customization should add needed control or interoperability, not unnecessary maintenance complexity. If the change is ineffective, unneeded custom infrastructure can increase failure modes and security review burden. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:Unknown or unauthorized calls are denied even when the model proposes them. This outcome would validate authorize tool name, arguments and caller identity before performing any side effect, not the requested intervention. The required test result is A prototype meets functionality and authorization requirements with the smallest maintainable integration.
C:A transport interoperability test exchanges valid requests with clean framing and no leaked log text. This outcome would validate choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs, not the requested intervention. The required test result is A prototype meets functionality and authorization requirements with the smallest maintainable integration.
D:A test confirms the Skill guides a workflow and the tool separately enforces real data access. This outcome would validate use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions, not the requested intervention. The required test result is A prototype meets functionality and authorization requirements with the smallest maintainable integration.