Anthropic CCDV-F (Claude Certified Developer - Foundations) Practice Test 7

Question 60

The technical owner of an agent access-control assessment has to stop frontend users from receiving unrestricted backend tool credentials. A separate requirement is to keep Claude API credentials out of repository source and deployment images. Which two-part remediation covers both?

  1. Perform both steps: (1) Validate or moderate final content before release; (2) retrieve keys through a managed secrets facility at runtime.
  2. Perform both steps: (1) Use a server-side workload identity or scoped service credential; (2) retrieve keys through a managed secrets facility at runtime.
  3. Perform both steps: (1) Use a server-side workload identity or scoped service credential; (2) record authenticated approval events with actor, scope, and request correlation.
  4. Perform both steps: (1) Validate or moderate final content before release; (2) record authenticated approval events with actor, scope, and request correlation.

Explanation

Correct Answer

B:

The first change enables the team to stop frontend users from receiving unrestricted backend tool credentials because service identities tie privileges to a runtime workload and avoid exposing long-lived secrets to browsers or untrusted users; the second addresses the separate need to keep Claude API credentials out of repository source and deployment images because central secret handling improves rotation and auditing and avoids accidental credential disclosure through source control.

Incorrect Answers

A:

The second step meets the requirement to keep Claude API credentials out of repository source and deployment images because central secret handling improves rotation and auditing and avoids accidental credential disclosure through source control; the first step would only help to prevent generated advice that violates the product's publication rules from being shown because output checks catch issues emerging during generation; they complement rather than replace input controls and tool restrictions, leaving the separate requirement to stop frontend users from receiving unrestricted backend tool credentials unmet.

C:

The first step is appropriate for the requirement to stop frontend users from receiving unrestricted backend tool credentials because service identities tie privileges to a runtime workload and avoid exposing long-lived secrets to browsers or untrusted users; the other step instead aims to demonstrate who approved a privileged tool action and when because an audit trail binds authorization to a specific action, making privilege use reviewable without treating model-generated text as proof of consent, which does not meet the second requirement to keep Claude API credentials out of repository source and deployment images.

D:

Both steps target different results—prevent generated advice that violates the product's publication rules from being shown and demonstrate who approved a privileged tool action and when—because output checks catch issues emerging during generation; they complement rather than replace input controls and tool restrictions and an audit trail binds authorization to a specific action, making privilege use reviewable without treating model-generated text as proof of consent; the required capabilities are instead to stop frontend users from receiving unrestricted backend tool credentials and to keep Claude API credentials out of repository source and deployment images.

Question 61

A team maintaining a multi-tool integration must meet 3 separate acceptance criteria: (1) expose a diagnostic capability without allowing the model to modify records; (2) connect a Claude tool request to an internal service whose logic the application owns; (3) let an MCP client invoke a business capability through a standard server interface. Which three implementation actions directly satisfy the stated requirements? Choose THREE.

  1. Register a prompt template with its required arguments.
  2. Package the connector behind an MCP server.
  3. Publish a properly described MCP tool and its input contract.
  4. Return an explicit tool error indication and an informative safe message.
  5. Implement a client-side handler and return its result with the tool-use identifier.
  6. Implement a narrowly scoped read-only tool handler.

Explanation

Correct Answers

C:

The test to let an MCP client invoke a business capability through a standard server interface is met because MCP tools represent callable operations with typed parameters; the server executes authorized behavior rather than only providing reference text; the remaining selections covers the separate need to connect a Claude tool request to an internal service whose logic the application owns and need to expose a diagnostic capability without allowing the model to modify records.

E:

The test to connect a Claude tool request to an internal service whose logic the application owns is met because a declared client tool does not execute itself; application code runs it and feeds results back into the conversation; the remaining selections covers the separate need to let an MCP client invoke a business capability through a standard server interface and need to expose a diagnostic capability without allowing the model to modify records.

F:

