Anthropic Claude Certified Developer

Anthropic CCDV-F Practice Test & Study Guide

Claude Certified Developer-Foundations

Exam code
CCDV-F
Questions
95
Updated
25 Nov 2026

What's in the CCDV-F study guide

  • 95practice questions with answers
  • PDFread and print on any device
  • Test enginepractice and exam modes online
  • 90 daysof free updates
  • Instant access from My Account after payment
  • 90 days of free updates
  • Money-back guarantee – see conditions
  • Help by live chat or email

Price$79

Choose a format

Prices in USD. Downloads appear in My Account once your order is complete.

  • Instant access from My Account after payment
  • 90 days of free updates
  • Money-back guarantee – see conditions
  • Help by live chat or email
Free demo

CCDV-F sample questions

Check the style and quality of the material before you buy.

Question 1

Your Claude application is producing inconsistent outputs for similar inputs, even when using the same model and prompt. You want to debug the issue systematically.Your debugging approach would...

  • A. Lower the model's temperature and re-run the inconsistent inputs to determine whether the parameter change reduces output variability across runs.
  • B. Retry every request that produces an unexpected output and log the results to identify whether repeated calls converge on a consistent response pattern.
  • C. Assume inconsistent outputs reflect normal LLM non-determinism and document the variability as an accepted characteristic of the application's behavior.
  • D. Capture full traces of input, system prompt, user messages, model output, and parameters, then analyze the differences between consistent and inconsistent runs.

Answer: D

Explanation

Capturing full traces and comparing runs is correct because systematic debugging requires complete evidence about every factor that influences the output. A full trace records the exact input, the system prompt, the entire list of user and assistant messages, any tool calls and results, the model's output, and all parameters such as model version, temperature, and max_tokens. With this information captured for both consistent and inconsistent runs, the team can compare them side by side and identify what actually differs. Inconsistency that seems to come from the model often turns out to have a concrete cause, such as slight variations in input formatting, different retrieved context, changes in conversation history, a different prompt version, or parameter settings that are not as uniform as assumed. If every input is truly identical, the comparison confirms that sampling variability is the cause, guiding targeted fixes like adjusting temperature or adding validation. This trace-based approach replaces guesswork with data, makes problems reproducible, and leads to fixes that address the real root cause of inconsistent outputs.

Question 2

You are setting up a Claude application that requires API keys for several external services.What is the best way to store the keys?

  • A. Put the keys in the application's configuration file and check the configuration file into the team's repository alongside the rest of the source code.
  • B. Store the keys in a secrets manager or environment-specific configuration that is not checked into source code, and load them at runtime.
  • C. Use a single shared key across all external services, so any developer working on the application can find the keys easily during development.
  • D. Email the keys to each developer as needed and have each developer paste the keys into their local environment when they begin working on the application's code.

Answer: B

Explanation

Storing the keys in a secrets manager or environment-specific configuration outside source control is correct because API keys are sensitive credentials that grant access to paid services and data. Keeping them out of the repository prevents them from being exposed through repository access, forks, code sharing, or the version history, where secrets remain visible even after being deleted from the latest commit. A secrets manager, such as AWS Secrets Manager, HashiCorp Vault, or a cloud provider's equivalent, stores keys securely with encryption, fine-grained access controls, audit logging, and support for rotation. Environment-specific configuration means each environment can have its own keys, limiting the impact if any single key is compromised. The application loads the keys at runtime, typically through environment variables or the secrets manager's API, so the code never contains the actual values. This approach follows widely accepted security practices, simplifies key rotation without code changes, supports compliance requirements, and gives the team control over who can access which credentials across development, staging, and production.

Question 3

You are starting a new Claude application and have a small set of well-labeled examples that demonstrate the desired output format. You want to use these examples to guide Claude's behavior.How would you guide the application's behavior?

  • A. Use multi-shot prompting by including the labeled examples in the prompt so Claude can match the desired output format on each request.
  • B. Use zero-shot prompting and rely on the model's general capability to produce the desired output format consistently across all incoming requests.
  • C. Embed the examples in a database and retrieve them at runtime as reference material for the team.
  • D. Train a custom model on the labeled examples before deployment so that the application does not need to include the examples in any prompt during operation.

Answer: A

Explanation

Multi-shot prompting is correct because including well-labeled examples directly in the prompt is one of the most reliable ways to show Claude exactly what output is expected. Each example pairs an input with its desired output, demonstrating the format, structure, level of detail, and style far more precisely than written instructions alone. Claude learns the pattern from these examples at inference time and applies it consistently to new inputs, without any model training or extra infrastructure. This makes multi-shot prompting fast to implement, easy to adjust, and simple to evaluate. Best practices include choosing examples that are relevant and varied enough to cover common cases, formatting them consistently, and clearly separating them from the actual input, often with example tags. Combined with clear instructions describing the task, a small set of good examples can dramatically improve consistency and accuracy. If the examples are part of a stable system prompt, prompt caching can also reduce the cost of including them on every request. This makes multi-shot prompting the right approach for guiding output format.

