Weekend Sale Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 75only

Anthropic CCDV-F Claude Certified Developer-Foundations Exam Practice Test

Demo: 28 questions
Total 95 questions

Claude Certified Developer-Foundations Questions and Answers

Question 1

The product team has described a new Claude feature in business terms: "agents should help our analysts produce client memos faster." You need to convert this into actionable technical requirements for the engineering team.

Your first step would be to...

Options:

A.

Ask the analysts about the current memo production process to see where they think Claude could be introduced as a prompt-driven drafting step.

B.

Assess what similar agent-based features have been built internally or in the industry and use those precedents to scope the technical approach.

C.

Examine what model capabilities and tier options are available and determine which best supports the memo drafting workflow described by the product team.

D.

Interpret the functional and infrastructure requirements implied by the business goal.

Question 2

The team is debating whether to build a new capability as a custom tool or to use an existing built-in tool that nearly covers the use case but lacks one specific feature.

How would you decide?

Options:

A.

Evaluate whether the missing feature can be addressed by extending the built-in tool or warrants a custom tool, then choose accordingly.

B.

Identify whether the team has previously built similar custom tools and use those precedents to determine which approach is more consistent with the existing codebase.

C.

Examine the custom tool option by scoping the implementation effort and determining whether the additional flexibility justifies the development and maintenance cost.

D.

Review the built-in tool's documentation and assess whether its existing capabilities are sufficient to cover the use case without any modification or extension.

Question 3

Your team's Claude agent has accumulated several customizations that bypass the SDK's defaults, including custom history management, retry logic, and error handling. A new team member has proposed reverting all the customizations to maintain the codebase more easily. The tech lead disagrees and says each customization was added for a reason.

How would you advise the team?

Options:

A.

Migrate the agent off the SDK and rebuild it with a custom loop.

B.

Revert all customizations to the SDK's defaults to standardize the codebase.

C.

Keep all customizations, trusting that the tech lead's original reasoning is still valid.

D.

Decide on each customization individually based on its original reason and the SDK's current capabilities.

Question 4

Your team is debating how to manage the prompts used in your Claude application. Some prompts are checked into the code repository, some live in a separate configuration file, and some are constructed inline at runtime. The result is inconsistent, and a recent prompt change went out without code review.

What steps would you take?

Options:

A.

Move all prompts out of version control to a separate spreadsheet that team members can edit freely as the application evolves over time.

B.

Move all prompts to inline runtime construction so the team can update them quickly through a streamlined process outside the standard code review workflow.

C.

Establish a single source of truth for prompts but keep change review optional, allowing developers to update prompts directly when changes are urgent.

D.

Establish a single source of truth for prompts, version-control them alongside code, and require code review for prompt changes.

Question 5

You are setting up the configuration management approach for a new Claude Code project. Your team will use CLAUDE.md files and settings.json files to control behavior, and you want to make sure changes are tracked and reviewable.

The configuration management approach would...

Options:

A.

Duplicate CLAUDE.md and settings.json files in multiple repositories to provide redundancy, on the grounds that a single source of truth is risky for project configuration.

B.

Version-control CLAUDE.md and settings.json files in a separate repository from the project's source code, so configuration evolves independently from the application code over time.

C.

Version-control CLAUDE.md alongside the project's source code and settings.json files in a separate repository from the project's source code.

D.

Version-control CLAUDE.md and settings.json files alongside the project's source code, with changes reviewed through standard pull request workflows the team applies.

Question 6

A teammate has submitted a pull request that adds a Claude-powered feature to your service. The code works, but the prompt and model selection are hard-coded inline, error handling is missing, and there are no tests for the integration.

What would you request during code review?

Options:

A.

Approve the pull request and add the missing pieces yourself in a follow-up commit so the teammate can move on to other work immediately.

B.

Approve the pull request as-is, on the grounds that the feature works in the happy path and the missing pieces can be added in follow-up commits.

C.

Request changes that move prompt and model configuration to a configurable location and add tests, treating the missing error handling as a follow-up release item.

D.

Request changes that move prompt and model configuration to a configurable location, add error handling for Claude API failures, and add tests for the integration.

Question 7

A new Claude model release includes performance improvements for several reasoning tasks but has changed the format of its responses to system prompts that use multi-section instructions. Your application uses multi-section system prompts heavily. Initial evaluation on the application's actual workload shows the new model performs 8 percent better on reasoning tasks but produces malformed output on roughly 3 percent of requests because of the format change. The team is debating whether to upgrade.

How would you decide?

Options:

A.

Upgrade immediately, because the 8 percent reasoning improvement outweighs the 3 percent malformed output rate across the application's typical request distribution.

B.

Adapt the application's system prompt to the new model's format expectations and re-evaluate, then upgrade only if the adapted prompt eliminates the malformed output while preserving the reasoning improvements.