The test to expose a diagnostic capability without allowing the model to modify records is met because a restricted read interface supports observation while preventing data mutation, unlike giving a diagnostic agent a general administrative API; the remaining selections covers the separate need to let an MCP client invoke a business capability through a standard server interface and need to connect a Claude tool request to an internal service whose logic the application owns.

Incorrect Answers

A:

The action is useful for the separate capability to offer users a reusable parameterized instruction template from an MCP server because MCP prompts provide structured prompt content, but by themselves do not perform external business actions; however, the required test outcomes are to let an MCP client invoke a business capability through a standard server interface and to connect a Claude tool request to an internal service whose logic the application owns and to expose a diagnostic capability without allowing the model to modify records.

B:

The action is useful for the separate capability to share one integration with several compatible AI clients or agent runtimes because MCP standardizes capability exposure across clients, reducing duplicate integration logic compared with proprietary tool schemas everywhere; however, the required test outcomes are to let an MCP client invoke a business capability through a standard server interface and to connect a Claude tool request to an internal service whose logic the application owns and to expose a diagnostic capability without allowing the model to modify records.

D:

The action is useful for the separate capability to let Claude distinguish a failed database lookup from an empty successful result because an error result preserves failure semantics, preventing the model from inventing a no-record finding for a call that never succeeded; however, the required test outcomes are to let an MCP client invoke a business capability through a standard server interface and to connect a Claude tool request to an internal service whose logic the application owns and to expose a diagnostic capability without allowing the model to modify records.

Question 62

A test for a Python Claude API backend fails because it cannot ask questions about information in a user-provided PDF through a supported document input. Which change fixes the identified failure?

  1. Enable streaming and consume server-sent events in order.
  2. Read the completed stream's usage and final message metadata.
  3. Branch on stop_reason tool_use and dispatch the declared calls.
  4. Attach the PDF using the supported document content form.

Explanation

Correct Answer

D:

To ask questions about information in a user-provided PDF through a supported document input in this Python Claude API backend, document analysis depends on actual supported content blocks and size limits; a local file path alone is not accessible to the remote model; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to show generated text progressively instead of waiting for the full response because streaming transmits partial deltas and completion events, allowing earlier display while requiring the client to assemble content safely; that mechanism does not meet the different requirement to ask questions about information in a user-provided PDF through a supported document input.

B:

The proposed alternative helps to account accurately for token consumption when a response is streamed because early text deltas do not necessarily carry authoritative final usage or stop information; accounting must wait for the appropriate terminal event; that mechanism does not meet the different requirement to ask questions about information in a user-provided PDF through a supported document input.

C:

The proposed alternative helps to recognize that the model is asking the application to execute a client tool because a tool-use stop requires host-side handling and a follow-up message containing results, not presenting the call as final prose; that mechanism does not meet the different requirement to ask questions about information in a user-provided PDF through a supported document input.

Question 63

A design review for a Claude API workload benchmark asks for support to favor more consistent word choices in a constrained transformation task when supported, together with a way to run a straightforward well-specified classification without consuming examples. Select the two appropriate changes. Choose TWO.

  1. Use the model's documented thinking capability within the latency budget.
  2. Start with a clear instruction and no demonstrations.
  3. Model the response as conditioned token generation.
  4. Tune sampling for lower variance while retaining output validation.
  5. Use more exploratory sampling where supported and measure quality.

Explanation

Correct Answers

B:

To run a straightforward well-specified classification without consuming examples as part of a design that must also favor more consistent word choices in a constrained transformation task when supported, zero-shot prompting relies on direct task instructions and can save context when the task requires little format teaching; this is why the action is one of the two required selections.

D:

To favor more consistent word choices in a constrained transformation task when supported as part of a design that must also run a straightforward well-specified classification without consuming examples, temperature influences token sampling; it cannot by itself guarantee truth, policy compliance, or reproducible structured output; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to allocate additional reasoning effort to a complex multistep decision where supported because reasoning settings can change token consumption and response latency and should be evaluated for the particular workload; the required outcomes are instead to favor more consistent word choices in a constrained transformation task when supported and to run a straightforward well-specified classification without consuming examples.

