Anthropic Claude Certified Developer - Foundations CCDV-F Exam Questions

Page: 1 / 14
Total 95 questions
Question 1

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?



Answer : B

Option B reflects the fundamental generative behavior of large language models. Claude does not retrieve a fixed response template for a given prompt. Instead, it generates the response incrementally, selecting subsequent tokens according to the probability distribution produced by the model. Consequently, semantically equivalent runs can differ in wording, ordering, whether prompt language is quoted, and whether it is paraphrased.

Anthropic's API documentation explicitly describes sampling parameters as controlling randomness in subsequent-token selection and also states that even configurations intended to minimize randomness do not make output completely deterministic. Current Claude model generations increasingly manage sampling internally, but the underlying principle remains: generative output is not guaranteed to be textually identical across equivalent calls.

Therefore, seeing the original prompt echoed in one response and paraphrased in another does not, by itself, demonstrate malformed request construction. A real request-construction problem should instead be established through traces showing different system instructions, messages, parameters, or context.

A, C, and D incorrectly infer specific implementation faults without supporting evidence.

The supplied question identifies B as the correct response. Relevant topics: SW Eng Foundations, token generation, sampling, nondeterminism, debugging, and model behavior.

===============


Question 2

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?



Answer : A

Option A is correct because model selection requires measurable non-functional requirements, not an undefined objective such as ''best.'' Anthropic's model-selection guidance explicitly frames the decision around capabilities, speed, and cost and recommends identifying those requirements before narrowing the candidate models.

''Quality'' must also be translated into task-specific success criteria---for example classification accuracy, extraction correctness, acceptable false-positive rate, or human preference. Latency may be constrained by an interactive SLA, and cost may be defined per request, per user, or per completed task. Once those thresholds exist, representative evaluations can compare candidate models using the actual prompts and data.

B uses a generic benchmark that may not correlate with the application's workload. C chooses a model tier without requirements or evidence. D optimizes only for raw capability and ignores latency and cost, potentially producing an unnecessarily expensive architecture.

Thus, requirements definition precedes technology selection. Relevant Study Guide topics: Understanding Reqs, functional versus non-functional requirements, quality thresholds, latency budgets, cost constraints, acceptance criteria, workload-specific evaluation, and model-selection tradeoffs.

===============


Question 3

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?



Answer : A

Option A applies the correct context-engineering strategy: remove stale tool results once they no longer contribute useful information to subsequent reasoning. Agentic workflows frequently accumulate search results, file contents, API responses, and intermediate artifacts. Keeping all of them indefinitely consumes the finite context window, raises token cost, and can reduce model focus by introducing low-value information.

Anthropic specifically documents tool result clearing for this situation. Context Editing can remove older tool results when the conversation grows, while preserving recent interactions and optionally retaining tools whose results must remain available. Anthropic describes old tool outputs such as retrieved files or search results as candidates for clearing after Claude has processed them.

Prompt caching in B solves a different problem: it can lower cost and latency for repeated static prompt prefixes, but cached tokens still constitute context and therefore do not eliminate context-window pressure. C changes model capability without solving the architectural cause. D maximizes context pollution.

The correct architecture is therefore to preserve high-signal state while pruning ephemeral intermediate outputs. This aligns with Claude Developer coverage of context engineering, long-running agents, context-window management, tool-result clearing, and efficient agent state management. Anthropic's broader context-engineering guidance likewise emphasizes curating the smallest high-signal context necessary for successful inference.

===============


Question 4

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?



Answer : A

A is correct because the workflow is state-dependent, non-linear, and iterative. The source explicitly identifies the graph-based pattern as the intended architecture for this scenario. Each stage---fact extraction, eligibility evaluation, and decision-making---has its own completion criteria, and the process may need to move backward from eligibility evaluation to fact extraction when information is incomplete. A graph representation naturally models these conditional transitions and loops.

Anthropic's current orchestration guidance supports workflows containing branching, loops, filtering, staged execution, and state-dependent control flow, rather than forcing every task through one fixed sequence. Dynamic workflow orchestration can use explicit control logic so the next processing stage depends on current state and previous results.