C.

Upgrade and add a downstream validation step that catches the 3 percent malformed output before it reaches users, treating the validation step as the team's mitigation for the format change.

D.

Stay on the previous model permanently to avoid the malformed output rate and any future format changes that subsequent model releases might introduce in the application.

Question 8

A teammate is reviewing the team's threat model for a Claude application and has asked you to identify the categories of AI-specific threats that the model should cover. The teammate has already listed traditional web application threats and wants to know what additional categories apply to a Claude application.

Which AI-specific threat categories would you add?

Options:

A.

Cross-site scripting and SQL injection, because these traditional web application threats apply with equal weight to any application that uses Claude in any way.

B.

Network-level denial of service and physical infrastructure attacks, because these categories cover the threats most likely to affect any Claude application in production.

C.

Prompt injection, data leakage from prompts or context, jailbreak attempts, and unsafe model output that bypasses application controls.

D.

Supply chain attacks on the Claude SDK because the SDK itself is the only point of vulnerability that a Claude application introduces beyond traditional web application threats.

Question 9

Your application uses the Messages API to handle multi-turn conversations. Each new turn resends the entire conversation history, and your token costs are growing as conversations get longer. You suspect there is a more efficient approach.

How would you address this?

Options:

A.

Use prompt caching to reuse the static portions of the conversation context across turns instead of paying for them at the normal input-token rate on every request the application sends.

B.

Switch to the Batch API for every turn so the per-call cost is reduced, treating the batch as the team's primary cost-control mechanism for multi-turn work.

C.

Truncate every conversation to the last two messages so that token usage stays low and costs remain predictable across the application's normal operation.

D.

Summarize each conversation after every turn and replace the full history with the summary on the next request, reducing token count at the cost of fidelity.

Question 10

You are setting up Claude Code for a new project repository. Your team has shared coding standards, preferred libraries, and project-specific context that every developer working on the repository should have available when they use Claude Code.

How would you set this up?

Options:

A.

Document the standards in a separate wiki page maintained outside the repository so the documentation stays decoupled from the source code.

B.

Configure Claude Code through environment variables that each developer sets on their own machine when they begin working in the repository.

C.

Initialize Claude Code in the repository and document the standards and project-specific context in a CLAUDE.md file at the repository root.

D.

Add the coding standards and project context to the repository's existing README file and direct developers to reference it when starting Claude Code sessions.

Question 11

The Claude application your team built has grown over six months, and the prompt-handling code has accumulated duplication and tangled control flow. The functionality is working, but new features are getting harder to add.

How would you address this?

Options:

A.

Plan a refactoring pass to consolidate duplicated logic, separate concerns, and simplify control flow before adding new features.

B.

Refactor the prompt-handling code in small increments as part of each new feature ticket, treating the cleanup as a side effect of feature work.

C.

Continue adding features and plan a refactoring pass after the next two release cycles when the team has more bandwidth for internal work.

D.

Move all the prompt-handling code into a single large function to reduce the number of files developers have to navigate when reading the code.

Question 12

Your team is preparing a new Claude application for production, and the product team has asked for a cost projection. The team needs to estimate the cost based on expected request volume, average input length, and average output length. How would you build the projection?

Options:

A.

Build a cost model that uses the average per-request cost from a similar Claude application the team built last year, scaling that figure by expected request volume.

B.

Build a cost model that combines expected request volume, average input tokens, average output tokens, the chosen model's pricing, and any caching benefits.

C.

Build a cost model that combines expected request volume and average input tokens, treating output tokens as a small enough share of cost to leave out of the projection.

D.

Build a cost model based on expected request volume and the chosen model's pricing, treating average input and output token counts as variables to be estimated post-launch.

Question 13

Your Claude agent performs database operations. A recent incident occurred where the agent ran a destructive query that affected production data. The team wants to add deterministic controls to prevent similar incidents.

How would you prevent similar incidents?

Options:

A.

Run the agent only during business hours when humans are available to monitor its activity, treating the schedule as the primary control mechanism for destructive operations.

B.

Add Claude hooks that intercept database operations and apply deterministic checks, such as blocking destructive queries or requiring approval, before the queries execute.

C.

Switch to a higher-capability Claude model on the grounds that a more capable model is less likely to run destructive queries during normal operation across all requests.

D.

Add a system prompt instruction telling the agent to be careful with database operations on every request the application handles during normal operation across all incoming traffic.

Question 14

You are building an MCP server that exposes several internal data sources as MCP resources. The server needs to be deployed so multiple Claude applications can integrate with it.

How would you approach the build and deployment?

Options:

A.

Author the server with clearly defined resources, tools, and prompts, choose a communication pattern, and deploy to an accessible hosting environment.

B.

Build the MCP server with resource and tool definitions scoped to the first Claude application that needs it, and extend the definitions to additional applications as each integration is requested.

