Claude Certified Developer - Foundations CCDV-F Practice Test 3
Question 20
To address the situation: A REST integration uses an SDK but ignores status codes and upstream request IDs. The team implements: "Understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata". Which evidence BEST demonstrates success?
- A representative interaction meets reliability/latency targets with no orphaned connection state.
- A load test shows bounded parallelism, proper cancellation and stable latency under normal traffic.
- An unseen held-out sample follows the intended schema and policy without relying on memorized examples.
- A simulated HTTP failure emerges as the expected SDK error with a traceable request ID.
Explanation
Correct Answer
D:A simulated HTTP failure emerges as the expected SDK error with a traceable request ID. This directly tests the outcome of understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata. in the described case: A REST integration uses an SDK but ignores status codes and upstream request IDs. The underlying principle is that client libraries simplify transport but do not remove network failure modes, auth or API contracts. If the change is ineffective, hidden transport failures can be misinterpreted as model quality problems. 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 A simulated HTTP failure emerges as the expected SDK error with a traceable request ID.
B: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 simulated HTTP failure emerges as the expected SDK error with a traceable request ID.
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 simulated HTTP failure emerges as the expected SDK error with a traceable request ID.
Question 21
This engineering control is missing: "Authorize tool name, arguments and caller identity before performing any side effect". The reported condition is: A model requests a money-transfer tool and client code executes it before checking the user role. What is the most direct failure risk?
- A compromised conversation could trigger unauthorized transactions or network access.
- Ambiguous or unchecked arguments can invoke an unintended operation or injection path.
- The model may hallucinate completion or leak protected information in an error message.
- Overbroad resources or malformed tool contracts can leak data or break clients.
Explanation
Correct Answer
A:A compromised conversation could trigger unauthorized transactions or network access. This follows from the reported condition: A model requests a money-transfer tool and client code executes it before checking the user role. The reason is that tool-use prompts do not replace deterministic authorization in the client or server. The appropriate mitigation is: Authorize tool name, arguments and caller identity before performing any side effect. Evidence of success would be: Unknown or unauthorized calls are denied even when the model proposes them.
Incorrect Answers
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 A compromised conversation could trigger unauthorized transactions or network access.
C: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 A compromised conversation could trigger unauthorized transactions or network access.
D:Overbroad resources or malformed tool contracts can leak data or break clients. That exposure calls for implement the documented MCP capability contracts for tools, resources and prompts with restricted access. The scenario here instead risks A compromised conversation could trigger unauthorized transactions or network access.
Question 22
This engineering control is missing: "Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model". The reported condition is: A multi-tenant document assistant indexes customer files together without tenant-based retrieval filters. What is the most direct failure risk?
- A hostile document may persuade the model to reveal policy or call disallowed tools.
- A user may retrieve another tenant's confidential content through search or tool access.
- Retry storms can magnify outages and increase costs without recovering service.
- One logical action can produce duplicated invoices, tickets or payments.
Explanation
Correct Answer
B:A user may retrieve another tenant's confidential content through search or tool access. This follows from the reported condition: A multi-tenant document assistant indexes customer files together without tenant-based retrieval filters. The reason is that data separation belongs in storage and tool access controls rather than relying on prompt instructions. The appropriate mitigation is: Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model. Evidence of success would be: Cross-tenant negative tests are denied before documents enter model context.
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 A user may retrieve another tenant's confidential content through search or tool access.
C:Retry storms can magnify outages and increase costs without recovering service. That exposure calls for use status-aware retry policies with exponential backoff, jitter and bounded attempts for transient errors. The scenario here instead risks A user may retrieve another tenant's confidential content through search or tool access.
D:One logical action can produce duplicated invoices, tickets or payments. That exposure calls for use idempotency keys or a verified deduplication record around side-effecting operations. The scenario here instead risks A user may retrieve another tenant's confidential content through search or tool access.
Question 23
In this situation: An engineer assumes model tool definitions make permissions safe without enforcing requested arguments. The developer proposes: Maintain a registered allowlist of tool schemas and validate returned names and arguments before execution. Which principle BEST justifies the approach?
- Batch APIs can improve throughput and cost for nonurgent independent workloads but require asynchronous completion handling.
- Rate limits and transient failures require controlled retries; permanent client errors should fail fast.
- Tool descriptions guide model behavior but actual invocation authority remains in client code.
- Resource-conscious client design prevents connection exhaustion and event-loop stalls in API services.
Explanation
Correct Answer
C:Tool descriptions guide model behavior but actual invocation authority remains in client code. In the given situation, an engineer assumes model tool definitions make permissions safe without enforcing requested arguments. That consideration supports the measure: Maintain a registered allowlist of tool schemas and validate returned names and arguments before execution. Ignoring it creates this exposure: Unvalidated tool calls may execute unauthorized operations or crash an integration. Verify the implementation by checking: Tests with unknown tool names or invalid arguments are rejected without side effects.
Incorrect Answers
A: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 tool descriptions guide model behavior but actual invocation authority remains in client code. The appropriate choice is tool descriptions guide model behavior but actual invocation authority remains in client code.
B:Rate limits and transient failures require controlled retries; permanent client errors should fail fast. This principle relates to use status-aware retry policies with exponential backoff, jitter and bounded attempts for transient errors. The observed failure instead depends on tool descriptions guide model behavior but actual invocation authority remains in client code. The appropriate choice is tool descriptions guide model behavior but actual invocation authority remains in client code.
D:Resource-conscious client design prevents connection exhaustion and event-loop stalls in API services. This principle relates to use reusable supported SDK or HTTP clients with connection management and nonblocking I/O. The observed failure instead depends on tool descriptions guide model behavior but actual invocation authority remains in client code. The appropriate choice is tool descriptions guide model behavior but actual invocation authority remains in client code.
Question 24
To address the situation: A retrieved web page instructs Claude to send internal credentials to an external URL. The team implements: "Treat retrieved and user-supplied content as untrusted data and enforce tool permissions separately". Which evidence BEST demonstrates success?
- Adversarial prompts fail authorization at the tool boundary and produce reviewable audit records.
- Log sampling finds no secrets or unauthorized PII and retention tests remove expired records.
- Secret scanning finds no embedded keys, rotated credentials work, and revoked credentials fail.
- Red-team fixtures cannot cross tool authorization boundaries or extract secrets.
Explanation
Correct Answer
D:Red-team fixtures cannot cross tool authorization boundaries or extract secrets. This directly tests the outcome of treat retrieved and user-supplied content as untrusted data and enforce tool permissions separately. in the described case: A retrieved web page instructs Claude to send internal credentials to an external URL. The underlying principle is that prompt injection exploits lower-trust text being promoted to trusted operational instructions. If the change is ineffective, a malicious document could induce data exfiltration or unauthorized tool calls. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:Adversarial prompts fail authorization at the tool boundary and produce reviewable audit records. This outcome would validate layer input, tool-execution and output checks with human approval for sensitive side effects, not the requested intervention. The required test result is red-team fixtures cannot cross tool authorization boundaries or extract secrets.
B:Log sampling finds no secrets or unauthorized PII and retention tests remove expired records. This outcome would validate minimize sensitive input and redact, restrict and retain logs according to approved privacy requirements, not the requested intervention. The required test result is red-team fixtures cannot cross tool authorization boundaries or extract secrets.
C:Secret scanning finds no embedded keys, rotated credentials work, and revoked credentials fail. This outcome would validate store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant, not the requested intervention. The required test result is red-team fixtures cannot cross tool authorization boundaries or extract secrets.
Question 25
A developer encounters this situation: A staging service sends requests with missing authorization headers and retries every rejection. What is the MOST appropriate technical response?
- Configure authenticated requests, secret rotation and clear failure handling in the SDK/client.
- Use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks.
- Pin or deliberately version model selections and run regression tests during model changes.
- Understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata.
Explanation
Correct Answer
A:Configure authenticated requests, secret rotation and clear failure handling in the SDK/client. This directly addresses the situation: A staging service sends requests with missing authorization headers and retries every rejection. The technical reason is that claude API access depends on correctly scoped credentials and explicit authentication failures. Without it, credential exposure or repeated unauthorized requests can disrupt service and incur security risk. A concrete acceptance check is: Rotated credentials work without code changes and invalid keys produce a bounded clear error.
Incorrect Answers
B:Use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks. This does not repair the current workflow because claude API access depends on correctly scoped credentials and explicit authentication failures. The targeted change is configure authenticated requests, secret rotation and clear failure handling in the SDK/client.
C:Pin or deliberately version model selections and run regression tests during model changes. This does not repair the current workflow because claude API access depends on correctly scoped credentials and explicit authentication failures. The targeted change is configure authenticated requests, secret rotation and clear failure handling in the SDK/client.
D:Understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata. This does not repair the current workflow because claude API access depends on correctly scoped credentials and explicit authentication failures. The targeted change is configure authenticated requests, secret rotation and clear failure handling in the SDK/client.
Question 26
To address the situation: A Node service uses synchronous blocking operations during bursts of Claude streaming responses. The team implements: "Use reusable supported SDK or HTTP clients with connection management and nonblocking I/O". Which evidence BEST demonstrates success?
- Tests with unknown tool names or invalid arguments are rejected without side effects.
- A sustained load test shows bounded sockets and stable event-loop response latency.
- A worker restart resumes from the recorded checkpoint without replaying completed actions.
- Fixtures containing text and tool-use blocks are parsed into correct typed application events.
Explanation
Correct Answer
B:A sustained load test shows bounded sockets and stable event-loop response latency. This directly tests the outcome of use reusable supported SDK or HTTP clients with connection management and nonblocking I/O. in the described case: A Node service uses synchronous blocking operations during bursts of Claude streaming responses. The underlying principle is that resource-conscious client design prevents connection exhaustion and event-loop stalls in API services. If the change is ineffective, throughput and reliability can collapse as concurrent requests increase. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:Tests with unknown tool names or invalid arguments are rejected without side effects. This outcome would validate maintain a registered allowlist of tool schemas and validate returned names and arguments before execution, not the requested intervention. The required test result is A sustained load test shows bounded sockets and stable event-loop response latency.
C:A worker restart resumes from the recorded checkpoint without replaying completed actions. This outcome would validate persist necessary workflow checkpoints and reconcile completed actions during restarts, not the requested intervention. The required test result is A sustained load test shows bounded sockets and stable event-loop response latency.
D:Fixtures containing text and tool-use blocks are parsed into correct typed application events. This outcome would validate parse documented typed content blocks and stop reasons rather than flattening responses into text, not the requested intervention. The required test result is A sustained load test shows bounded sockets and stable event-loop response latency.
Question 27
To address the situation: An API response handler assumes every model result is a single plain text block. The team implements: "Parse documented typed content blocks and stop reasons rather than flattening responses into text". 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.
- Fixtures containing text and tool-use blocks are parsed into correct typed application events.
- Sample traces correlate request IDs and error types without including keys or protected prompt content.
Explanation
Correct Answer
C:Fixtures containing text and tool-use blocks are parsed into correct typed application events. This directly tests the outcome of parse documented typed content blocks and stop reasons rather than flattening responses into text. in the described case: An API response handler assumes every model result is a single plain text block. The underlying principle is that the Messages API carries structured content that must be handled by type and state. If the change is ineffective, tool requests and multi-part results may be lost or misinterpreted by a text-only parser. 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 fixtures containing text and tool-use blocks are parsed into correct typed application events.
B:Fault tests demonstrate bounded retries for transient codes and immediate rejection of invalid requests. This outcome would validate use status-aware retry policies with exponential backoff, jitter and bounded attempts for transient errors, not the requested intervention. The required test result is fixtures containing text and tool-use blocks are parsed into correct typed application events.
D:Sample traces correlate request IDs and error types without including keys or protected prompt content. This outcome would validate log bounded structured request IDs, latency and failure categories while redacting secrets and sensitive content, not the requested intervention. The required test result is fixtures containing text and tool-use blocks are parsed into correct typed application events.
Question 28
To address the situation: A developer merges an LLM prompt change without tests for the expected structured output contract. The team implements: "Use version control, code review and automated contract plus failure-mode tests for integration changes". Which evidence BEST demonstrates success?
- A multi-turn regression test succeeds when required history is supplied and fails safely when it is absent.
- A worker restart resumes from the recorded checkpoint without replaying completed actions.
- A clean rebuild reproduces the approved version set and a tested upgrade can roll back.
- CI rejects malformed responses in tests and approves only validated changes.
Explanation
Correct Answer
D:CI rejects malformed responses in tests and approves only validated changes. This directly tests the outcome of use version control, code review and automated contract plus failure-mode tests for integration changes. in the described case: A developer merges an LLM prompt change without tests for the expected structured output contract. The underlying principle is that aPI integration safety depends on regression tests for behavior at service boundaries. If the change is ineffective, minor refactors can silently break downstream consumers or error handling. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A multi-turn regression test succeeds when required history is supplied and fails safely when it is absent. This outcome would validate persist and re-supply required prior message context explicitly according to the stateless Messages API pattern, not the requested intervention. The required test result is CI rejects malformed responses in tests and approves only validated changes.
B:A worker restart resumes from the recorded checkpoint without replaying completed actions. This outcome would validate persist necessary workflow checkpoints and reconcile completed actions during restarts, not the requested intervention. The required test result is CI rejects malformed responses in tests and approves only validated changes.
C:A clean rebuild reproduces the approved version set and a tested upgrade can roll back. This outcome would validate pin tested dependencies and use staged upgrades with regression tests and rollback, not the requested intervention. The required test result is CI rejects malformed responses in tests and approves only validated changes.
Question 29
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: An application uses its most capable model for every trivial intent classification and exceeds budget. What is the most direct failure risk?
- Model selection by name alone can overpay or underperform on important workflows.
- A vague or contradictory prompt can produce inconsistent fields or invalid classifications.
- Silent model change can break output contracts or downstream user experience.
- Hard tasks may fail under an underpowered model while easy tasks waste premium capacity.
Explanation
Correct Answer
A:Model selection by name alone can overpay or underperform on important workflows. This follows from the reported condition: An application uses its most capable model for every trivial intent classification and exceeds budget. 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
B:A vague or contradictory prompt can produce inconsistent fields or invalid classifications. That exposure calls for use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious. The scenario here instead risks model selection by name alone can overpay or underperform on important workflows.
C:Silent model change can break output contracts or downstream user experience. That exposure calls for pin or deliberately version model selections and run regression tests during model changes. The scenario here instead risks model selection by name alone can overpay or underperform on important workflows.
D:Hard tasks may fail under an underpowered model while easy tasks waste premium capacity. That exposure calls for use task difficulty and measured confidence to route work to an appropriate model or escalation path. The scenario here instead risks model selection by name alone can overpay or underperform on important workflows.
Question 30
This engineering control is missing: "Use structured task checkpoints with completed actions, constraints and verified external state". The reported condition is: An agent repeatedly reopens the same document after automatic context compaction. What is the most direct failure risk?
- Malformed or out-of-range fields can trigger incorrect actions or crashes.
- The agent can duplicate work or violate earlier requirements after losing context.
- Unrelated user data may contaminate answers or leak into another task.
- Context overload can cause drift, truncation and inconsistent actions.
Explanation
Correct Answer
B:The agent can duplicate work or violate earlier requirements after losing context. This follows from the reported condition: An agent repeatedly reopens the same document after automatic context compaction. 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:Malformed or out-of-range fields can trigger incorrect actions or crashes. That exposure calls for validate structured model outputs against strict schema and business rules before use. The scenario here instead risks the agent can duplicate work or violate earlier requirements after losing context.
C: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.
D: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.