C:

This alternative serves the separate goal to explain why language-model output is generated step by step rather than fetched from a fixed response table because autoregressive decoding selects subsequent tokens based on supplied context and prior output, which creates flexible but non-guaranteed wording; the required outcomes are instead to favor more consistent word choices in a constrained transformation task when supported and to run a straightforward well-specified classification without consuming examples.

E:

This alternative serves the separate goal to invite stylistic variety during noncritical brainstorming because higher sampling randomness broadens candidate phrasing but can reduce predictability, so it suits ideation better than strict extraction; the required outcomes are instead to favor more consistent word choices in a constrained transformation task when supported and to run a straightforward well-specified classification without consuming examples.

Question 64

For an API request trace investigation, the missing capability is to find why a JSON record unexpectedly ends midway through a field. What should the developers implement?

  1. Inspect stop_reason and output limits before changing the parser.
  2. Inspect the HTTP 429 status and rate-limit metadata before retrying.
  3. Read the 400 error details and validate the request payload.
  4. Examine correlated request, tool, and transformation traces stage by stage.

Explanation

Correct Answer

A:

To find why a JSON record unexpectedly ends midway through a field in this API request trace investigation, a max_tokens stop indicates incomplete generation; the parser may be working correctly against a response that was never finished; the proposed implementation directly supplies that capability.

Incorrect Answers

B:

The proposed alternative helps to distinguish an upstream throttling response from a malformed model answer because a rate limit is a request-layer capacity problem; the response needs controlled pacing rather than a prompt rewrite; that mechanism does not meet the different requirement to find why a JSON record unexpectedly ends midway through a field.

C:

The proposed alternative helps to find a request schema error instead of repeatedly changing the system prompt because an invalid API field or incompatible parameter cannot be fixed by natural-language instructions within the malformed request; that mechanism does not meet the different requirement to find why a JSON record unexpectedly ends midway through a field.

D:

The proposed alternative helps to locate which component of a multi-tool answer introduced the wrong value because structured traces reveal whether retrieval, tool execution, postprocessing, or generation caused the defect; reading only the final text cannot isolate it; that mechanism does not meet the different requirement to find why a JSON record unexpectedly ends midway through a field.

Question 65

The owner of a document investigation agent needs to prevent a research assistant from unexpectedly making production changes as well as preserve durable user-approved facts across agent sessions outside the context window. Which two changes belong in the minimum remediation plan? Choose TWO.

  1. Alternate model tool-use requests with tool results until completion.
  2. Define structured inputs, expected outputs, and failure states for each delegate.
  3. Give the research subagent read-only tools and a narrow instruction contract.
  4. Return a separate tool_result for every corresponding tool_use identifier.
  5. Write selected durable facts to a controlled external memory store.

Explanation

Correct Answers

C:

To prevent a research assistant from unexpectedly making production changes as part of a design that must also preserve durable user-approved facts across agent sessions outside the context window, capability isolation prevents a specialist from acting outside its delegated role even if it encounters persuasive untrusted instructions; this is why the action is one of the two required selections.

E:

To preserve durable user-approved facts across agent sessions outside the context window as part of a design that must also prevent a research assistant from unexpectedly making production changes, external memory allows selective retrieval in later sessions, unlike temporary model context that disappears when calls end; this is why the action is one of the two required selections.

Incorrect Answers

A:

This alternative serves the separate goal to plan another step only after inspecting the result of a requested external operation because the loop returns observations to the model so subsequent decisions are informed by actual tool output rather than imagined execution; the required outcomes are instead to prevent a research assistant from unexpectedly making production changes and to preserve durable user-approved facts across agent sessions outside the context window.

B:

