Claude Certified Developer - Foundations CCDV-F Practice Test 27
Question 260
This engineering control is missing: "Design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features". The reported condition is: An AI service fails open by returning an invented success result after a dependency times out. What is the most direct failure risk?
- A hostile document may persuade the model to reveal policy or call disallowed tools.
- Excessive context raises costs, latency and the likelihood of truncating critical instructions.
- Unreviewed configuration drift can expose keys or create inconsistent model behavior.
- Users can receive false completion messages or experience cascading outages and wasted requests.
Explanation
Correct Answer
D:Users can receive false completion messages or experience cascading outages and wasted requests. This follows from the reported condition: An AI service fails open by returning an invented success result after a dependency times out. The reason is that lLM integrations are distributed systems and must expose genuine downstream failure states. The appropriate mitigation is: Design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features. Evidence of success would be: Fault injection yields a truthful limited-service response without executing duplicate actions.
Incorrect Answers
A:A hostile document may persuade the model to reveal policy or call disallowed tools. That exposure calls for separate trusted system/developer instructions from untrusted input and validate any requested tool execution. The scenario here instead risks users can receive false completion messages or experience cascading outages and wasted requests.
B:Excessive context raises costs, latency and the likelihood of truncating critical instructions. That exposure calls for control prompt assembly with relevant retrieval, truncation rules and context-budget measurements. The scenario here instead risks users can receive false completion messages or experience cascading outages and wasted requests.
C:Unreviewed configuration drift can expose keys or create inconsistent model behavior. That exposure calls for centralize versioned configuration, protected secrets and environment-specific deployment settings. The scenario here instead risks users can receive false completion messages or experience cascading outages and wasted requests.
Question 261
A developer encounters this situation: A support chatbot can invoke administrative APIs using a shared production service account. What is the MOST appropriate technical response?
- Enforce least-privilege tool permissions and distinct identities scoped to each workflow.
- Minimize sensitive input and redact, restrict and retain logs according to approved privacy requirements.
- Layer input, tool-execution and output checks with human approval for sensitive side effects.
- Store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant.
Explanation
Correct Answer
A:Enforce least-privilege tool permissions and distinct identities scoped to each workflow. This directly addresses the situation: A support chatbot can invoke administrative APIs using a shared production service account. The technical reason is that application authorization constrains the effects of model output even when the model is manipulated. Without it, compromised or confused agents may modify unrelated production records. A concrete acceptance check is: An unauthorized mutation is denied at the API while the intended read action succeeds.
Incorrect Answers
B:Minimize sensitive input and redact, restrict and retain logs according to approved privacy requirements. This does not repair the current workflow because application authorization constrains the effects of model output even when the model is manipulated. The targeted change is enforce least-privilege tool permissions and distinct identities scoped to each workflow.
C:Layer input, tool-execution and output checks with human approval for sensitive side effects. This does not repair the current workflow because application authorization constrains the effects of model output even when the model is manipulated. The targeted change is enforce least-privilege tool permissions and distinct identities scoped to each workflow.
D:Store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant. This does not repair the current workflow because application authorization constrains the effects of model output even when the model is manipulated. The targeted change is enforce least-privilege tool permissions and distinct identities scoped to each workflow.
Question 262
A developer encounters this situation: A tool integration implements an MCP method with undocumented argument names and untyped results. What is the MOST appropriate technical response?
- Apply authentication, resource authorization and request validation to each MCP tool/resource operation.
- Implement the documented MCP capability contracts for tools, resources and prompts with restricted access.
- Authorize tool name, arguments and caller identity before performing any side effect.
- Choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs.
Explanation
Correct Answer
B:Implement the documented MCP capability contracts for tools, resources and prompts with restricted access. This directly addresses the situation: A tool integration implements an MCP method with undocumented argument names and untyped results. The technical reason is that mCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces. Without it, overbroad resources or malformed tool contracts can leak data or break clients. A concrete acceptance check is: A conforming MCP client discovers allowed capabilities and rejects restricted resource requests.
Incorrect Answers
A:Apply authentication, resource authorization and request validation to each MCP tool/resource operation. This does not repair the current workflow because mCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces. The targeted change is implement the documented MCP capability contracts for tools, resources and prompts with restricted access.
C:Authorize tool name, arguments and caller identity before performing any side effect. This does not repair the current workflow because mCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces. The targeted change is implement the documented MCP capability contracts for tools, resources and prompts with restricted access.
D:Choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs. This does not repair the current workflow because mCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces. The targeted change is implement the documented MCP capability contracts for tools, resources and prompts with restricted access.
Question 263
This engineering control is missing: "Separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly". The reported condition is: A prompt puts external webpage instructions in the same trusted region as developer policy. What is the most direct failure risk?
- Unrelated user data may contaminate answers or leak into another task.
- Biased or contradictory examples can systematically misclassify unusual inputs.
- Prompt injection may redirect behavior or induce unauthorized disclosure.
- Users may trust fabricated sources or unsupported policy advice.
Explanation
Correct Answer
C:Prompt injection may redirect behavior or induce unauthorized disclosure. This follows from the reported condition: A prompt puts external webpage instructions in the same trusted region as developer policy. The reason is that prompt hierarchy and data delineation help prevent lower-trust content from becoming policy. The appropriate mitigation is: Separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly. Evidence of success would be: A malicious embedded instruction is treated as data, not an executable task directive.
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 prompt injection may redirect behavior or induce unauthorized disclosure.
B:Biased or contradictory examples can systematically misclassify unusual inputs. That exposure calls for curate representative, consistent few-shot examples and evaluate against held-out cases. The scenario here instead risks prompt injection may redirect behavior or induce unauthorized disclosure.
D:Users may trust fabricated sources or unsupported policy advice. That exposure calls for check factual claims and citations against accessible source evidence with an explicit uncertainty path. The scenario here instead risks prompt injection may redirect behavior or induce unauthorized disclosure.
Question 264
In this situation: An API integration works locally with an embedded development key but fails after production secret rotation. The developer proposes: Configure authenticated requests, secret rotation and clear failure handling in the SDK/client. Which principle BEST justifies the approach?
- Client libraries simplify transport but do not remove network failure modes, auth or API contracts.
- Different requests require different capability budgets; selective routing balances efficiency and quality.
- Caching can reduce repeated processing of identical eligible context while requiring correct cache boundaries.
- Claude API access depends on correctly scoped credentials and explicit authentication failures.
Explanation
Correct Answer
D:Claude API access depends on correctly scoped credentials and explicit authentication failures. In the given situation, an API integration works locally with an embedded development key but fails after production secret rotation. That consideration supports the measure: Configure authenticated requests, secret rotation and clear failure handling in the SDK/client. Ignoring it creates this exposure: Credential exposure or repeated unauthorized requests can disrupt service and incur security risk. Verify the implementation by checking: Rotated credentials work without code changes and invalid keys produce a bounded clear error.
Incorrect Answers
A:Client libraries simplify transport but do not remove network failure modes, auth or API contracts. This principle relates to understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata. The observed failure instead depends on claude API access depends on correctly scoped credentials and explicit authentication failures. The appropriate choice is claude API access depends on correctly scoped credentials and explicit authentication failures.
B:Different requests require different capability budgets; selective routing balances efficiency and quality. This principle relates to use task difficulty and measured confidence to route work to an appropriate model or escalation path. The observed failure instead depends on claude API access depends on correctly scoped credentials and explicit authentication failures. The appropriate choice is claude API access depends on correctly scoped credentials and explicit authentication failures.
C:Caching can reduce repeated processing of identical eligible context while requiring correct cache boundaries. This principle relates to apply supported prompt caching or reuse patterns for stable prefix content and monitor cache hits. The observed failure instead depends on claude API access depends on correctly scoped credentials and explicit authentication failures. The appropriate choice is claude API access depends on correctly scoped credentials and explicit authentication failures.
Question 265
This engineering control is missing: "Apply supported prompt caching or reuse patterns for stable prefix content and monitor cache hits". The reported condition is: A knowledge assistant's latency spikes because unchanged system context is reprocessed on every turn. What is the most direct failure risk?
- Unnecessary repeated context processing raises token cost and time to first response.
- Hard tasks may fail under an underpowered model while easy tasks waste premium capacity.
- Model selection by name alone can overpay or underperform on important workflows.
- A chat feature can exceed budget without an owner or per-route cost alert.
Explanation
Correct Answer
A:Unnecessary repeated context processing raises token cost and time to first response. This follows from the reported condition: A knowledge assistant's latency spikes because unchanged system context is reprocessed on every turn. The reason is that caching can reduce repeated processing of identical eligible context while requiring correct cache boundaries. The appropriate mitigation is: Apply supported prompt caching or reuse patterns for stable prefix content and monitor cache hits. Evidence of success would be: Usage metrics show cache reads or reduced eligible prefix processing without mixing user-specific data.
Incorrect Answers
B: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 unnecessary repeated context processing raises token cost and time to first response.
C:Model selection by name alone can overpay or underperform on important workflows. That exposure calls for benchmark suitable Claude model tiers for quality, latency and price on the application's actual tasks. The scenario here instead risks unnecessary repeated context processing raises token cost and time to first response.
D:A chat feature can exceed budget without an owner or per-route cost alert. That exposure calls for track input/output tokens and model, cache and batch usage per operation with privacy-safe reporting. The scenario here instead risks unnecessary repeated context processing raises token cost and time to first response.
Question 266
In this situation: A REST integration uses an SDK but ignores status codes and upstream request IDs. The developer proposes: Understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata. Which principle BEST justifies the approach?
- Model updates can alter behavior, latency and tool use; compatibility must be tested at release time.
- Client libraries simplify transport but do not remove network failure modes, auth or API contracts.
- Connection models should match directional and state requirements rather than be chosen for novelty.
- Nonblocking request handling improves throughput only when concurrency remains controlled and resource-safe.
Explanation
Correct Answer
B:Client libraries simplify transport but do not remove network failure modes, auth or API contracts. In the given situation, a REST integration uses an SDK but ignores status codes and upstream request IDs. That consideration supports the measure: Understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata. Ignoring it creates this exposure: Hidden transport failures can be misinterpreted as model quality problems. Verify the implementation by checking: A simulated HTTP failure emerges as the expected SDK error with a traceable request ID.
Incorrect Answers
A:Model updates can alter behavior, latency and tool use; compatibility must be tested at release time. This principle relates to pin or deliberately version model selections and run regression tests during model changes. The observed failure instead depends on client libraries simplify transport but do not remove network failure modes, auth or API contracts. The appropriate choice is client libraries simplify transport but do not remove network failure modes, auth or API contracts.
C:Connection models should match directional and state requirements rather than be chosen for novelty. This principle relates to select request/response HTTP, streaming, or persistent connections based on the real interaction pattern. The observed failure instead depends on client libraries simplify transport but do not remove network failure modes, auth or API contracts. The appropriate choice is client libraries simplify transport but do not remove network failure modes, auth or API contracts.
D:Nonblocking request handling improves throughput only when concurrency remains controlled and resource-safe. This principle relates to use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks. The observed failure instead depends on client libraries simplify transport but do not remove network failure modes, auth or API contracts. The appropriate choice is client libraries simplify transport but do not remove network failure modes, auth or API contracts.
Question 267
This engineering control is missing: "Curate representative, consistent few-shot examples and evaluate against held-out cases". The reported condition is: A few-shot extraction prompt contains one incorrect labeled example and model accuracy falls. What is the most direct failure risk?
- Malformed or out-of-range fields can trigger incorrect actions or crashes.
- Prompt injection may redirect behavior or induce unauthorized disclosure.
- Biased or contradictory examples can systematically misclassify unusual inputs.
- Context overload can cause drift, truncation and inconsistent actions.
Explanation
Correct Answer
C:Biased or contradictory examples can systematically misclassify unusual inputs. This follows from the reported condition: A few-shot extraction prompt contains one incorrect labeled example and model accuracy falls. The reason is that examples shape model behavior, so coverage and label accuracy matter more than raw prompt length. The appropriate mitigation is: Curate representative, consistent few-shot examples and evaluate against held-out cases. Evidence of success would be: Segmented evaluation shows improved performance without regressions on unseen formats.
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 biased or contradictory examples can systematically misclassify unusual inputs.
B:Prompt injection may redirect behavior or induce unauthorized disclosure. That exposure calls for separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly. The scenario here instead risks biased or contradictory examples can systematically misclassify unusual inputs.
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 biased or contradictory examples can systematically misclassify unusual inputs.
Question 268
This engineering control is missing: "Use status-aware retry policies with exponential backoff, jitter and bounded attempts for transient errors". The reported condition is: An application retries rate-limited requests instantly from hundreds of workers. What is the most direct failure risk?
- Credentials or personal data can be exposed in log storage, or incidents can be impossible to trace.
- The UI or tool handler can assemble malformed content and act on partial arguments.
- Requests can be rejected or interpreted differently when fields are malformed.
- Retry storms can magnify outages and increase costs without recovering service.
Explanation
Correct Answer
D:Retry storms can magnify outages and increase costs without recovering service. This follows from the reported condition: An application retries rate-limited requests instantly from hundreds of workers. The reason is that rate limits and transient failures require controlled retries; permanent client errors should fail fast. The appropriate mitigation is: Use status-aware retry policies with exponential backoff, jitter and bounded attempts for transient errors. Evidence of success would be: Fault tests demonstrate bounded retries for transient codes and immediate rejection of invalid requests.
Incorrect Answers
A:Credentials or personal data can be exposed in log storage, or incidents can be impossible to trace. That exposure calls for log bounded structured request IDs, latency and failure categories while redacting secrets and sensitive content. The scenario here instead risks retry storms can magnify outages and increase costs without recovering service.
B:The UI or tool handler can assemble malformed content and act on partial arguments. That exposure calls for process the documented streaming event sequence by event type and finalize only on completion. The scenario here instead risks retry storms can magnify outages and increase costs without recovering service.
C:Requests can be rejected or interpreted differently when fields are malformed. That exposure calls for use documented Messages API request fields and supported client SDK methods with schema validation. The scenario here instead risks retry storms can magnify outages and increase costs without recovering service.
Question 269
A developer encounters this situation: A developer sends only the latest follow-up and expects Claude to recall details not included in the request. What is the MOST appropriate technical response?
- Persist and re-supply required prior message context explicitly according to the stateless Messages API pattern.
- Inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output.
- Pin tested dependencies and use staged upgrades with regression tests and rollback.
- Validate output length and stop reason; retry or redesign output constraints when truncation occurs.
Explanation
Correct Answer
A:Persist and re-supply required prior message context explicitly according to the stateless Messages API pattern. This directly addresses the situation: A developer sends only the latest follow-up and expects Claude to recall details not included in the request. The technical reason is that conversation continuity depends on the application supplying relevant history or state in each request. Without it, the model may answer without critical prior constraints or invent missing context. A concrete acceptance check is: A multi-turn regression test succeeds when required history is supplied and fails safely when it is absent.
Incorrect Answers
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 conversation continuity depends on the application supplying relevant history or state in each request. The targeted change is persist and re-supply required prior message context explicitly according to the stateless Messages API pattern.
C:Pin tested dependencies and use staged upgrades with regression tests and rollback. This does not repair the current workflow because conversation continuity depends on the application supplying relevant history or state in each request. The targeted change is persist and re-supply required prior message context explicitly according to the stateless Messages API pattern.
D:Validate output length and stop reason; retry or redesign output constraints when truncation occurs. This does not repair the current workflow because conversation continuity depends on the application supplying relevant history or state in each request. The targeted change is persist and re-supply required prior message context explicitly according to the stateless Messages API pattern.
Question 270
To address the situation: A scheduled CI deployment breaks because a new package version changes a response type unexpectedly. The team implements: "Pin tested dependencies and use staged upgrades with regression tests and rollback". Which evidence BEST demonstrates success?
- A contract test sends a supported payload and receives a properly typed Messages response.
- A clean rebuild reproduces the approved version set and a tested upgrade can roll back.
- A sustained load test shows bounded sockets and stable event-loop response latency.
- Sample traces correlate request IDs and error types without including keys or protected prompt content.
Explanation
Correct Answer
B:A clean rebuild reproduces the approved version set and a tested upgrade can roll back. This directly tests the outcome of pin tested dependencies and use staged upgrades with regression tests and rollback. in the described case: A scheduled CI deployment breaks because a new package version changes a response type unexpectedly. The underlying principle is that reproducible software builds require controlled dependency versions and compatibility gates. If the change is ineffective, unreviewed library updates can break production API clients unexpectedly. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A contract test sends a supported payload and receives a properly typed Messages response. This outcome would validate use documented Messages API request fields and supported client SDK methods with schema validation, not the requested intervention. The required test result is A clean rebuild reproduces the approved version set and a tested upgrade can roll back.
C:A sustained load test shows bounded sockets and stable event-loop response latency. This outcome would validate use reusable supported SDK or HTTP clients with connection management and nonblocking I/O, not the requested intervention. The required test result is A clean rebuild reproduces the approved version set and a tested upgrade can roll back.
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 A clean rebuild reproduces the approved version set and a tested upgrade can roll back.