Month End Sale Limited Time 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: peak75

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

Page: 1 / 10
Total 95 questions

Claude Certified Developer-Foundations Questions and Answers

Question 1

You are deciding between deploying a Claude-powered agent on Anthropic's hosted infrastructure or self-hosting under a "bring your own cloud" model in your own AWS account. The agent processes customer data subject to your enterprise's data residency policies, but the team wants to ship quickly and avoid managing infrastructure.

Which deployment model would you recommend?

Options:

A.

Self-hosting under BYOC for an initial pilot, then evaluating whether to migrate to Anthropic-hosted infrastructure once the agent's data-handling patterns are better understood.

B.

Deploying on Anthropic-hosted infrastructure while the team drafts a request to update the enterprise data residency policy to accommodate hosted AI deployments.

C.

Self-hosting under BYOC to satisfy the data residency requirement, while working with the infrastructure team to reduce the operational overhead of managing the deployment.

D.

Deploying on Anthropic-hosted infrastructure to meet the team's shipping timeline, and flagging the data residency requirement for a follow-up compliance review after launch.

Question 2

You are reviewing an architectural diagram for a Claude-powered travel-booking system. The diagram shows a top-level component that interprets user requests and three subordinate components that handle flights, hotels, and ground transportation. The top-level component is responsible for routing each request, sequencing the subordinate components, and reconciling their outputs into a final itinerary. The diagram also shows that each subordinate component has its own tool list and own short conversation history that is not shared with the others.

Which architectural pattern does this diagram most closely describe?

Options:

A.

A manager and supervisor pattern with isolated context per subagent, where the top-level agent coordinates specialized subagents that each maintain their own conversation history and tool list.

B.

A manager and supervisor pattern with shared context, where the top-level agent and the subagents all share a single conversation history that grows as the request flows through the system.

C.

A pipeline pattern, where each component processes the user request in sequence and passes the full conversation history along with the request to the next component in the pipeline.

D.

A retrieval-augmented pattern, where the top-level component retrieves relevant context from the subordinate components' indexed data stores before generating each response.

Question 3

Your Claude application makes high-volume API calls during business hours and very few calls overnight. The team is concerned about staying within rate limits during peak hours and wants to understand how the Claude API enforces those limits.

How would you proceed?

Options:

A.

Review the API documentation for streaming endpoints and evaluate whether migrating peak-hour calls to streaming reduces exposure to rate limit enforcement.

B.

Assess the average payload size of current API calls and consolidate requests where possible to reduce the total number of calls made during peak hours.

C.

Identify the rate limits, design the application to stay within them during peak hours, and use exponential backoff when limits are reached.

D.

Examine the peak-hour request patterns in your application logs and smooth traffic by distributing requests more evenly across the business-hours window.

Question 4

A teammate has asked why your Claude application sometimes produces a response that includes the prompt text repeated back, and other times produces a response with the prompt text rephrased. They suspect a bug in the application's request construction.

How would you respond?

Options:

A.

Tell the teammate that the variation depends on which Claude model serves the request, and recommend pinning the application to a single model version to make the output behavior consistent.

B.

Explain that LLMs generate output token by token, and variation in how prompt content appears in output is a property of generation, not a bug in request construction.

C.

Confirm that the variation is a bug in the application's request construction and start investigating which part of the application is producing the inconsistent prompt text.

D.

Tell the teammate that the variation is caused by the application sending two different prompts on different runs and propose a code change that pins the system prompt to a single version.

Question 5

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?

Options:

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.

Question 6

You are implementing a custom tool for your Claude agent. The tool needs to interact with an external pricing service that returns product data.

Which of the following best practices would you apply as you develop this tool?

Options:

A.

Omit the tool description and let the model infer when to use the tool based on the tool's name and the rest of the prompt context.

B.

Define the tool with a loose schema and let the model interpret the inputs flexibly on each call the agent makes.

C.

Implement the tool with no error handling and let the agent loop catch failures whenever the pricing service returns an error during operation.

D.

Define the tool with a clear schema, write a precise description for when to call it, and handle pricing service errors explicitly.

Question 7

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 8

You are writing a system prompt for a Claude application that needs to produce output in a specific JSON shape. The downstream system will reject any output that does not match the schema.

Your prompt would need to...

Options:

A.