This alternative serves the separate goal to prevent specialists from producing incompatible artifacts for the orchestrator because explicit delegation contracts make multi-agent integration testable; free-form handoffs often obscure whether a child finished its assigned task; the required outcomes are instead to prevent a research assistant from unexpectedly making production changes and to preserve durable user-approved facts across agent sessions outside the context window.

D:

This alternative serves the separate goal to handle several independent tool_use blocks in one assistant message because parallel tool execution requires complete, correctly linked results; dropping one identifier leaves the model's outstanding request unresolved; the required outcomes are instead to prevent a research assistant from unexpectedly making production changes and to preserve durable user-approved facts across agent sessions outside the context window.

Question 66

An end-to-end test for a Claude inference cost review checks whether it can teach a distinctive output format with one representative example and know why a long prompt plus a proposed response may exceed the model's accepted context. Which plan should be approved to satisfy both checks?

  1. Perform both steps: (1) Measure input-token usage per request and track the prompt components; (2) design an approved fallback model path with compatibility checks.
  2. Perform both steps: (1) Provide one accurate input-output demonstration; (2) design an approved fallback model path with compatibility checks.
  3. Perform both steps: (1) Provide one accurate input-output demonstration; (2) budget total context for instructions, history, tools, and output.
  4. Perform both steps: (1) Measure input-token usage per request and track the prompt components; (2) budget total context for instructions, history, tools, and output.

Explanation

Correct Answer

C:

The first change enables the team to teach a distinctive output format with one representative example because a single example illustrates structure and conventions, but it may not reveal how to handle difficult edge cases; the second addresses the separate need to know why a long prompt plus a proposed response may exceed the model's accepted context because a context window bounds what can be processed in one request; large tool results consume it along with user messages.

Incorrect Answers

A:

Both steps target different results—explain a billing increase after lengthy system instructions are added and preserve critical service during a temporary primary-model problem—because repeated prefixes and conversation history consume billable input, so cost cannot be inferred from output length alone and fallbacks improve resilience only when downstream schemas, cost limits, and policy controls work with the alternate model; the required capabilities are instead to teach a distinctive output format with one representative example and to know why a long prompt plus a proposed response may exceed the model's accepted context.

B:

The first step is appropriate for the requirement to teach a distinctive output format with one representative example because a single example illustrates structure and conventions, but it may not reveal how to handle difficult edge cases; the other step instead aims to preserve critical service during a temporary primary-model problem because fallbacks improve resilience only when downstream schemas, cost limits, and policy controls work with the alternate model, which does not meet the second requirement to know why a long prompt plus a proposed response may exceed the model's accepted context.

D:

The second step meets the requirement to know why a long prompt plus a proposed response may exceed the model's accepted context because a context window bounds what can be processed in one request; large tool results consume it along with user messages; the first step would only help to explain a billing increase after lengthy system instructions are added because repeated prefixes and conversation history consume billable input, so cost cannot be inferred from output length alone, leaving the separate requirement to teach a distinctive output format with one representative example unmet.

Question 67

A production readiness review of a hosted document-processing service finds that the team cannot yet avoid a plugin update unexpectedly changing tools available to a coding agent or determine whether a quality regression came from a recent instruction edit. Which paired changes directly remedy the two gaps?

  1. Perform both steps: (1) Version prompt files alongside relevant application code; (2) store prompt versions with release identifiers and rollback history.
  2. Perform both steps: (1) Track enabled plugins and their compatible versions as release dependencies; (2) store prompt versions with release identifiers and rollback history.
  3. Perform both steps: (1) Version prompt files alongside relevant application code; (2) pin a supported explicit model version where stability is required.
  4. Perform both steps: (1) Track enabled plugins and their compatible versions as release dependencies; (2) pin a supported explicit model version where stability is required.

Explanation

Correct Answer

B:

