Claude Certified Developer - Foundations CCDV-F Practice Test 50
Question 490
To address the situation: A developer picks a heavyweight integration layer for a single fixed calculation function. The team implements: "Choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements". Which evidence BEST demonstrates success?
- Unknown or unauthorized calls are denied even when the model proposes them.
- A prototype meets functionality and authorization requirements with the smallest maintainable integration.
- A transport interoperability test exchanges valid requests with clean framing and no leaked log text.
- A test confirms the Skill guides a workflow and the tool separately enforces real data access.
Explanation
Correct Answer
B:A prototype meets functionality and authorization requirements with the smallest maintainable integration. This directly tests the outcome of choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements. in the described case: A developer picks a heavyweight integration layer for a single fixed calculation function. The underlying principle is that customization should add needed control or interoperability, not unnecessary maintenance complexity. If the change is ineffective, unneeded custom infrastructure can increase failure modes and security review burden. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:Unknown or unauthorized calls are denied even when the model proposes them. This outcome would validate authorize tool name, arguments and caller identity before performing any side effect, not the requested intervention. The required test result is A prototype meets functionality and authorization requirements with the smallest maintainable integration.
C: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 prototype meets functionality and authorization requirements with the smallest maintainable integration.
D:A test confirms the Skill guides a workflow and the tool separately enforces real data access. This outcome would validate use a reusable Skill for procedural guidance and a scoped tool/MCP server for external system actions, not the requested intervention. The required test result is A prototype meets functionality and authorization requirements with the smallest maintainable integration.
Question 491
In this situation: A multi-tenant MCP service returns resources from another customer's workspace. The developer proposes: Apply authentication, resource authorization and request validation to each MCP tool/resource operation. Which principle BEST justifies the approach?
- A clear tool contract helps model selection while code-side validation keeps execution within allowed types.
- Customization should add needed control or interoperability, not unnecessary maintenance complexity.
- MCP capability discovery is not a substitute for identity checks on every protected operation.
- MCP clients depend on explicit capability schemas and sensible authorization of exposed surfaces.
Explanation
Correct Answer
C:MCP capability discovery is not a substitute for identity checks on every protected operation. In the given situation, a multi-tenant MCP service returns resources from another customer's workspace. That consideration supports the measure: Apply authentication, resource authorization and request validation to each MCP tool/resource operation. Ignoring it creates this exposure: A caller could invoke privileged tools or read another user's data. Verify the implementation by checking: Cross-tenant negative requests are denied while appropriately scoped calls succeed.
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 MCP capability discovery is not a substitute for identity checks on every protected operation. The appropriate choice is MCP capability discovery is not a substitute for identity checks on every protected operation.
B:Customization should add needed control or interoperability, not unnecessary maintenance complexity. This principle relates to choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements. The observed failure instead depends on MCP capability discovery is not a substitute for identity checks on every protected operation. The appropriate choice is MCP capability discovery is not a substitute for identity checks on every protected operation.
D: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 MCP capability discovery is not a substitute for identity checks on every protected operation. The appropriate choice is MCP capability discovery is not a substitute for identity checks on every protected operation.
Question 492
A developer encounters this situation: A developer commits an Anthropic API key into a public repository during local testing. What is the MOST appropriate technical response?
- Enforce least-privilege tool permissions and distinct identities scoped to each workflow.
- Minimize sensitive input and redact, restrict and retain logs according to approved privacy requirements.
- Add supported pre-tool hooks or policy checks that deny dangerous commands and preserve audit evidence.
- Store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant.
Explanation
Correct Answer
D:Store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant. This directly addresses the situation: A developer commits an Anthropic API key into a public repository during local testing. The technical reason is that secrets are authentication material that should not be exposed in source code or shared beyond required scope. Without it, a leaked key can enable unauthorized API usage and uncontrolled cost or data access. A concrete acceptance check is: Secret scanning finds no embedded keys, rotated credentials work, and revoked credentials fail.
Incorrect Answers
A:Enforce least-privilege tool permissions and distinct identities scoped to each workflow. This does not repair the current workflow because secrets are authentication material that should not be exposed in source code or shared beyond required scope. The targeted change is store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant.
B:Minimize sensitive input and redact, restrict and retain logs according to approved privacy requirements. This does not repair the current workflow because secrets are authentication material that should not be exposed in source code or shared beyond required scope. The targeted change is store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant.
C:Add supported pre-tool hooks or policy checks that deny dangerous commands and preserve audit evidence. This does not repair the current workflow because secrets are authentication material that should not be exposed in source code or shared beyond required scope. The targeted change is store Claude credentials in a managed secret store, rotate them, and scope access per deployment or tenant.
Question 493
This engineering control is missing: "Check factual claims and citations against accessible source evidence with an explicit uncertainty path". The reported condition is: A compliance app presents plausible citations even when the referenced source section was not returned. What is the most direct failure risk?
- Users may trust fabricated sources or unsupported policy advice.
- Biased or contradictory examples can systematically misclassify unusual inputs.
- Context overload can cause drift, truncation and inconsistent actions.
- Malformed or out-of-range fields can trigger incorrect actions or crashes.
Explanation
Correct Answer
A:Users may trust fabricated sources or unsupported policy advice. This follows from the reported condition: A compliance app presents plausible citations even when the referenced source section was not returned. The reason is that fluent model text is not proof that a statement is grounded in the supplied evidence. The appropriate mitigation is: Check factual claims and citations against accessible source evidence with an explicit uncertainty path. Evidence of success would be: A held-out retrieval test refuses unsupported assertions and links only to actual evidence.
Incorrect Answers
B:Biased or contradictory examples can systematically misclassify unusual inputs. That exposure calls for curate representative, consistent few-shot examples and evaluate against held-out cases. The scenario here instead risks users may trust fabricated sources or unsupported policy advice.
C:Context overload can cause drift, truncation and inconsistent actions. That exposure calls for prune low-value tool outputs and preserve a compact summary of goals, decisions and remaining work. The scenario here instead risks users may trust fabricated sources or unsupported policy advice.
D:Malformed or out-of-range fields can trigger incorrect actions or crashes. That exposure calls for validate structured model outputs against strict schema and business rules before use. The scenario here instead risks users may trust fabricated sources or unsupported policy advice.
Question 494
This engineering control is missing: "Use supported streaming events with explicit lifecycle, partial-render and finalization handling". The reported condition is: A live assistant receives incremental tokens but its frontend buffers all events until the request ends. What is the most direct failure risk?
- Malformed responses can become incorrect API mutations or broken user workflows.
- Users may experience unnecessary blank screens or partial/inconsistent final responses.
- Unreviewed configuration drift can expose keys or create inconsistent model behavior.
- Minor refactors can silently break downstream consumers or error handling.
Explanation
Correct Answer
B:Users may experience unnecessary blank screens or partial/inconsistent final responses. This follows from the reported condition: A live assistant receives incremental tokens but its frontend buffers all events until the request ends. The reason is that streaming can improve perceived latency only if the application consumes and renders events correctly. The appropriate mitigation is: Use supported streaming events with explicit lifecycle, partial-render and finalization handling. Evidence of success would be: A streaming test shows progressive output and a complete, properly finalized message.
Incorrect Answers
A:Malformed responses can become incorrect API mutations or broken user workflows. That exposure calls for require structured validated outputs or constrained tool schemas before business-side execution. The scenario here instead risks users may experience unnecessary blank screens or partial/inconsistent final responses.
C: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 users may experience unnecessary blank screens or partial/inconsistent final responses.
D: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 users may experience unnecessary blank screens or partial/inconsistent final responses.
Question 495
This engineering control is missing: "Use idempotency keys or a verified deduplication record around side-effecting operations". The reported condition is: A job runner replays an LLM-triggered write after network interruption without an operation identifier. What is the most direct failure risk?
- Excessive context raises costs, latency and the likelihood of truncating critical instructions.
- A hostile document may persuade the model to reveal policy or call disallowed tools.
- One logical action can produce duplicated invoices, tickets or payments.
- Requests can be rejected or interpreted differently when fields are malformed.
Explanation
Correct Answer
C:One logical action can produce duplicated invoices, tickets or payments. This follows from the reported condition: A job runner replays an LLM-triggered write after network interruption without an operation identifier. The reason is that retries are necessary for reliability but should not repeat external mutations when a response is lost. The appropriate mitigation is: Use idempotency keys or a verified deduplication record around side-effecting operations. Evidence of success would be: A simulated timeout/retry results in a single authorized record and a traceable request ID.
Incorrect Answers
A:Excessive context raises costs, latency and the likelihood of truncating critical instructions. That exposure calls for control prompt assembly with relevant retrieval, truncation rules and context-budget measurements. The scenario here instead risks one logical action can produce duplicated invoices, tickets or payments.
B:A hostile document may persuade the model to reveal policy or call disallowed tools. That exposure calls for separate trusted system/developer instructions from untrusted input and validate any requested tool execution. The scenario here instead risks one logical action can produce duplicated invoices, tickets or payments.
D:Requests can be rejected or interpreted differently when fields are malformed. That exposure calls for use documented Messages API request fields and supported client SDK methods with schema validation. The scenario here instead risks one logical action can produce duplicated invoices, tickets or payments.
Question 496
This engineering control is missing: "Apply authentication, resource authorization and request validation to each MCP tool/resource operation". The reported condition is: An MCP tool server accepts remote calls without verifying token scopes or origin. What is the most direct failure risk?
- A compromised conversation could trigger unauthorized transactions or network access.
- Unneeded custom infrastructure can increase failure modes and security review burden.
- Clients may fail to connect or parse messages when transport framing is polluted.
- A caller could invoke privileged tools or read another user's data.
Explanation
Correct Answer
D:A caller could invoke privileged tools or read another user's data. This follows from the reported condition: An MCP tool server accepts remote calls without verifying token scopes or origin. The reason is that mCP capability discovery is not a substitute for identity checks on every protected operation. The appropriate mitigation is: Apply authentication, resource authorization and request validation to each MCP tool/resource operation. Evidence of success would be: Cross-tenant negative requests are denied while appropriately scoped calls succeed.
Incorrect Answers
A:A compromised conversation could trigger unauthorized transactions or network access. That exposure calls for authorize tool name, arguments and caller identity before performing any side effect. The scenario here instead risks A caller could invoke privileged tools or read another user's data.
B:Unneeded custom infrastructure can increase failure modes and security review burden. That exposure calls for choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements. The scenario here instead risks A caller could invoke privileged tools or read another user's data.
C:Clients may fail to connect or parse messages when transport framing is polluted. That exposure calls for choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs. The scenario here instead risks A caller could invoke privileged tools or read another user's data.
Question 497
To address the situation: A long-running developer workflow stores ephemeral task state only in one process memory. The team implements: "Persist necessary workflow checkpoints and reconcile completed actions during restarts". Which evidence BEST demonstrates success?
- A worker restart resumes from the recorded checkpoint without replaying completed actions.
- Recorded event fixtures reconstruct the same final message as the nonstreaming response.
- CI rejects malformed responses in tests and approves only validated changes.
- Fixtures containing text and tool-use blocks are parsed into correct typed application events.
Explanation
Correct Answer
A: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: A long-running developer workflow stores ephemeral task state only in one process memory. 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
B:Recorded event fixtures reconstruct the same final message as the nonstreaming response. This outcome would validate process the documented streaming event sequence by event type and finalize only on completion, not the requested intervention. The required test result is A worker restart resumes from the recorded checkpoint without replaying completed actions.
C:CI rejects malformed responses in tests and approves only validated changes. This outcome would validate use version control, code review and automated contract plus failure-mode tests for integration changes, not the requested intervention. The required test result is A worker restart resumes from the recorded checkpoint without replaying completed actions.
D: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 A worker restart resumes from the recorded checkpoint without replaying completed actions.
Question 498
To address the situation: An API integration works locally with an embedded development key but fails after production secret rotation. The team implements: "Configure authenticated requests, secret rotation and clear failure handling in the SDK/client". Which evidence BEST demonstrates success?
- A load test shows bounded parallelism, proper cancellation and stable latency under normal traffic.
- Rotated credentials work without code changes and invalid keys produce a bounded clear error.
- A representative interaction meets reliability/latency targets with no orphaned connection state.
- Usage metrics show cache reads or reduced eligible prefix processing without mixing user-specific data.
Explanation
Correct Answer
B:Rotated credentials work without code changes and invalid keys produce a bounded clear error. This directly tests the outcome of configure authenticated requests, secret rotation and clear failure handling in the SDK/client. in the described case: An API integration works locally with an embedded development key but fails after production secret rotation. The underlying principle is that claude API access depends on correctly scoped credentials and explicit authentication failures. If the change is ineffective, credential exposure or repeated unauthorized requests can disrupt service and incur security risk. A configuration checkbox alone is insufficient proof.
Incorrect Answers
A:A load test shows bounded parallelism, proper cancellation and stable latency under normal traffic. This outcome would validate use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks, not the requested intervention. The required test result is rotated credentials work without code changes and invalid keys produce a bounded clear error.
C:A representative interaction meets reliability/latency targets with no orphaned connection state. This outcome would validate select request/response HTTP, streaming, or persistent connections based on the real interaction pattern, not the requested intervention. The required test result is rotated credentials work without code changes and invalid keys produce a bounded clear error.
D:Usage metrics show cache reads or reduced eligible prefix processing without mixing user-specific data. This outcome would validate apply supported prompt caching or reuse patterns for stable prefix content and monitor cache hits, not the requested intervention. The required test result is rotated credentials work without code changes and invalid keys produce a bounded clear error.
Question 499
A developer encounters this situation: A model requests a money-transfer tool and client code executes it before checking the user role. What is the MOST appropriate technical response?
- Choose built-in tools, Skills, custom functions or MCP integration based on reuse, ownership and capability requirements.
- Define precise tool descriptions and validated JSON argument schemas with narrow capabilities.
- Authorize tool name, arguments and caller identity before performing any side effect.
- Choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs.
Explanation
Correct Answer
C:Authorize tool name, arguments and caller identity before performing any side effect. This directly addresses the situation: A model requests a money-transfer tool and client code executes it before checking the user role. The technical reason is that tool-use prompts do not replace deterministic authorization in the client or server. Without it, a compromised conversation could trigger unauthorized transactions or network access. A concrete acceptance check is: Unknown or unauthorized calls are denied even when the model proposes them.
Incorrect Answers
A: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 tool-use prompts do not replace deterministic authorization in the client or server. The targeted change is authorize tool name, arguments and caller identity before performing any side effect.
B:Define precise tool descriptions and validated JSON argument schemas with narrow capabilities. This does not repair the current workflow because tool-use prompts do not replace deterministic authorization in the client or server. The targeted change is authorize tool name, arguments and caller identity before performing any side effect.
D:Choose and correctly configure supported MCP transports and keep protocol messages separate from diagnostic logs. This does not repair the current workflow because tool-use prompts do not replace deterministic authorization in the client or server. The targeted change is authorize tool name, arguments and caller identity before performing any side effect.
Question 500
This engineering control is missing: "Configure authenticated requests, secret rotation and clear failure handling in the SDK/client". The reported condition is: An API integration works locally with an embedded development key but fails after production secret rotation. What is the most direct failure risk?
- Unnecessary persistent sockets add complexity, while polling can waste resources and lose events.
- Serial calls increase latency, while unconstrained fan-out exhausts limits and connections.
- Assuming deterministic text can make fragile parsers or policies fail unpredictably.
- Credential exposure or repeated unauthorized requests can disrupt service and incur security risk.
Explanation
Correct Answer
D:Credential exposure or repeated unauthorized requests can disrupt service and incur security risk. This follows from the reported condition: An API integration works locally with an embedded development key but fails after production secret rotation. The reason is that claude API access depends on correctly scoped credentials and explicit authentication failures. The appropriate mitigation is: Configure authenticated requests, secret rotation and clear failure handling in the SDK/client. Evidence of success would be: Rotated credentials work without code changes and invalid keys produce a bounded clear error.
Incorrect Answers
A:Unnecessary persistent sockets add complexity, while polling can waste resources and lose events. That exposure calls for select request/response HTTP, streaming, or persistent connections based on the real interaction pattern. The scenario here instead risks credential exposure or repeated unauthorized requests can disrupt service and incur security risk.
B:Serial calls increase latency, while unconstrained fan-out exhausts limits and connections. That exposure calls for use asynchronous SDK or REST calls with bounded concurrency and correct cleanup of pending tasks. The scenario here instead risks credential exposure or repeated unauthorized requests can disrupt service and incur security risk.
C: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 credential exposure or repeated unauthorized requests can disrupt service and incur security risk.