Claude Certified Developer - Foundations CCDV-F Practice Test 60
Question 590
A developer encounters this situation: A service logs entire Claude API requests including confidential customer text and bearer keys. What is the MOST appropriate technical response?
- Process the documented streaming event sequence by event type and finalize only on completion.
- Log bounded structured request IDs, latency and failure categories while redacting secrets and sensitive content.
- Pin tested dependencies and use staged upgrades with regression tests and rollback.
- Use version control, code review and automated contract plus failure-mode tests for integration changes.
Explanation
Correct Answer
B:Log bounded structured request IDs, latency and failure categories while redacting secrets and sensitive content. This directly addresses the situation: A service logs entire Claude API requests including confidential customer text and bearer keys. The technical reason is that observability must preserve operational diagnostics without turning logs into a data-leak channel. Without it, credentials or personal data can be exposed in log storage, or incidents can be impossible to trace. A concrete acceptance check is: Sample traces correlate request IDs and error types without including keys or protected prompt content.
Incorrect Answers
A:Process the documented streaming event sequence by event type and finalize only on completion. This does not repair the current workflow because observability must preserve operational diagnostics without turning logs into a data-leak channel. The targeted change is log bounded structured request IDs, latency and failure categories while redacting secrets and sensitive content.
C:Pin tested dependencies and use staged upgrades with regression tests and rollback. This does not repair the current workflow because observability must preserve operational diagnostics without turning logs into a data-leak channel. The targeted change is log bounded structured request IDs, latency and failure categories while redacting secrets and sensitive content.
D:Use version control, code review and automated contract plus failure-mode tests for integration changes. This does not repair the current workflow because observability must preserve operational diagnostics without turning logs into a data-leak channel. The targeted change is log bounded structured request IDs, latency and failure categories while redacting secrets and sensitive content.
Question 591
This engineering control is missing: "Evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements". The reported condition is: A test author compares responses to one prompt and assumes a fixed answer every time. What is the most direct failure risk?
- Serial calls increase latency, while unconstrained fan-out exhausts limits and connections.
- A vague or contradictory prompt can produce inconsistent fields or invalid classifications.
- Assuming deterministic text can make fragile parsers or policies fail unpredictably.
- Overspending on trivial tasks or under-allocating difficult analysis can harm cost and quality.
Explanation
Correct Answer
C:Assuming deterministic text can make fragile parsers or policies fail unpredictably. This follows from the reported condition: A test author compares responses to one prompt and assumes a fixed answer every time. The reason is that generative models can vary their output even for similar inputs; application correctness needs explicit checks. The appropriate mitigation is: Evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements. Evidence of success would be: Repeated fixture runs satisfy the same structured behavioral contract despite wording differences.
Incorrect Answers
A:Serial calls increase latency, while unconstrained fan-out exhausts limits and connections. That exposure calls for use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks. The scenario here instead risks assuming deterministic text can make fragile parsers or policies fail unpredictably.
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 assuming deterministic text can make fragile parsers or policies fail unpredictably.
D:Overspending on trivial tasks or under-allocating difficult analysis can harm cost and quality. That exposure calls for choose appropriate thinking or effort settings based on task complexity, latency and budget constraints. The scenario here instead risks assuming deterministic text can make fragile parsers or policies fail unpredictably.
Question 592
To address the situation: A tool advertises a vague name like run_task and the model sends mismatched arguments. The team implements: "Define precise tool descriptions and validated JSON argument schemas with narrow capabilities". Which evidence BEST demonstrates success?
- A prototype meets functionality and authorization requirements with the smallest maintainable integration.
- Unknown or unauthorized calls are denied even when the model proposes them.
- A conforming MCP client discovers allowed capabilities and rejects restricted resource requests.
- Invalid tool arguments fail safely and valid documented requests map to one expected operation.
Explanation
Correct Answer
D:Invalid tool arguments fail safely and valid documented requests map to one expected operation. This directly tests the outcome of define precise tool descriptions and validated JSON argument schemas with narrow capabilities. in the described case: A tool advertises a vague name like run_task and the model sends mismatched arguments. The underlying principle is that a clear tool contract helps model selection while code-side validation keeps execution within allowed types. If the change is ineffective, ambiguous or unchecked arguments can invoke an unintended operation or injection path. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A prototype meets functionality and authorization requirements with the smallest maintainable integration. This outcome would validate choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements, not the requested intervention. The required test result is invalid tool arguments fail safely and valid documented requests map to one expected operation.
B: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 invalid tool arguments fail safely and valid documented requests map to one expected operation.
C:A conforming MCP client discovers allowed capabilities and rejects restricted resource requests. This outcome would validate implement the documented MCP capability contracts for tools, resources and prompts with restricted access, not the requested intervention. The required test result is invalid tool arguments fail safely and valid documented requests map to one expected operation.
Question 593
To address the situation: An AI service fails open by returning an invented success result after a dependency times out. The team implements: "Design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features". Which evidence BEST demonstrates success?
- Fault injection yields a truthful limited-service response without executing duplicate actions.
- A test tool request executes only after authorization and a matching result lets the assistant finish.
- A simulated timeout/retry results in a single authorized record and a traceable request ID.
- A streaming test shows progressive output and a complete, properly finalized message.
Explanation
Correct Answer
A:Fault injection yields a truthful limited-service response without executing duplicate actions. This directly tests the outcome of design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features. in the described case: An AI service fails open by returning an invented success result after a dependency times out. The underlying principle is that lLM integrations are distributed systems and must expose genuine downstream failure states. If the change is ineffective, users can receive false completion messages or experience cascading outages and wasted requests. A configuration checkbox alone is insufficient proof.
Incorrect Answers
B:A test tool request executes only after authorization and a matching result lets the assistant finish. This outcome would validate inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output, not the requested intervention. The required test result is fault injection yields a truthful limited-service response without executing duplicate actions.
C:A simulated timeout/retry results in a single authorized record and a traceable request ID. This outcome would validate use idempotency keys or a verified deduplication record around side-effecting operations, not the requested intervention. The required test result is fault injection yields a truthful limited-service response without executing duplicate actions.
D:A streaming test shows progressive output and a complete, properly finalized message. This outcome would validate use supported streaming events with explicit lifecycle, partial-render and finalization handling, not the requested intervention. The required test result is fault injection yields a truthful limited-service response without executing duplicate actions.
Question 594
This engineering control is missing: "Choose managed versus self-hosted agent execution by evaluating residency, observability, permissions and operational responsibility". The reported condition is: A regulated application has a self-hosted tool environment but engineers select a hosted agent without examining data flow. What is the most direct failure risk?
- A prompt-injected suggestion could cross a trust boundary if the app executes it without validation.
- A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable.
- Prompt injection in retrieved results may redirect the agent into unauthorized execution.
- Tool failures can leave an agent stuck, silently incomplete or repeatedly calling services.
Explanation
Correct Answer
B:A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable. This follows from the reported condition: A regulated application has a self-hosted tool environment but engineers select a hosted agent without examining data flow. The reason is that agent hosting models change who controls execution state, logs and network or data access. The appropriate mitigation is: Choose managed versus self-hosted agent execution by evaluating residency, observability, permissions and operational responsibility. Evidence of success would be: A design test confirms data paths, tool permissions and log ownership match the approved deployment constraints.
Incorrect Answers
A:A prompt-injected suggestion could cross a trust boundary if the app executes it without validation. That exposure calls for keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint. The scenario here instead risks A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable.
C:Prompt injection in retrieved results may redirect the agent into unauthorized execution. That exposure calls for pass tool results as lower-trust data and enforce tool authorization in the application layer. The scenario here instead risks A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable.
D:Tool failures can leave an agent stuck, silently incomplete or repeatedly calling services. That exposure calls for implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness. The scenario here instead risks A mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable.
Question 595
In this situation: A new MCP server exposes its internal filesystem rather than a scoped list of business resources. The developer proposes: Implement the documented MCP capability contracts for tools, resources and prompts with restricted access. Which principle BEST justifies the approach?
- Tool-use prompts do not replace deterministic authorization in the client or server.
- MCP transport and message framing must match client expectations for reliable interoperability.
- MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces.
- Tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes.
Explanation
Correct Answer
C:MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces. In the given situation, a new MCP server exposes its internal filesystem rather than a scoped list of business resources. That consideration supports the measure: Implement the documented MCP capability contracts for tools, resources and prompts with restricted access. Ignoring it creates this exposure: Overbroad resources or malformed tool contracts can leak data or break clients. Verify the implementation by checking: A conforming MCP client discovers allowed capabilities and rejects restricted resource requests.
Incorrect Answers
A:Tool-use prompts do not replace deterministic authorization in the client or server. This principle relates to authorize tool name, arguments and caller identity before performing any side effect. The observed failure instead depends on MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces. The appropriate choice is MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces.
B:MCP transport and message framing must match client expectations for reliable interoperability. This principle relates to choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs. The observed failure instead depends on MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces. The appropriate choice is MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces.
D:Tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes. This principle relates to return typed, bounded, sanitized tool results with explicit errors and retry metadata. The observed failure instead depends on MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces. The appropriate choice is MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces.
Question 596
This engineering control is missing: "Keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint". The reported condition is: A planning agent relies on a prompt to prevent an unauthorized action but the harness never checks permissions. What is the most direct failure risk?
- An unnecessary agent can introduce variable actions, cost and approval gaps into a fixed business process.
- Prompt injection in retrieved results may redirect the agent into unauthorized execution.
- A compromised research context could trigger unauthorized payment changes if tools share excessive authority.
- A prompt-injected suggestion could cross a trust boundary if the app executes it without validation.
Explanation
Correct Answer
D:A prompt-injected suggestion could cross a trust boundary if the app executes it without validation. This follows from the reported condition: A planning agent relies on a prompt to prevent an unauthorized action but the harness never checks permissions. The reason is that the agent's model output is a proposal; the hosting system must validate and enforce authorized actions. The appropriate mitigation is: Keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint. Evidence of success would be: An unapproved tool request is rejected by code and logged even when the model asks to run it.
Incorrect Answers
A:An unnecessary agent can introduce variable actions, cost and approval gaps into a fixed business process. That exposure calls for use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions. The scenario here instead risks A prompt-injected suggestion could cross a trust boundary if the app executes it without validation.
B:Prompt injection in retrieved results may redirect the agent into unauthorized execution. That exposure calls for pass tool results as lower-trust data and enforce tool authorization in the application layer. The scenario here instead risks A prompt-injected suggestion could cross a trust boundary if the app executes it without validation.
C:A compromised research context could trigger unauthorized payment changes if tools share excessive authority. That exposure calls for separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization. The scenario here instead risks A prompt-injected suggestion could cross a trust boundary if the app executes it without validation.
Question 597
A developer encounters this situation: Repeated requests include the same long immutable instructions and reference catalog but use no prompt caching. What is the MOST appropriate technical response?
- Apply supported prompt caching or reuse patterns for stable prefix content and monitor cache hits.
- Use task difficulty and measured confidence to route work to an appropriate model or escalation path.
- Track input/output tokens and model, cache and batch usage per operation with privacy-safe reporting.
- Use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious.
Explanation
Correct Answer
A:Apply supported prompt caching or reuse patterns for stable prefix content and monitor cache hits. This directly addresses the situation: Repeated requests include the same long immutable instructions and reference catalog but use no prompt caching. The technical reason is that caching can reduce repeated processing of identical eligible context while requiring correct cache boundaries. Without it, unnecessary repeated context processing raises token cost and time to first response. A concrete acceptance check is: Usage metrics show cache reads or reduced eligible prefix processing without mixing user-specific data.
Incorrect Answers
B:Use task difficulty and measured confidence to route work to an appropriate model or escalation path. This does not repair the current workflow because caching can reduce repeated processing of identical eligible context while requiring correct cache boundaries. The targeted change is apply supported prompt caching or reuse patterns for stable prefix content and monitor cache hits.
C:Track input/output tokens and model, cache and batch usage per operation with privacy-safe reporting. This does not repair the current workflow because caching can reduce repeated processing of identical eligible context while requiring correct cache boundaries. The targeted change is apply supported prompt caching or reuse patterns for stable prefix content and monitor cache hits.
D:Use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious. This does not repair the current workflow because caching can reduce repeated processing of identical eligible context while requiring correct cache boundaries. The targeted change is apply supported prompt caching or reuse patterns for stable prefix content and monitor cache hits.
Question 598
In this situation: A developer merges an LLM prompt change without tests for the expected structured output contract. The developer proposes: Use version control, code review and automated contract plus failure-mode tests for integration changes. Which principle BEST justifies the approach?
- Reproducible software builds require controlled dependency versions and compatibility gates.
- API integration safety depends on regression tests for behavior at service boundaries.
- Configuration must be controlled independently of application source and securely varied by environment.
- Request context should contain only task-relevant content while respecting model context and token constraints.
Explanation
Correct Answer
B:API integration safety depends on regression tests for behavior at service boundaries. In the given situation, a developer merges an LLM prompt change without tests for the expected structured output contract. That consideration supports the measure: Use version control, code review and automated contract plus failure-mode tests for integration changes. Ignoring it creates this exposure: Minor refactors can silently break downstream consumers or error handling. Verify the implementation by checking: CI rejects malformed responses in tests and approves only validated changes.
Incorrect Answers
A:Reproducible software builds require controlled dependency versions and compatibility gates. This principle relates to pin tested dependencies and use staged upgrades with regression tests and rollback. The observed failure instead depends on API integration safety depends on regression tests for behavior at service boundaries. The appropriate choice is API integration safety depends on regression tests for behavior at service boundaries.
C:Configuration must be controlled independently of application source and securely varied by environment. This principle relates to centralize versioned configuration, protected secrets and environment-specific deployment settings. The observed failure instead depends on API integration safety depends on regression tests for behavior at service boundaries. The appropriate choice is API integration safety depends on regression tests for behavior at service boundaries.
D:Request context should contain only task-relevant content while respecting model context and token constraints. This principle relates to control prompt assembly with relevant retrieval, truncation rules and context-budget measurements. The observed failure instead depends on API integration safety depends on regression tests for behavior at service boundaries. The appropriate choice is API integration safety depends on regression tests for behavior at service boundaries.
Question 599
In this situation: A realtime application adds a websocket even though only one short reply is required per request. The developer proposes: Select request/response HTTP, streaming, or persistent connections based on the real interaction pattern. Which principle BEST justifies the approach?
- Nonblocking request handling improves throughput only when concurrency remains controlled and resource-safe.
- Claude API access depends on correctly scoped credentials and explicit authentication failures.
- Connection models should match directional and state requirements rather than be chosen for novelty.
- More internal reasoning can help complex decisions but consumes latency or tokens depending on the model and settings.
Explanation
Correct Answer
C:Connection models should match directional and state requirements rather than be chosen for novelty. In the given situation, a realtime application adds a websocket even though only one short reply is required per request. That consideration supports the measure: Select request/response HTTP, streaming, or persistent connections based on the real interaction pattern. Ignoring it creates this exposure: Unnecessary persistent sockets add complexity, while polling can waste resources and lose events. Verify the implementation by checking: A representative interaction meets reliability/latency targets with no orphaned connection state.
Incorrect Answers
A: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 connection models should match directional and state requirements rather than be chosen for novelty. The appropriate choice is connection models should match directional and state requirements rather than be chosen for novelty.
B:Claude API access depends on correctly scoped credentials and explicit authentication failures. This principle relates to configure authenticated requests, secret rotation and clear failure handling in the SDK/client. The observed failure instead depends on connection models should match directional and state requirements rather than be chosen for novelty. The appropriate choice is connection models should match directional and state requirements rather than be chosen for novelty.
D:More internal reasoning can help complex decisions but consumes latency or tokens depending on the model and settings. This principle relates to choose appropriate thinking or effort settings based on task complexity, latency and budget constraints. The observed failure instead depends on connection models should match directional and state requirements rather than be chosen for novelty. The appropriate choice is connection models should match directional and state requirements rather than be chosen for novelty.
Question 600
This engineering control is missing: "Capture privacy-safe model/tool traces and reproduce failures with controlled test fixtures". The reported condition is: A streaming tool response is corrupted yet logs contain only the final user-visible message. What is the most direct failure risk?
- An unnecessary agent can introduce variable actions, cost and approval gaps into a fixed business process.
- An update may degrade key user journeys without detection despite an impressive demo.
- Malformed responses can become incorrect API mutations or broken user workflows.
- Intermittent failures can remain unreproducible or be blamed on the wrong integration layer.
Explanation
Correct Answer
D:Intermittent failures can remain unreproducible or be blamed on the wrong integration layer. This follows from the reported condition: A streaming tool response is corrupted yet logs contain only the final user-visible message. The reason is that debugging agent and API behavior requires visibility into inputs, tool sequence and stop reasons. The appropriate mitigation is: Capture privacy-safe model/tool traces and reproduce failures with controlled test fixtures. Evidence of success would be: A stored failing trace reproduces the issue and a corrected test passes under the same fixture.
Incorrect Answers
A:An unnecessary agent can introduce variable actions, cost and approval gaps into a fixed business process. That exposure calls for use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions. The scenario here instead risks intermittent failures can remain unreproducible or be blamed on the wrong integration layer.
B:An update may degrade key user journeys without detection despite an impressive demo. That exposure calls for build a representative held-out evaluation set with measurable correctness criteria and failure categories. The scenario here instead risks intermittent failures can remain unreproducible or be blamed on the wrong integration layer.
C:Malformed responses can become incorrect API mutations or broken user workflows. That exposure calls for require structured validated outputs or constrained tool schemas before business-side execution. The scenario here instead risks intermittent failures can remain unreproducible or be blamed on the wrong integration layer.