Instruct Claude to use whichever output format it considers most appropriate for each request the application handles.

B.

Instruct Claude to return JSON sometimes and free text other times so the application's output captures both formats.

C.

Omit any reference to the format and rely on a post-processing step in the application to reshape Claude's output.

D.

Include explicit constraints describing the required JSON schema and an instruction to produce only output matching that schema.

Question 9

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

Options:

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.

Question 10

You are designing a Claude application that maintains user sessions across multi-turn conversations. The product team has asked how the application will handle session lifecycle: when sessions should expire, how state is reset, and how the application avoids carrying stale context into new conversations.

How would you design session lifecycle?

Options:

A.

Define explicit session expiration rules, state reset triggers, and rules for starting fresh sessions so stale context does not leak into new conversations.

B.

Define a single short session timeout that applies across all conversations and treat the timeout as the application's complete session lifecycle mechanism.

C.

Define explicit session expiration rules but rely on users to start new conversations when they want fresh context, with no automatic reset triggers in the application.

D.

Define state reset triggers tied to specific application events but apply them across all sessions globally, with no per-session expiration rules.

Question 11

A team has deployed a multi-agent system in which a primary agent decomposes user requests and delegates subtasks to three specialized subagents: one for data retrieval, one for analysis, and one for report generation. In production, the team observes that subagents are making redundant tool calls, occasionally exceeding token budgets, and sometimes producing outputs that contradict each other — all of which the primary agent passes along without catching.

What is the most appropriate way to address these failures?

Options:

A.

Add retry logic to each subagent so that when a tool call fails, the subagent retries automatically before escalating — and configure each subagent to log its tool calls and outputs to a shared trace so the team can audit redundancy and contradictions after the fact.

B.

Give each subagent read access to the other subagents' outputs so they can identify and resolve contradictions without routing back through the primary agent.

C.

Strengthen the primary agent's management layer to enforce per-subagent tool budgets, validate outputs against a defined schema before passing them forward, and establish explicit handoff contracts between stages.

D.

Collapse the three subagents into a single large-context model call that handles retrieval, analysis, and generation in one pass.

Question 12

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 13

Your Claude application's prompt was written months ago and has not been updated. The team has discovered through evals that the prompt produces good results on common cases but underperforms on a specific category of inputs that has grown in volume.

How would you respond?

Options:

A.

Iterate on the prompt to address the underperforming category, validate the change with evals, and continue refining as needed.

B.

Tell users to avoid the underperforming category by adding warnings in the application's user interface about handled inputs.

C.

Replace the prompt with a new one aligned to the underperforming category, treating any common-case performance change as a known tradeoff.

D.

Add the underperforming category to a separate Claude application with its own prompt so the original prompt does not change.

Question 14

You are establishing the guardrail strategy for a Claude application. The team wants to ensure guardrail failure does not expose the application to unsafe behavior.

The guardrail strategy would...

Options:

A.

Layer multiple guardrails so a single guardrail failure does not expose the application to unsafe behavior.

B.

Apply guardrails at the application output level only and route flagged responses to a human reviewer before they are delivered to the user.

C.

Implement a single comprehensive system prompt guardrail and validate its coverage against the application's full range of expected inputs.

D.

Apply guardrails at the model level only and rely on the model's built-in safety behaviors to handle any cases the guardrail does not explicitly cover.

Question 15

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 16

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 17

Your Claude application receives untrusted input from external sources. The team is establishing how the application should treat this untrusted input.

Untrusted input would be...

Options:

A.

Validated and sanitized before being incorporated into prompts, and treated as data the model should not interpret as instructions.

B.

Treated identically to trusted input from internal sources, on the grounds that all input the application receives can be handled the same way.

C.

Routed through a separate Claude application with more lax security controls so the original application does not handle the untrusted input directly.

D.

Blocked entirely so the application accepts only trusted input, with no path for legitimate external input the application might process.

Question 18

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 19

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 20

Your agent makes 10 to 15 tool calls per task, and you have noticed it sometimes loses track of earlier results by the time it reaches later steps. The agent's context window is large enough to hold all the messages, but the relevant information appears to get buried as the conversation grows.

How would you address this?

Options:

A.

Switch to a different agentic framework that advertises automatic context-window management as a built-in feature.

B.

Reduce the number of tool calls per task by combining several existing tools into larger, multi-purpose tools.