Question 4

A teammate has asked you to explain when a Skill would be the right choice over an MCP server. The teammate is unsure how the two differ in practice when both can be reused across teams.How would you explain the distinction?

  • A. A Skill and an MCP server are equivalent extension mechanisms that the team can use interchangeably for any reusable capability that needs to be accessible across teams.
  • B. A Skill is the older mechanism and an MCP server is the newer one, so the team should prefer an MCP server for any reusable capability that the team builds going forward.
  • C. A Skill is preferable for cross-team reuse because it loads more efficiently than an MCP server during normal operation in the team's typical multi-team workloads.
  • D. A Skill bundles prompts, scripts, and data into a package the model loads as a unit while an MCP server exposes resources, tools, and prompts through a standard client interface.

Answer: D

Explanation

This distinction is correct because Skills and MCP servers solve different problems, even though both can be shared across teams. A Skill is a packaged bundle, a folder with a SKILL.md file containing instructions plus supporting scripts, templates, and reference data, that Claude loads as a unit when the Skill is relevant. Skills teach Claude how to perform a particular kind of task, such as following a company's document format or running a specific analysis procedure, and they use progressive disclosure so only metadata is loaded until the Skill is needed. An MCP server is a separate service that exposes resources, tools, and prompts through the standardized Model Context Protocol, allowing any compatible client to connect and access external systems, data sources, or actions. In practice, a Skill is the better choice for packaging procedural knowledge and workflows, while an MCP server is the better choice for connecting Claude to external systems and live data through a standard interface. Understanding this helps the team choose the right mechanism for each reusable capability.

Question 5

You are building a Claude application that needs to deliver model output to end users as it is generated, instead of waiting for the full response to complete.The Claude API mechanism you would use is...

  • A. Structured JSON output, which delivers responses only after the model has finalized the JSON shape across the entire response.
  • B. Streaming responses, which deliver tokens incrementally as the model generates them so users see output progressively.
  • C. The Batch API, which delivers full responses after a delay suitable for non-interactive workloads.
  • D. Prompt caching, which speeds up the cost profile of future requests and does not affect the delivery timing of the first response.

Answer: B

Explanation

Streaming responses are correct because they are the Claude API mechanism designed to deliver output while it is being generated. When streaming is enabled, the API sends the response as a sequence of server-sent events, including message start, content block deltas containing small pieces of text, and a final message stop event. The application can display each piece of text to the user as soon as it arrives, so users begin reading within moments instead of waiting for the entire response to finish. This greatly improves perceived responsiveness, especially for long answers, and makes applications like chat interfaces feel natural and interactive. The Anthropic SDKs provide convenient streaming helpers that handle the event stream and accumulate the final message, so implementation is straightforward. Streaming also supports tool use and extended thinking, and it helps avoid timeouts on long generations. For any application that needs to show model output progressively to end users as it is generated, streaming is the standard, purpose-built approach provided by the Claude API.

Question 6

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?

  • 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.

Answer: B

Explanation

Adding output validation with a recognized error path is correct because it reliably protects downstream processing while keeping the application efficient. The validation step parses Claude's response and checks it against the expected schema, confirming that the JSON is well-formed and that required fields and types are correct. Valid output proceeds to downstream systems normally. When the output is malformed, the application handles it deliberately rather than letting it break processing. It can retry the request, often including the parse error so Claude knows what to correct, with a sensible limit on attempts. If retries fail, it can use a fallback, such as a repair step, a default value, a simpler format, or routing the case for review. Because malformed output happens only occasionally, this approach adds overhead only when needed. It also generates logs and metrics on how often failures occur, helping the team improve prompts or adopt stronger structured-output features. This pattern is the standard way to make structured-output pipelines robust and dependable in production.

Question 7

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...

  • 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.

Answer: C

Explanation

Context isolation through subagents or multi-step agentic workflows is correct because it directly delivers what the team wants: some steps reason using only the context they need, without seeing the full prior conversation. In this approach, each step or subagent receives a focused context containing just its instructions, the relevant inputs, and any results passed explicitly from earlier steps. It does not inherit the complete history of everything that came before. This has several benefits. Each step can reason more clearly because it is not distracted by irrelevant information. Sensitive or step-specific data stays contained where it belongs. Token usage per step is smaller, lowering cost and latency, and outcomes become more predictable and easier to test. The orchestrating logic controls exactly what information flows between steps, typically passing concise results rather than full transcripts. Context isolation is a core context engineering technique in multi-agent and multi-step systems, and it is the right tool whenever different parts of a workflow need separate, scoped views of information.

Question 8