B concerns progressive output delivery, not workflow-state transitions. C provides a generic agentic tool loop but does not explicitly model distinct states or transition criteria. D is unsuitable because it prohibits the required return path between extraction and eligibility evaluation.

Therefore, a graph-based architecture provides the necessary conditional routing, iteration, and stage-specific validation.

Relevant Claude Developer topics: Agent Patterns, graph workflows, state transitions, conditional branching, loops, stage-specific success criteria, and agent orchestration.

===============


Question 5

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?



Answer : A

Option A is correct because sensitive-data protection must occur before prohibited information crosses the application's trust boundary. If account numbers, passwords, or other secrets must not be sent to Claude, asking Claude to ''ignore'' those values after transmission does not satisfy the requirement. The application must determine which data is permitted to leave its controlled environment and transform or reject prohibited content before constructing the Claude request.

This principle is consistent with Anthropic's defense-in-depth guidance. Anthropic recommends input screening, limiting Claude's access to sensitive information, and applying least privilege so the model receives only information necessary for the task.

B is fundamentally too late: the sensitive information has already been transmitted to the model context before the system instruction can influence behavior. C is worse because logging can create an additional store containing the sensitive information and only detects exposure after it occurs. D implements some boundary filtering but deliberately leaves coverage incomplete until production incidents reveal additional patterns.

Therefore, A requires the boundary and its permitted data flows to be defined first, then enforced comprehensively through filtering, redaction, tokenization, or rejection. Relevant Study Guide topics: application boundaries, data minimization, sensitive-data handling, filtering, redaction, least privilege, and privacy-preserving design.

===============


Question 6

Your Claude application's content policy specifies categories of content it should not produce under any circumstance. The application currently has no mechanism to enforce this policy, and content matching these categories is appearing in the application's output.

How would you enforce the content policy?



Answer : D

Option D is the strongest enforcement design because an unconditional content policy requires an application-level control between model generation and user delivery. Prompt instructions are valuable for steering Claude, but they are probabilistic controls and should not be treated as the sole enforcement mechanism when prohibited categories must never be exposed.

Anthropic's guardrail guidance recommends layered safeguards including screening, validation, monitoring, and filtering rather than relying exclusively on prompts. Its prompt-leak guidance specifically recommends output screening and post-processing, including deterministic techniques such as keyword matching, regular expressions, or other text-processing mechanisms where appropriate.

A improves the probability of policy compliance but cannot guarantee that every generated response will satisfy an externally defined application policy. B explicitly abandons the requirement. C detects violations only after exposure, which is unsuitable when the content must not reach users.

A production architecture can combine system instructions, structured classification, policy engines, deterministic rules, and model-based moderation, but the decisive requirement is enforcement before output delivery. Relevant Claude Developer topics are guardrails, output filtering, content moderation, deterministic enforcement, defense in depth, safe application boundaries, and production Claude application design.

===============


Question 7

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?



Answer : B

Option B is correct. A large prompt containing overlapping, contradictory, or obsolete instructions creates instruction ambiguity and increases the likelihood that Claude will apply an unintended rule, over-weight irrelevant guidance, or produce inconsistent behavior.

Anthropic's current prompting guidance reinforces this principle: Claude performs best when instructions are clear, explicit, and direct. Prompt design should minimize ambiguity and provide the model with precisely the context and behavioral requirements needed for the task. Refactoring should therefore remove obsolete requirements, consolidate duplicated instructions, resolve contradictions, and establish one authoritative formulation for each behavioral rule. The revised prompt should then be regression-tested against representative inputs.

A makes an already overloaded prompt larger and relies on instruction ordering instead of eliminating conflicts. C addresses only one defect while retaining redundant and obsolete material. D does not inherently solve contradictions and may fragment authoritative instructions across multiple locations.

Therefore, B addresses the root cause. Relevant Study Guide topics: system prompt design, prompt maintainability, instruction clarity, conflicting instructions, prompt refactoring, regression evaluation, and context quality.

===============


Page:    1 / 14   
Total 95 questions