Claude Certified Developer - Foundations CCDV-F Practice Test 55
Question 540
A developer encounters this situation: A long-running coding task forgets completed decisions each time the conversation is summarized. What is the MOST appropriate technical response?
- Prune low-value tool outputs and preserve a compact summary of goals, decisions and remaining work.
- Separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly.
- Validate structured model outputs against strict schema and business rules before use.
- Use structured task checkpoints with completed actions, constraints and verified external state.
Explanation
Correct Answer
D:Use structured task checkpoints with completed actions, constraints and verified external state. This directly addresses the situation: A long-running coding task forgets completed decisions each time the conversation is summarized. The technical reason is that compaction should preserve durable task state rather than treating a short summary as the entire truth. Without it, the agent can duplicate work or violate earlier requirements after losing context. A concrete acceptance check is: A resumed task honors the documented checkpoint and does not rerun completed side effects.
Incorrect Answers
A:Prune low-value tool outputs and preserve a compact summary of goals, decisions and remaining work. This does not repair the current workflow because compaction should preserve durable task state rather than treating a short summary as the entire truth. The targeted change is use structured task checkpoints with completed actions, constraints and verified external state.
B:Separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly. This does not repair the current workflow because compaction should preserve durable task state rather than treating a short summary as the entire truth. The targeted change is use structured task checkpoints with completed actions, constraints and verified external state.
C:Validate structured model outputs against strict schema and business rules before use. This does not repair the current workflow because compaction should preserve durable task state rather than treating a short summary as the entire truth. The targeted change is use structured task checkpoints with completed actions, constraints and verified external state.
Question 541
To address the situation: A system prompt instructs a model to answer in JSON but provides no schema or valid example. The team implements: "Give clear role, task, constraints and explicit output contract with consistent examples where helpful". Which evidence BEST demonstrates success?
- Unseen examples consistently satisfy the declared fields and constraints.
- A malicious embedded instruction is treated as data, not an executable task directive.
- 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
A:Unseen examples consistently satisfy the declared fields and constraints. This directly tests the outcome of give clear role, task, constraints and explicit output contract with consistent examples where helpful. in the described case: A system prompt instructs a model to answer in JSON but provides no schema or valid example. The underlying principle is that specific, noncontradictory instructions reduce interpretation ambiguity and make validation possible. If the change is ineffective, the model may choose an unintended format or overlook key business rules. A configuration checkbox alone is insufficient proof.
Incorrect Answers
B:A malicious embedded instruction is treated as data, not an executable task directive. This outcome would validate separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly, not the requested intervention. The required test result is unseen examples consistently satisfy the declared fields and constraints.
C:Invalid values are rejected before side effects and valid cases pass typed parsing. This outcome would validate validate structured model outputs against strict schema and business rules before use, not the requested intervention. The required test result is unseen examples consistently satisfy the declared fields and constraints.
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 unseen examples consistently satisfy the declared fields and constraints.
Question 542
In this situation: A test author compares responses to one prompt and assumes a fixed answer every time. The developer proposes: Evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements. Which principle BEST justifies the approach?
- Claude API access depends on correctly scoped credentials and explicit authentication failures.
- Generative models can vary their output even for similar inputs; application correctness needs explicit checks.
- Tokens are model-specific units and all relevant context elements contribute to request size.
- More internal reasoning can help complex decisions but consumes latency or tokens depending on the model and settings.
Explanation
Correct Answer
B:Generative models can vary their output even for similar inputs; application correctness needs explicit checks. In the given situation, a test author compares responses to one prompt and assumes a fixed answer every time. That consideration supports the measure: Evaluate stochastic model output with repeated trials and constrain tasks through validation and clear requirements. Ignoring it creates this exposure: Assuming deterministic text can make fragile parsers or policies fail unpredictably. Verify the implementation by checking: Repeated fixture runs satisfy the same structured behavioral contract despite wording differences.
Incorrect Answers
A: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 generative models can vary their output even for similar inputs; application correctness needs explicit checks. The appropriate choice is generative models can vary their output even for similar inputs; application correctness needs explicit checks.
C:Tokens are model-specific units and all relevant context elements contribute to request size. This principle relates to budget input and output tokens using the selected model's tokenization and context limits. The observed failure instead depends on generative models can vary their output even for similar inputs; application correctness needs explicit checks. The appropriate choice is generative models can vary their output even for similar inputs; application correctness needs explicit checks.
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 generative models can vary their output even for similar inputs; application correctness needs explicit checks. The appropriate choice is generative models can vary their output even for similar inputs; application correctness needs explicit checks.
Question 543
To address the situation: A multi-step research agent appends entire search pages and loses the original user constraints. The team implements: "Prune low-value tool outputs and preserve a compact summary of goals, decisions and remaining work". Which evidence BEST demonstrates success?
- A resumed task honors the documented checkpoint and does not rerun completed side effects.
- Cross-user and subagent tests confirm no unauthorized context appears in model input or outputs.
- A long-run evaluation retains the required constraints while remaining within the context budget.
- Unseen examples consistently satisfy the declared fields and constraints.
Explanation
Correct Answer
C:A long-run evaluation retains the required constraints while remaining within the context budget. This directly tests the outcome of prune low-value tool outputs and preserve a compact summary of goals, decisions and remaining work. in the described case: A multi-step research agent appends entire search pages and loses the original user constraints. The underlying principle is that context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise. If the change is ineffective, context overload can cause drift, truncation and inconsistent actions. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A: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 A long-run evaluation retains the required constraints while remaining within the context budget.
B: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 A long-run evaluation retains the required constraints while remaining within the context budget.
D:Unseen examples consistently satisfy the declared fields and constraints. This outcome would validate give clear role, task, constraints and explicit output contract with consistent examples where helpful, not the requested intervention. The required test result is A long-run evaluation retains the required constraints while remaining within the context budget.
Question 544
To address the situation: A model-facing service accepts untrusted markdown containing instructions to modify system settings. The team implements: "Separate trusted system/developer instructions from untrusted input and validate any requested tool execution". Which evidence BEST demonstrates success?
- A simulated timeout/retry results in a single authorized record and a traceable request ID.
- A canary deploy changes one approved setting with traceable version and no secrets in code.
- Fault injection yields a truthful limited-service response without executing duplicate actions.
- 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 model-facing service accepts untrusted markdown containing instructions to modify system settings. 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: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 prompt-injection tests on uploaded content cannot bypass tool authorization or leak restricted values.
B:A canary deploy changes one approved setting with traceable version and no secrets in code. This outcome would validate centralize versioned configuration, protected secrets and environment-specific deployment settings, not the requested intervention. The required test result is prompt-injection tests on uploaded content cannot bypass tool authorization or leak restricted values.
C:Fault injection yields a truthful limited-service response without executing duplicate actions. This outcome would validate design timeouts, bounded retry, graceful degradation and explicit failure responses for Claude-dependent features, not the requested intervention. The required test result is prompt-injection tests on uploaded content cannot bypass tool authorization or leak restricted values.
Question 545
A developer encounters this situation: A service trusts network success and never checks the status code or body shape returned by a dependency. What is the MOST appropriate technical response?
- Validate HTTP status, content types and JSON response contracts before processing API results.
- Validate output length and stop reason; retry or redesign output constraints when truncation occurs.
- Use idempotency keys or a verified deduplication record around side-effecting operations.
- Use reusable supported SDK or HTTP clients with connection management and nonblocking I/O.
Explanation
Correct Answer
A:Validate HTTP status, content types and JSON response contracts before processing API results. This directly addresses the situation: A service trusts network success and never checks the status code or body shape returned by a dependency. The technical reason is that rEST clients must handle status codes and payload structure as separate error conditions. Without it, transient errors can be misinterpreted as valid model data or corrupt application state. A concrete acceptance check is: Negative HTTP fixtures produce explicit typed failures and valid JSON remains parseable.
Incorrect Answers
B:Validate output length and stop reason; retry or redesign output constraints when truncation occurs. This does not repair the current workflow because rEST clients must handle status codes and payload structure as separate error conditions. The targeted change is validate HTTP status, content types and JSON response contracts before processing API results.
C:Use idempotency keys or a verified deduplication record around side-effecting operations. This does not repair the current workflow because rEST clients must handle status codes and payload structure as separate error conditions. The targeted change is validate HTTP status, content types and JSON response contracts before processing API results.
D:Use reusable supported SDK or HTTP clients with connection management and nonblocking I/O. This does not repair the current workflow because rEST clients must handle status codes and payload structure as separate error conditions. The targeted change is validate HTTP status, content types and JSON response contracts before processing API results.
Question 546
A developer encounters this situation: An application sends every chat exchange and entire knowledge base on every turn regardless of task. What is the MOST appropriate technical response?
- Require structured validated outputs or constrained tool schemas before business-side execution.
- Control prompt assembly with relevant retrieval, truncation rules and context-budget measurements.
- Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model.
- Capture provider request IDs, token usage and model metadata in privacy-safe telemetry.
Explanation
Correct Answer
B:Control prompt assembly with relevant retrieval, truncation rules and context-budget measurements. This directly addresses the situation: An application sends every chat exchange and entire knowledge base on every turn regardless of task. The technical reason is that request context should contain only task-relevant content while respecting model context and token constraints. Without it, excessive context raises costs, latency and the likelihood of truncating critical instructions. A concrete acceptance check is: A long-session test stays within target token usage while preserving necessary current constraints.
Incorrect Answers
A:Require structured validated outputs or constrained tool schemas before business-side execution. This does not repair the current workflow because request context should contain only task-relevant content while respecting model context and token constraints. The targeted change is control prompt assembly with relevant retrieval, truncation rules and context-budget measurements.
C:Enforce tenant identity, authorization and retrieval filtering before data is supplied to the model. This does not repair the current workflow because request context should contain only task-relevant content while respecting model context and token constraints. The targeted change is control prompt assembly with relevant retrieval, truncation rules and context-budget measurements.
D:Capture provider request IDs, token usage and model metadata in privacy-safe telemetry. This does not repair the current workflow because request context should contain only task-relevant content while respecting model context and token constraints. The targeted change is control prompt assembly with relevant retrieval, truncation rules and context-budget measurements.
Question 547
A developer encounters this situation: A content moderation layer operates only after an agent has already executed a financial action. What is the MOST appropriate technical response?
- Enforce least-privilege tool permissions and distinct identities scoped to each workflow.
- Add supported pre-tool hooks or policy checks that deny dangerous commands and preserve audit evidence.
- Layer input, tool-execution and output checks with human approval for sensitive side effects.
- Treat retrieved and user-supplied content as untrusted data and enforce tool permissions separately.
Explanation
Correct Answer
C:Layer input, tool-execution and output checks with human approval for sensitive side effects. This directly addresses the situation: A content moderation layer operates only after an agent has already executed a financial action. The technical reason is that safety controls must protect every consequential boundary, not merely the final generated text. Without it, unsafe actions can occur before a downstream moderation filter sees the result. A concrete acceptance check is: Adversarial prompts fail authorization at the tool boundary and produce reviewable audit records.
Incorrect Answers
A:Enforce least-privilege tool permissions and distinct identities scoped to each workflow. This does not repair the current workflow because safety controls must protect every consequential boundary, not merely the final generated text. The targeted change is layer input, tool-execution and output checks with human approval for sensitive side effects.
B:Add supported pre-tool hooks or policy checks that deny dangerous commands and preserve audit evidence. This does not repair the current workflow because safety controls must protect every consequential boundary, not merely the final generated text. The targeted change is layer input, tool-execution and output checks with human approval for sensitive side effects.
D:Treat retrieved and user-supplied content as untrusted data and enforce tool permissions separately. This does not repair the current workflow because safety controls must protect every consequential boundary, not merely the final generated text. The targeted change is layer input, tool-execution and output checks with human approval for sensitive side effects.
Question 548
To address the situation: A reusable coding workflow needs repeatable instructions but no external system access. The team implements: "Use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions". Which evidence BEST demonstrates success?
- Cross-tenant negative requests are denied while appropriately scoped calls succeed.
- A transport interoperability test exchanges valid requests with clean framing and no leaked log text.
- A prototype meets functionality and authorization requirements with the smallest maintainable integration.
- A test confirms the Skill guides a workflow and the tool separately enforces real data access.
Explanation
Correct Answer
D:A test confirms the Skill guides a workflow and the tool separately enforces real data access. This directly tests the outcome of use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions. in the described case: A reusable coding workflow needs repeatable instructions but no external system access. The underlying principle is that skills package instructions while tools and MCP servers expose executable capabilities and data interfaces. If the change is ineffective, treating an instruction document as a network integration can create brittle or unauthorized behavior. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A: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 test confirms the Skill guides a workflow and the tool separately enforces real data access.
B:A transport interoperability test exchanges valid requests with clean framing and no leaked log text. This outcome would validate choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs, not the requested intervention. The required test result is A test confirms the Skill guides a workflow and the tool separately enforces real data access.
C: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 A test confirms the Skill guides a workflow and the tool separately enforces real data access.
Question 549
To address the situation: A Claude Code session repeatedly changes files that the repository instructions explicitly prohibit editing. The team implements: "Maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy". Which evidence BEST demonstrates success?
- A controlled coding task follows project instructions and avoids excluded files while producing a reviewable diff.
- A bounded patch passes tests and review without unrelated file modifications.
- A simulated HTTP failure emerges as the expected SDK error with a traceable request ID.
- An unsafe command is intercepted and refused while a harmless build/test command succeeds.
Explanation
Correct Answer
A:A controlled coding task follows project instructions and avoids excluded files while producing a reviewable diff. This directly tests the outcome of maintain concise project-level Claude Code instructions and scope file/tool permissions to the repository policy. in the described case: A Claude Code session repeatedly changes files that the repository instructions explicitly prohibit editing. The underlying principle is that coding assistants require explicit repository context and tool boundaries, not assumptions about developer intent. If the change is ineffective, the assistant may change protected files or ignore required tests during code generation. A configuration checkbox alone is insufficient proof.
Incorrect Answers
B:A bounded patch passes tests and review without unrelated file modifications. This outcome would validate review Claude Code changes as small diffs and run targeted tests before accepting or committing them, not the requested intervention. The required test result is A controlled coding task follows project instructions and avoids excluded files while producing a reviewable diff.
C:A simulated HTTP failure emerges as the expected SDK error with a traceable request ID. This outcome would validate understand the SDK as a wrapper around documented API operations and preserve typed errors/usage metadata, not the requested intervention. The required test result is A controlled coding task follows project instructions and avoids excluded files while producing a reviewable diff.
D:An unsafe command is intercepted and refused while a harmless build/test command succeeds. This outcome would validate use Claude Code permissions and supported pre-tool hooks to enforce command approval and safety checks, not the requested intervention. The required test result is A controlled coding task follows project instructions and avoids excluded files while producing a reviewable diff.
Question 550
To address the situation: A developer sets max_tokens too low and truncates a JSON response mid-object. The team implements: "Validate output length and stop reason; retry or redesign output constraints when truncation occurs". Which evidence BEST demonstrates success?
- A test call yields correlated request metadata and measured token consumption without leaking prompt content.
- A constrained-output test detects truncation and prevents accepting incomplete JSON.
- A long-session test stays within target token usage while preserving necessary current constraints.
- Tests with unknown tool names or invalid arguments are rejected without side effects.
Explanation
Correct Answer
B:A constrained-output test detects truncation and prevents accepting incomplete JSON. This directly tests the outcome of validate output length and stop reason; retry or redesign output constraints when truncation occurs. in the described case: A developer sets max_tokens too low and truncates a JSON response mid-object. The underlying principle is that token limits can terminate generation before a logically complete response. If the change is ineffective, a partial or invalid answer can corrupt downstream parsing or display. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A test call yields correlated request metadata and measured token consumption without leaking prompt content. This outcome would validate capture provider request IDs, token usage and model metadata in privacy-safe telemetry, not the requested intervention. The required test result is A constrained-output test detects truncation and prevents accepting incomplete JSON.
C: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 constrained-output test detects truncation and prevents accepting incomplete JSON.
D:Tests with unknown tool names or invalid arguments are rejected without side effects. This outcome would validate maintain a registered allowlist of tool schemas and validate returned names and arguments before execution, not the requested intervention. The required test result is A constrained-output test detects truncation and prevents accepting incomplete JSON.