The first change enables the team to avoid a plugin update unexpectedly changing tools available to a coding agent because plugin capability changes can affect tool names and permissions, so production configuration should be reproducible and reviewed; the second addresses the separate need to determine whether a quality regression came from a recent instruction edit because a prompt is a behavior-changing artifact; versioning makes comparisons and safe reversions possible during incident response.

Incorrect Answers

A:

The second step meets the requirement to determine whether a quality regression came from a recent instruction edit because a prompt is a behavior-changing artifact; versioning makes comparisons and safe reversions possible during incident response; the first step would only help to trace exactly which prompt template was deployed with a code change because prompts change software behavior and should be reviewed and diffed like code, rather than edited anonymously in production, leaving the separate requirement to avoid a plugin update unexpectedly changing tools available to a coding agent unmet.

C:

Both steps target different results—trace exactly which prompt template was deployed with a code change and reproduce production behavior across deploys instead of silently adopting a new model release—because prompts change software behavior and should be reviewed and diffed like code, rather than edited anonymously in production and explicit version selection limits unexpected changes; a release process should evaluate upgrades and retirement timelines deliberately; the required capabilities are instead to avoid a plugin update unexpectedly changing tools available to a coding agent and to determine whether a quality regression came from a recent instruction edit.

D:

The first step is appropriate for the requirement to avoid a plugin update unexpectedly changing tools available to a coding agent because plugin capability changes can affect tool names and permissions, so production configuration should be reproducible and reviewed; the other step instead aims to reproduce production behavior across deploys instead of silently adopting a new model release because explicit version selection limits unexpected changes; a release process should evaluate upgrades and retirement timelines deliberately, which does not meet the second requirement to determine whether a quality regression came from a recent instruction edit.

Question 68

Two approval criteria are still open for a safety-sensitive Claude application: the team must keep Claude API credentials out of repository source and deployment images and demonstrate who approved a privileged tool action and when. Which two implementation actions satisfy them? Choose TWO.

  1. Retrieve keys through a managed secrets facility at runtime.
  2. Record authenticated approval events with actor, scope, and request correlation.
  3. Combine prompt boundaries, scoped credentials, validation, and approval gates.
  4. Isolate external search results and validate any resulting tool action independently.
  5. Define fail-closed behavior for an enforcement hook and test failure paths.

Explanation

Correct Answers

A:

To keep Claude API credentials out of repository source and deployment images as part of a design that must also demonstrate who approved a privileged tool action and when, central secret handling improves rotation and auditing and avoids accidental credential disclosure through source control; this is why the action is one of the two required selections.

B:

To demonstrate who approved a privileged tool action and when as part of a design that must also keep Claude API credentials out of repository source and deployment images, an audit trail binds authorization to a specific action, making privilege use reviewable without treating model-generated text as proof of consent; this is why the action is one of the two required selections.

Incorrect Answers

C:

This alternative serves the separate goal to secure an agent against both malicious retrieved text and unsafe tool execution because defense in depth assumes individual filters can fail; independent enforcement boundaries reduce the chance of harmful side effects; the required outcomes are instead to keep Claude API credentials out of repository source and deployment images and to demonstrate who approved a privileged tool action and when.

D:

This alternative serves the separate goal to reject a malicious instruction inserted into a web-search result rather than the user's direct request because indirect attacks exploit lower-trust retrieval surfaces, so trusting search snippets as operational directives crosses a security boundary; the required outcomes are instead to keep Claude API credentials out of repository source and deployment images and to demonstrate who approved a privileged tool action and when.

E:

This alternative serves the separate goal to avoid accidentally allowing critical writes when a safety check crashes because a guardrail that silently skips checks on errors is not an effective boundary; failures must prevent the protected action when policy requires it; the required outcomes are instead to keep Claude API credentials out of repository source and deployment images and to demonstrate who approved a privileged tool action and when.

Question 69

