Claude Certified Developer - Foundations CCDV-F Practice Test 59
Question 580
To address the situation: A business workflow needs durable branching and checkpoints but uses a stateless loop with no persisted progress. The team implements: "Match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty". Which evidence BEST demonstrates success?
- An adversarial research input cannot invoke payment tools, while an authorized approval path still works.
- A multi-step test stays within budget while retaining key constraints and completed steps.
- The workflow produces consistent step traces and enforces the required approval order on representative invoices.
- A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity.
Explanation
Correct Answer
D:A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity. This directly tests the outcome of match the orchestration framework to complexity, durable state and control-flow requirements rather than novelty. in the described case: A business workflow needs durable branching and checkpoints but uses a stateless loop with no persisted progress. The underlying principle is that frameworks such as LangGraph or Strands add value when branching, persistence or coordination justify their overhead. If the change is ineffective, overengineering raises maintenance burden, while underengineering loses recovery state on complex flows. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:An adversarial research input cannot invoke payment tools, while an authorized approval path still works. This outcome would validate separate specialized subagents or phases and restrict high-impact actions behind explicit verified authorization, not the requested intervention. The required test result is A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity.
B:A multi-step test stays within budget while retaining key constraints and completed steps. This outcome would validate prune tool outputs and maintain concise task state or checkpoints to keep context useful, not the requested intervention. The required test result is A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity.
C:The workflow produces consistent step traces and enforces the required approval order on representative invoices. This outcome would validate use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions, not the requested intervention. The required test result is A restart test preserves workflow state and the chosen implementation remains auditable at the required complexity.
Question 581
A developer encounters this situation: A chatbot loops through tools indefinitely when a web retrieval returns unhelpful content. What is the MOST appropriate technical response?
- Bound agent iterations, tool budgets and stop conditions with a safe fallback or human escalation.
- Use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions.
- Add idempotency and completed-work tracking to subagent/tool handoffs.
- Keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint.
Explanation
Correct Answer
A:Bound agent iterations, tool budgets and stop conditions with a safe fallback or human escalation. This directly addresses the situation: A chatbot loops through tools indefinitely when a web retrieval returns unhelpful content. The technical reason is that autonomous tool loops require termination criteria and explicit limits for predictable operational cost and safety. Without it, runaway iterations can consume tokens, spam APIs and repeat harmful or useless operations. A concrete acceptance check is: A simulated unresolvable task stops within limits and creates a clear escalation record.
Incorrect Answers
B:Use a deterministic workflow for fixed tasks and reserve autonomous agent loops for genuinely dynamic decisions. This does not repair the current workflow because autonomous tool loops require termination criteria and explicit limits for predictable operational cost and safety. The targeted change is bound agent iterations, tool budgets and stop conditions with a safe fallback or human escalation.
C:Add idempotency and completed-work tracking to subagent/tool handoffs. This does not repair the current workflow because autonomous tool loops require termination criteria and explicit limits for predictable operational cost and safety. The targeted change is bound agent iterations, tool budgets and stop conditions with a safe fallback or human escalation.
D:Keep tool execution and approval policy in deterministic application code rather than relying on model self-restraint. This does not repair the current workflow because autonomous tool loops require termination criteria and explicit limits for predictable operational cost and safety. The targeted change is bound agent iterations, tool budgets and stop conditions with a safe fallback or human escalation.
Question 582
To address the situation: A team calls an assistant successful because one hand-picked prompt returned a plausible answer. The team implements: "Build a representative held-out evaluation set with measurable correctness criteria and failure categories". Which evidence BEST demonstrates success?
- A benchmark shows required accuracy within agreed latency and token budgets for each task class.
- A regression run reports per-category results and detects a deliberately inserted known failure.
- A stored failing trace reproduces the issue and a corrected test passes under the same fixture.
- Cross-tenant negative requests are denied while appropriately scoped calls succeed.
Explanation
Correct Answer
B:A regression run reports per-category results and detects a deliberately inserted known failure. This directly tests the outcome of build a representative held-out evaluation set with measurable correctness criteria and failure categories. in the described case: A team calls an assistant successful because one hand-picked prompt returned a plausible answer. The underlying principle is that reliable LLM evaluation requires repeatable test cases and metrics rather than cherry-picked demonstrations. If the change is ineffective, an update may degrade key user journeys without detection despite an impressive demo. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A benchmark shows required accuracy within agreed latency and token budgets for each task class. This outcome would validate choose appropriate thinking or effort settings based on task complexity, latency and budget constraints, not the requested intervention. The required test result is A regression run reports per-category results and detects a deliberately inserted known failure.
C:A stored failing trace reproduces the issue and a corrected test passes under the same fixture. This outcome would validate capture privacy-safe model/tool traces and reproduce failures with controlled test fixtures, not the requested intervention. The required test result is A regression run reports per-category results and detects a deliberately inserted known failure.
D: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 regression run reports per-category results and detects a deliberately inserted known failure.
Question 583
In this situation: A model requests a money-transfer tool and client code executes it before checking the user role. The developer proposes: Authorize tool name, arguments and caller identity before performing any side effect. Which principle BEST justifies the approach?
- A clear tool contract helps model selection while code-side validation keeps execution within allowed types.
- MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces.
- Tool-use prompts do not replace deterministic authorization in the client or server.
- MCP capability discovery is not a substitute for identity checks on every protected operation.
Explanation
Correct Answer
C:Tool-use prompts do not replace deterministic authorization in the client or server. In the given situation, a model requests a money-transfer tool and client code executes it before checking the user role. That consideration supports the measure: Authorize tool name, arguments and caller identity before performing any side effect. Ignoring it creates this exposure: A compromised conversation could trigger unauthorized transactions or network access. Verify the implementation by checking: Unknown or unauthorized calls are denied even when the model proposes them.
Incorrect Answers
A: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 tool-use prompts do not replace deterministic authorization in the client or server. The appropriate choice is tool-use prompts do not replace deterministic authorization in the client or server.
B:MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces. This principle relates to implement the documented MCP capability contracts for tools, resources and prompts with restricted access. The observed failure instead depends on tool-use prompts do not replace deterministic authorization in the client or server. The appropriate choice is tool-use prompts do not replace deterministic authorization in the client or server.
D:MCP capability discovery is not a substitute for identity checks on every protected operation. This principle relates to apply authentication, resource authorization and request validation to each MCP tool/resource operation. The observed failure instead depends on tool-use prompts do not replace deterministic authorization in the client or server. The appropriate choice is tool-use prompts do not replace deterministic authorization in the client or server.
Question 584
A developer encounters this situation: A custom tool-using agent returns partial output after a tool error but never records its final state. What is the MOST appropriate technical response?
- Pass tool results as lower-trust data and enforce tool authorization in the application layer.
- Add idempotency and completed-work tracking to subagent/tool handoffs.
- Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries.
- Implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness.
Explanation
Correct Answer
D:Implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness. This directly addresses the situation: A custom tool-using agent returns partial output after a tool error but never records its final state. The technical reason is that an agent orchestration loop must own tool execution and recovery rather than assuming every model step succeeds. Without it, tool failures can leave an agent stuck, silently incomplete or repeatedly calling services. A concrete acceptance check is: A fault-injection run terminates predictably and records the failed tool, recovery and final state.
Incorrect Answers
A:Pass tool results as lower-trust data and enforce tool authorization in the application layer. This does not repair the current workflow because an agent orchestration loop must own tool execution and recovery rather than assuming every model step succeeds. The targeted change is implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness.
B:Add idempotency and completed-work tracking to subagent/tool handoffs. This does not repair the current workflow because an agent orchestration loop must own tool execution and recovery rather than assuming every model step succeeds. The targeted change is implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness.
C:Use agent or Claude Code hooks for deterministic validations and approvals at supported execution boundaries. This does not repair the current workflow because an agent orchestration loop must own tool execution and recovery rather than assuming every model step succeeds. The targeted change is implement explicit tool-loop controls, errors, iteration limits and observable state in the agent harness.
Question 585
This engineering control is missing: "Treat retrieved and user-supplied content as untrusted data and enforce tool permissions separately". The reported condition is: A retrieved web page instructs Claude to send internal credentials to an external URL. What is the most direct failure risk?
- A malicious document could induce data exfiltration or unauthorized tool calls.
- Personal data or credentials may leak through telemetry or unnecessary persistence.
- Compromised or confused agents may modify unrelated production records.
- A leaked key can enable unauthorized API usage and uncontrolled cost or data access.
Explanation
Correct Answer
A:A malicious document could induce data exfiltration or unauthorized tool calls. This follows from the reported condition: A retrieved web page instructs Claude to send internal credentials to an external URL. The reason is that prompt injection exploits lower-trust text being promoted to trusted operational instructions. The appropriate mitigation is: Treat retrieved and user-supplied content as untrusted data and enforce tool permissions separately. Evidence of success would be: Red-team fixtures cannot cross tool authorization boundaries or extract secrets.
Incorrect Answers
B:Personal data or credentials may leak through telemetry or unnecessary persistence. That exposure calls for minimize sensitive input and redact, restrict and retain logs according to approved privacy requirements. The scenario here instead risks A malicious document could induce data exfiltration or unauthorized tool calls.
C:Compromised or confused agents may modify unrelated production records. That exposure calls for enforce least-privilege tool permissions and distinct identities scoped to each workflow. The scenario here instead risks A malicious document could induce data exfiltration or unauthorized tool calls.
D:A leaked key can enable unauthorized API usage and uncontrolled cost or data access. That exposure calls for store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant. The scenario here instead risks A malicious document could induce data exfiltration or unauthorized tool calls.
Question 586
A developer encounters this situation: A reusable coding workflow needs repeatable instructions but no external system access. What is the MOST appropriate technical response?
- Return typed, bounded, sanitized tool results with explicit errors and retry metadata.
- Use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions.
- Authorize tool name, arguments and caller identity before performing any side effect.
- Choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements.
Explanation
Correct Answer
B:Use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions. This directly addresses the situation: A reusable coding workflow needs repeatable instructions but no external system access. The technical reason is that skills package instructions while tools and MCP servers expose executable capabilities and data interfaces. Without it, treating an instruction document as a network integration can create brittle or unauthorized behavior. A concrete acceptance check is: A test confirms the Skill guides a workflow and the tool separately enforces real data access.
Incorrect Answers
A:Return typed, bounded, sanitized tool results with explicit errors and retry metadata. This does not repair the current workflow because skills package instructions while tools and MCP servers expose executable capabilities and data interfaces. The targeted change is use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions.
C:Authorize tool name, arguments and caller identity before performing any side effect. This does not repair the current workflow because skills package instructions while tools and MCP servers expose executable capabilities and data interfaces. The targeted change is use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions.
D:Choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements. This does not repair the current workflow because skills package instructions while tools and MCP servers expose executable capabilities and data interfaces. The targeted change is use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions.
Question 587
In this situation: An application builds a custom MCP server for a capability already provided by a managed built-in tool. The developer proposes: Choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements. Which principle BEST justifies the approach?
- 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.
- Customization should add needed control or interoperability, not unnecessary maintenance complexity.
- Skills package instructions while tools and MCP servers expose executable capabilities and data interfaces.
Explanation
Correct Answer
C:Customization should add needed control or interoperability, not unnecessary maintenance complexity. In the given situation, an application builds a custom MCP server for a capability already provided by a managed built-in tool. That consideration supports the measure: Choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements. Ignoring it creates this exposure: Unneeded custom infrastructure can increase failure modes and security review burden. Verify the implementation by checking: A prototype meets functionality and authorization requirements with the smallest maintainable integration.
Incorrect Answers
A: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 customization should add needed control or interoperability, not unnecessary maintenance complexity. The appropriate choice is customization should add needed control or interoperability, not unnecessary maintenance complexity.
B: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 customization should add needed control or interoperability, not unnecessary maintenance complexity. The appropriate choice is customization should add needed control or interoperability, not unnecessary maintenance complexity.
D:Skills package instructions while tools and MCP servers expose executable capabilities and data interfaces. This principle relates to use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions. The observed failure instead depends on customization should add needed control or interoperability, not unnecessary maintenance complexity. The appropriate choice is customization should add needed control or interoperability, not unnecessary maintenance complexity.
Question 588
To address the situation: A local developer needs an MCP server over standard input/output, but its logs corrupt the protocol stream. 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.
- An injected API error yields a truthful sanitized failure and no false success statement.
- Invalid tool arguments fail safely and valid documented requests map to one expected operation.
- A transport interoperability test exchanges valid requests with clean framing and no leaked log text.
Explanation
Correct Answer
D: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 local developer needs an MCP server over standard input/output, but its logs corrupt the protocol stream. 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.
B: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.
C:Invalid tool arguments fail safely and valid documented requests map to one expected operation. This outcome would validate define precise tool descriptions and validated JSON argument schemas with narrow capabilities, 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 589
In this situation: An app reads tool results repeatedly until high-value instructions are truncated from the prompt. The developer proposes: Prune low-value tool outputs and preserve a compact summary of goals, decisions and remaining work. Which principle BEST justifies the approach?
- Context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise.
- Syntactic JSON validity is necessary but insufficient for safe application state changes.
- Context boundaries reduce distraction and unauthorized exposure between independent workstreams.
- Prompt hierarchy and data delineation help prevent lower-trust content from becoming policy.
Explanation
Correct Answer
A:Context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise. In the given situation, an app reads tool results repeatedly until high-value instructions are truncated from the prompt. That consideration supports the measure: Prune low-value tool outputs and preserve a compact summary of goals, decisions and remaining work. Ignoring it creates this exposure: Context overload can cause drift, truncation and inconsistent actions. Verify the implementation by checking: A long-run evaluation retains the required constraints while remaining within the context budget.
Incorrect Answers
B:Syntactic JSON validity is necessary but insufficient for safe application state changes. This principle relates to validate structured model outputs against strict schema and business rules before use. The observed failure instead depends on context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise. The appropriate choice is context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise.
C:Context boundaries reduce distraction and unauthorized exposure between independent workstreams. This principle relates to isolate contexts by user and task, passing only necessary evidence to each subagent. The observed failure instead depends on context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise. The appropriate choice is context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise.
D:Prompt hierarchy and data delineation help prevent lower-trust content from becoming policy. This principle relates to separate trusted instruction layers from untrusted task data, and mark data boundaries explicitly. The observed failure instead depends on context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise. The appropriate choice is context engineering must prioritize decision-relevant state over unbounded transcripts and retrieved noise.
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.