A teammate has asked you to explain why the team's Claude application is billed for output tokens at a different rate than input tokens. They had assumed the rate was the same for both.How would you explain the difference?

  • A. Output tokens are typically billed at the same rate as input tokens, and the apparent rate difference is a billing error to report to Anthropic.
  • B. Output tokens are typically billed at a lower rate than input tokens, because output tokens are cheaper to produce than input tokens are to process.
  • C. Output tokens are not billed at all, because cost is determined entirely by the input tokens sent to the model on each request.
  • D. Output tokens are typically billed at a higher rate than input tokens, and cost models for the application should reflect both rates separately.

Answer: D

Explanation

This explanation is correct because Claude API pricing charges input and output tokens at separate rates, with output tokens typically priced higher, often around five times the input rate for a given model. The difference reflects how the model works. Input tokens can be processed together in parallel during a single pass, while output tokens are generated one at a time, with each new token requiring additional computation conditioned on everything before it. Generating output is therefore more resource-intensive per token. Because of this, applications that produce long responses can spend more on output than on input, even when the input is larger. Cost models for the application should track input and output tokens separately and apply each rate accordingly, alongside any discounts from prompt caching or batch processing. This gives accurate projections and helps the team identify useful optimizations, such as setting appropriate max_tokens limits, requesting concise output formats, or caching repeated input. Explaining this clarifies the teammate's assumption and supports better cost planning.

Question 9

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?

  • 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.

Answer: B

Explanation

Using the Claude Python SDK is correct because it is the officially supported way to integrate a Python application with the Claude API. The SDK wraps the REST API with well-designed Python classes and functions, so developers work with clear methods and typed objects instead of manually constructing HTTP requests and parsing JSON. It handles authentication by reading the API key from the environment or configuration, includes automatic retries with backoff for transient errors such as rate limits and server errors, manages timeouts, and parses responses into structured objects that are easy to use. The SDK also supports streaming, tool use, prompt caching, batches, and both synchronous and asynchronous clients, and it is updated by Anthropic as new API features are released. Following its documented patterns means the integration is reliable, easier for other developers to understand, and consistent with official examples. This reduces the amount of custom code the team must write and maintain, lowers the chance of subtle integration bugs, and lets the team focus on the application's actual logic.

Question 10

Your Claude application produces good responses for typical inputs but struggles with edge cases. You have several labeled examples of edge-case inputs and the desired response for each. You want to use these examples to improve the model's handling of edge cases.What is the best way to use these examples?

  • A. Embed the examples in a database for the model to find during inference.
  • B. Add the labeled edge-case examples to the prompt as few-shot examples so the model can learn the pattern.
  • C. Train a custom model on the edge-case examples and deploy that custom model in place of the team's current Claude integration.
  • D. Tell users to avoid submitting the edge-case inputs to the application by adding warnings in the application's user interface.

Answer: B

Explanation

Adding the labeled edge-case examples to the prompt as few-shot examples is correct because few-shot prompting is one of the most effective ways to teach a model a specific pattern of behavior without training. Each example shows Claude an input and the exact response the team wants, which communicates expectations about reasoning, format, and tone far more clearly than descriptions alone. When the examples focus on the edge cases where the application currently struggles, the model can recognize similar inputs and respond in the same way. This approach is fast to implement, requires no infrastructure changes, and can be measured immediately with evaluations comparing performance before and after. Good practice includes selecting diverse, representative examples, formatting them consistently, often wrapped in example tags, and making sure they do not unintentionally bias responses for typical inputs. The team can refine the example set over time as new edge cases are discovered. Anthropic's prompting guidance highlights examples as a powerful tool for improving accuracy and consistency, making this the best use of labeled data.

Why RealExamCollection is the best choice for Anthropic CCDV-F exam preparation

Secure your position in a competitive IT industry

The Anthropic CCDV-F certification is a strong way to demonstrate your understanding and ability. Our CCDV-F questions & answers help you prepare for it, so you can secure your current position and move your career forward.

Reviewed by IT professionals

We keep our CCDV-F practice questions up to date, with explanations. The questions and answers on RealExamCollection are reviewed by people with professional experience of Anthropic technologies.

One place to prepare

RealExamCollection brings together the material you need for the Anthropic CCDV-F exam. Explanations are added to the questions to help you understand the logic behind them and prepare for other Anthropic exams.

Updated CCDV-F questions & answers

We update the exam files regularly to add new questions. The date of the latest update is shown at the top of this page.

Free CCDV-F demo before you buy

You can view sample CCDV-F questions on this page before buying, to see the format and pattern of the material.

90 days of free updates

You are eligible for 90 days of free updates after buying the CCDV-F exam. If the file is updated in that time, you can download the latest version from your account.

Ready to prepare?

Anthropic CCDV-F · 95 questions

Choose a format