Two acceptance tests block a Claude API workload benchmark: one requires the ability to stop a no-longer-needed inference when the user's request is cancelled; the other requires the ability to stop interpreting non-2xx API responses as normal assistant messages. Which plan clears both tests?

  1. Perform both steps: (1) Record rate-limit status and relevant response headers alongside request metrics; (2) branch on http status and decode the provider's error structure.
  2. Perform both steps: (1) Propagate cancellation to the active network request when supported; (2) branch on http status and decode the provider's error structure.
  3. Perform both steps: (1) Record rate-limit status and relevant response headers alongside request metrics; (2) use a websocket protocol only when the target endpoint actually offers one.
  4. Perform both steps: (1) Propagate cancellation to the active network request when supported; (2) use a websocket protocol only when the target endpoint actually offers one.

Explanation

Correct Answer

B:

The first change enables the team to stop a no-longer-needed inference when the user's request is cancelled because cancelling work can free local resources and avoid processing obsolete results, though already-incurred provider work may still be billed; the second addresses the separate need to stop interpreting non-2xx API responses as normal assistant messages because transport errors are not regular model completions, so application control flow must treat them separately.

Incorrect Answers

A:

The second step meets the requirement to stop interpreting non-2xx API responses as normal assistant messages because transport errors are not regular model completions, so application control flow must treat them separately; the first step would only help to investigate inconsistent throughput during a traffic spike because quota-related measurements explain capacity failures that may otherwise look like randomly slow model inference, leaving the separate requirement to stop a no-longer-needed inference when the user's request is cancelled unmet.

C:

Both steps target different results—investigate inconsistent throughput during a traffic spike and build bidirectional persistent event communication where the chosen platform supports it—because quota-related measurements explain capacity failures that may otherwise look like randomly slow model inference and webSockets can carry two-way events over a long-lived connection; they are not a drop-in replacement for every HTTP or SSE endpoint; the required capabilities are instead to stop a no-longer-needed inference when the user's request is cancelled and to stop interpreting non-2xx API responses as normal assistant messages.

D:

The first step is appropriate for the requirement to stop a no-longer-needed inference when the user's request is cancelled because cancelling work can free local resources and avoid processing obsolete results, though already-incurred provider work may still be billed; the other step instead aims to build bidirectional persistent event communication where the chosen platform supports it because webSockets can carry two-way events over a long-lived connection; they are not a drop-in replacement for every HTTP or SSE endpoint, which does not meet the second requirement to stop interpreting non-2xx API responses as normal assistant messages.

Question 70

For an operations research assistant, the missing capability is to require precise control over message assembly, tool dispatch, and stopping behavior. What should the developers implement?

  1. Write selected durable facts to a controlled external memory store.
  2. Implement an application-owned Messages API agent loop.
  3. Inspect the tool_use block, invoke the authorized handler, and return tool_result.
  4. Chain dependent operations serially with explicit input and output contracts.

Explanation

Correct Answer

B:

To require precise control over message assembly, tool dispatch, and stopping behavior in this operations research assistant, a custom loop explicitly owns each model call, tool result, state update, and budget decision, trading flexibility for more engineering responsibility; the proposed implementation directly supplies that capability.

Incorrect Answers

A:

The proposed alternative helps to preserve durable user-approved facts across agent sessions outside the context window because external memory allows selective retrieval in later sessions, unlike temporary model context that disappears when calls end; that mechanism does not meet the different requirement to require precise control over message assembly, tool dispatch, and stopping behavior.

C:

The proposed alternative helps to execute a requested internal business function inside the application's trusted process because client tools are executed by the application, not by merely declaring a schema; every returned result must be matched to its tool-use identifier; that mechanism does not meet the different requirement to require precise control over message assembly, tool dispatch, and stopping behavior.

D:

The proposed alternative helps to ensure each later tool receives a validated artifact from its preceding stage because later steps cannot safely start until upstream data exists; passing validated outputs prevents races and malformed downstream input; that mechanism does not meet the different requirement to require precise control over message assembly, tool dispatch, and stopping behavior.

Claude Certified Developer - Foundations (CCDV-F) Practice Tests