Claude Certified Developer - Foundations CCDV-F Practice Test 33
Question 320
To address the situation: A staging service sends requests with missing authorization headers and retries every rejection. The team implements: "Configure authenticated requests, secret rotation and clear failure handling in the SDK/client". Which evidence BEST demonstrates success?
- A representative interaction meets reliability/latency targets with no orphaned connection state.
- Measured token usage stays within the model's supported window for representative long inputs.
- A simulated HTTP failure emerges as the expected SDK error with a traceable request ID.
- Rotated credentials work without code changes and invalid keys produce a bounded clear error.
Explanation
Correct Answer
D:Rotated credentials work without code changes and invalid keys produce a bounded clear error. This directly tests the outcome of configure authenticated requests, secret rotation and clear failure handling in the SDK/client. in the described case: A staging service sends requests with missing authorization headers and retries every rejection. The underlying principle is that claude API access depends on correctly scoped credentials and explicit authentication failures. If the change is ineffective, credential exposure or repeated unauthorized requests can disrupt service and incur security risk. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A representative interaction meets reliability/latency targets with no orphaned connection state. This outcome would validate select request/response HTTP, streaming, or persistent connections based on the real interaction pattern, not the requested intervention. The required test result is rotated credentials work without code changes and invalid keys produce a bounded clear error.
B:Measured token usage stays within the model's supported window for representative long inputs. This outcome would validate budget input and output tokens using the selected model's tokenization and context limits, not the requested intervention. The required test result is rotated credentials work without code changes and invalid keys produce a bounded clear error.
C:A simulated HTTP failure emerges as the expected SDK error with a traceable request ID. This outcome would validate understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata, not the requested intervention. The required test result is rotated credentials work without code changes and invalid keys produce a bounded clear error.
Question 321
This engineering control is missing: "Use Claude Code permissions and supported pre-tool hooks to enforce command approval and safety checks". The reported condition is: A developer lets Claude Code execute deployment commands without approval or dry-run restrictions. What is the most direct failure risk?
- A generated command could delete files, leak secrets or deploy unapproved code.
- The assistant may change protected files or ignore required tests during code generation.
- Unreviewed broad changes can hide regressions or introduce unsafe dependencies.
- Personal data or credentials may leak through telemetry or unnecessary persistence.
Explanation
Correct Answer
A:A generated command could delete files, leak secrets or deploy unapproved code. This follows from the reported condition: A developer lets Claude Code execute deployment commands without approval or dry-run restrictions. The reason is that deterministic approval boundaries prevent autonomous coding suggestions from becoming unreviewed operational changes. The appropriate mitigation is: Use Claude Code permissions and supported pre-tool hooks to enforce command approval and safety checks. Evidence of success would be: An unsafe command is intercepted and refused while a harmless build/test command succeeds.
Incorrect Answers
B:The assistant may change protected files or ignore required tests during code generation. That exposure calls for maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy. The scenario here instead risks A generated command could delete files, leak secrets or deploy unapproved code.
C: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 A generated command could delete files, leak secrets or deploy unapproved code.
D:Personal data or credentials may leak through telemetry or unnecessary persistence. That exposure calls for minimize sensitive input and redact, restrict and retain logs according to approved privacy requirements. The scenario here instead risks A generated command could delete files, leak secrets or deploy unapproved code.
Question 322
This engineering control is missing: "Choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements". The reported condition is: An application builds a custom MCP server for a capability already provided by a managed built-in tool. What is the most direct failure risk?
- The model may hallucinate completion or leak protected information in an error message.
- Unneeded custom infrastructure can increase failure modes and security review burden.
- Treating an instruction document as a network integration can create brittle or unauthorized behavior.
- A compromised conversation could trigger unauthorized transactions or network access.
Explanation
Correct Answer
B:Unneeded custom infrastructure can increase failure modes and security review burden. This follows from the reported condition: An application builds a custom MCP server for a capability already provided by a managed built-in tool. The reason is that customization should add needed control or interoperability, not unnecessary maintenance complexity. The appropriate mitigation is: Choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements. Evidence of success would be: A prototype meets functionality and authorization requirements with the smallest maintainable integration.
Incorrect Answers
A:The model may hallucinate completion or leak protected information in an error message. That exposure calls for return typed, bounded, sanitized tool results with explicit errors and retry metadata. The scenario here instead risks unneeded custom infrastructure can increase failure modes and security review burden.
C:Treating an instruction document as a network integration can create brittle or unauthorized behavior. That exposure calls for use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions. The scenario here instead risks unneeded custom infrastructure can increase failure modes and security review burden.
D:A compromised conversation could trigger unauthorized transactions or network access. That exposure calls for authorize tool name, arguments and caller identity before performing any side effect. The scenario here instead risks unneeded custom infrastructure can increase failure modes and security review burden.
Question 323
A developer encounters this situation: A product team ships an assistant but has no safe behavior for outages or overloaded model calls. What is the MOST appropriate technical response?
- Require structured validated outputs or constrained tool schemas before business-side execution.
- Parse documented typed content blocks and stop reasons rather than flattening responses into text.
- 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.
Explanation
Correct Answer
C:Design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features. This directly addresses the situation: A product team ships an assistant but has no safe behavior for outages or overloaded model calls. 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
A:Require structured validated outputs or constrained tool schemas before business-side execution. 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.
B:Parse documented typed content blocks and stop reasons rather than flattening responses into text. 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: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.
Question 324
This engineering control is missing: "Use structured task checkpoints with completed actions, constraints and verified external state". The reported condition is: A long-running coding task forgets completed decisions each time the conversation is summarized. What is the most direct failure risk?
- Unrelated user data may contaminate answers or leak into another task.
- Context overload can cause drift, truncation and inconsistent actions.
- The model may choose an unintended format or overlook key business rules.
- The agent can duplicate work or violate earlier requirements after losing context.
Explanation
Correct Answer
D:The agent can duplicate work or violate earlier requirements after losing context. This follows from the reported condition: A long-running coding task forgets completed decisions each time the conversation is summarized. The reason is that compaction should preserve durable task state rather than treating a short summary as the entire truth. The appropriate mitigation is: Use structured task checkpoints with completed actions, constraints and verified external state. Evidence of success would be: A resumed task honors the documented checkpoint and does not rerun completed side effects.
Incorrect Answers
A:Unrelated user data may contaminate answers or leak into another task. That exposure calls for isolate contexts by user and task, passing only necessary evidence to each subagent. The scenario here instead risks the agent can duplicate work or violate earlier requirements after losing context.
B:Context overload can cause drift, truncation and inconsistent actions. That exposure calls for prune low-value tool outputs and preserve a compact summary of goals, decisions and remaining work. The scenario here instead risks the agent can duplicate work or violate earlier requirements after losing context.
C:The model may choose an unintended format or overlook key business rules. That exposure calls for give clear role, task, constraints and explicit output contract with consistent examples where helpful. The scenario here instead risks the agent can duplicate work or violate earlier requirements after losing context.
Question 325
A developer encounters this situation: A compliance app presents plausible citations even when the referenced source section was not returned. What is the MOST appropriate technical response?
- Check factual claims and citations against accessible source evidence with an explicit uncertainty path.
- Prune low-value tool outputs and preserve a compact summary of goals, decisions and remaining work.
- Give clear role, task, constraints and explicit output contract with consistent examples where helpful.
- Validate structured model outputs against strict schema and business rules before use.
Explanation
Correct Answer
A:Check factual claims and citations against accessible source evidence with an explicit uncertainty path. This directly addresses the situation: A compliance app presents plausible citations even when the referenced source section was not returned. The technical reason is that fluent model text is not proof that a statement is grounded in the supplied evidence. Without it, users may trust fabricated sources or unsupported policy advice. A concrete acceptance check is: A held-out retrieval test refuses unsupported assertions and links only to actual evidence.
Incorrect Answers
B:Prune low-value tool outputs and preserve a compact summary of goals, decisions and remaining work. This does not repair the current workflow because fluent model text is not proof that a statement is grounded in the supplied evidence. The targeted change is check factual claims and citations against accessible source evidence with an explicit uncertainty path.
C:Give clear role, task, constraints and explicit output contract with consistent examples where helpful. This does not repair the current workflow because fluent model text is not proof that a statement is grounded in the supplied evidence. The targeted change is check factual claims and citations against accessible source evidence with an explicit uncertainty path.
D:Validate structured model outputs against strict schema and business rules before use. This does not repair the current workflow because fluent model text is not proof that a statement is grounded in the supplied evidence. The targeted change is check factual claims and citations against accessible source evidence with an explicit uncertainty path.
Question 326
This engineering control is missing: "Implement the documented MCP capability contracts for tools, resources and prompts with restricted access". The reported condition is: A new MCP server exposes its internal filesystem rather than a scoped list of business resources. What is the most direct failure risk?
- A caller could invoke privileged tools or read another user's data.
- Overbroad resources or malformed tool contracts can leak data or break clients.
- Treating an instruction document as a network integration can create brittle or unauthorized behavior.
- Clients may fail to connect or parse messages when transport framing is polluted.
Explanation
Correct Answer
B:Overbroad resources or malformed tool contracts can leak data or break clients. This follows from the reported condition: A new MCP server exposes its internal filesystem rather than a scoped list of business resources. The reason is that mCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces. The appropriate mitigation is: Implement the documented MCP capability contracts for tools, resources and prompts with restricted access. Evidence of success would be: A conforming MCP client discovers allowed capabilities and rejects restricted resource requests.
Incorrect Answers
A:A caller could invoke privileged tools or read another user's data. That exposure calls for apply authentication, resource authorization and request validation to each MCP tool/resource operation. The scenario here instead risks overbroad resources or malformed tool contracts can leak data or break clients.
C:Treating an instruction document as a network integration can create brittle or unauthorized behavior. That exposure calls for use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions. The scenario here instead risks overbroad resources or malformed tool contracts can leak data or break clients.
D:Clients may fail to connect or parse messages when transport framing is polluted. That exposure calls for choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs. The scenario here instead risks overbroad resources or malformed tool contracts can leak data or break clients.
Question 327
A developer encounters this situation: An external API call fails but the tool wrapper returns a success-shaped empty object. What is the MOST appropriate technical response?
- Define precise tool descriptions and validated JSON argument schemas with narrow capabilities.
- Authorize tool name, arguments and caller identity before performing any side effect.
- Return typed, bounded, sanitized tool results with explicit errors and retry metadata.
- Choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs.
Explanation
Correct Answer
C:Return typed, bounded, sanitized tool results with explicit errors and retry metadata. This directly addresses the situation: An external API call fails but the tool wrapper returns a success-shaped empty object. The technical reason is that tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes. Without it, the model may hallucinate completion or leak protected information in an error message. A concrete acceptance check is: An injected API error yields a truthful sanitized failure and no false success statement.
Incorrect Answers
A:Define precise tool descriptions and validated JSON argument schemas with narrow capabilities. This does not repair the current workflow because tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes. The targeted change is return typed, bounded, sanitized tool results with explicit errors and retry metadata.
B:Authorize tool name, arguments and caller identity before performing any side effect. This does not repair the current workflow because tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes. The targeted change is return typed, bounded, sanitized tool results with explicit errors and retry metadata.
D:Choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs. This does not repair the current workflow because tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes. The targeted change is return typed, bounded, sanitized tool results with explicit errors and retry metadata.
Question 328
To address the situation: An agent may call a user-facing tool several times with the same arguments after a timeout. The team implements: "Add idempotency and completed-work tracking to subagent/tool handoffs". Which evidence BEST demonstrates success?
- A multi-step test stays within budget while retaining key constraints and completed steps.
- A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity.
- A fault-injection run terminates predictably and records the failed tool, recovery and final state.
- A forced retry produces one intended side effect and a visible record of reconciliation.
Explanation
Correct Answer
D:A forced retry produces one intended side effect and a visible record of reconciliation. This directly tests the outcome of add idempotency and completed-work tracking to subagent/tool handoffs. in the described case: An agent may call a user-facing tool several times with the same arguments after a timeout. The underlying principle is that at-least-once execution patterns require deduplication when actions have external side effects. If the change is ineffective, retries or duplicate delegations can create multiple charges or inconsistent records. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A multi-step test stays within budget while retaining key constraints and completed steps. This outcome would validate prune tool outputs and maintain concise task state or checkpoints to keep context useful, not the requested intervention. The required test result is A forced retry produces one intended side effect and a visible record of reconciliation.
B:A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity. This outcome would validate match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty, not the requested intervention. The required test result is A forced retry produces one intended side effect and a visible record of reconciliation.
C:A fault-injection run terminates predictably and records the failed tool, recovery and final state. This outcome would validate implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness, not the requested intervention. The required test result is A forced retry produces one intended side effect and a visible record of reconciliation.
Question 329
A developer encounters this situation: An investigation agent retries the same failed action without a budget or user escalation path. What is the MOST appropriate technical response?
- Bound agent iterations, tool budgets and stop conditions with a safe fallback or human escalation.
- Keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint.
- Separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization.
- Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries.
Explanation
Correct Answer
A:Bound agent iterations, tool budgets and stop conditions with a safe fallback or human escalation. This directly addresses the situation: An investigation agent retries the same failed action without a budget or user escalation path. The technical reason is that autonomous tool loops require termination criteria and explicit limits for predictable operational cost and safety. Without it, runaway iterations can consume tokens, spam APIs and repeat harmful or useless operations. A concrete acceptance check is: A simulated unresolvable task stops within limits and creates a clear escalation record.
Incorrect Answers
B:Keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint. This does not repair the current workflow because autonomous tool loops require termination criteria and explicit limits for predictable operational cost and safety. The targeted change is bound agent iterations, tool budgets and stop conditions with a safe fallback or human escalation.
C:Separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization. This does not repair the current workflow because autonomous tool loops require termination criteria and explicit limits for predictable operational cost and safety. The targeted change is bound agent iterations, tool budgets and stop conditions with a safe fallback or human escalation.
D:Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries. This does not repair the current workflow because autonomous tool loops require termination criteria and explicit limits for predictable operational cost and safety. The targeted change is bound agent iterations, tool budgets and stop conditions with a safe fallback or human escalation.
Question 330
This engineering control is missing: "Add supported pre-tool hooks or policy checks that deny dangerous commands and preserve audit evidence". The reported condition is: An autonomous code assistant executes a file-deletion command without a policy gate. What is the most direct failure risk?
- A leaked key can enable unauthorized API usage and uncontrolled cost or data access.
- A prompt-based warning may fail to stop a harmful command from running.
- Unsafe actions can occur before a downstream moderation filter sees the result.
- Compromised or confused agents may modify unrelated production records.
Explanation
Correct Answer
B:A prompt-based warning may fail to stop a harmful command from running. This follows from the reported condition: An autonomous code assistant executes a file-deletion command without a policy gate. The reason is that deterministic hooks provide an enforceable checkpoint around risky tool execution. The appropriate mitigation is: Add supported pre-tool hooks or policy checks that deny dangerous commands and preserve audit evidence. Evidence of success would be: A harmless command passes, a dangerous simulated action is blocked, and the event is logged.
Incorrect Answers
A:A leaked key can enable unauthorized API usage and uncontrolled cost or data access. That exposure calls for store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant. The scenario here instead risks A prompt-based warning may fail to stop a harmful command from running.
C:Unsafe actions can occur before a downstream moderation filter sees the result. That exposure calls for layer input, tool-execution and output checks with human approval for sensitive side effects. The scenario here instead risks A prompt-based warning may fail to stop a harmful command from running.
D:Compromised or confused agents may modify unrelated production records. That exposure calls for enforce least-privilege tool permissions and distinct identities scoped to each workflow. The scenario here instead risks A prompt-based warning may fail to stop a harmful command from running.