C.

Deploy the MCP server only on individual developer machines, with the Claude applications unable to reach the server outside each developer's machine.

D.

Bypass the MCP server and embed each data source directly in every Claude application that needs the data, with each application maintaining its own integration.

Question 15

The product team has asked you to choose a Claude model for a new feature. The team has provided functional requirements but has not specified performance, cost, or quality targets. The team's product manager says, "Use whatever model gives us the best results."

How would you respond?

Options:

A.

Ask the product team to specify quality, latency, and cost targets, then select the model whose tradeoffs best fit those targets.

B.

Run every Claude model on a representative sample and pick whichever scores best on a generic benchmark.

C.

Choose a mid-tier model and ship the feature, because mid-tier models work for most use cases without specified targets.

D.

Choose the largest, highest-capability Claude model, on the grounds that "best results" is most likely to mean highest quality.

Question 16

Your Claude application requests structured JSON output from the model. Most of the time the JSON is well-formed, but occasionally Claude returns malformed JSON that breaks downstream processing.

How would you handle the malformed output?

Options:

A.

Manually inspect every response before downstream processing so a human reviewer catches any malformed JSON before the application passes the response to downstream systems.

B.

Add output validation that parses Claude's response against the expected schema and treats malformed output as a recognized error path with retry or fallback handling.

C.

Switch to free-form text output so the application no longer depends on JSON parsing for any of the responses it sends to downstream systems during normal operation.

D.

Retry the same request repeatedly until valid JSON appears in the model's response, with the retry loop adding delay to the application's response time on affected requests.

Question 17

Your team's Claude application has been in production for a year, and the team has decided to formalize its testing strategy. Currently, the team writes ad-hoc tests for individual features but has no overall testing approach.

What testing approach would you formalize?

Options:

A.

Adopt a test-driven development practice where unit tests are written before each feature is implemented and must pass before code is merged.

B.

Define unit tests for individual functions, integration tests for the Claude integration, and end-to-end tests for critical user flows, applied consistently across the codebase.

C.

Continue writing ad-hoc tests as features ship and introduce a peer review step to ensure each test adequately covers the feature being released.

D.

Define a single testing approach that uses end-to-end tests and apply it consistently across all new features as they are added to the codebase.

Question 18

You are designing a Claude application that processes user-submitted text. Some of that text could include sensitive information such as account numbers or passwords that the application should not send to Claude.

How would you design the application?

Options:

A.

Define the application boundary explicitly, identify what content can leave the boundary for Claude, and add filtering or redaction at the boundary.

B.

Add a prompt instruction in the system prompt specifying the categories of sensitive information Claude should disregard when processing user-submitted text.

C.

Log all user-submitted text before it is sent to Claude and review the logs periodically to identify whether sensitive information is reaching the model.

D.

Apply filtering at the boundary for the most commonly observed sensitive data patterns and expand coverage to additional patterns based on findings from production monitoring.

Question 19

You are designing a multi-step Claude workflow where some steps must reason without seeing the full prior conversation history. The team wants to keep specific context isolated to specific steps.

The context engineering technique you would use is...

Options:

A.

Augmenting the context with all available content at every step so each step has access to the entire prior history of the workflow during its reasoning.

B.

Using a single global prompt that applies to every step in the workflow no matter what each step is reasoning about during its run.

C.

Context isolation through subagents or multi-step agentic workflows that scope each step's context to only what the step needs.

D.

Embedding the full prior history in each step regardless of whether the step needs the prior history for its reasoning.

Question 20

A Claude application that worked well in testing is now occasionally returning outputs that mention information not present in the input. The development team initially assumed the model was hallucinating, so they asked you to troubleshoot.

What would you do first?

Options:

A.

Examine production traces to identify whether the issue is hallucination by the model, context loss, prompt injection, or another failure mode before recommending a fix.

B.

Replace the current model with a larger one to reduce the chance of hallucination, on the grounds that larger models tend to hallucinate less in typical applications.

C.

Apply a retrieval-augmented generation pattern to ground the responses in source content before any further investigation of the production traces.

D.

Add a system prompt instruction telling the model not to invent information, on the grounds that prompt-level instructions are the fastest fix for hallucination concerns.

Question 21

Your team is choosing how to add a capability to a Claude application. You want to apply the appropriate option, whether built-in tool, custom tool, Skill, or MCP server, based on the use case.

You would choose the option that...

Options:

A.

Is the most familiar to the team based on prior experience with similar capabilities.

B.

Is the newest available option among built-in tools, custom tools, Skills, and MCP servers.

C.

Is the easiest to build given the team's current development tools and workflows.

D.

Matches the use case's scope, reuse needs, and integration context.

Question 22

