Month End Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: my75ex

Home > Anthropic > Claude Certified Developer > CCDV-F

CCDV-F Claude Certified Developer-Foundations Question and Answers

Question # 4

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?

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.

Full Access
Question # 5

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?

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.

Full Access
Question # 6

You are designing an agent that handles a multi-step research task. You want the agent to break the task into smaller pieces, hand each piece to a focused subagent, and consolidate the results.

The agent pattern you would apply is...

A.

An orchestrator and subagent pattern with specialized subagents assigned to each subtask.

B.

A memory pattern that stores the entire research history in advance, before any subtask begins execution.

C.

A context-window pruning pattern that drops each subtask's content after the agent moves on.

D.

A single tool-use loop that includes every tool the agent might need across all subtasks.

Full Access
Question # 7

You are extending a Claude agent with a capability that needs to be reusable across multiple teams in the organization, with each team able to invoke and use it independently.

How would you build the capability?

A.

As a custom tool embedded in this team's agent only, with other teams able to copy the implementation into their own agents when they need the capability.

B.

As a shared library that each team imports into its own Claude application code, with each team responsible for keeping the library up to date in its integration.

C.

As a Skill or MCP server because both are purpose-built for cross-team reuse independently by each consuming team.

D.

As a wrapper around an existing built-in tool that adds the missing functionality, on the grounds that built-in tools cover the reuse pattern when extended carefully.

Full Access
Question # 8

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?

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.

Full Access
Question # 9

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?

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.

Full Access
Question # 10

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?

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.

Full Access
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?

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.

Full Access
Question # 12

Your Claude agent’s hooks are currently triggered for every action, which slows down the agent significantly even when actions pose no risk. The team wants to scope hooks more carefully.

How would you scope the hooks?

A.

Scope hooks to only the high-risk actions, such as destructive operations or sensitive data access, and remove hooks from low-risk actions to balance safety with performance.

B.

Disable all hooks while the team re-scopes them, treating the period of no hook enforcement as a temporary state during the re-scoping work.

C.

Disable the agent during peak hours so the hook overhead does not slow the application down during the busiest periods of the day across the application's operation.

D.

Replace hooks with system prompt instructions on the grounds that prompt instructions can produce the same enforcement effect that hooks produce on the agent's actions.

Full Access
Question # 13

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?

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.

Full Access
Question # 14

You are running Claude Code as part of an automated continuous integration pipeline. The pipeline needs Claude Code to execute a set of well-defined tasks without prompting for confirmation, and the output needs to be captured for downstream processing.

How would you configure the pipeline?

A.

Replace Claude Code with a different tool that does not require any configuration to operate without confirmation prompts in the pipeline.

B.

Run Claude Code in headless mode with the required permissions configured in settings.json and capture its output for downstream processing.

C.

Disable Claude Code's confirmation prompts globally across all environments so the pipeline runs without interruption from any prompt.

D.

Run Claude Code in interactive mode and have a developer manually approve every confirmation prompt while the pipeline executes its tasks.

Full Access
Question # 15

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.

Full Access
Question # 16

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?

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.

Full Access
Question # 17

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?

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.

Full Access
Question # 18

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?

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.

Full Access
Question # 19

You have just shipped a new Claude-powered application to production. The development phase is complete, and the system is now in active use by internal teams.

The next phase of work for this system is...

A.

Retiring the system, since shipping is the final lifecycle stage for any application that reaches production.

B.

Running a formal post-deployment review that assesses the development phase before the team does any further work on the system.

C.

Operating and maintaining the system, including monitoring, responding to issues, and planning evolution.

D.

Handing the system over to a separate operations team that will manage it independently of the development team going forward.

Full Access
Question # 20

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?

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.

Full Access
Question # 21

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?

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.

Full Access
Question # 22

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?

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.

Full Access
Question # 23

You are building a Claude application that needs to maintain a persistent connection to a service that streams real-time updates. The team is unsure what communication pattern to use.

Which communication pattern would you use?

A.

Repeated short-lived HTTP polling requests, where the application opens a new HTTP connection each time it checks for updates.

B.

A WebSocket, because WebSockets are designed for bidirectional, persistent, real-time communication between the client and the streaming service.

C.

A single long HTTP request the server holds open indefinitely, with no standard WebSocket framing on the connection.

D.

File-based communication where the service writes new updates to disk and the application polls the file system for changes.

Full Access
Question # 24

You are designing a Claude application that helps medical researchers analyze multi-step clinical case studies. The application must work through differential diagnoses by considering symptom patterns, weighing evidence across competing hypotheses, and showing intermediate reasoning steps before producing a final recommendation. The team is choosing among Claude's available model options.

The model option best suited to this use case is...

A.

Zero-shot prompting alone with no model option adjustments, which keeps the application's configuration as simple as possible.

B.

Extended thinking, which lets the model reason through the differential diagnosis steps before producing the final recommendation.

C.

Fast mode, which prioritizes the lowest possible latency at the expense of reasoning depth on complex tasks.

D.

A smaller model with a tighter context window, which encourages the model to focus its limited capacity on the task.

Full Access
Question # 25

Your Claude application uses structured output that is consumed by downstream code. The team wants to handle malformed or unexpected output gracefully so it does not crash downstream systems.

The best choice for handling this issue would be to...

A.

Crash on any unexpected output and require manual recovery on affected requests the application handles during normal operation.

B.

Silently drop any output that does not match expectations so downstream systems do not see the malformed output the application receives from the model.

C.

Use the output the model produces and leave schema enforcement to a later phase of production after the application is more complete.

D.

Apply defensive parsing to handle unexpected fields, missing values, and type mismatches that the downstream code might otherwise crash on.

Full Access
Question # 26

Your Claude application's API keys are stored in a secrets manager. The team is debating whether the same key should be used in development, staging, and production environments.

How would you handle the keys across environments?

A.

Use distinct keys for each environment so a compromise in one environment does not affect the others during normal operation across the application's lifecycle.

B.

Rotate the same key across environments at random intervals on the grounds that random rotation provides isolation between environments without requiring distinct keys.

C.

Use the same key across all environments for simplicity and treat the propagation of any compromise as a known operational tradeoff for the team's key management approach.

D.

Use a single development key everywhere on the grounds that production keys are too risky to deploy across the application's three environments during normal operation.

Full Access
Question # 27

Your Claude application uses tool calling to fetch patient data and generate summary reports. The flow occasionally fails because the model returns a tool_use block that references arguments not present in the schema, and your application code does not handle this case gracefully.

How would you address this?

A.

Validate the tool_use block's arguments against the tool schema before dispatching the tool and handle invalid arguments as a recognized error path.

B.

Log invalid tool_use blocks when they occur and allow the tool dispatch to proceed, relying on the tool's own error handling to surface failures back to the application.

C.

Retry the same request repeatedly until the model returns a valid tool_use block that matches the schema as expected.

D.

Stop using tool calling entirely and replace tools with prompted text generation that asks the model to describe what it would do.

Full Access
Question # 28

You are building an agent that needs to call several internal APIs and a database in a structured, repeatable way. Your team has decided to use the Claude Agent SDK rather than build a custom loop. You are setting up the agent's tool definitions and execution loop.

How would you set up the tools and execution loop?

A.

Use the SDK's tool interface and let the SDK handle the loop, dispatch, and history.

B.

Call the Messages API directly and let the model format its tool calls in plain text.

C.

Use the SDK's tool interface and loop, with conversation history stored in a separate team database.

D.

Use the SDK's tool interface and write the loop and history layer in the team's own code.

Full Access