C.

Increase the context window further so all tool outputs from every prior step remain in full detail throughout the task.

D.

Apply a context-management pattern that summarizes or prunes older tool outputs while preserving the active task state.

Question 21

Your Claude application's token costs have grown faster than expected. The team has not been tracking token usage by feature, so the team cannot identify which features are driving cost. The team is debating how to respond.

How would you respond?

Options:

A.

Tell the team that cost growth is unavoidable as the application scales and that no investigation will change the trajectory of the application's cost over the next several quarters.

B.

Switch every feature to the smallest model to cut cost broadly across the application during normal operation.

C.

Reduce token usage uniformly across all features by half, applying the cut evenly across the application during normal operation.

D.

Add token usage tracking by feature to the application's logging so the team can identify which features drive cost before recommending changes.

Question 22

A teammate has asked you to explain the difference between context engineering and prompt engineering. They have heard the terms used interchangeably and are unsure how each applies to a Claude application that processes long-running multi-step tasks.

How would you describe the distinction?

Options:

A.

Prompt engineering focuses on the model's response, while context engineering focuses on the user's input across many sessions in a long-running multi-step Claude application.

B.

Prompt engineering is the older term for prompt design, while context engineering is the newer term that has replaced it in modern Claude applications across the industry.

C.

Prompt engineering shapes individual prompts for specific outputs, while context engineering manages how content flows across turns and steps and takes steps to keep relevant state visible.

D.

Prompt engineering and context engineering each address content the team gives Claude, but the team can group them under a single workflow because the practices use overlapping techniques.

Question 23

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 24

You are building a Claude application that processes 10,000 customer emails overnight to extract structured data. The work is non-interactive, runs once daily, and has a flexible completion window of several hours. Which Claude API would you use?

Options:

A.

The Batch API, which is designed for non-interactive workloads with flexible completion windows.

B.

The streaming responses API to process each email and return partial results to a database as the model generates them.

C.

The real-time Messages API, processing the emails one at a time sequentially to ensure consistent ordering of results.

D.

The real-time Messages API with concurrent requests to process the emails as fast as possible during the overnight window.

Question 25

Your Claude application's error handling currently logs every API error with the same severity level. The team wants to differentiate between errors that should page an on-call engineer and errors that should be logged for later review. How would you structure the error handling?

Options:

A.

Page on every error, on the grounds that paging guarantees that no error is missed by the team during normal operation across the application's lifecycle.

B.

Disable logging for any error that does not page, treating non-paging errors as not worth recording for later review either.

C.

Categorize errors by severity based on impact and recoverability, then route each category to the appropriate channel for paging or logging.

D.

Log every error with the same severity, on the grounds that differentiating severity adds complexity that does not pay off in most application setups over time.

Question 26

The team is debating whether to integrate with the Claude API directly or through a third-party abstraction layer that supports multiple LLM providers. The team has identified that all current and projected use cases run on Claude, no internal customer has requested LLM portability, and the team's product roadmap does not mention multi-provider support over the next two years. The third-party abstraction would add roughly 15 percent overhead in code complexity and introduce one additional dependency.

Which integration approach would you recommend?

Options:

A.

The third-party abstraction layer, on the grounds that multi-provider support is valuable for any application as a matter of long-term flexibility across vendors.

B.

Both integration paths in parallel, where the application uses each path on different runs to compare which performs better in production over time.

C.

A custom multi-provider abstraction layer the team builds in-house so that the team controls every part of the abstraction the application uses for its API calls.

D.

Direct integration with Claude through its SDK, because no multi-provider need exists and abstraction would add complexity that does not pay off.

Question 27

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 28

A teammate is debugging a Claude application whose system prompt has grown to several hundred lines and now contains overlapping, contradictory, and obsolete instructions.

How would you advise the teammate?

Options:

A.

Add more explicit instructions so the most recent rules dominate the model's interpretation of the prompt during each request.

B.

Audit the prompt for overlap, contradiction, and obsolete content, then refactor so each instruction is clear, current, and non-redundant.

C.

Tighten only the contradictory rules first, treating the overlap and obsolete content as lower-priority work the team can address later.

D.

Split the prompt across multiple system prompts so the model sees a smaller portion at any given time.

Page: 1 / 10
Total 95 questions