Your enterprise has a contract with AWS that requires Claude API calls to flow through Amazon Bedrock rather than the direct Anthropic API. Your team is building a new Claude application and is unfamiliar with this constraint.

How would you build the application?

Options:

A.

Build two parallel implementations of every call, one for the direct Anthropic API and one for Bedrock, and pick the faster one at runtime.

B.

Build the application against the direct Anthropic API now and migrate to Bedrock in a follow-up release once the team has more experience with the Bedrock API.

C.

Configure the application to invoke Claude through the Bedrock-compatible API path while keeping the application's logic provider-agnostic.

D.

Build the application against the direct Anthropic API and ignore the contractual requirement to route Claude calls through Amazon Bedrock.

Question 23

You are integrating Claude into an application written in Python. The Claude SDK provides a Python client that wraps the underlying REST API.

How would you integrate the SDK?

Options:

A.

Call the REST API directly with raw HTTP requests so the application avoids the SDK's abstraction between the application code and the API.

B.

Use the Claude Python SDK and let it handle authentication, retries, and response parsing through its standard documented patterns for Python integrations.

C.

Use a different LLM provider's SDK and translate the responses into Claude's API shape so the application can switch providers in the future.

D.

Skip the SDK and embed Claude calls in shell commands invoked from Python, so that the application runs the calls outside the main Python process.

Question 24

You are designing an agent that handles a complex claim-processing workflow. Each claim moves through fact extraction, eligibility evaluation, and a decision step. The three subtasks have distinct success criteria, and some claims require iteration between fact extraction and eligibility evaluation before a decision can be reached.

Which agent pattern would you apply?

Options:

A.

A graph-based pattern that lets the agent move between subtasks based on the state of each claim, with each subtask evaluated against its own criteria.

B.

A streaming pattern that emits partial decisions as the agent processes each claim, refining the output until a final decision emerges from the stream.

C.

A single tool-use loop pattern that gives one agent access to all the tools needed for fact extraction, eligibility evaluation, and decision-making.

D.

A linear chain pattern that processes every claim through fact extraction, then eligibility evaluation, then decision, with no return paths between subtasks.

Question 25

Your Claude application has been running for several conversation turns, and you notice the model occasionally references information that was discussed many turns ago but is no longer relevant. You suspect context drift is causing the model to weight stale content too heavily.

How would you address the drift?

Options:

A.

Increase the context window size so all turns of the conversation remain visible to the model in full detail.

B.

Reset the conversation after every turn so the model loses all prior turns when generating a response.

C.

Apply compaction to summarize older portions of the conversation so the gist remains while the specifics carry less weight.

D.

Truncate the conversation so the model sees only the most recent turn during each subsequent response.

Question 26

Your Claude application has multi-step workflows where each step’s output is needed only briefly before the agent moves on. The cumulative tool output is filling the context window with content that is no longer relevant.

How would you handle the accumulating tool output?

Options:

A.

Apply tool output pruning to remove tool outputs that are no longer needed by later steps in the workflow.

B.

Apply prompt caching to the accumulated tool outputs so the application does not re-pay for the older content on each subsequent step.

C.

Switch to a smaller Claude model that processes context more efficiently and treat any quality loss as a tradeoff for the cost reduction.

D.

Keep every tool output in the context indefinitely so the agent has the full record of every step it has executed during the workflow.

Question 27

A teammate has asked how the Claude SDK handles transient API errors, such as a temporary network issue or a brief rate-limit response. They want to know whether the application code needs to handle every transient error or whether the SDK provides any default behavior.

How would you describe the SDK's default behavior?

Options:

A.

The SDK provides default retry behavior for transient errors up to a fixed number of attempts, and this behavior is not configurable.

B.

The SDK provides default retry behavior for network errors but surfaces rate-limit responses directly to the application code, which must implement its own retry logic for those cases.

C.

The SDK logs transient errors to a default error stream and continues execution without retrying, leaving the application code responsible for detecting and responding to failed calls.

D.

The SDK provides default retry behavior for many transient errors, and the application code can configure or extend that behavior as needed.

Question 28

Your Claude application returns confident-sounding answers, but occasionally those answers contain factual errors that downstream systems treat as ground truth. The team is concerned about the application's confidence-versus-accuracy gap.

How would you address the gap?

Options:

A.

Lower the model's temperature so the model's responses sound less confident and downstream systems are less likely to treat the responses as ground truth in normal operation.

B.

Apply skepticism toward confident output by adding validation steps, sourcing requirements, or confidence calibration before treating outputs as ground truth.

C.

Reject every response the application produces until a manual accuracy review is conducted on each response by a human reviewer before any downstream system uses it.

D.

Add a disclaimer to every output telling users to verify the accuracy of the output and treat the disclaimer as the primary mechanism for managing the confidence-versus-accuracy gap.

Demo: 28 questions
Total 95 questions