Claude Certified Developer - Foundations CCDV-F Practice Test 30
Question 290
To address the situation: A remote client expects a supported network transport while the server only implements local process pipes. The team implements: "Choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs". Which evidence BEST demonstrates success?
- A conforming MCP client discovers allowed capabilities and rejects restricted resource requests.
- A transport interoperability test exchanges valid requests with clean framing and no leaked log text.
- Cross-tenant negative requests are denied while appropriately scoped calls succeed.
- An injected API error yields a truthful sanitized failure and no false success statement.
Explanation
Correct Answer
B:A transport interoperability test exchanges valid requests with clean framing and no leaked log text. This directly tests the outcome of choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs. in the described case: A remote client expects a supported network transport while the server only implements local process pipes. The underlying principle is that mCP transport and message framing must match client expectations for reliable interoperability. If the change is ineffective, clients may fail to connect or parse messages when transport framing is polluted. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A: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 A transport interoperability test exchanges valid requests with clean framing and no leaked log text.
C:Cross-tenant negative requests are denied while appropriately scoped calls succeed. This outcome would validate apply authentication, resource authorization and request validation to each MCP tool/resource operation, not the requested intervention. The required test result is A transport interoperability test exchanges valid requests with clean framing and no leaked log text.
D:An injected API error yields a truthful sanitized failure and no false success statement. This outcome would validate return typed, bounded, sanitized tool results with explicit errors and retry metadata, not the requested intervention. The required test result is A transport interoperability test exchanges valid requests with clean framing and no leaked log text.
Question 291
This engineering control is missing: "Use reusable supported SDK or HTTP clients with connection management and nonblocking I/O". The reported condition is: A Python integration creates a new HTTP client for every model request and leaks sockets under load. What is the most direct failure risk?
- Unreviewed configuration drift can expose keys or create inconsistent model behavior.
- Minor refactors can silently break downstream consumers or error handling.
- Throughput and reliability can collapse as concurrent requests increase.
- The UI or tool handler can assemble malformed content and act on partial arguments.
Explanation
Correct Answer
C:Throughput and reliability can collapse as concurrent requests increase. This follows from the reported condition: A Python integration creates a new HTTP client for every model request and leaks sockets under load. The reason is that resource-conscious client design prevents connection exhaustion and event-loop stalls in API services. The appropriate mitigation is: Use reusable supported SDK or HTTP clients with connection management and nonblocking I/O. Evidence of success would be: A sustained load test shows bounded sockets and stable event-loop response latency.
Incorrect Answers
A: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 throughput and reliability can collapse as concurrent requests increase.
B:Minor refactors can silently break downstream consumers or error handling. That exposure calls for use version control, code review and automated contract plus failure-mode tests for integration changes. The scenario here instead risks throughput and reliability can collapse as concurrent requests increase.
D: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 throughput and reliability can collapse as concurrent requests increase.
Question 292
In this situation: An API gateway retries requests after client timeouts and creates duplicate downstream business records. The developer proposes: Use idempotency keys or a verified deduplication record around side-effecting operations. Which principle BEST justifies the approach?
- Application-facing output must be parsed and validated against a contract, not inferred from unconstrained prose.
- Data separation belongs in storage and tool access controls rather than relying on prompt instructions.
- Streaming requires preserving event structure and ordering, including tool and usage metadata.
- Retries are necessary for reliability but should not repeat external mutations when a response is lost.
Explanation
Correct Answer
D:Retries are necessary for reliability but should not repeat external mutations when a response is lost. In the given situation, an API gateway retries requests after client timeouts and creates duplicate downstream business records. That consideration supports the measure: Use idempotency keys or a verified deduplication record around side-effecting operations. Ignoring it creates this exposure: One logical action can produce duplicated invoices, tickets or payments. Verify the implementation by checking: A simulated timeout/retry results in a single authorized record and a traceable request ID.
Incorrect Answers
A:Application-facing output must be parsed and validated against a contract, not inferred from unconstrained prose. This principle relates to require structured validated outputs or constrained tool schemas before business-side execution. The observed failure instead depends on retries are necessary for reliability but should not repeat external mutations when a response is lost. The appropriate choice is retries are necessary for reliability but should not repeat external mutations when a response is lost.
B:Data separation belongs in storage and tool access controls rather than relying on prompt instructions. This principle relates to enforce tenant identity, authorization and retrieval filtering before data is supplied to the model. The observed failure instead depends on retries are necessary for reliability but should not repeat external mutations when a response is lost. The appropriate choice is retries are necessary for reliability but should not repeat external mutations when a response is lost.
C:Streaming requires preserving event structure and ordering, including tool and usage metadata. This principle relates to process the documented streaming event sequence by event type and finalize only on completion. The observed failure instead depends on retries are necessary for reliability but should not repeat external mutations when a response is lost. The appropriate choice is retries are necessary for reliability but should not repeat external mutations when a response is lost.
Question 293
This engineering control is missing: "Validate output length and stop reason; retry or redesign output constraints when truncation occurs". The reported condition is: A product team assumes every completion ends naturally and ignores max_tokens stop reasons. What is the most direct failure risk?
- A partial or invalid answer can corrupt downstream parsing or display.
- The UI or tool handler can assemble malformed content and act on partial arguments.
- Transient errors can be misinterpreted as valid model data or corrupt application state.
- Unvalidated tool calls may execute unauthorized operations or crash an integration.
Explanation
Correct Answer
A:A partial or invalid answer can corrupt downstream parsing or display. This follows from the reported condition: A product team assumes every completion ends naturally and ignores max_tokens stop reasons. The reason is that token limits can terminate generation before a logically complete response. The appropriate mitigation is: Validate output length and stop reason; retry or redesign output constraints when truncation occurs. Evidence of success would be: A constrained-output test detects truncation and prevents accepting incomplete JSON.
Incorrect Answers
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 A partial or invalid answer can corrupt downstream parsing or display.
C:Transient errors can be misinterpreted as valid model data or corrupt application state. That exposure calls for validate HTTP status, content types and JSON response contracts before processing API results. The scenario here instead risks A partial or invalid answer can corrupt downstream parsing or display.
D:Unvalidated tool calls may execute unauthorized operations or crash an integration. That exposure calls for maintain a registered allowlist of tool schemas and validate returned names and arguments before execution. The scenario here instead risks A partial or invalid answer can corrupt downstream parsing or display.
Question 294
To address the situation: An API worker crash causes the same customer request to restart from the beginning with repeated side effects. The team implements: "Persist necessary workflow checkpoints and reconcile completed actions during restarts". Which evidence BEST demonstrates success?
- Negative HTTP fixtures produce explicit typed failures and valid JSON remains parseable.
- A worker restart resumes from the recorded checkpoint without replaying completed actions.
- A sustained load test shows bounded sockets and stable event-loop response latency.
- A long-session test stays within target token usage while preserving necessary current constraints.
Explanation
Correct Answer
B:A worker restart resumes from the recorded checkpoint without replaying completed actions. This directly tests the outcome of persist necessary workflow checkpoints and reconcile completed actions during restarts. in the described case: An API worker crash causes the same customer request to restart from the beginning with repeated side effects. The underlying principle is that reliable distributed workflows separate durable state from transient worker memory. If the change is ineffective, a restart can lose progress or duplicate external mutations. 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 A worker restart resumes from the recorded checkpoint without replaying completed actions.
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 worker restart resumes from the recorded checkpoint without replaying completed actions.
D:A long-session test stays within target token usage while preserving necessary current constraints. This outcome would validate control prompt assembly with relevant retrieval, truncation rules and context-budget measurements, not the requested intervention. The required test result is A worker restart resumes from the recorded checkpoint without replaying completed actions.
Question 295
A developer encounters this situation: A customer agent sends a tool result containing raw stack traces and secrets directly back to the model. What is the MOST appropriate technical response?
- Choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs.
- Define precise tool descriptions and validated JSON argument schemas with narrow capabilities.
- Return typed, bounded, sanitized tool results with explicit errors and retry metadata.
- Implement the documented MCP capability contracts for tools, resources and prompts with restricted access.
Explanation
Correct Answer
C:Return typed, bounded, sanitized tool results with explicit errors and retry metadata. This directly addresses the situation: A customer agent sends a tool result containing raw stack traces and secrets directly back to the model. 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: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.
B: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.
D:Implement the documented MCP capability contracts for tools, resources and prompts with restricted access. 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 296
In this situation: A back-office application needs asynchronous noninteractive execution but still uses per-document interactive calls. The developer proposes: Select supported batch processing where appropriate and monitor batch lifecycle and individual results. Which principle BEST justifies the approach?
- Conversation continuity depends on the application supplying relevant history or state in each request.
- Rate limits and transient failures require controlled retries; permanent client errors should fail fast.
- Data separation belongs in storage and tool access controls rather than relying on prompt instructions.
- Batch APIs can improve throughput and cost for nonurgent independent workloads but require asynchronous completion handling.
Explanation
Correct Answer
D:Batch APIs can improve throughput and cost for nonurgent independent workloads but require asynchronous completion handling. In the given situation, a back-office application needs asynchronous noninteractive execution but still uses per-document interactive calls. That consideration supports the measure: Select supported batch processing where appropriate and monitor batch lifecycle and individual results. Ignoring it creates this exposure: Jobs can be lost or cost more when the wrong execution mode is used. Verify the implementation by checking: A representative batch completes with every input mapped to its output and failed items accounted for.
Incorrect Answers
A:Conversation continuity depends on the application supplying relevant history or state in each request. This principle relates to persist and re-supply required prior message context explicitly according to the stateless Messages API pattern. The observed failure instead depends on batch APIs can improve throughput and cost for nonurgent independent workloads but require asynchronous completion handling. The appropriate choice is batch APIs can improve throughput and cost for nonurgent independent workloads but require asynchronous completion handling.
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 batch APIs can improve throughput and cost for nonurgent independent workloads but require asynchronous completion handling. The appropriate choice is batch APIs can improve throughput and cost for nonurgent independent workloads but require asynchronous completion handling.
C:Data separation belongs in storage and tool access controls rather than relying on prompt instructions. This principle relates to enforce tenant identity, authorization and retrieval filtering before data is supplied to the model. The observed failure instead depends on batch APIs can improve throughput and cost for nonurgent independent workloads but require asynchronous completion handling. The appropriate choice is batch APIs can improve throughput and cost for nonurgent independent workloads but require asynchronous completion handling.
Question 297
In this situation: A billing reconciliation follows a fixed approval sequence but engineers propose an unconstrained autonomous agent. The developer proposes: Use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions. Which principle BEST justifies the approach?
- Workflows provide predictable control flow while autonomous agents trade flexibility for added uncertainty and oversight needs.
- Agent hosting models change who controls execution state, logs and network or data access.
- Autonomous tool loops require termination criteria and explicit limits for predictable operational cost and safety.
- The agent's model output is a proposal; the hosting system must validate and enforce authorized actions.
Explanation
Correct Answer
A:Workflows provide predictable control flow while autonomous agents trade flexibility for added uncertainty and oversight needs. In the given situation, a billing reconciliation follows a fixed approval sequence but engineers propose an unconstrained autonomous agent. That consideration supports the measure: Use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions. Ignoring it creates this exposure: An unnecessary agent can introduce variable actions, cost and approval gaps into a fixed business process. Verify the implementation by checking: The workflow produces consistent step traces and enforces the required approval order on representative invoices.
Incorrect Answers
B:Agent hosting models change who controls execution state, logs and network or data access. This principle relates to choose managed versus self-hosted agent execution by evaluating residency, observability, permissions and operational responsibility. The observed failure instead depends on workflows provide predictable control flow while autonomous agents trade flexibility for added uncertainty and oversight needs. The appropriate choice is workflows provide predictable control flow while autonomous agents trade flexibility for added uncertainty and oversight needs.
C:Autonomous tool loops require termination criteria and explicit limits for predictable operational cost and safety. This principle relates to bound agent iterations, tool budgets and stop conditions with a safe fallback or human escalation. The observed failure instead depends on workflows provide predictable control flow while autonomous agents trade flexibility for added uncertainty and oversight needs. The appropriate choice is workflows provide predictable control flow while autonomous agents trade flexibility for added uncertainty and oversight needs.
D:The agent's model output is a proposal; the hosting system must validate and enforce authorized actions. This principle relates to keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint. The observed failure instead depends on workflows provide predictable control flow while autonomous agents trade flexibility for added uncertainty and oversight needs. The appropriate choice is workflows provide predictable control flow while autonomous agents trade flexibility for added uncertainty and oversight needs.
Question 298
A developer encounters this situation: A file-summarization feature treats uploaded customer text as equivalent to developer policy. What is the MOST appropriate technical response?
- Use idempotency keys or a verified deduplication record around side-effecting operations.
- Separate trusted system/developer instructions from untrusted input and validate any requested tool execution.
- Select supported batch processing where appropriate and monitor batch lifecycle and individual results.
- Design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features.
Explanation
Correct Answer
B:Separate trusted system/developer instructions from untrusted input and validate any requested tool execution. This directly addresses the situation: A file-summarization feature treats uploaded customer text as equivalent to developer policy. The technical reason is that prompt and data channels have different trust levels, and source documents must not override application rules. Without it, a hostile document may persuade the model to reveal policy or call disallowed tools. A concrete acceptance check is: Prompt-injection tests on uploaded content cannot bypass tool authorization or leak restricted values.
Incorrect Answers
A:Use idempotency keys or a verified deduplication record around side-effecting operations. This does not repair the current workflow because prompt and data channels have different trust levels, and source documents must not override application rules. The targeted change is separate trusted system/developer instructions from untrusted input and validate any requested tool execution.
C:Select supported batch processing where appropriate and monitor batch lifecycle and individual results. This does not repair the current workflow because prompt and data channels have different trust levels, and source documents must not override application rules. The targeted change is separate trusted system/developer instructions from untrusted input and validate any requested tool execution.
D:Design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features. This does not repair the current workflow because prompt and data channels have different trust levels, and source documents must not override application rules. The targeted change is separate trusted system/developer instructions from untrusted input and validate any requested tool execution.
Question 299
To address the situation: A client deserializes model output directly into a payment request without checking allowed values. The team implements: "Validate structured model outputs against strict schema and business rules before use". Which evidence BEST demonstrates success?
- Cross-user and subagent tests confirm no unauthorized context appears in model input or outputs.
- A resumed task honors the documented checkpoint and does not rerun completed side effects.
- Invalid values are rejected before side effects and valid cases pass typed parsing.
- A held-out retrieval test refuses unsupported assertions and links only to actual evidence.
Explanation
Correct Answer
C:Invalid values are rejected before side effects and valid cases pass typed parsing. This directly tests the outcome of validate structured model outputs against strict schema and business rules before use. in the described case: A client deserializes model output directly into a payment request without checking allowed values. The underlying principle is that syntactic JSON validity is necessary but insufficient for safe application state changes. If the change is ineffective, malformed or out-of-range fields can trigger incorrect actions or crashes. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:Cross-user and subagent tests confirm no unauthorized context appears in model input or outputs. This outcome would validate isolate contexts by user and task, passing only necessary evidence to each subagent, not the requested intervention. The required test result is invalid values are rejected before side effects and valid cases pass typed parsing.
B:A resumed task honors the documented checkpoint and does not rerun completed side effects. This outcome would validate use structured task checkpoints with completed actions, constraints and verified external state, not the requested intervention. The required test result is invalid values are rejected before side effects and valid cases pass typed parsing.
D:A held-out retrieval test refuses unsupported assertions and links only to actual evidence. This outcome would validate check factual claims and citations against accessible source evidence with an explicit uncertainty path, not the requested intervention. The required test result is invalid values are rejected before side effects and valid cases pass typed parsing.
Question 300
To address the situation: A cloud service shares one production API key across unrelated tenants and environments. The team implements: "Store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant". Which evidence BEST demonstrates success?
- Adversarial prompts fail authorization at the tool boundary and produce reviewable audit records.
- A harmless command passes, a dangerous simulated action is blocked, and the event is logged.
- Red-team fixtures cannot cross tool authorization boundaries or extract secrets.
- Secret scanning finds no embedded keys, rotated credentials work, and revoked credentials fail.
Explanation
Correct Answer
D:Secret scanning finds no embedded keys, rotated credentials work, and revoked credentials fail. This directly tests the outcome of store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant. in the described case: A cloud service shares one production API key across unrelated tenants and environments. The underlying principle is that secrets are authentication material that should not be exposed in source code or shared beyond required scope. If the change is ineffective, a leaked key can enable unauthorized API usage and uncontrolled cost or data access. 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 secret scanning finds no embedded keys, rotated credentials work, and revoked credentials fail.
B:A harmless command passes, a dangerous simulated action is blocked, and the event is logged. This outcome would validate add supported pre-tool hooks or policy checks that deny dangerous commands and preserve audit evidence, not the requested intervention. The required test result is secret scanning finds no embedded keys, rotated credentials work, and revoked credentials fail.
C:Red-team fixtures cannot cross tool authorization boundaries or extract secrets. This outcome would validate treat retrieved and user-supplied content as untrusted data and enforce tool permissions separately, not the requested intervention. The required test result is secret scanning finds no embedded keys, rotated credentials work, and revoked credentials fail.