Claude Certified Developer - Foundations CCDV-F Practice Test 29
Question 280
A developer encounters this situation: A workspace assistant uses a shared tool token to fetch records across organizations. What is the MOST appropriate technical response?
- Use supported streaming events with explicit lifecycle, partial-render and finalization handling.
- Design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features.
- Use status-aware retry policies with exponential backoff, jitter and bounded attempts for transient errors.
- Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model.
Explanation
Correct Answer
D:Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model. This directly addresses the situation: A workspace assistant uses a shared tool token to fetch records across organizations. The technical reason is that data separation belongs in storage and tool access controls rather than relying on prompt instructions. Without it, a user may retrieve another tenant's confidential content through search or tool access. A concrete acceptance check is: Cross-tenant negative tests are denied before documents enter model context.
Incorrect Answers
A:Use supported streaming events with explicit lifecycle, partial-render and finalization handling. This does not repair the current workflow because data separation belongs in storage and tool access controls rather than relying on prompt instructions. The targeted change is enforce tenant identity, authorization and retrieval filtering before data is supplied to the model.
B:Design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features. This does not repair the current workflow because data separation belongs in storage and tool access controls rather than relying on prompt instructions. The targeted change is enforce tenant identity, authorization and retrieval filtering before data is supplied to the model.
C:Use status-aware retry policies with exponential backoff, jitter and bounded attempts for transient errors. This does not repair the current workflow because data separation belongs in storage and tool access controls rather than relying on prompt instructions. The targeted change is enforce tenant identity, authorization and retrieval filtering before data is supplied to the model.
Question 281
A developer encounters this situation: An offline document-processing workflow sends many separate requests synchronously and exceeds rate limits. What is the MOST appropriate technical response?
- Select supported batch processing where appropriate and monitor batch lifecycle and individual results.
- Build retrieval with provenance-aware citations and grounded-answer validation before presenting claims.
- Process the documented streaming event sequence by event type and finalize only on completion.
- Inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output.
Explanation
Correct Answer
A:Select supported batch processing where appropriate and monitor batch lifecycle and individual results. This directly addresses the situation: An offline document-processing workflow sends many separate requests synchronously and exceeds rate limits. The technical reason is that batch APIs can improve throughput and cost for nonurgent independent workloads but require asynchronous completion handling. Without it, jobs can be lost or cost more when the wrong execution mode is used. A concrete acceptance check is: A representative batch completes with every input mapped to its output and failed items accounted for.
Incorrect Answers
B:Build retrieval with provenance-aware citations and grounded-answer validation before presenting claims. This does not repair the current workflow because batch APIs can improve throughput and cost for nonurgent independent workloads but require asynchronous completion handling. The targeted change is select supported batch processing where appropriate and monitor batch lifecycle and individual results.
C:Process the documented streaming event sequence by event type and finalize only on completion. This does not repair the current workflow because batch APIs can improve throughput and cost for nonurgent independent workloads but require asynchronous completion handling. The targeted change is select supported batch processing where appropriate and monitor batch lifecycle and individual results.
D:Inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output. This does not repair the current workflow because batch APIs can improve throughput and cost for nonurgent independent workloads but require asynchronous completion handling. The targeted change is select supported batch processing where appropriate and monitor batch lifecycle and individual results.
Question 282
To address the situation: A regulated application has a self-hosted tool environment but engineers select a hosted agent without examining data flow. The team implements: "Choose managed versus self-hosted agent execution by evaluating residency, observability, permissions and operational responsibility". Which evidence BEST demonstrates success?
- A malicious tool-result fixture cannot gain permissions or override the declared control policy.
- A design test confirms data paths, tool permissions and log ownership match the approved deployment constraints.
- A fault-injection run terminates predictably and records the failed tool, recovery and final state.
- A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity.
Explanation
Correct Answer
B:A design test confirms data paths, tool permissions and log ownership match the approved deployment constraints. This directly tests the outcome of choose managed versus self-hosted agent execution by evaluating residency, observability, permissions and operational responsibility. in the described case: A regulated application has a self-hosted tool environment but engineers select a hosted agent without examining data flow. The underlying principle is that agent hosting models change who controls execution state, logs and network or data access. If the change is ineffective, a mismatched hosting choice can violate data boundaries or leave critical execution controls unavailable. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A malicious tool-result fixture cannot gain permissions or override the declared control policy. This outcome would validate pass tool results as lower-trust data and enforce tool authorization in the application layer, not the requested intervention. The required test result is A design test confirms data paths, tool permissions and log ownership match the approved deployment constraints.
C:A fault-injection run terminates predictably and records the failed tool, recovery and final state. This outcome would validate implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness, not the requested intervention. The required test result is A design test confirms data paths, tool permissions and log ownership match the approved deployment constraints.
D:A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity. This outcome would validate match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty, not the requested intervention. The required test result is A design test confirms data paths, tool permissions and log ownership match the approved deployment constraints.
Question 283
This engineering control is missing: "Use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious". The reported condition is: A multi-shot instruction includes contradictory examples that bias model behavior. What is the most direct failure risk?
- Assuming deterministic text can make fragile parsers or policies fail unpredictably.
- Silent model change can break output contracts or downstream user experience.
- A vague or contradictory prompt can produce inconsistent fields or invalid classifications.
- Overspending on trivial tasks or under-allocating difficult analysis can harm cost and quality.
Explanation
Correct Answer
C:A vague or contradictory prompt can produce inconsistent fields or invalid classifications. This follows from the reported condition: A multi-shot instruction includes contradictory examples that bias model behavior. The reason is that examples and instruction clarity improve task alignment but must be consistent with each other. The appropriate mitigation is: Use clear task instructions and targeted examples when the required schema or decision boundary is non-obvious. Evidence of success would be: An unseen held-out sample follows the intended schema and policy without relying on memorized examples.
Incorrect Answers
A:Assuming deterministic text can make fragile parsers or policies fail unpredictably. That exposure calls for evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements. The scenario here instead risks A vague or contradictory prompt can produce inconsistent fields or invalid classifications.
B: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 A vague or contradictory prompt can produce inconsistent fields or invalid classifications.
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 A vague or contradictory prompt can produce inconsistent fields or invalid classifications.
Question 284
This engineering control is missing: "Inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output". The reported condition is: A client handles a tool-use stop reason as if Claude had finished a normal text response. What is the most direct failure risk?
- The model may answer without critical prior constraints or invent missing context.
- 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.
- Tool-dependent tasks may end incomplete or return an unfulfilled action description.
Explanation
Correct Answer
D:Tool-dependent tasks may end incomplete or return an unfulfilled action description. This follows from the reported condition: A client handles a tool-use stop reason as if Claude had finished a normal text response. The reason is that model tool requests are distinct content and require client-side orchestration to supply results correctly. The appropriate mitigation is: Inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output. Evidence of success would be: A test tool request executes only after authorization and a matching result lets the assistant finish.
Incorrect Answers
A:The model may answer without critical prior constraints or invent missing context. That exposure calls for persist and re-supply required prior message context explicitly according to the stateless Messages API pattern. The scenario here instead risks tool-dependent tasks may end incomplete or return an unfulfilled action description.
B:A user may retrieve another tenant's confidential content through search or tool access. That exposure calls for enforce tenant identity, authorization and retrieval filtering before data is supplied to the model. The scenario here instead risks tool-dependent tasks may end incomplete or return an unfulfilled action description.
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 tool-dependent tasks may end incomplete or return an unfulfilled action description.
Question 285
In this situation: A backend receives a tool_use block but never returns a matching tool_result to continue the loop. The developer proposes: Inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output. Which principle BEST justifies the approach?
- Model tool requests are distinct content and require client-side orchestration to supply results correctly.
- RAG effectiveness depends on relevant evidence and an explicit boundary between retrieved facts and model inference.
- Conversation continuity depends on the application supplying relevant history or state in each request.
- Operational auditing needs identifiers and metering to diagnose failures and allocate model costs.
Explanation
Correct Answer
A:Model tool requests are distinct content and require client-side orchestration to supply results correctly. In the given situation, a backend receives a tool_use block but never returns a matching tool_result to continue the loop. That consideration supports the measure: Inspect stop reasons and complete the documented tool-use and tool-result exchange before finalizing output. Ignoring it creates this exposure: Tool-dependent tasks may end incomplete or return an unfulfilled action description. Verify the implementation by checking: A test tool request executes only after authorization and a matching result lets the assistant finish.
Incorrect Answers
B:RAG effectiveness depends on relevant evidence and an explicit boundary between retrieved facts and model inference. This principle relates to build retrieval with provenance-aware citations and grounded-answer validation before presenting claims. The observed failure instead depends on model tool requests are distinct content and require client-side orchestration to supply results correctly. The appropriate choice is model tool requests are distinct content and require client-side orchestration to supply results correctly.
C: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 model tool requests are distinct content and require client-side orchestration to supply results correctly. The appropriate choice is model tool requests are distinct content and require client-side orchestration to supply results correctly.
D:Operational auditing needs identifiers and metering to diagnose failures and allocate model costs. This principle relates to capture provider request IDs, token usage and model metadata in privacy-safe telemetry. The observed failure instead depends on model tool requests are distinct content and require client-side orchestration to supply results correctly. The appropriate choice is model tool requests are distinct content and require client-side orchestration to supply results correctly.
Question 286
A developer encounters this situation: A test author compares responses to one prompt and assumes a fixed answer every time. What is the MOST appropriate technical response?
- Budget input and output tokens using the selected model's tokenization and context limits.
- Evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements.
- Select request/response HTTP, streaming, or persistent connections based on the real interaction pattern.
- Choose appropriate thinking or effort settings based on task complexity, latency and budget constraints.
Explanation
Correct Answer
B:Evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements. This directly addresses the situation: A test author compares responses to one prompt and assumes a fixed answer every time. The technical reason is that generative models can vary their output even for similar inputs; application correctness needs explicit checks. Without it, assuming deterministic text can make fragile parsers or policies fail unpredictably. A concrete acceptance check is: Repeated fixture runs satisfy the same structured behavioral contract despite wording differences.
Incorrect Answers
A:Budget input and output tokens using the selected model's tokenization and context limits. This does not repair the current workflow because generative models can vary their output even for similar inputs; application correctness needs explicit checks. The targeted change is evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements.
C:Select request/response HTTP, streaming, or persistent connections based on the real interaction pattern. This does not repair the current workflow because generative models can vary their output even for similar inputs; application correctness needs explicit checks. The targeted change is evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements.
D:Choose appropriate thinking or effort settings based on task complexity, latency and budget constraints. This does not repair the current workflow because generative models can vary their output even for similar inputs; application correctness needs explicit checks. The targeted change is evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements.
Question 287
To address the situation: A product team ships an assistant but has no safe behavior for outages or overloaded model calls. The team implements: "Design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features". Which evidence BEST demonstrates success?
- A long-session test stays within target token usage while preserving necessary current constraints.
- Negative HTTP fixtures produce explicit typed failures and valid JSON remains parseable.
- Fault injection yields a truthful limited-service response without executing duplicate actions.
- Cross-tenant negative tests are denied before documents enter model context.
Explanation
Correct Answer
C: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: A product team ships an assistant but has no safe behavior for outages or overloaded model calls. 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
A: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 fault injection yields a truthful limited-service response without executing duplicate actions.
B: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 fault injection yields a truthful limited-service response without executing duplicate actions.
D:Cross-tenant negative tests are denied before documents enter model context. This outcome would validate enforce tenant identity, authorization and retrieval filtering before data is supplied to the model, not the requested intervention. The required test result is fault injection yields a truthful limited-service response without executing duplicate actions.
Question 288
To address the situation: A file-summarization feature treats uploaded customer text as equivalent to developer policy. The team implements: "Separate trusted system/developer instructions from untrusted input and validate any requested tool execution". Which evidence BEST demonstrates success?
- Fixtures containing text and tool-use blocks are parsed into correct typed application events.
- Invalid payloads are rejected without side effects and valid schema-conformant commands execute once.
- Cross-tenant negative tests are denied before documents enter model context.
- Prompt-injection tests on uploaded content cannot bypass tool authorization or leak restricted values.
Explanation
Correct Answer
D:Prompt-injection tests on uploaded content cannot bypass tool authorization or leak restricted values. This directly tests the outcome of separate trusted system/developer instructions from untrusted input and validate any requested tool execution. in the described case: A file-summarization feature treats uploaded customer text as equivalent to developer policy. The underlying principle is that prompt and data channels have different trust levels, and source documents must not override application rules. If the change is ineffective, a hostile document may persuade the model to reveal policy or call disallowed tools. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A: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 prompt-injection tests on uploaded content cannot bypass tool authorization or leak restricted values.
B:Invalid payloads are rejected without side effects and valid schema-conformant commands execute once. This outcome would validate require structured validated outputs or constrained tool schemas before business-side execution, not the requested intervention. The required test result is prompt-injection tests on uploaded content cannot bypass tool authorization or leak restricted values.
C:Cross-tenant negative tests are denied before documents enter model context. This outcome would validate enforce tenant identity, authorization and retrieval filtering before data is supplied to the model, not the requested intervention. The required test result is prompt-injection tests on uploaded content cannot bypass tool authorization or leak restricted values.
Question 289
In this situation: A tool integration implements an MCP method with undocumented argument names and untyped results. The developer proposes: Implement the documented MCP capability contracts for tools, resources and prompts with restricted access. Which principle BEST justifies the approach?
- MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces.
- A clear tool contract helps model selection while code-side validation keeps execution within allowed types.
- MCP transport and message framing must match client expectations for reliable interoperability.
- Tool outputs must be accurate and safe observations; they are not trusted instructions or silent successes.
Explanation
Correct Answer
A:MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces. In the given situation, a tool integration implements an MCP method with undocumented argument names and untyped results. 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
B:A clear tool contract helps model selection while code-side validation keeps execution within allowed types. This principle relates to define precise tool descriptions and validated JSON argument schemas with narrow capabilities. 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.
C: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 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.