โ† Back

All 152 practice questions with answers

Every question in the quiz with its correct answer, a short explanation and a link to the documentation. Search for a word or a question ID, or switch to By section to open one sub-skill at a time. Want to test yourself first? Play the quiz.

152 questions

D1 Solution Design & Architecture 22 questions ยท 17% of exam

Align solutions to business value pillars (efficiency, transformation, productivity, cost, performance SLAs) (5)
Q-D1-001Select 1Hard

A Claude architect reviews a post-deployment performance report on an AI-assisted legal document summarization system. The report notes: (1) average summarization time fell from 47 minutes to 8 minutes per document; (2) associates say they spend less time on summaries, yet overall billable output has not measurably changed; (3) infrastructure costs are up 22% because redundant retry logic increased API call volume; (4) the system sometimes produces summaries that need attorney correction, adding about 5 minutes of review per document. Which analysis maps each observation to the right business value pillar?

  • A) Observations 1 and 2 both point to efficiency gains; Observation 3 points to a solution cost issue; Observation 4 points to a performance SLA issue to be weighed against the efficiency gain in Observation 1.
  • B) Observation 1 points to an efficiency gain; Observation 2 shows productivity has not yet been realized; Observation 3 points to a solution cost issue; Observation 4 points to an efficiency loss that partly offsets Observation 1.
  • C) Observations 1 and 4 together point to a net performance SLA improvement; Observation 2 points to a transformation gap; Observation 3 points to a productivity drain from over-engineering.
  • D) Observation 1 points to a transformation outcome; Observation 2 points to an efficiency gain; Observation 3 points to a performance SLA degradation; Observation 4 points to a solution cost issue.

โœ” Answer: B

(inferred) Time saved per document is an efficiency gain, but unchanged billable output means the productivity pillar has not been realized yet, the 22% infrastructure increase from redundant retries is a solution cost problem, and the extra review minutes eat into the efficiency gain. Option A is the tempting one, but it calls observation 2 an efficiency gain and files attorney corrections under performance SLAs, which hides the unrealized productivity and the offset to the time saved.

Source: platform.claude.com/docs/en/about-claude/models/choosing-a-model

Q-D1-006Select 1Hard

A healthcare organization is weighing two Claude-powered architectures for a clinical documentation assistant. Architecture X scores higher on output quality but costs $0.18 per documentation session and averages 4.2 seconds per response. Architecture Y scores slightly lower on quality, costs $0.09 per session, and averages 2.1 seconds per response. The SLA requires responses under 3 seconds, and annual volume is projected at 2 million sessions. Which evaluation approach applies business value pillar analysis correctly?

  • A) Pick Architecture Y on the strength of the 50% cost reduction alone, because solution cost is the top value pillar in budget-constrained healthcare, whatever the quality gap.
  • B) Recommend a hybrid with Architecture X for complex cases and Architecture Y for routine ones, with no further analysis, since it keeps quality where it matters and cost down on routine cases.
  • C) Rule out Architecture X on SLA grounds, then assess Architecture Y on efficiency and solution cost by working out the annual cost difference and checking whether the quality gap affects clinical workflow productivity.
  • D) Pick Architecture X because its higher quality justifies the cost premium, and treat any SLA gap as something infrastructure optimization can fix after deployment.

โœ” Answer: C

(inferred) The SLA is a hard constraint, so Architecture X at 4.2 seconds is out; Architecture Y is then judged on efficiency and solution cost (about $180,000 saved per year at 2 million sessions) and on whether its small quality drop affects clinical productivity. Choosing Y on cost alone ignores the other pillars, and the hybrid skips the analysis entirely.

Source: platform.claude.com/docs/en/about-claude/models/choosing-a-model

Q-D1-014Select 1Easy

A bank runs a nightly job that summarizes 40,000 call transcripts for reports read the next morning, and leadership wants the biggest cost cut without changing the model or the prompt. What do you recommend?

  • A) Submit the job through the Message Batches API, which halves the price and returns results within 24 hours.
  • B) Send the job as real-time requests at a higher priority so that it completes earlier.
  • C) Stream every response from the job so the overnight run finishes sooner and uses noticeably fewer billable tokens.
  • D) Split each transcript into smaller requests and send all of them in parallel.

โœ” Answer: A

The Batch API costs 50% of the standard price for work that can wait, with results within 24 hours, which suits an overnight job read the next morning. Streaming, priority and parallel splitting change how or when results arrive, not the price per token.

Source: platform.claude.com/docs/en/build-with-claude/batch-processing

Q-D1-019Select 1Medium

An in-app classifier must keep p95 latency under 2 seconds, and the business also wants lower cost. Which recommendation best serves both the performance SLA and the cost pillar?

  • A) Use a fast model such as Claude Haiku, keep prompts and outputs short, and confirm accuracy on an eval set.
  • B) Turn on extended thinking so the model reasons carefully before returning each label.
  • C) Send every request through the Message Batches API to halve the cost of each classification.
  • D) Use the most capable model at high effort, so that fewer misclassifications need to be corrected by hand afterward.

โœ” Answer: A

A faster model and fewer prompt and output tokens cut latency, and a smaller model also costs less, while an eval set confirms accuracy holds. The Batch API is asynchronous and cannot meet a 2-second SLA, and higher effort or thinking adds latency.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-latency

Q-D1-022Select 1Medium

An insurer uses Claude to draft first-pass claim summaries that adjusters then review. Which metric most directly shows leadership the productivity value?

  • A) The share of claim summaries that mention the policy number somewhere in their first sentence.
  • B) Average adjuster handling time per claim before and after rollout, with review quality the same or better.
  • C) The number of tokens the claims-summary pipeline processes per day in production, broken down by team and by region.
  • D) The number of prompts the engineering team wrote and revised while building the summary feature.

โœ” Answer: B

(inferred) Productivity value is shown by a business outcome measured against a baseline, here time saved per claim with quality held constant. Token volume and prompt counts measure activity, and a formatting check measures one detail of output, not value.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Translate business problems into Claude-based AI solutions (3)
Q-D1-002Select 1Medium

A platform team runs a self-hosted multi-agent system on Kubernetes, with seven specialized agents handling invoice processing, and roughly 40 percent of its engineering capacity goes into infrastructure upkeep, message bus reliability, and agent state recovery. The CFO wants you to assess a move to managed agent infrastructure to win that capacity back, and the security officer requires all customer financial data to remain inside an approved network boundary. Which factor should weigh most in your recommendation?

  • A) Whether managed agents lower per-invoice token costs at the current processing volume.
  • B) Whether managed agents can support the bus topology the platform team uses today.
  • C) Whether the seven current agents fit cleanly into the patterns managed agents support.
  • D) Whether the way managed agents handle data satisfies the network boundary security requires.

โœ” Answer: D

The network boundary is a hard requirement, so an option that breaks it is ruled out however much engineering capacity it would save; Claude Managed Agents addresses this with self-hosted sandboxes on infrastructure you control for compliance or data-residency requirements. Agent-pattern fit and bus topology are design details that can be reworked, but a violated security boundary cannot.

Source: platform.claude.com/docs/en/managed-agents/overview

Q-D1-004Select 1Medium

You are a solution architect assessing five candidate use cases for a Claude-based program: drafting first-pass investigative reports from semi-structured incident logs for analyst review; computing real-time fraud scores at sub-50-millisecond latency on a streaming pipeline; reviewing long contracts with structured clause extraction and deviation flagging; replacing a vector index for semantic retrieval over a multi-million-document corpus; and routing inbound support tickets into 30 categories, with reasoning for each routing choice. For which use cases is Claude the appropriate primary solution at the architectural level?

  • A) Investigative report drafting, contract review and real-time fraud scoring qualify; the vector index replacement and ticket routing do not.
  • B) Investigative report drafting, contract review, ticket routing and the vector index replacement qualify; real-time fraud scoring does not.
  • C) Investigative report drafting, contract review and ticket routing qualify; real-time fraud scoring and the vector index replacement do not.
  • D) Contract review, ticket routing and real-time fraud scoring qualify; investigative report drafting and the vector index replacement do not.

โœ” Answer: C

(inferred) Claude fits language-heavy work that benefits from reasoning or human review: drafting reports from semi-structured logs, long-context clause extraction, and ticket classification with human-readable reasoning. Sub-50-millisecond fraud scoring needs a dedicated low-latency scoring model, and Claude cannot replace a vector index because Anthropic offers no embedding model, so retrieval feeds Claude rather than being replaced by it.

Source: platform.claude.com/docs/en/about-claude/use-case-guides/ticket-routing

Q-D1-015Select 1Medium

A logistics firm says it wants "AI for customer service". Before proposing any architecture, what should the architect establish first?

  • A) How many cooperating agents the final system will need in order to handle the expected support volume.
  • B) Whether the vector database should be hosted on-premises or with a cloud provider.
  • C) The specific task, measurable success criteria, and the current baseline the solution must beat.
  • D) Which Claude model currently has the highest public benchmark score across reasoning tasks.

โœ” Answer: C

Strong success criteria are specific and measurable, and they come before building because they guide model choice, prompt design and evaluation. Benchmark rankings, agent counts and hosting choices are design decisions that depend on those criteria.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Select appropriate architectural patterns (workflow, agentic, augmented LLM) (6)
Q-D1-003Select 1Easy

You are choosing a pattern for a compliance Q&A assistant that has to answer policy questions with citations to the authoritative internal source set, where latency, cost, and audit predictability come first. Which pattern fits best?

  • A) An augmented LLM that applies retrieval-augmented generation to the indexed authoritative corpus and renders citations on each answer.
  • B) Multi-agent orchestration in which a planner, a researcher, and a writer agent handle every query.
  • C) A static prompt that concatenates the whole policy corpus into every request.
  • D) A pure agent loop with open web-browsing tools to find the most current policy information, with retrieval not restricted to the authoritative internal corpus.

โœ” Answer: A

An augmented LLM with retrieval over the authoritative corpus is a single, predictable call per question that grounds answers in approved sources and returns citations an auditor can check. Multi-agent orchestration adds latency and cost a Q&A task doesn't need, and open web browsing breaks the requirement to cite only the authoritative internal sources.

Source: www.anthropic.com/engineering/building-effective-agents

Q-D1-008Select 1Medium

An insurer wants to turn claim emails into structured records, and every email goes through the same three steps in the same order: extract the fields, validate them against the policy system, then draft an acknowledgment. Which pattern fits best?

  • A) An orchestrator-workers design in which a lead model spawns a separate worker for every field it extracts.
  • B) A voting setup in which several model calls extract each field independently and the majority value is kept.
  • C) A prompt-chaining workflow with a programmatic check between steps, because the steps are fixed and known in advance.
  • D) An autonomous agent that decides at runtime which steps to run, and in which order, for each incoming email, so unusual emails are handled flexibly.

โœ” Answer: C

Prompt chaining fits tasks that decompose cleanly into fixed subtasks, and a programmatic gate between steps checks that the process is still on track. Agents are meant for open-ended problems whose steps can't be predicted, so here they would only add cost and unpredictability.

Source: www.anthropic.com/engineering/building-effective-agents

Q-D1-009Select 1Easy

A support platform receives billing disputes, outage reports and general product questions; each type needs its own prompt and tools, and simple questions should go to a cheaper model. Which workflow pattern is designed for this?

  • A) Routing, which classifies each input and sends it to a specialized follow-up prompt, tool set or model.
  • B) Prompt chaining, which passes every input through the same fixed sequence of prompts.
  • C) Evaluator-optimizer, in which one call drafts the answer and another critiques it in a loop.
  • D) Parallelization by voting, which runs the same prompt several times and keeps the majority answer for every input type.

โœ” Answer: A

Routing classifies an input and directs it to a specialized follow-up task, which suits distinct categories that are better handled separately, including sending easy questions to a smaller, cheaper model. Voting, evaluator loops and one fixed chain treat every input the same way.

Source: www.anthropic.com/engineering/building-effective-agents

Q-D1-011Select 1Easy

A team plans to build a fully autonomous agent for a task that a single well-crafted prompt with retrieval might already handle. What does Anthropic's guidance recommend as the starting point?

  • A) Start with a multi-agent framework, so the design can already scale to future use cases later without rework.
  • B) Start with the simplest option, such as one augmented LLM call, and add complexity only when it is needed.
  • C) Start by fine-tuning a model on the task before trying any prompt-based approach.
  • D) Start with an autonomous agent, since agents outperform fixed workflows on quality.

โœ” Answer: B

The guidance is to find the simplest solution possible and increase complexity only when needed, because agentic systems trade latency and cost for better task performance. Often a single LLM call with retrieval and in-context examples is enough.

Source: www.anthropic.com/engineering/building-effective-agents

Q-D1-018Select 2Medium

Which two characteristics indicate that an agent, rather than a predefined workflow, is the right pattern? (Select two.)

  • A) Auditors require the output path to be fully predictable for every run.
  • B) The task is high-volume and must follow exactly the same steps every time.
  • C) The number of steps the task needs cannot be predicted in advance.
  • D) The model must choose its next action from environment feedback, such as tool results.
  • E) A strict latency limit requires the smallest possible number of model calls.

โœ” Answer: C, D

Agents suit open-ended problems where the number of steps is hard to predict and the model gains ground truth from the environment, such as tool results, at each step. Fixed high-volume steps, tight latency limits and full predictability all favor workflows.

Source: www.anthropic.com/engineering/building-effective-agents

Q-D1-020Select 1Medium

A customer chatbot must answer questions and also catch inappropriate requests, without making replies slower. Which pattern does Anthropic describe for this?

  • A) Parallelization by sectioning, where one model instance answers the query while another screens it for inappropriate content.
  • B) Prompt chaining, where the answer is generated first and screening runs only after the user has already received it.
  • C) Routing, where every request goes to the most capable model so that a single call both answers and screens it.
  • D) Evaluator-optimizer, where a screening model rewrites each answer repeatedly until it gets a perfect score.

โœ” Answer: A

The guide lists guardrails as a sectioning use of parallelization: one model instance processes user queries while another screens them for inappropriate content, which tends to work better than one call handling both. Screening after delivery is too late, and repeated rewriting adds latency.

Source: www.anthropic.com/engineering/building-effective-agents

Apply decomposition techniques for complex problem solving (3)
Q-D1-005Select 1Easy

You are placing the decomposed components of an invoice-processing pipeline into Pre-Processing, Model Stage, and Post-Processing layers. The components: Claude-based classification of invoice type, persistence of validated records to the system of record, schema validation of extracted fields, Claude-based extraction of structured invoice fields, PII redaction of extracted text before model invocation, and optical character recognition on scanned invoice images. Which assignment is correct?

  • A) OCR goes in Pre-Processing; classification, extraction and schema validation go in the Model Stage; PII redaction and persistence go in Post-Processing.
  • B) OCR and classification go in Pre-Processing; extraction and PII redaction go in the Model Stage; schema validation and persistence go in Post-Processing.
  • C) OCR, PII redaction and schema validation go in Pre-Processing; classification and extraction go in the Model Stage; persistence goes in Post-Processing.
  • D) OCR and PII redaction go in Pre-Processing; classification and extraction go in the Model Stage; schema validation and persistence go in Post-Processing.

โœ” Answer: D

(inferred) Pre-Processing prepares input before Claude sees it, so OCR produces the text and PII redaction removes sensitive data before model invocation. Only the two Claude-based steps belong in the Model Stage, and schema validation can only check fields after extraction has produced them, so it belongs in Post-Processing ahead of persistence.

Source: www.anthropic.com/engineering/building-effective-agents

Q-D1-012Select 1Medium

You translate long marketing pages into Japanese, reviewers keep finding nuance problems that a second pass could catch, and there are clear criteria for a good translation. Which pattern most directly targets this?

  • A) Routing, where each page is sent to a different model depending on how long the page is.
  • B) Evaluator-optimizer, where one call translates and another evaluates the result against the criteria and returns feedback in a loop.
  • C) Sectioning, where every page is split into parts that are translated in parallel and then joined back together.
  • D) Voting, where each page is translated three times in parallel and the wording that appears most often is kept.

โœ” Answer: B

Evaluator-optimizer fits when there are clear evaluation criteria and iterative refinement adds measurable value; literary translation with subtle nuances is the example the guidance gives. Sectioning and voting improve speed or confidence but never feed a critique back into a revision.

Source: www.anthropic.com/engineering/building-effective-agents

Q-D1-017Select 2Hard

A due-diligence task requires reading 300 supplier contracts, extracting obligations, and producing one risk summary. Which two decomposition choices are sound? (Select two.)

  • A) Have one call extract and summarize each contract in free text and drop the structured output.
  • B) Let the model invent the whole plan at runtime with no fixed steps and no output schema.
  • C) Extract the obligations from each contract in parallel calls that all use the same fixed output schema.
  • D) Send all 300 contracts in a single request and ask for the final summary in one step.
  • E) Run a separate synthesis step over the structured extractions to produce the final risk summary.

โœ” Answer: C, E

(inferred) Sectioning independent contracts into parallel calls with one fixed schema keeps every call focused and the results comparable, and a separate synthesis step then works from that structured data. One giant request or schema-free planning loses consistency and makes failures hard to locate.

Source: www.anthropic.com/engineering/building-effective-agents

Design end-to-end architectures (input โ†’ processing โ†’ output โ†’ feedback loops) (3)
Q-D1-007Select 1Easy

You are reviewing a colleague's end-to-end design for a Claude-based platform that must scale to thousands of concurrent users. The design says: (1) authentication and authorization run before retrieval so retrieval can filter by identity; (2) an asynchronous queue absorbs bursty traffic between intake and the model invocation layer; (3) tax computation is written directly into the system prompt instead of code; (4) conversation logs contain unredacted government identifiers to maximize tuning signal. Which statements reflect sound architectural practice?

  • A) Statements 1 and 2 are sound, while statements 3 and 4 are not.
  • B) Statements 1 and 3 are sound, while statements 2 and 4 are not.
  • C) Statements 2 and 4 are sound, while statements 1 and 3 are not.
  • D) Statements 1, 2 and 3 are sound, while only statement 4 is not.

โœ” Answer: A

(inferred) Checking identity before retrieval lets retrieval return only documents the user may see, and a queue between intake and model calls smooths bursts and rate-limit retries at scale. Deterministic rules like tax computation belong in code, which is more reliable than model-generated output, and storing unredacted government identifiers in logs creates privacy and compliance risk that tuning value doesn't justify.

Source: platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices

Q-D1-013Select 2Medium

You are designing a contract-review assistant that lawyers use every day. Which two elements close the feedback loop in this architecture? (Select two.)

  • A) Show a progress indicator while the response streams to the lawyer.
  • B) Capture each lawyer's corrections to Claude's flags and store them with the input that produced them.
  • C) Raise max_tokens on every request so that responses are never cut short.
  • D) Cache the system prompt so that repeated requests are cheaper and faster.
  • E) Add the corrected cases to the evaluation set and re-run it before every prompt or model change.

โœ” Answer: B, E

(inferred) A feedback loop turns production outcomes into improvements: corrections are captured together with their inputs, then fed into the evaluation set so every change is tested against real failures. Token limits, caching and progress indicators improve output, cost or experience, but none of them feeds results back into the system.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D1-021Select 2Hard

You are designing an autonomous agent that fixes failing tests in a large codebase. Which two design elements does the agent guidance recommend? (Select two.)

  • A) Stopping conditions, such as a maximum number of iterations, so the agent cannot loop forever.
  • B) Unlimited autonomy with production credentials, so that the agent never has to wait for anyone.
  • C) One fixed sequence of steps that the agent must follow for every failing test it meets.
  • D) Leaving tool results out of the loop so the agent relies only on its own reasoning.
  • E) Extensive testing in sandboxed environments, with suitable guardrails, before wider use.

โœ” Answer: A, E

An agent's autonomy brings higher costs and the risk of compounding errors, so the guidance recommends extensive testing in sandboxed environments with guardrails, and stopping conditions such as a maximum number of iterations. A fixed sequence turns it into a workflow, and dropping tool results removes the ground truth an agent depends on.

Source: www.anthropic.com/engineering/building-effective-agents

Design multi-agent systems and orchestration strategies (2)
Q-D1-010Select 2Hard

A research team is weighing a multi-agent design in which a lead agent plans the work and spawns parallel subagents. Which two conditions make this design a good fit? (Select two.)

  • A) The workload is routine and high-volume, so the lowest possible cost per query matters most.
  • B) Several agents must edit the same file at the same moment under strict coordination.
  • C) Every subtask depends tightly on the previous one and all agents must share the full context.
  • D) The value of the task is high enough to justify far higher token usage than a single-agent chat.
  • E) The question is breadth-first, with independent directions that can be explored at the same time.

โœ” Answer: D, E

Anthropic's multi-agent research system works best on breadth-first queries with independent directions that can be pursued in parallel, and multi-agent systems use about 15 times more tokens than chats, so the task's value must cover the cost. Tightly coupled work that needs shared context, such as most coding, is a poor fit.

Source: www.anthropic.com/engineering/multi-agent-research-system

Q-D1-016Select 1Medium

In an orchestrator-workers research system, subagents often repeat each other's searches while some areas are never covered. Which change most directly fixes this?

  • A) Remove the lead agent and let the subagents coordinate by reading each other's outputs as they go, without central planning.
  • B) Raise the number of subagents so that any remaining coverage gaps are filled by sheer volume.
  • C) Have the lead agent give each subagent a clear objective, an output format, tool guidance and task boundaries.
  • D) Give every subagent the same short instruction so that all of them behave in a consistent way.

โœ” Answer: C

In Anthropic's research system, short and vague task descriptions made subagents duplicate work or leave gaps; each subagent needs an objective, an output format, guidance on tools and sources, and clear boundaries. More subagents, or identical instructions, only repeat the problem.

Source: www.anthropic.com/engineering/multi-agent-research-system

D2 Claude Models, Prompting & Context Engineering 21 questions ยท 13% of exam

Select appropriate Claude models based on trade-offs (5)
Q-D2-001Select 1Easy

You are building a content moderation classifier that handles a high volume of user-generated comments under a tight per-message latency budget, with well-defined classification labels. Which model best fits the workload?

  • A) Claude Opus
  • B) Claude Sonnet
  • C) Claude Haiku
  • D) Claude Fable

โœ” Answer: C

The docs position Haiku for high-volume, latency-sensitive tasks such as classification, extraction, and routing, which matches well-defined labels under a tight latency budget. A larger model adds latency and cost on every message without a matching need for deeper reasoning.

Source: platform.claude.com/docs/en/about-claude/models/choosing-a-model

Q-D2-003Select 2Medium

You are choosing a model for a new production workload and must finish the upstream steps before testing candidate models empirically. Which two steps must be done BEFORE you run a representative sample on a candidate model? (Select two.)

  • A) Define the quality bar, latency tolerance, and expected volume of the workload.
  • B) Choose the lightest model that consistently meets the quality bar across the sample.
  • C) Pick a candidate model based on the requirements profile and known capabilities.
  • D) Retest the model choice whenever a new model version becomes available.
  • E) Get the production rollout plan signed off by the platform and security teams.

โœ” Answer: A, C

The sample test needs something to measure against and something to measure, so the requirements profile comes first and a candidate chosen from it comes second. Picking the lightest model that passes and retesting on new versions happen after the sample runs, and rollout sign-off comes after a model is confirmed.

Source: platform.claude.com/docs/en/about-claude/models/choosing-a-model

Q-D2-004Select 1Easy

You are evaluating the model-selection claims of a peer team: (1) models with heavier reasoning typically use more of the rate limit and run more slowly than lighter models on the same input; (2) evaluating a representative sample on the target workload is the right basis for confirming a model choice; (3) the most capable model is always the right choice, whatever the workload profile; (4) tiered routing can send routine traffic to a lighter model and keep a heavier model for traffic that needs its capability; (5) choosing a model by the most recently announced version is the right basis for production decisions. Which claims are generally true?

  • A) Claims 2, 4 and 5 are true, while claims 1 and 3 are not.
  • B) Claims 1 and 4 are true, while claims 2, 3 and 5 are not.
  • C) Claims 1, 2 and 4 are true, while claims 3 and 5 are not.
  • D) Claims 1, 2, 3 and 4 are true, while claim 5 is not.

โœ” Answer: C

Choosing a model means balancing capability, speed, and cost, and the docs say to test your use case thoroughly and evaluate whether performance meets your requirements before committing. Heavier models cost more time and capacity, so routing routine traffic to a lighter model is sound, while "always the most capable" and "newest announced" both skip the workload evaluation.

Source: platform.claude.com/docs/en/about-claude/models/choosing-a-model

Q-D2-013Select 1Medium

A legal-research agent must plan multi-step analyses over long documents, and answer quality matters far more than speed or cost. Which choice fits best?

  • A) Any tier at random, since every tier gives the same quality on complex reasoning.
  • B) The most capable model tier, accepting higher latency and price, confirmed by evaluations on the real task.
  • C) Whichever model was released most recently, without running any task-specific evaluation.
  • D) The smallest and fastest tier with effort set to low, to keep each multi-step analysis cheap and quick to return.

โœ” Answer: B

Choosing a model balances capability, speed and cost; when the quality of complex reasoning dominates, the most capable model is justified, and the choice should still be confirmed by testing on the actual workload. A newer release or a cheaper tier doesn't remove the need to evaluate.

Source: platform.claude.com/docs/en/about-claude/models/choosing-a-model

Q-D2-019Select 1Medium

A chat feature that answers simple account questions runs at high volume and must reply quickly. Which effort setting does the documentation suggest for this workload?

  • A) High effort, since complex reasoning quality matters more than speed for routine account questions.
  • B) Low effort, which is meant for high-volume or latency-sensitive workloads where faster turnaround matters.
  • C) No effort setting at all, because effort only changes coding tasks and is ignored in chat use.
  • D) Max effort, so that every simple question gets the deepest possible reasoning regardless of how many tokens it spends.

โœ” Answer: B

The effort guide recommends low effort for high-volume or latency-sensitive workloads, such as chat, where faster turnaround is the priority. High and max effort spend more tokens on deeper reasoning, which this workload doesn't need, and effort is not limited to coding.

Source: platform.claude.com/docs/en/build-with-claude/effort

Apply prompt engineering techniques (zero-shot, few-shot, chain-of-thought) (4)
Q-D2-002Select 1Medium

You are evaluating the prompting claims in a colleague's design document: (1) zero-shot is a suitable starting point for closed-set classification when the categories and their descriptions are given in the prompt; (2) a few-shot example set with exact field names anchors the output format on extraction tasks; (3) chain-of-thought should be the default for every task, whatever its complexity; (4) the best mitigation for leading-question framing is to ask for an even-handed comparison against stated criteria; (5) differences in behavior between model versions can be ignored once a prompt has been validated on one version. Which claims reflect sound practice?

  • A) Claims 1, 2 and 5 are sound, while claims 3 and 4 are not.
  • B) Claims 1, 2 and 4 are sound, while claims 3 and 5 are not.
  • C) Claims 1, 2, 3 and 4 are sound, while claim 5 is not.
  • D) Claims 2 and 4 are sound, while claims 1, 3 and 5 are not.

โœ” Answer: B

(inferred) Zero-shot is a sound baseline when the categories are well described, examples with exact field names anchor the output format, and asking for an even-handed comparison against stated criteria removes the bias a leading question builds in. Chain-of-thought adds tokens and latency, so it belongs on tasks that need multi-step reasoning, and prompts must be re-validated on each new model version because behavior changes between versions.

Source: platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices

Q-D2-008Select 1Easy

You are writing the prompt for a ticket-triage classifier that has thirty well-defined categories, each with a clear description in the prompt. Which technique is the most appropriate starting point?

  • A) A chain-of-thought prompt for a routing decision that needs no multi-step reasoning.
  • B) A zero-shot prompt that lists the categories with their descriptions and states the required output format.
  • C) A prompt-chaining setup that sends each ticket through a coarse grouping step before choosing the final category.
  • D) A prompt with no category descriptions that expects the model to infer the category set.

โœ” Answer: B

(inferred) With well-defined categories and clear descriptions, a clear and direct zero-shot prompt with an explicit output format is the simplest strong baseline; add examples or reasoning only if evaluation shows it falls short. Chain-of-thought and prompt chaining add tokens, calls and latency for a routing decision that a single clear prompt can handle.

Source: platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices

Q-D2-011Select 1Easy

You are adding few-shot examples to an extraction prompt. Which approach does the guidance recommend?

  • A) One long, detailed example that covers the most common case and nothing else.
  • B) Three to five relevant, varied examples wrapped in example tags so they stay separate from the instructions.
  • C) Twenty near-identical examples of the same case so that the output format is reinforced as strongly as possible.
  • D) Examples written straight into the instructions without any tags around them.

โœ” Answer: B

Examples should be relevant, diverse enough to cover edge cases, and wrapped in example tags so Claude can tell them apart from instructions; the guide suggests 3โ€“5 examples. Near-identical examples make Claude more likely to copy unintended patterns.

Source: platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices

Q-D2-017Select 1Medium

A financial-analysis assistant gets multi-step calculations wrong, and reviewers can't see how it reached its recommendations. Which change addresses both problems?

  • A) Ask for a shorter answer that contains only the final recommendation and no explanation of the steps.
  • B) Turn on extended thinking, or ask Claude to reason step by step before it gives the final answer.
  • C) Add more category labels to the output format so that answers are better organized.
  • D) Lower max_tokens so that every answer is forced to be concise and to the point.

โœ” Answer: B

Letting Claude think through a problem before answering improves performance on complex multi-step tasks, and the reasoning shows reviewers how the answer was reached. Shorter outputs and lower token limits take away the room needed for that reasoning.

Source: platform.claude.com/docs/en/build-with-claude/extended-thinking

Implement prompt reuse strategies (caching, modular prompts, Skills) (5)
Q-D2-005Select 1Medium

A technical team is debating whether to build a capability that generates regulatory filings from internal data as a Claude Skill or as an MCP server. The capability follows a fixed authoring procedure with embedded examples, needs no calls to live external systems, and must be portable across three Claude deployments: claude.ai, an internal API integration, and Claude Code. Which factor most strongly favors a Skill?

  • A) The capability is procedural knowledge and needs no live external system calls.
  • B) The capability has to query a live database for the most recent regulatory filings.
  • C) The capability must authenticate directly against the corporate identity provider.
  • D) The capability also has to be callable from a developer's command-line interface.

โœ” Answer: A

(inferred) Skills package procedural knowledge (instructions, examples, and resources) that Claude loads on demand, which fits a fixed authoring procedure that never touches a live system. Needing live data, identity-provider authentication, or a callable command interface points to an MCP server or another integration instead.

Source: platform.claude.com/docs/en/agents-and-tools/agent-skills/overview

Q-D2-006Select 2Medium

The compliance team has written a regulatory disclosure procedure that must be applied identically across customer service, sales, and onboarding workflows, and it changes four to six times a year when regulators publish updates. You are deciding how to package it for Claude across all three workflows. Which two design decisions should you include? (Select two.)

  • A) Package the procedure as a Claude Skill that the compliance team owns directly.
  • B) Have all three workflow integrations reference the same Claude Skill directly.
  • C) Keep the procedure in a shared retrieval corpus that all three workflows access.
  • D) Let each workflow team rewrite the procedure for its own context.
  • E) Embed the procedure text in each workflow's system prompt when integrating.

โœ” Answer: A, B

(inferred) One Skill owned by the compliance team is a single source of truth, and every workflow that references it picks up each of the four to six yearly regulatory updates without per-workflow edits. Copying the text into system prompts or letting each team rewrite it creates drifting copies that break the requirement to apply the procedure identically.

Source: platform.claude.com/docs/en/agents-and-tools/agent-skills/overview

Q-D2-007Select 1Medium

A document analysis service processes legal filings that average 80,000 tokens each, and attorneys query each filing about 14 times during a case, with the full filing resent on every query. The CFO wants lower per-query cost while preserving response quality, and the security officer requires that filing contents not be stored outside the organization's tenancy. Which optimization do you recommend?

  • A) Summarize each filing once at intake and run every later query against that summary.
  • B) Index the filings in a vector store and retrieve only the relevant passages for each query.
  • C) Cache the filing as the prompt prefix and reuse it across the 14 queries on each case.
  • D) Move the workload to a smaller Claude model to lower the per-token cost.

โœ” Answer: C

Prompt caching reuses the identical 80,000-token prefix at a fraction of the base input price while Claude still sees the whole filing, so quality is preserved; prompts and outputs are not stored, and the cache is held only in memory for its TTL, isolated by organization and workspace. Summaries, retrieved passages and a smaller model all cut cost by giving Claude less context or capability, which risks response quality.

Source: platform.claude.com/docs/en/build-with-claude/prompt-caching

Q-D2-012Select 2Medium

A chat app sends the same 12,000 tokens of tool definitions and system prompt on every turn. Which two statements about prompt caching are correct? (Select two.)

  • A) Prompt caching only works for requests sent through the Message Batches API.
  • B) The default cache lifetime is 5 minutes, and it is refreshed at no extra cost each time the cached content is used.
  • C) Up to 4 cache breakpoints can be set, for example to cache tools and the system prompt apart from changing context.
  • D) Cached content is kept permanently until someone in the organization deletes it.
  • E) Caching changes what the model sees, so cached responses can differ from uncached ones.

โœ” Answer: B, C

By default the cache lives for 5 minutes and is refreshed at no additional cost on each use (a 1-hour duration is also available), and up to 4 breakpoints let sections that change at different rates be cached separately. Caching does not change the content the model sees, and it works on ordinary Messages requests.

Source: platform.claude.com/docs/en/build-with-claude/prompt-caching

Q-D2-016Select 1Medium

A company has installed 40 Skills for its agents. Why doesn't installing that many Skills fill up the context window?

  • A) Skills run on a separate helper model whose context window is not counted against the agent.
  • B) Only the first ten Skills installed in an organization are ever loaded into any session.
  • C) Every Skill is compressed into a short summary, so its full text takes almost no tokens at all.
  • D) At startup only each Skill's name and description are loaded; the full instructions and files load when a Skill is relevant.

โœ” Answer: D

Skills use progressive disclosure: the metadata (name and description) is always loaded, the SKILL.md body loads when the Skill is triggered, and further resources load only as needed. Many Skills can therefore be installed with little context cost.

Source: platform.claude.com/docs/en/agents-and-tools/agent-skills/overview

Design system prompts, templates, and guardrails (4)
Q-D2-009Select 1Easy

You are reviewing a colleague's draft system prompt with contradictory instructions: one section says never to speculate beyond the supplied source, while another says to confidently fill in any gaps. Which response is most appropriate?

  • A) Add a priority-ordering instruction telling the model to weigh all available instructions and apply the most contextually appropriate one on each request.
  • B) Keep both contradictory instructions and add a third one telling the model to use its best judgment given the query's context.
  • C) Remove or reword the gap-filling instruction so the prompt consistently holds the model to source-supported content.
  • D) Keep both contradictory instructions and let the model choose which to follow on each request, accepting the inconsistent behavior that results.

โœ” Answer: C

(inferred) Claude follows clear, explicit instructions best, so a contradiction should be fixed at the source by keeping only the instruction that matches the intended behavior. A priority-ordering or best-judgment instruction sounds like a fix but still leaves the model choosing between conflicting rules on each request, so behavior stays unpredictable.

Source: platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices

Q-D2-014Select 1Medium

A prompt mixes instructions, a customer email and a policy excerpt in one block of text, and Claude sometimes treats sentences from the email as instructions. Which change best addresses this?

  • A) Delete the policy excerpt so that the prompt is shorter and easier for Claude to follow.
  • B) Move the customer email to the very start of the system prompt, above the instructions.
  • C) Rewrite all of the instructions in capital letters so that they clearly stand out from the surrounding email text.
  • D) Wrap the email and the policy in separate, clearly named XML tags and refer to those tags in the instructions.

โœ” Answer: D

XML tags help Claude parse prompts that mix instructions, context and examples without ambiguity, which reduces misinterpretation. Capital letters don't separate content types, and moving or removing context doesn't mark which text is data.

Source: platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices

Q-D2-018Select 2Easy

An extraction service must return JSON that downstream code can always parse. Which two techniques best guarantee valid output? (Select two.)

  • A) A polite request in the prompt asking the model to try to return JSON.
  • B) Structured outputs with a JSON schema, so that responses follow the schema.
  • C) A higher temperature, so that the model explores more output formats.
  • D) Removing the schema from the prompt to save input tokens on each call.
  • E) Strict tool use, so that tool inputs always match the tool's JSON Schema.

โœ” Answer: B, E

Structured outputs constrain Claude's responses to a specific schema, ensuring valid, parseable output, and strict tool use makes tool inputs always match the tool's JSON Schema. A polite request or a different temperature gives no guarantee.

Source: platform.claude.com/docs/en/build-with-claude/structured-outputs

Q-D2-020Select 1Easy

A contract-review assistant's tone and focus keep shifting between casual and overly general. Which simple system-prompt change does the prompting guide recommend first?

  • A) Raise the temperature so that the assistant's tone becomes more lively and varied.
  • B) Ask the model to answer in as few words as possible for every contract, without explaining any of its reasoning.
  • C) Remove the system prompt and put every instruction into the final user message instead.
  • D) Set a role in the system prompt, such as an experienced procurement lawyer, to focus behavior and tone.

โœ” Answer: D

Setting a role in the system prompt focuses Claude's behavior and tone for the use case, and even a single sentence makes a difference. Very short answers and a higher temperature don't give the assistant a consistent professional focus.

Source: platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices

Optimize context windows and manage token usage (3)
Q-D2-010Select 1Medium

A prompt contains three 30,000-token reports plus instructions and a question. Where should the long reports go?

  • A) Only in the system prompt, with the question repeated in front of each of the reports.
  • B) Spread across several separate user turns so that no single message is especially long.
  • C) At the very end of the prompt, after the question, so they are the last thing the model reads.
  • D) Near the top of the prompt, above the instructions and the question, each wrapped in its own document tags.

โœ” Answer: D

The prompting guide says to put long documents near the top, above the query, instructions and examples; queries at the end can improve response quality by up to 30 percent on complex multidocument inputs. Wrapping each document and its metadata in XML tags also helps.

Source: platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices

Q-D2-015Select 2Hard

After hundreds of tool calls, a long-running agent's context is full of stale tool results. Which two API features address this directly? (Select two.)

  • A) The Message Batches API, which removes the context window limit for long conversations.
  • B) A higher temperature, so that the model pays less attention to older content in the window.
  • C) Context editing, which clears old tool results from the conversation history as it grows.
  • D) Compaction, which summarizes older context once the conversation reaches a token threshold.
  • E) Structured outputs, which compress earlier tool results into a smaller JSON form.

โœ” Answer: C, D

Context editing clears selected content, such as old tool results, from the history as it grows, and compaction summarizes older context when the conversation reaches a token threshold. Temperature, batching and structured outputs do not reduce what is held in context.

Source: platform.claude.com/docs/en/build-with-claude/context-editing

Q-D2-021Select 2Medium

A team wants to check the size and likely cost of large requests before sending them. Which two statements about token counting are correct? (Select two.)

  • A) The count is exact for every model and is guaranteed to match billing.
  • B) Token counting only accepts requests that contain plain text and no tools.
  • C) The token counting endpoint counts a message's input tokens before the message is sent.
  • D) A token counting call stores the request so the next real call is cheaper.
  • E) The count is an estimate, and it does not apply prompt caching logic.

โœ” Answer: C, E

Token counting returns the number of input tokens in a message before you send it, which helps with cost and rate-limit planning; the result is an estimate, and prompt caching only happens during real message creation even if cache_control blocks are included. It does not store requests.

Source: platform.claude.com/docs/en/build-with-claude/token-counting

D3 Integration 30 questions ยท 19% of exam

Evaluate tool/agent configuration for capability bloat (5)
Q-D3-001Select 1Easy

You are reviewing a customer-support agent's configuration. Each candidate tool falls into one of four categories: (1) required to complete defined tasks, (2) frequently used and reduces hand-offs, (3) occasionally useful for unrelated work, (4) speculative future utility. Which categories should typically stay in the agent configuration?

  • A) Category 1 only, because least privilege means the smallest set that completes the defined tasks.
  • B) Categories 1, 2, and 3, because keeping occasionally useful tools saves reconfiguring the agent when new requests arrive.
  • C) All 4 categories, because broader tool access tends to help agent performance whether or not a tool maps to a defined task.
  • D) Categories 1 and 2 only, because they map to defined tasks and to the agent's regular hand-offs.

โœ” Answer: D

(inferred) An agent's tool set should cover its defined tasks plus tools used often enough to cut hand-offs; every extra tool adds selection ambiguity and token cost. Keeping all four categories looks safe but is exactly how capability bloat builds up, and category 1 alone is too narrow because frequently used tools earn their place by reducing hand-offs.

Source: platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools

Q-D3-005Select 1Medium

You are auditing a procurement-assistant agent whose job is to draft purchase requests for review. Its tools are: (1) a read-only catalog lookup tool returning vendor and SKU information, (2) an inbox-send tool that emails purchase requests straight to vendors, (3) a draft-write tool that creates purchase-request drafts in the review queue, (4) a production-database admin tool unrelated to procurement, and (5) a read-only policy-document tool returning the relevant procurement policies. Which tools should stay after a least-privilege audit?

  • A) Keep tools 1, 2, 3 and 5; remove only tool 4.
  • B) Keep tools 1 and 3; remove tools 2, 4 and 5.
  • C) Keep tools 1, 3, 4 and 5; remove only tool 2.
  • D) Keep tools 1, 3 and 5; remove tools 2 and 4.

โœ” Answer: D

(inferred) Least privilege keeps only what drafting for review requires: read-only lookup of the catalog and policies, and writing drafts to the review queue. Emailing vendors directly bypasses the review step, and the unrelated production-database admin tool grants broad power with no task need.

Source: code.claude.com/docs/en/agent-sdk/secure-deployment

Q-D3-010Select 2Medium

A managed agent deployment for claims triage has grown from 6 to 34 tools over 18 months, triage accuracy has dropped from 91 percent to 78 percent, and average tool selection latency has risen by 2.3 seconds. A junior engineer proposes putting a tool router agent in front of the current agent to filter the tool list for each request. Which two findings should you present to justify capability decomposition before adding the router? (Select two.)

  • A) The proposed router adds another model call to every incoming request.
  • B) Several tools have not been invoked in the most recent 90 days of traffic.
  • C) Tool descriptions in the agent's tool set overlap across multiple claim categories.
  • D) The 34 tools span four distinct claim workflow domains within the triage scope.
  • E) The router pattern is well documented in publicly available agent literature.

โœ” Answer: C, D

(inferred) Overlapping tool descriptions create selection ambiguity, which explains the accuracy and latency decline, and four distinct workflow domains give natural boundaries for splitting the agent into focused specialists. Unused tools argue for pruning rather than decomposition, and the router's extra model call is a cost of the router, not evidence that the capability set should be decomposed.

Source: platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools

Q-D3-015Select 1Medium

A Git integration exposes create_pr, review_pr, merge_pr, list_pr, close_pr and comment_pr as six separate tools, and the agent often picks the wrong one. What does the tool-definition guidance suggest?

  • A) Remove the tool descriptions to shorten the tool list the model has to read on each turn.
  • B) Give the tools short, generic names so that the model treats all of them the same way.
  • C) Add more narrowly named tools so that every possible pull request action gets its own dedicated option.
  • D) Consolidate the related operations into fewer tools, for example one tool with an action parameter.

โœ” Answer: D

The guidance is to consolidate related operations into fewer tools, such as a single tool with an action parameter; fewer, more capable tools reduce selection ambiguity. Removing descriptions or using generic names makes selection harder.

Source: platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools

Q-D3-023Select 2Medium

An internal support agent only answers order-status questions, but it was given write access to billing, HR and production deploy tools "in case it needs them". Which two changes reduce the risk? (Select two.)

  • A) Raise max_tokens so the agent can explain its reasoning before it uses a tool.
  • B) Limit the agent's tools to the read-only order-lookup tools that its task actually needs.
  • C) Add more tools so the agent has alternatives when a lookup returns an error.
  • D) Keep every tool but add a line to the system prompt asking the agent not to use them.
  • E) Scope the agent's credentials so that they cannot write to billing, HR or deploy systems.

โœ” Answer: B, E

Least privilege means giving an agent only the tools and permissions its task needs, enforced through configuration and credentials rather than prompt text. A prompt instruction can be overridden by prompt injection, and unused write tools widen the damage a compromised agent can do.

Source: code.claude.com/docs/en/agent-sdk/secure-deployment

Analyze authentication and authorization requirements to identify security gaps (6)
Q-D3-002Select 2Medium

A security audit finds two issues: (1) all end users share one API key, and (2) tool calls run without recording which user initiated them. Which two mitigations directly address these specific findings? (Select two.)

  • A) Add actor attribution to tool-call logs so every call records the identity of the initiating user.
  • B) Take credentials out of the prompt context and resolve them from a server-side secret store.
  • C) Enforce RBAC at the retrieval layer before content reaches the model context.
  • D) Replace the shared API key with per-user OAuth tokens that carry scope-restricted permissions.
  • E) Validate structured outputs against a schema before any downstream action runs.

โœ” Answer: A, D

(inferred) A shared key cannot tell users apart, so each user needs an individual identity (per-user OAuth tokens with scope-restricted permissions), and the tool-call log must record who initiated each call. Secret stores, retrieval-layer RBAC and output schema validation are sound controls, but none of them fixes the shared key or the missing attribution.

Source: modelcontextprotocol.io/specification/2026-07-28/basic/authorization/index

Q-D3-004Select 1Medium

You are configuring tool permissions for a Claude-based assistant whose defined responsibilities need read access to a knowledge base and write access to a draft queue, and nothing more. Which scoping design best applies least privilege?

  • A) Allow all tools with read permission globally and restrict only write permission to the draft-queue tool.
  • B) A per-role allow-list of exactly the read-knowledge-base and write-draft-queue tools, enforced at the orchestration layer.
  • C) Allow-list every read tool in the catalog globally and scope only the write-draft-queue tool to the assistant's role.
  • D) Scope the assistant to the knowledge-base and draft-queue tools with both read and write on each, for operational flexibility.

โœ” Answer: B

Least privilege means granting exactly the access the assistant's defined responsibilities need, enforced outside the model at the orchestration layer so the model cannot talk its way past it. The other options grant extra read access across the catalog or extra write access on the knowledge base.

Source: code.claude.com/docs/en/agent-sdk/secure-deployment

Q-D3-007Select 1Medium

You are a platform architect designing an internal Claude-based assistant that serves both finance analysts and external auditors, and each group may access only the documents its role permits. Where should role-based access control be enforced in the pipeline?

  • A) At the retrieval layer, before any role-restricted content reaches prompt construction or the model.
  • B) At the retrieval layer, but with one organization-wide access token shared by all roles instead of per-role scoping.
  • C) In the system prompt, as a natural-language instruction naming the access groups Claude should treat as unauthorized.
  • D) Once the response has been generated, by post-filtering content that should never have been retrieved.

โœ” Answer: A

(inferred) Enforcing access at the retrieval layer with per-role scoping means restricted content never reaches the prompt or the model. A system prompt instruction or a post-filter runs after the model has already seen the content, and a single shared token cannot tell the roles apart.

Source: code.claude.com/docs/en/agent-sdk/secure-deployment

Q-D3-012Select 2Medium

You are reviewing an integration specification for security gaps. Which two findings are valid security gaps in it? (Select two.)

  • A) Tool calls run server-side under a least-privilege service principal scoped to the requested action.
  • B) Per-user OAuth tokens are issued with scope-restricted permissions and refreshed within the active session.
  • C) Tool inputs and outputs are encrypted in transit with transport layer security between services.
  • D) Service credentials sit in the prompt context, where they can leak into logs and traces.
  • E) Role-based access control (RBAC) is enforced only at the response-rendering layer, after the model has accessed restricted data.

โœ” Answer: D, E

(inferred) Security gaps in an integration spec are the practices that expose credentials or delay access enforcement. Placing service credentials in the prompt context risks them leaking into logs and traces, and enforcing RBAC only at the response-rendering layer means the model has already accessed restricted data before any check occurs; least-privilege principals, scoped OAuth tokens and transport-layer encryption are controls, not gaps.

Source: code.claude.com/docs/en/agent-sdk/secure-deployment

Q-D3-018Select 2Hard

You are reviewing a remote MCP server that calls a downstream CRM API on behalf of its users. Which two practices does the MCP authorization guidance require? (Select two.)

  • A) Write the full client tokens to the application logs so that failures are easier to debug.
  • B) Forward the client's token unchanged to the CRM API so that users avoid extra sign-ins.
  • C) Accept any valid token from the identity provider, whatever audience it was issued for.
  • D) Reject access tokens that were not issued for this MCP server, by validating the token audience.
  • E) Get a separate token for the CRM API instead of passing the client's token through to it.

โœ” Answer: D, E

An MCP server must reject tokens that weren't issued for it (the audience, or aud claim), and a server that calls other APIs must get a separate token for each of them. Token passthrough is a named anti-pattern because it bypasses the downstream API's controls and breaks the audit trail.

Source: modelcontextprotocol.io/docs/2026-07-28/tutorials/security/authorization

Q-D3-029Select 1Medium

A company's CI pipelines call the Claude API with a long-lived API key that is stored in the secrets of many repositories. Which change best closes this gap?

  • A) Use Workload Identity Federation, so pipelines authenticate with short-lived tokens from the company's identity provider.
  • B) Share a single key across all workspaces, so that usage is easier to track across the whole company.
  • C) Copy the same API key onto every developer's laptop, so the pipelines and the people all use one shared credential.
  • D) Put the API key straight into the pipeline scripts, so that it is easier to find and rotate in one place.

โœ” Answer: A

Workload Identity Federation lets workloads authenticate to the Claude API with short-lived OIDC tokens from your own identity provider instead of long-lived static API keys, which removes the stored secret. Copying, embedding or sharing a key spreads it further.

Source: platform.claude.com/docs/en/manage-claude/workload-identity-federation

Analyze observability challenges and select monitoring strategies at scale (2)
Q-D3-003Select 2Medium

You are reviewing the instrumentation of a multi-agent system. Which two findings are valid observability gaps? (Select two.)

  • A) The model identity and version for each turn are not recorded with the turn artifacts.
  • B) Request-scoped correlation identifiers are not propagated across agent and tool calls.
  • C) Latency and token usage for every span are emitted to the central metrics pipeline.
  • D) Trace spans for every agent step are exported to the shared distributed-tracing backend.
  • E) Tool-call payloads and outcomes are recorded, with redaction applied to known sensitive fields.

โœ” Answer: A, B

(inferred) Without the model name and version on each turn, behavior changes can't be tied to a model upgrade, and without correlation identifiers propagating across agent and tool calls a single request can't be traced end to end. Emitting latency and token metrics, exporting trace spans, and recording redacted tool payloads are working observability controls, not gaps.

Source: platform.claude.com/docs/en/manage-claude/opentelemetry

Q-D3-022Select 1Medium

An organization rolls Claude Code out to 300 developers and needs usage, cost and tool-activity data in its existing observability stack. What should it use?

  • A) Claude Code's OpenTelemetry support, exporting metrics and events to the existing collector.
  • B) The /cost command, run by each developer at the end of every working session and collected in a shared folder.
  • C) Screenshots of developer terminals collected and reviewed once a month.
  • D) A weekly survey in which developers estimate their own usage and spending.

โœ” Answer: A

Claude Code can export OpenTelemetry metrics and events to standard backends, which gives central monitoring of usage, cost and tool activity across a fleet. Per-session /cost checks, surveys and screenshots don't scale and can't be aggregated reliably.

Source: code.claude.com/docs/en/monitoring-usage

Design a RAG pipeline with appropriate chunking and indexing strategies (3)
Q-D3-006Select 1Medium

You are matching six chunking strategies to the corpus type each suits best (Long Structured Documents, Heterogeneous Short Records, or Code or Hierarchical Specs): (1) function-level or section-level chunking for code modules, (2) tree-aware chunking that follows code or specification hierarchy, (3) per-record chunking where each record is one chunk, (4) semantic chunking along clause or paragraph boundaries, (5) fixed-size chunking with overlap for short records of similar length, and (6) hierarchical chunking that mirrors document section structure. Which matching is correct?

  • A) Strategies 1 and 2 fit Code or Hierarchical Specs, 3 and 6 fit Heterogeneous Short Records, and 4 and 5 fit Long Structured Documents.
  • B) Strategies 1 and 2 fit Code or Hierarchical Specs, 3 and 5 fit Heterogeneous Short Records, and 4 and 6 fit Long Structured Documents.
  • C) Strategies 1, 2 and 6 fit Code or Hierarchical Specs, 3 and 5 fit Heterogeneous Short Records, and 4 fits Long Structured Documents.
  • D) Strategy 1 fits Code or Hierarchical Specs, 2, 3 and 5 fit Heterogeneous Short Records, and 4 and 6 fit Long Structured Documents.

โœ” Answer: B

(inferred) A good chunk boundary follows the corpus's natural units: functions and the code or spec tree for code, whole records or small fixed windows for short records, and clauses, paragraphs and sections for long structured documents. Hierarchical chunking that mirrors document sections is the easiest to misplace with code, but it follows document headings, not a code or specification tree.

Source: www.anthropic.com/engineering/contextual-retrieval

Q-D3-019Select 1Medium

A RAG system retrieves a chunk saying "revenue grew 3% over the previous quarter", but the chunk does not say which company or quarter it refers to. Which technique targets this problem?

  • A) Contextual Retrieval, which prepends a short chunk-specific context, generated from the whole document, before embedding and indexing.
  • B) Dropping embeddings in favor of keyword search alone, so that exact numbers match reliably.
  • C) Removing all overlap between neighboring chunks so that duplicate text is never retrieved.
  • D) Smaller chunks of a single sentence each, so that every chunk carries exactly one precise fact.

โœ” Answer: A

Contextual Retrieval adds chunk-specific explanatory context to each chunk before embedding and BM25 indexing, fixing chunks that lose their meaning out of context; it cut failed retrievals by 49%, and by 67% with reranking. Smaller chunks lose even more context.

Source: www.anthropic.com/engineering/contextual-retrieval

Q-D3-021Select 1Easy

A team's whole knowledge base is about 150,000 tokens and is queried often. What does Anthropic suggest before they build a RAG pipeline?

  • A) Put the entire knowledge base in the prompt and use prompt caching to keep it fast and affordable.
  • B) Build a vector database in every case, because retrieval is required whatever the size of the corpus is.
  • C) Fine-tune a model on the knowledge base so that no documents need to be sent at query time.
  • D) Split the knowledge base across several agents, with each agent holding one part of it.

โœ” Answer: A

For knowledge bases smaller than about 200,000 tokens (around 500 pages), the whole base can go into the prompt, and prompt caching makes that faster and cheaper. RAG pays off for larger bases.

Source: www.anthropic.com/engineering/contextual-retrieval

Evaluate connection protocols and select the appropriate integration mechanism (MCP, API/CLI, agent-to-agent) (4)
Q-D3-008Select 2Medium

You are compiling the factors that should drive the choice among Model Context Protocol (MCP), direct API integration, and agent-to-agent handoff. Which two factors belong on the list? (Select two.)

  • A) Whether the integration must be portable across several AI clients in the ecosystem.
  • B) Whether the underlying transport encrypts traffic in transit between the integrated services.
  • C) Whether the interaction is stateless and latency-sensitive, or stateful and longer-running.
  • D) Whether the organization has a documented naming convention for its internal API endpoints.
  • E) Whether the team already has implementation experience with any of the candidate protocols.

โœ” Answer: A, C

(inferred) The interaction profile separates the options: a stateless, latency-sensitive call suits a direct API, while stateful, longer-running work suits an agent-to-agent handoff. Portability matters because MCP is an open protocol supported across a wide range of clients, so it wins when one integration must serve many AI clients; encryption, naming conventions and team experience apply to every option equally and so don't decide between them.

Source: modelcontextprotocol.io/docs/getting-started/intro

Q-D3-017Select 1Easy

A developer tool must connect to an MCP server running as a local process on the same machine, and another team wants to share one hosted MCP server with many remote clients. Which transports fit?

  • A) Stdio for both servers, with the hosted one reached through a shared network drive.
  • B) Streamable HTTP for both servers, since stdio cannot be used for local processes.
  • C) Streamable HTTP for the local server and stdio for the hosted, shared server.
  • D) Stdio for the local server and Streamable HTTP for the hosted, shared server.

โœ” Answer: D

The stdio transport uses standard input and output between local processes on the same machine with no network overhead, while Streamable HTTP enables remote server communication and supports standard HTTP authentication such as bearer tokens.

Source: modelcontextprotocol.io/docs/2026-07-28/learn/architecture

Q-D3-024Select 1Medium

A team wants one integration with its ticketing system that works in Claude Code, in Claude Desktop and in its own agents built on the API. Which mechanism fits best?

  • A) A separate custom plugin written and maintained for each of the three applications that need the tickets.
  • B) An MCP server for the ticketing system, which any MCP-compatible client can connect to.
  • C) A shared spreadsheet export of tickets that each agent downloads and reads.
  • D) A nightly job that copies ticket data into every application's system prompt.

โœ” Answer: B

MCP is an open standard for connecting AI applications to external systems, so one server can be used by any MCP client, including Claude Code, Claude Desktop and agents built on the API. Per-app plugins duplicate work, and copied snapshots go stale.

Source: modelcontextprotocol.io/docs/getting-started/intro

Q-D3-027Select 1Medium

You are designing an MCP server for a product catalog: users pick a "Compare two products" workflow from a menu, the model calls a stock-lookup function on its own, and the app attaches catalog files as context. Which mapping of MCP primitives is correct?

  • A) The compare workflow as a tool, the stock lookup as a resource, and the catalog files as prompts.
  • B) The compare workflow as a resource, the stock lookup as a prompt, and the catalog files as tools.
  • C) The compare workflow as a tool, the stock lookup as a tool, and the catalog files as more tools.
  • D) The compare workflow as a prompt, the stock lookup as a tool, and the catalog files as resources.

โœ” Answer: D

In MCP, prompts are user-controlled templates that need explicit invocation, tools are model-controlled functions the model can discover and call, and resources are file-like data that clients read and provide as context.

Source: modelcontextprotocol.io/docs/2026-07-28/learn/server-concepts

Evaluate progressive discovery vs. monolithic context strategy (3)
Q-D3-009Select 1Easy

You are a solution architect designing a Claude-based assistant with access to 60 internal tools across several business domains, and loading every tool definition on every request raises token usage and time to first response. Which design pattern best solves this without giving up capability breadth?

  • A) Sort the 60 tools into five fixed categories and load one category per request using a static mapping from task type to category.
  • B) Raise the maximum context length so all 60 tool definitions fit in a single request within the limit.
  • C) Use a separate model call to condense all 60 tool definitions into a compact index prepended to each user turn for tool selection.
  • D) Apply progressive tool discovery: expose a curated initial subset and load further tools on demand as the task requires.

โœ” Answer: D

Progressive tool discovery keeps the full catalog available but loads only the definitions a task needs, which is what the tool search tool does for large tool libraries. A longer context keeps the breadth but leaves the token cost and latency problem unsolved, and a static category mapping gives up capability whenever a task falls outside its category.

Source: platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool

Q-D3-014Select 1Medium

An agent uses the same six small tools on every request, and their definitions never change. A colleague proposes adding the tool search tool so that definitions load on demand. Which approach fits best?

  • A) Use the tool search tool, because deferring tool definitions is the better choice for every agent, whatever its size.
  • B) Split the six tools across six separate agents, so that each agent only ever sees a single tool definition.
  • C) Remove the tool descriptions and keep only the names, so the definitions use fewer tokens on each call.
  • D) Load the six definitions up front and cache them with the system prompt, since search would only add an extra step.

โœ” Answer: D

(inferred) Tool search is built for hundreds or thousands of tools, where loading every definition costs context and selection accuracy drops beyond 30โ€“50 tools; a handful of stable tools used on every request is simpler to load up front, and prompt caching makes the repeated definitions cheap. Splitting tools across agents or stripping descriptions makes selection worse.

Source: platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool

Q-D3-026Select 1Hard

An agent's system prompt holds a 90,000-token dump of every internal policy, yet most tasks need only one or two policies. Which strategy best balances accuracy and cost?

  • A) Keep short policy summaries in context and let the agent fetch a policy's full text just in time when it becomes relevant.
  • B) Keep the full dump and add instructions telling the model to focus only on the policies that matter for each task.
  • C) Remove the policies entirely and rely on the model's general knowledge of common company policy.
  • D) Include the dump twice, so that the most important policies get more of the model's attention.

โœ” Answer: A

Context engineering favors lightweight references in context with data loaded just in time through tools, because context is a finite resource and large amounts of irrelevant text dilute attention. Removing policies loses accuracy, and repeating them adds cost.

Source: www.anthropic.com/engineering/effective-context-engineering-for-ai-agents

Evaluate accuracy-latency trade-offs and justify configuration decisions (5)
Q-D3-011Select 1Medium

You are comparing two configurations of an internal compliance Q&A assistant. Configuration X lowers top-k retrieval and serves with a lighter model, cutting p95 latency by 38 percent at a measured 2 percent drop on the accuracy benchmark. Configuration Y keeps top-k and the heavier model, with p95 latency unchanged and no measurable change in accuracy. The deployment's stated priorities are accuracy first, latency second. Which configuration is the better recommendation?

  • A) Configuration X, because lower latency generally matters more than accuracy, regardless of this deployment's stated priorities.
  • B) Configuration X, because a 38 percent latency gain outweighs a 2 percent accuracy loss as a general rule for compliance deployments.
  • C) Configuration Y, because this deployment ranks accuracy first and Configuration X lowers measured accuracy.
  • D) Configuration X, because a 2 percent accuracy drop is within normal benchmark variance and is not a meaningful regression here.

โœ” Answer: C

(inferred) A configuration decision is justified against the deployment's own stated priorities, and with accuracy ranked first, a measured accuracy drop loses to a configuration with none however large the latency gain. Calling the drop benchmark variance is an unsupported assumption, and "latency matters more" contradicts the stated priorities.

Source: platform.claude.com/docs/en/about-claude/models/choosing-a-model

Q-D3-013Select 1Medium

You are operating an interactive assistant whose main performance constraint is per-turn latency, while quality on routine turns is already acceptable. Which configuration change most directly improves latency without disproportionately hurting quality?

  • A) Precompute and cache retrieval embeddings offline, leaving retrieval depth and model tier as they are.
  • B) Use a smaller model on every turn instead of prompt caching, whatever the effect on quality.
  • C) Cache the whole corpus in memory ahead of each request so retrieval work is skipped on every turn.
  • D) Cut retrieval depth to the top-k passages that historically cover the answer, and cache the stable system-prompt content.

โœ” Answer: D

(inferred) Trimming retrieval to the passages that historically cover the answer shrinks the tokens processed on each turn, and caching the stable system-prompt content avoids reprocessing it, so latency drops while quality on routine turns is protected. Offline embeddings leave query-time retrieval depth and model tier unchanged, a smaller model on every turn gives up quality, and caching the whole corpus is not a prompt-caching technique.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-latency

Q-D3-016Select 1Hard

An agent calls a sales API 200 times to compute one regional total, and each raw result is added to its context, making the task slow and expensive. Which feature best addresses this?

  • A) A model with a larger context window, so that all of the raw results fit without being truncated.
  • B) Programmatic tool calling, where Claude writes code that calls the tool and only the final output enters context.
  • C) Extended thinking, so that the model reasons carefully over each raw result before moving on.
  • D) Parallel tool use, so that all 200 raw results come back to the model together in a single turn.

โœ” Answer: B

With programmatic tool calling, results from calls made in code are not added to Claude's context, only the final output is, and filtering and aggregation happen in code; this cuts tokens and round trips. Parallel calls and bigger windows still put every raw result into context.

Source: platform.claude.com/docs/en/agents-and-tools/tool-use/programmatic-tool-calling

Q-D3-025Select 2Easy

A chat assistant feels slow because users see nothing until the full answer is ready. Which two changes improve how fast it feels? (Select two.)

  • A) Stream the response so that text appears while it is being generated.
  • B) Add more few-shot examples to the prompt on every request.
  • C) Raise max_tokens to the highest value the model allows.
  • D) Use a faster model such as Claude Haiku where evaluation shows quality holds.
  • E) Turn on extended thinking with a large thinking budget.

โœ” Answer: A, D

The latency guide recommends choosing a faster model, trimming prompt and output tokens, and streaming responses so output starts appearing sooner. More examples and thinking add tokens and time.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-latency

Q-D3-030Select 1Medium

For one request, an agent must look up the weather, a flight's status and hotel availability, and the three lookups don't depend on each other. How can the design cut latency?

  • A) Combine the three APIs into one tool that is then called three times in a row, one call after another.
  • B) Let Claude call the three tools in parallel in one response and send all the results back together.
  • C) Force exactly one tool call per turn, so that each result can be checked by the model before the next lookup starts.
  • D) Run each lookup in a separate conversation and merge the three answers by hand afterward.

โœ” Answer: B

Claude can make parallel tool calls when a request benefits from several tools, and all the tool results then go back in a single user message, which saves round trips when the calls are independent. One call per turn adds a model round trip for every lookup.

Source: platform.claude.com/docs/en/agents-and-tools/tool-use/parallel-tool-use

Apply retrieval strategies matched to data shape and query pattern (2)
Q-D3-020Select 2Medium

Engineers search a knowledge base with exact queries such as "error TS-4471 on checkout" and broad ones such as "why do payments fail at night". Which two retrieval components should the system combine? (Select two.)

  • A) BM25 lexical search, which finds exact identifiers such as error codes.
  • B) Semantic embeddings, which match the meaning of broad natural-language questions.
  • C) A length filter that only returns the longest documents in the corpus.
  • D) Random sampling of documents to add variety to the retrieved results.
  • E) A date filter that only returns documents edited during the last seven days.

โœ” Answer: A, B

Embeddings capture semantic meaning but can miss exact matches such as error codes, while BM25 finds precise lexical matches; combining the two covers both query patterns. Date, length and random filters don't match either kind of query.

Source: www.anthropic.com/engineering/contextual-retrieval

Q-D3-028Select 2Hard

A RAG pipeline finds the right document somewhere in its top 150 results, but often not in the top 5 that are passed to Claude. Which two changes improve what Claude actually sees? (Select two.)

  • A) Shrink every chunk to a single sentence so that more chunks fit into the top 5 results.
  • B) Retrieve a larger candidate set, rerank it, and pass only the top-scoring chunks to Claude.
  • C) Pass all 150 results to Claude on every query so the right document is always included.
  • D) Add contextual embeddings and contextual BM25 so each chunk carries its document's context.
  • E) Turn off BM25 so that semantic similarity alone decides the ranking of the results.

โœ” Answer: B, D

In Anthropic's tests, contextual embeddings plus contextual BM25 cut failed retrievals by 49%, and adding a reranking step that scores a larger candidate set and keeps the best chunks raised that to 67%. Passing every result adds cost and noise, and single-sentence chunks lose context.

Source: www.anthropic.com/engineering/contextual-retrieval

D4 Evaluation, Testing & Optimization 25 questions ยท 16% of exam

Design evaluation datasets and test frameworks using mixed methodologies (6)
Q-D4-001Select 2Medium

You are building an evaluation pipeline for a Claude-based deployment and must finish the specification steps before running the deployment against the dataset. Which two steps must be done BEFORE the deployment is run against the evaluation dataset? (Select two.)

  • A) Publish the aggregated metrics to a dashboard and gate releases on threshold checks.
  • B) Go through failure cases with subject matter experts to refine the scoring rubric.
  • C) Score the deployment's outputs against the reference labels and aggregate the metrics.
  • D) Define the metrics and slices the framework will report on across representative, edge, and adversarial cases.
  • E) Curate and label the evaluation dataset so it matches the defined slices.

โœ” Answer: D, E

(inferred) Running the deployment against a dataset needs two things to exist first: the metrics and slices that say what will be measured, and a dataset curated and labeled to match those slices. Scoring, aggregating, publishing to a dashboard and rubric refinement from failure cases can only happen after the run has produced outputs.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D4-004Select 1Easy

You are assessing a Claude-based system whose main risk is silent quality drift in safety-relevant outputs after a model-version upgrade. Which assessment activity most directly addresses this risk?

  • A) Refresh the adversarial evaluation set before each upgrade with newly written inputs so scoring reflects current threat patterns.
  • B) Instrument the production path to capture user reports and flagged outputs, so safety regressions are detected after each upgrade.
  • C) Maintain an adversarial evaluation set with version-attributed scoring, so each upgrade is measured against the same set before promotion.
  • D) Expand the adversarial evaluation set after each upgrade using cases drawn from the newest version's observed failure modes.

โœ” Answer: C

Drift can only be seen by comparing versions on the same task-specific inputs, including edge cases, so a fixed adversarial set scored per version catches regressions before promotion. Refreshing or expanding the set on every upgrade changes what is being measured, so score differences can't be attributed to the model, and production reports only surface regressions after users have seen them.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D4-006Select 2Medium

You are designing a test strategy for a Claude-based pipeline that handles sensitive financial data. Which two test types should be prioritized to cover both safety under attack and cross-component correctness? (Select two.)

  • A) Unit tests that target only individual prompt-template rendering logic.
  • B) Regression tests run against a stable reference set of previously known good outputs.
  • C) Smoke tests that verify core paths after each deployment.
  • D) Integration tests that check end-to-end pipeline behavior across all components.
  • E) Adversarial tests built on prompt-injection and malformed-input cases.

โœ” Answer: D, E

(inferred) Adversarial tests with prompt-injection and malformed inputs are the ones that probe safety under attack, and integration tests are the ones that check behavior across all components end to end. Regression and smoke tests are useful, but they only confirm that known paths still work, so neither covers attack resistance or cross-component correctness.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks

Q-D4-008Select 1Easy

After a prompt template update, several test cases that used to pass now produce unexpected outputs. Which test type is built specifically to detect this kind of failure?

  • A) Adversarial tests that probe for prompt-injection vulnerabilities instead of comparing behavior with a known-good baseline.
  • B) Smoke tests that confirm the system is broadly available after the change.
  • C) Regression tests scored against a stable reference set of known-good behavior from earlier versions.
  • D) Integration tests that validate cross-component pipeline behavior instead of comparing individual outputs with a known-good reference.

โœ” Answer: C

(inferred) A regression is a change that breaks behavior that used to work, and regression tests catch it by scoring each change against the same known-good reference set. Integration tests check how components work together, not whether a single template change altered previously correct outputs.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D4-012Select 2Easy

You are designing an evaluation set for a sentiment classifier. Which two practices match Anthropic's guidance? (Select two.)

  • A) Structure test questions so grading can be automated, for example by exact match or an LLM grader.
  • B) Favor a small set of hand-graded cases over any larger automatically graded set.
  • C) Write the test cases after launch, once users have started reporting problems.
  • D) Use only typical inputs and leave out ambiguous or unusual edge cases.
  • E) Favor volume: more automatically graded cases beat fewer carefully hand-graded ones.

โœ” Answer: A, E

The guide says to automate grading where possible and to prioritize volume over quality, because more automatically graded questions beat fewer hand-graded ones; it also stresses including edge cases. Waiting for user reports means testing in production.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D4-023Select 1Easy

A ticket classifier must output exactly one of twelve category labels, and every test case has a known correct label. Which grading method fits best?

  • A) A satisfaction survey sent to the agents who later receive the tickets.
  • B) Code-based grading, using an exact match against the golden label.
  • C) Human grading, with two independent reviewers checking every output.
  • D) LLM-based grading, using a detailed rubric for each of the twelve labels.

โœ” Answer: B

The guide says to choose the fastest, most reliable, most scalable grading method, and code-based grading such as exact match is the fastest and most reliable when the answer is a fixed label. LLM and human grading are for judgments that need nuance.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Define evaluation metrics (accuracy, latency, cost, safety, security) (5)
Q-D4-002Select 2Medium

A pilot AI assistant for procurement specialists shows 89 percent first-response acceptance, but follow-up surveys show that specialists often override its vendor recommendations after weighing criteria it never considered. The pilot owner wants to ship as is because acceptance is strong. Which two discernment-competency observations should you raise BEFORE approving the launch? (Select two.)

  • A) The survey response rate may not statistically represent all of the specialists.
  • B) The criteria the assistant never considered point to a direct scope gap in its input space.
  • C) Acceptance does not measure whether recommendations are actually right once specialists review them.
  • D) The acceptance rate together with the pilot's sample size is enough evidence to proceed without further review.
  • E) The pilot was probably too short to establish reliability across a full year.

โœ” Answer: B, C

(inferred) First-response acceptance measures whether users took the answer, not whether it was right, and the overrides show it often wasn't; the criteria specialists used that the assistant never saw point to a gap in what the assistant is given. Survey representativeness and pilot length are general study caveats, but the survey evidence already points directly at the metric and scope problems.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D4-009Select 2Medium

A Claude architect at a health services organization is choosing evaluation metrics for a clinical-summary pipeline that must stay within a per-query cost ceiling and must never expose patient data to unauthorized roles. Which two metrics directly address these requirements? (Select two.)

  • A) Response latency at the 95th percentile over a one-week sample window.
  • B) The role-based access-control enforcement rate, measured on a red-team dataset.
  • C) Throughput, measured as successful requests processed per minute.
  • D) The per-query token cost, measured against the defined cost ceiling.
  • E) BLEU score computed against a human-annotated set of reference summaries.

โœ” Answer: B, D

(inferred) A metric must map to a stated requirement: per-query token cost against the ceiling covers the cost requirement, and an access-control enforcement rate measured on a red-team dataset covers the safety and security requirement about unauthorized roles. Latency, throughput and BLEU measure speed, volume and text overlap, none of which the two requirements mention.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D4-013Select 1Medium

A legal-summary pipeline is judged on whether summaries capture the key points, even when the wording differs from the reference. Which grading method fits best at scale?

  • A) Exact string match against the reference summary written for each test case.
  • B) Counting how many words each summary has against a target word count.
  • C) Human grading of every summary in every evaluation run, with two reviewers checking each summary before release.
  • D) LLM-based grading against a clear rubric, spot-checked periodically against human judgment.

โœ” Answer: D

An LLM grader with a rubric can judge whether meaning is captured when wording varies, and it scales far better than human grading. Exact match fails on reworded but correct summaries, and word counts don't measure quality.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D4-019Select 1Easy

A support chatbot's success criterion currently reads "the bot should be good". Which rewrite matches the guidance on success criteria?

  • A) The bot should always run on the newest and most capable model available.
  • B) Customers should generally like the bot and feel happy after talking to it.
  • C) At least 90% of responses rated relevant by an LLM grader on a 500-conversation test set.
  • D) The bot should be really good at helping customers with all of their questions, every single time.

โœ” Answer: C

Good success criteria are specific, measurable, achievable and relevant, with a numeric target on a defined test set. Vague goals such as "good" or "liked", or a model choice, can't be measured as outcomes.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D4-024Select 2Medium

You are setting up an LLM grader for answers that need judgment. Which two practices does the evaluation guide recommend? (Select two.)

  • A) Reuse the exact prompt that produced the answer as the grading prompt as well.
  • B) Ask the grader for a free-form paragraph of impressions, with no score or label.
  • C) Skip any reliability check, because LLM graders are accurate from the start.
  • D) Give the grader a detailed, clear rubric that states exactly what counts as correct.
  • E) Use a grader with thinking turned on, so that it reasons before it produces a score.

โœ” Answer: D, E

The guide's tips for LLM-based grading are detailed, clear rubrics, empirical or specific outputs, and encouraging reasoning by using a grader with thinking on before it scores. Free-form impressions are hard to assess quickly and at scale, and an LLM grader should be tested for reliability before it is scaled up.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Monitor system performance using logging and observability tools (3)
Q-D4-003Select 2Medium

You are rolling out monitoring for a Claude-based deployment and must finish the specification steps before instrumenting it. Which two steps must be done BEFORE instrumenting the deployment to emit metrics and traces? (Select two.)

  • A) Tune alert thresholds to observed normal-state distributions to cut false positives.
  • B) Define the metrics and slices the deployment will monitor across normal and adversarial traffic.
  • C) Build dashboards that show metrics across slices at the cadence the team works to.
  • D) Define the service-level objectives (SLOs) and error budgets the deployment will be held to.
  • E) Write up the dashboards, alerts, and runbooks for the on-call rotation that will respond.

โœ” Answer: B, D

(inferred) Instrumenting a deployment to emit metrics and traces needs the measurement plan and the accountability targets defined first. The metrics and slices across normal and adversarial traffic, and the SLOs and error budgets the deployment is held to, both have to exist before instrumentation is built to serve them; threshold tuning, dashboards and runbooks all depend on data that instrumentation produces.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D4-017Select 1Medium

After turning on prompt caching, the team wants to confirm that caching actually works in production. What should it monitor?

  • A) The stop_reason value returned on each response, compared week over week.
  • B) The average length of the final responses before and after caching was turned on, compared per endpoint.
  • C) The cache_read_input_tokens and cache_creation_input_tokens values in each response's usage data.
  • D) The number of distinct users who sign in to the application each day.

โœ” Answer: C

The usage data reports cache_creation_input_tokens and cache_read_input_tokens, so cache reads rising relative to writes shows that requests are hitting the cache. Response length, sign-ins and stop reasons don't show cache behavior.

Source: platform.claude.com/docs/en/build-with-claude/prompt-caching

Q-D4-022Select 1Medium

A production agent sometimes takes the wrong actions, but the logs only contain its final answers. Which logging change most helps diagnosis?

  • A) Log the final answer twice in separate systems so that no answer is ever lost.
  • B) Trace every step, including prompts, tool calls with their inputs and results, and decisions, linked by a request ID.
  • C) Turn off logging for agent runs to lower latency, and review answers by sampling users.
  • D) Log only the errors returned by the API, since successful calls can't explain a wrong action.

โœ” Answer: B

(inferred) Agent failures come from a chain of decisions, so step-level traces of tool calls, inputs, results and decisions show where a run went wrong; final answers or API errors alone hide the path. Anthropic's multi-agent work notes that full production tracing was needed to diagnose why agents failed.

Source: www.anthropic.com/engineering/multi-agent-research-system

Optimize token usage, latency, and cost-performance trade-offs (5)
Q-D4-005Select 2Easy

A platform team needs to lower per-query cost and p95 latency for a high-volume Claude pipeline without hurting output quality on the core use case. Which two optimizations directly improve both cost and latency at once? (Select two.)

  • A) Raise max_tokens to cut how often truncated responses force follow-up calls.
  • B) Add more few-shot examples to the system prompt on every request.
  • C) Route straightforward query types to a smaller, faster Claude model and keep the full model for complex cases.
  • D) Turn on prompt caching for the static system-prompt prefix to cut billable input tokens on repeated calls.
  • E) Add a retrieval step that pulls the full source corpus into the context window before generation.

โœ” Answer: C, D

Prompt caching cuts both cost and latency on repeated prefixes, and choosing a faster model such as Haiku for straightforward queries is one of the most direct ways to reduce latency while also lowering the per-token price. Raising max_tokens, adding few-shot examples or loading the full corpus all increase the tokens processed, which raises cost and latency.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-latency

Q-D4-007Select 1Medium

You are looking for the highest-impact optimization for a deployment whose token cost is dominated by a long, repeated system prompt and a large retrieved context on every request. Which optimization most directly targets the dominant cost driver?

  • A) Send simpler requests to a smaller model and keep the larger model for cases a lightweight classifier flags as complex.
  • B) Batch requests so several queries share one call and the system prompt is sent once for the whole group.
  • C) Compress the system prompt by rewording instructions more concisely and dropping examples that overlap.
  • D) Move the long, repeated system prompt into a cacheable prefix, and trim the retrieved context down to the spans relevant to each query.

โœ” Answer: D

(inferred) The cost is driven by repeated input tokens, so a cacheable prefix lets the repeated system prompt be reused at a fraction of the base input price, and trimming retrieved context to the relevant spans cuts the other large input. Model routing, batching and prompt rewording each go after smaller levers than the two dominant drivers.

Source: platform.claude.com/docs/en/build-with-claude/prompt-caching

Q-D4-011Select 2Hard

A revenue projection assistant has overshot its monthly cost target by 38 percent. Profiling shows three contributors: a 6,000-token policy preamble repeated on every call (45 percent of cost), retrieval of historical sales chunks averaging 3,000 tokens per call (30 percent), and inference on a flagship-tier model (25 percent). Stakeholders require projection accuracy to stay unchanged. Which two optimizations should you sequence first to cut cost without affecting accuracy? (Select two.)

  • A) Turn on prompt caching for the static policy preamble across the recurring calls.
  • B) Trim the policy preamble by removing non-essential clauses from the prompt.
  • C) Cut the number of historical sales chunks retrieved on each query run.
  • D) Move the workload to a smaller, faster Claude model tier for all queries.
  • E) Cache the common retrieved sales chunks that many of the daily queries access.

โœ” Answer: A, E

(inferred) The preamble and the retrieved chunks are the largest cost drivers and both are repeated content, so caching them cuts their cost while Claude still sees exactly the same input. Truncating the preamble, retrieving fewer chunks or moving to a smaller tier changes what Claude sees or how capable it is, which puts the unchanged-accuracy requirement at risk.

Source: platform.claude.com/docs/en/build-with-claude/prompt-caching

Q-D4-016Select 1Medium

The team runs a 5,000-case regression eval after every prompt change, and the results are needed by the next working day. How can it cut the cost of these runs?

  • A) Run the eval on the most expensive model so that fewer reruns are needed.
  • B) Run the eval through the Message Batches API at half the standard price.
  • C) Run the eval as real-time requests with streaming turned on for every case.
  • D) Cut the eval set in half every time the prompt changes to save tokens.

โœ” Answer: B

Batch processing handles many requests asynchronously at 50% of the standard price, with results within 24 hours, which suits evals that aren't needed immediately. Shrinking the eval set weakens regression coverage.

Source: platform.claude.com/docs/en/build-with-claude/batch-processing

Q-D4-021Select 2Hard

An agent's monthly bill is dominated by input tokens from re-sent conversation history and large tool outputs. Which two changes reduce cost with the least effect on quality? (Select two.)

  • A) Cache the stable prefix (tools, system prompt and earlier turns) with prompt caching.
  • B) Turn off tool use entirely so that no tool outputs are ever added to context.
  • C) Clear stale tool results from the conversation history with context editing.
  • D) Move every request to the smallest model, whatever the difficulty of the task.
  • E) Cut the system prompt down to one sentence to save input tokens on each call.

โœ” Answer: A, C

Caching makes the repeated prefix much cheaper without changing what Claude sees, and context editing removes old tool results that no longer help. Downgrading every task, gutting the prompt or removing tools puts quality at risk.

Source: platform.claude.com/docs/en/build-with-claude/prompt-caching

Conduct A/B testing and iterative improvements (2)
Q-D4-010Select 2Medium

You are running a controlled experiment to compare two prompts and must finish the design steps before executing it. Which two steps must be done BEFORE running the experiment with random assignment? (Select two.)

  • A) Decide, based on the analysis, whether to promote, reject, or iterate the candidate.
  • B) Work out the minimum detectable effect size and the sample size needed for power.
  • C) Record the recommendation, the trade-offs accepted, and the alternatives considered.
  • D) Check interim metrics daily during the experiment and stop as soon as one prompt looks ahead.
  • E) Define the hypothesis and the primary success metric for the two-prompt comparison.

โœ” Answer: B, E

(inferred) The hypothesis, the primary success metric, the minimum detectable effect and the sample size must be fixed before random assignment starts, or the result can't be interpreted. Promote-or-reject decisions and documentation come after the analysis, and stopping as soon as one prompt looks ahead inflates false positives.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D4-018Select 2Medium

You are improving a support prompt step by step. Which two practices make the result of each iteration trustworthy? (Select two.)

  • A) Judge each version on a few examples picked by hand after the change is made.
  • B) Replace the whole eval set every round with freshly written test cases.
  • C) Change the prompt, the model and the retrieval settings together to save time.
  • D) Change one variable at a time and compare with the previous version on the same eval set.
  • E) Keep a fixed held-out test set that is never used while tuning the prompt.

โœ” Answer: D, E

(inferred) Comparing versions on the same evaluation set while changing one thing at a time lets you attribute a difference to that change, and a held-out set guards against tuning to examples you have already seen. Bundled changes, hand-picked examples and new sets every round blur cause and effect.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Diagnose system issues (prompt failure, hallucinations, model mismatch) (4)
Q-D4-014Select 2Medium

A policy Q&A bot invents clause numbers when the answer is not in the supplied documents. Which two prompt changes most directly reduce this? (Select two.)

  • A) Remove the documents so that the model answers from its training knowledge.
  • B) Explicitly allow Claude to say it doesn't know when the documents lack the answer.
  • C) Ask for longer answers that include more background detail on each policy.
  • D) Ask Claude to extract word-for-word quotes from the documents before answering.
  • E) Raise the temperature so that the wording of each answer becomes more varied.

โœ” Answer: B, D

The hallucination guide recommends giving Claude permission to admit uncertainty and, for long documents, extracting word-for-word quotes first to ground the answer in the text. More varied or longer answers, and removing the sources, make invention more likely.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-hallucinations

Q-D4-015Select 1Hard

A prompt works well on the most capable model but fails on a smaller model chosen to save cost, and running the same eval set on both shows the gap only on multi-step reasoning cases. What is the most likely diagnosis and next step?

  • A) A temporary service problem; retry the failed requests until the smaller model passes them.
  • B) A model mismatch on the reasoning-heavy slice; route those cases to the larger model or give more reasoning room, then re-test.
  • C) A broken prompt; rewrite the whole prompt from scratch, since a well-written prompt should pass on both models equally well every time.
  • D) A retrieval problem; remove the documents from the prompt and run the evaluation again.

โœ” Answer: B

(inferred) The same prompt passing on one model and failing on another only for one slice points to a capability mismatch, not a broken prompt. Routing the hard cases to a stronger model, or giving the smaller model more room to reason, and then re-running the eval tests the fix.

Source: platform.claude.com/docs/en/about-claude/models/choosing-a-model

Q-D4-020Select 1Easy

A model upgrade is planned for a production assistant. What should happen before the new model is promoted?

  • A) Re-run the full evaluation suite on the new model and compare the results with the current baseline.
  • B) Ask one experienced user to try the new model for a day and report how it feels.
  • C) Keep the existing prompts as they are and switch the model ID without testing.
  • D) Promote it right away, because a newer model version always performs better on every task it is given.

โœ” Answer: A

Behavior can change between model versions, so the docs advise testing your use case thoroughly; re-running the same evals and comparing with the baseline shows whether the upgrade helps or regresses before it reaches users.

Source: platform.claude.com/docs/en/about-claude/models/choosing-a-model

Q-D4-025Select 2Medium

A report generator's section order and formatting change from run to run, which breaks a downstream parser. Which two changes most directly increase consistency? (Select two.)

  • A) Specify the exact output format, using structured outputs where a JSON schema fits.
  • B) Use a different model on each run and keep whichever output looks best.
  • C) Raise the temperature so that the model tries more layouts before picking one.
  • D) Remove the format instructions to give the model more freedom to decide.
  • E) Include examples of the desired output so that Claude follows the same structure.

โœ” Answer: A, E

The consistency guide recommends specifying exact formats, with structured outputs for guaranteed JSON schema conformance, and constraining output with examples. A higher temperature, fewer instructions and switching models all add variation.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/increase-consistency

D5 Governance, Safety & Risk Management 24 questions ยท 14% of exam

Implement guardrails and safety controls (8)
Q-D5-001Select 2Medium

You are listing the characteristics of robust guardrail design for an enterprise deployment. Which two characteristics belong on the list? (Select two.)

  • A) A periodic refresh of the system prompt wording to keep refusal language current and clear.
  • B) Per-role tool allow-lists enforced at the orchestration layer before any tool call runs.
  • C) Centralized retention of guardrail-violation logs with a quarterly review by the security team.
  • D) Adversarial-input coverage in the evaluation set, with regression tracking on guardrail performance.
  • E) User feedback channels that send reported guardrail failures to the product backlog for triage.

โœ” Answer: B, D

(inferred) Robust guardrails are enforced outside the model before an action runs, which is what a per-role allow-list at the orchestration layer does, and they are tested against adversarial inputs with regression tracking so a change that weakens them is caught. Wording refreshes, log reviews and feedback channels are useful hygiene, but none of them makes the guardrails themselves robust.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks

Q-D5-003Select 1Medium

In an architectural review, the security team flags a risk that adversarial content injected into retrieved documents could manipulate the model's behavior. Which mitigation most directly addresses this threat?

  • A) Score outputs against a stable adversarial evaluation set at every model-version change, as a release gate.
  • B) Require a citation for each claim and limit responses to source-supported content.
  • C) Limit outbound tool calls to an approved destination allow-list.
  • D) Treat all retrieved content as untrusted input and apply input classifiers together with output validation.

โœ” Answer: D

Content pulled in from documents, web pages or other external sources is untrusted: an attacker who can influence it might embed instructions that try to redirect Claude (indirect prompt injection), so it should be screened on the way in and its effects validated on the way out. An evaluation set and citations don't stop an injected instruction, and an outbound allow-list only limits one consequence.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks

Q-D5-004Select 2Medium

You are compiling guardrail tactics for a customer-facing assistant. Which two tactics belong on the guardrail list? (Select two.)

  • A) Layer prompt-level guardrails with runtime content checks instead of relying on either alone.
  • B) Build in approved override phrases that let trusted users relax guardrails on demand.
  • C) Lower the sampling temperature globally to make off-policy completions less likely.
  • D) Depend on a single hardened system prompt that lists every disallowed behavior.
  • E) Validate the model output against a structured schema before any downstream action is taken.

โœ” Answer: A, E

(inferred) Layered defenses hold up better than any single control: prompt-level guardrails combined with runtime content checks, plus schema validation of the output before it triggers downstream actions. Override phrases create a bypass attackers can reuse, a single system prompt is one point of failure, and lowering temperature doesn't enforce a policy.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks

Q-D5-006Select 2Hard

The compliance team at a firm has approved a Claude Skill that generates client-facing investment summaries; the Skill carries the firm's required disclaimers and prohibited-language list. A product manager asks whether more guardrails are needed at the application layer or the Skill alone is enough. Which two guardrail responsibilities should stay at the application layer rather than in the Skill? (Select two.)

  • A) Apply the prohibited-language list that the compliance team maintains and keeps updated.
  • B) Write every generated summary to the firm's compliance audit trail for retention.
  • C) Format output sections according to the firm's standard house style guidelines.
  • D) Apply the disclaimer template the compliance team has standardized firm-wide.
  • E) Verify that the requesting user is authorized to generate investment summaries at all.

โœ” Answer: B, E

(inferred) A Skill carries instructions and content rules for how Claude produces the output, such as disclaimers, prohibited language and house style. Checking who may request a summary and keeping the compliance audit trail are application-level controls that instructions inside a Skill cannot enforce.

Source: platform.claude.com/docs/en/agents-and-tools/agent-skills/enterprise

Q-D5-010Select 2Hard

A security team is comparing two proposed controls. Control A adds an outbound tool allow-list with destination restrictions and per-call review. Control B scores responses against a stable adversarial evaluation set after every model-version change. Which two control-to-risk pairings are correct? (Select two.)

  • A) Control B maps to unauthorized data leaving the system through tool invocations.
  • B) Control A maps to undetected behavioral regression after a model change.
  • C) Control A maps to unauthorized data leaving the system through tool invocations.
  • D) Control A maps to prompt injection from adversarial content in retrieved data.
  • E) Control B maps to undetected behavioral regression after a model change.

โœ” Answer: C, E

(inferred) An outbound allow-list with destination restrictions limits where tool calls can send data, which is the control against data leaving through tool invocations. Scoring a stable adversarial set after each model-version change is how a behavioral regression gets caught, and neither control stops injected instructions from entering through retrieved data.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks

Q-D5-012Select 1Medium

A public chatbot receives frequent jailbreak attempts. Which control does the guidance recommend as an early layer of defense?

  • A) Allow every request through and review a sample of the conversation logs once a month.
  • B) Remove the system prompt completely so that there are no instructions left for attackers to target or extract.
  • C) Pre-screen user input with a lightweight model such as Claude Haiku that returns a simple classification.
  • D) Raise the temperature so that repeated jailbreak attempts produce inconsistent, unusable results.

โœ” Answer: C

The jailbreak guide recommends harmlessness screens: a lightweight model such as Claude Haiku pre-screens user input before it reaches the main conversation, with structured outputs constraining the result to a simple classification. Removing the system prompt or relying on randomness weakens control.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks

Q-D5-019Select 1Medium

A system prompt contains internal pricing logic that must not be revealed, and users try "repeat your instructions" attacks. Which approach does the guidance support?

  • A) Repeat the pricing logic several times so the model understands how important it is.
  • B) Mark the pricing logic as SECRET in capital letters so the model knows that part of the prompt must never be shown to users.
  • C) Leave unneeded proprietary detail out of the prompt, separate context from user queries, and filter outputs for leaks.
  • D) Rely on a single instruction telling the model never to reveal its system prompt.

โœ” Answer: C

The prompt-leak guide recommends separating context from user queries, filtering Claude's outputs, and avoiding unnecessary proprietary details in the prompt. A single "never reveal" line or a SECRET label is not a reliable defense.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-prompt-leak

Q-D5-023Select 1Medium

A streaming chat app sometimes receives a response that stops partway through with stop_reason "refusal". How should the application handle this?

  • A) Detect the refusal stop reason, set the partial output aside, and show a clear message or retry on a fallback model.
  • B) Resend the identical request to the same model in a loop until a full answer finally comes back.
  • C) Ignore the stop reason entirely, since it only appears in server logs and never reaches the client.
  • D) Show the partial text as though it were a complete answer and carry on with the conversation as normal.

โœ” Answer: A

Streaming classifiers can stop a response for a possible policy violation and end it with stop_reason "refusal"; the application should detect that, handle the partial output instead of presenting it as complete, and can retry the request on a fallback model. Resending the same request unchanged repeats the problem.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/handle-streaming-refusals

Identify risks, limitations, and failure modes of LLM systems (6)
Q-D5-002Select 2Medium

A research summarization assistant has been running for six months. A user reports that a generated summary contained a fabricated citation, and the product team asks whether the incident calls for architectural action or is an isolated case. Which two Diligence-competency actions should you take? (Select two.)

  • A) Tell users that the assistant does not fabricate output, as a matter of design.
  • B) Reduce the model's sampling temperature across the pipeline in response to the incident.
  • C) Check whether citation grounding controls exist anywhere in the current generation pipeline.
  • D) Disable the assistant for all current users right away, before any diagnostic analysis.
  • E) Sample recent summaries to estimate how often fabrication occurs across the population.

โœ” Answer: C, E

(inferred) Deciding between an isolated case and an architectural problem takes evidence: checking whether citation grounding controls exist at all shows whether the design can prevent fabrication, and sampling recent summaries shows how often it happens. Denying that fabrication occurs, lowering temperature as a reflex, or shutting the system down before diagnosing skips that analysis.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-hallucinations

Q-D5-005Select 2Medium

You are running a risk assessment on a planned Claude-based deployment and must finish the inventory steps before assessing threats against assets. Which two steps must be done BEFORE assessing threats against assets to estimate likelihood and impact? (Select two.)

  • A) Recommend mitigations and residual-risk acceptance for the risks left after analysis.
  • B) Propose mitigations and residual-risk acceptance for whatever risks remain.
  • C) Identify the assets the deployment touches, along with the sensitivity of each asset.
  • D) Document the assessment outcome, covering risks, mitigations, residual risk, and acceptance owners.
  • E) List the threat actors and attack vectors that are relevant to the deployment.

โœ” Answer: C, E

(inferred) Estimating likelihood and impact needs both sides of the equation inventoried first: what is worth protecting (the assets and their sensitivity) and who or what could attack it (threat actors and attack vectors). Mitigations, residual-risk acceptance and the written outcome all depend on the assessment having been done.

Source: code.claude.com/docs/en/security

Q-D5-011Select 2Medium

A technical team is cataloging risks specific to Claude's use in a document-grounded Q&A system. Which two items are failure modes intrinsic to LLM-based systems, rather than generic software defects? (Select two.)

  • A) The model refuses a legitimate query because surface features triggered an overly broad safety pattern.
  • B) A misconfigured load balancer sends requests to a deprecated API version.
  • C) A database connection timeout makes a retrieval call return an empty result set.
  • D) The model produces a plausible-sounding answer that no retrieved document supports.
  • E) An expired TLS certificate blocks outbound API calls to the Claude endpoint.

โœ” Answer: A, D

(inferred) Over-refusal triggered by surface features and plausible but unsupported answers (hallucination) come from how language models behave. A misconfigured load balancer, a database timeout and an expired TLS certificate are ordinary infrastructure defects that would hit any software system.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-hallucinations

Q-D5-013Select 2Hard

A browsing agent reads web pages and then sends emails on the user's behalf. Which two pairings of risk and control are correct? (Select two.)

  • A) Hallucinated facts in emails: give the agent more tools so it has more ways to check its work.
  • B) Prompt injection in page content: treat tool results as untrusted data and require approval before sending email.
  • C) Data exfiltration through outbound actions: restrict which recipients or domains the agent can send to.
  • D) Pages from public sites are trustworthy by default, so content read from them needs no extra controls.
  • E) Prompt injection in page content: make the system prompt longer so the agent's own rules outweigh it.

โœ” Answer: B, C

Content an agent reads can carry instructions that hijack it, so tool output must be treated as untrusted and high-impact actions gated, and limiting outbound destinations reduces what an injected instruction could leak. A longer prompt or more tools doesn't stop injection.

Source: code.claude.com/docs/en/agent-sdk/secure-deployment

Q-D5-020Select 2Easy

Which two are known failure modes an architect must plan for when deploying an LLM application? (Select two.)

  • A) Confident but false statements, known as hallucinations.
  • B) Refusal to start unless the user's device is offline.
  • C) Hijacking by instructions hidden in retrieved or tool content.
  • D) Inability to read any input longer than one paragraph.
  • E) Identical output returned for every different input.

โœ” Answer: A, C

Hallucinations and prompt injection are core LLM risks that the docs address with grounding, citations, input screening and treating tool results as untrusted; even then, hallucinations can be reduced but not eliminated. The other options aren't real limitations of Claude.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-hallucinations

Q-D5-024Select 1Medium

A team lets Claude Code run shell commands in repositories that may contain untrusted content. Which control limits the damage if a prompt injection succeeds?

  • A) Give Claude Code administrator rights on the machine so it can undo any harmful change afterward.
  • B) Add a line to CLAUDE.md telling Claude to ignore any instructions it finds inside repository files or commit messages.
  • C) Turn on the Claude Code sandbox, which restricts the files and network hosts shell commands can reach.
  • D) Turn off session logging so that injected content can never be recorded or replayed later.

โœ” Answer: C

The sandbox is a boundary enforced by the operating system that limits which files and network domains shell commands and their child processes can reach, so a hijacked command can't go beyond it. A CLAUDE.md instruction is advisory and can itself be overridden by injected text.

Source: code.claude.com/docs/en/sandboxing

Apply human-in-the-loop validation strategies (4)
Q-D5-007Select 2Medium

You are designing a human-in-the-loop validation workflow. Which two design elements belong in it? (Select two.)

  • A) Capturing reviewer decisions as labeled data that feeds the evaluation set over time.
  • B) Risk-stratified sampling that focuses reviewer attention on low-confidence and high-impact outputs.
  • C) Uniform sampling of all model outputs so every request has an equal chance of review.
  • D) Mandatory reviewer agreement with the model output, to keep reviewers and the model consistently aligned.
  • E) Aggregate reviewer throughput metrics reported weekly to leadership for headcount planning.

โœ” Answer: A, B

(inferred) Reviewer time is limited, so risk-stratified sampling spends it where errors are likeliest or costliest, and capturing each decision as labeled data grows the evaluation set from real production cases. Mandatory agreement defeats the point of human review, and uniform sampling wastes most reviews on routine, low-risk outputs.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D5-008Select 1Easy

You are adding human review to a high-volume classification pipeline where reviewing every output is not possible. Which sampling strategy best balances throughput with quality oversight?

  • A) Universal sampling that reviews every output regardless of confidence level or throughput impact.
  • B) Risk-stratified sampling that reviews all low-confidence and high-impact outputs plus a small random sample of routine ones.
  • C) Inverse sampling that reviews only high-confidence routine outputs and skips every low-confidence and high-impact output.
  • D) No sampling at all, relying on user-submitted complaints to surface quality and safety issues after release.

โœ” Answer: B

(inferred) Risk-stratified sampling puts limited reviewer time on the outputs most likely to be wrong or most costly if wrong, while a small random sample of routine outputs still catches drift in the confident cases. Universal review is the thorough-sounding option, but the scenario already rules it out as infeasible at this volume.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D5-009Select 1Medium

You are defining escalation criteria for ambiguous cases in an automated workflow. Which set of criteria best supports consistent escalation?

  • A) Prior customer complaints and the requesting user's seniority, applied case by case with no confidence threshold or content-classifier ambiguity flag.
  • B) Case age and the requester's department, applied unevenly across teams with no confidence threshold or classifier-based ambiguity flag.
  • C) A confidence threshold below a defined level, high-impact decision categories, ambiguity flags raised by content classifiers, and the user's explicit request for review.
  • D) A confidence threshold below a defined level plus the on-call engineer's personal preference, with no defined impact category or ambiguity-flag criterion.

โœ” Answer: C

(inferred) Consistent escalation needs objective, defined triggers: a confidence threshold, high-impact decision categories, ambiguity flags from classifiers, and an explicit request from the user. Criteria based on case age, department, seniority, complaints or personal preference vary by who applies them, so identical cases get different handling.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D5-014Select 1Medium

An agent processes refunds. Refunds under $50 are routine, while larger refunds are rare and costly to reverse. Which human-in-the-loop design fits?

  • A) Auto-approve small refunds within policy, require human approval above the threshold, and log both.
  • B) Let the agent decide for itself, case by case, whether a human needs to see a refund.
  • C) Require human approval for every refund, including the routine ones under the threshold, to be fully safe.
  • D) Never involve a human, because the agent's refund decisions are correct most of the time.

โœ” Answer: A

(inferred) Human review belongs where the risk is: costly, hard-to-reverse actions need approval, while routine low-risk actions proceed automatically with logging so reviewers aren't flooded. Letting the agent decide when to ask removes the control.

Source: code.claude.com/docs/en/agent-sdk/permissions

Ensure compliance with regulations (e.g., GDPR, HIPAA, FedRAMP) (4)
Q-D5-015Select 1Medium

A US healthcare provider wants to send protected health information to the Claude API. What has to be in place?

  • A) A longer, regularly rotated API key, so that access to the health data is better protected.
  • B) A system prompt telling Claude not to remember or repeat any of the health information.
  • C) Acceptance of Anthropic's Business Associate Agreement, HIPAA readiness enabled, and only HIPAA-eligible features used.
  • D) HTTPS for every request, which on its own makes any API feature acceptable for health data.

โœ” Answer: C

HIPAA readiness requires accepting Anthropic's BAA, and each feature's HIPAA eligibility is listed under API and data retention. Encryption in transit, stronger keys and prompt instructions don't create the agreement or limit the system to eligible features.

Source: platform.claude.com/docs/en/manage-claude/api-and-data-retention

Q-D5-016Select 2Medium

An EU customer requires model inference to run in a specified geography and stored data to stay in a specified region. Which two controls address this? (Select two.)

  • A) Inference geo, which controls where model inference runs.
  • B) A system prompt asking Claude to process data only in the EU.
  • C) Workspace geo, which controls where data is stored at rest.
  • D) A smaller model tier, which always runs closer to the user.
  • E) Streaming responses, so that data stays on the client side.

โœ” Answer: A, C

Data residency controls cover where model inference runs (inference geo) and where data is stored at rest (workspace geo). Prompt instructions, model size and streaming don't decide where processing or storage happens.

Source: platform.claude.com/docs/en/manage-claude/data-residency

Q-D5-021Select 1Hard

A financial firm's policy says the AI provider must not keep prompts or outputs after each response is returned. Which arrangement addresses this?

  • A) Sending all requests through the Message Batches API instead of the real-time endpoint.
  • B) A zero data retention (ZDR) arrangement, checking that every feature the system uses is ZDR-eligible.
  • C) Deleting each conversation from the firm's own application database as soon as the user closes the session.
  • D) Shortening every prompt so that less customer data is sent to the provider on each request.

โœ” Answer: B

Zero data retention is the arrangement for not storing inputs and outputs after the response, but eligibility is listed feature by feature, so each feature in use must be checked. Deleting local history or shortening prompts doesn't change what the provider retains.

Source: platform.claude.com/docs/en/manage-claude/api-and-data-retention

Q-D5-022Select 2Medium

A European retailer sends customer complaints to Claude for summarization. Under GDPR's data-minimization principle, which two design choices fit? (Select two.)

  • A) Ask the model, in the prompt, to forget any personal data that it happens to see.
  • B) Strip or pseudonymize personal data that the summary does not need before sending it.
  • C) Keep raw complaints with personal data in prompt logs indefinitely for debugging.
  • D) Send full customer profiles in case the model finds the extra details useful.
  • E) Send only the fields the task requires instead of complete customer records.

โœ” Answer: B, E

(inferred) Data minimization means processing only the personal data needed for the purpose, so unneeded identifiers are removed or pseudonymized and only the required fields are sent; the support-chat guide likewise advises stripping PII unless it is explicitly required and authorized. A prompt instruction doesn't limit what was already sent.

Source: platform.claude.com/docs/en/about-claude/use-case-guides/customer-support-chat

Address ethical AI considerations (bias, fairness, transparency) (2)
Q-D5-017Select 1Medium

A loan-prescreening assistant shows 94% overall accuracy, but nobody has looked at results by applicant group. What should the architect require before launch?

  • A) Evaluate accuracy and error types across the relevant applicant groups and investigate any gaps.
  • B) Add a fairness disclaimer to the interface and launch without any further checks.
  • C) Accept the 94% overall score as evidence that the system already treats every applicant group fairly.
  • D) Remove all applicant details from the input so the model has nothing it could be biased by.

โœ” Answer: A

(inferred) An aggregate score can hide large differences between groups, so fairness checks measure performance and error types per relevant slice and close gaps before launch. Removing all applicant data breaks the task, and a disclaimer doesn't detect bias.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D5-018Select 2Easy

Customer-service agents sometimes send AI-drafted answers unchanged. Which two practices support transparency? (Select two.)

  • A) Tell customers when they are receiving content produced by an AI system.
  • B) Hide the use of AI so that customers trust the answers more.
  • C) Sign AI drafts as personally written by a named employee.
  • D) Delete past answers so that nobody can review what was sent.
  • E) Show the sources behind factual claims, for example with citations.

โœ” Answer: A, E

(inferred) Transparency means people know when AI is involved and can see what claims rest on; the citations feature returns the exact passages that support each claim. Hiding AI use or presenting drafts as human-written does the opposite.

Source: platform.claude.com/docs/en/build-with-claude/citations

D6 Stakeholder Communication & Lifecycle Management 19 questions ยท 14% of exam

Communicate architectural decisions and trade-offs (5)
Q-D6-001Select 1Easy

When communicating an architectural decision to a security and compliance reviewer, which content set best matches that audience's main concerns?

  • A) Decision rationale, business outcomes, and a high-level risk summary aimed at executive review.
  • B) A threat model, control mappings, residual-risk acceptance criteria, and audit traceability.
  • C) An implementation timeline, component interfaces, and deployment sequence aimed at the engineering team.
  • D) A feature delivery schedule, roadmap dependencies, and scope boundaries aimed at the product manager.

โœ” Answer: B

(inferred) A security and compliance reviewer needs to judge risk and evidence: the threat model, how controls map to it, what residual risk is being accepted, and an audit trail back to the decision. Rationale and business outcomes suit executives, interfaces and sequencing suit engineers, and schedules and scope suit product managers.

Source: code.claude.com/docs/en/security

Q-D6-006Select 2Easy

You are listing the characteristics of strong architectural-decision communication. Which two characteristics belong on the list? (Select two.)

  • A) Leaving out rejected alternatives to keep the decision document focused and concise for readers.
  • B) Clear ownership and a review cadence for revisiting the decision when conditions or assumptions change.
  • C) The alternatives considered, along with the criteria used to evaluate each one.
  • D) Distribution to a standing review forum with mandatory attendance by senior engineering leaders.
  • E) A consistent template across the team that standardizes how decisions look.

โœ” Answer: B, C

(inferred) A decision record is useful later if it says who owns the decision and when it will be revisited, and shows what was weighed: the alternatives and the criteria used to evaluate them. Dropping rejected alternatives hides the trade-off, and forums and templates are process and presentation choices that don't make a decision's reasoning clearer.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D6-009Select 1Medium

You must explain to a CFO why you chose a mid-tier model over the most capable one. Which framing is most effective?

  • A) A detailed walkthrough of how transformer attention works in both of the candidate models.
  • B) The parameter counts and internal architecture of both models, explained component by component with diagrams.
  • C) Measured quality of both models on the eval set, the cost per 1,000 requests, and the latency against the SLA.
  • D) A statement that the mid-tier model felt better to the engineering team during informal testing.

โœ” Answer: C

(inferred) Executives decide on business trade-offs, so the case should compare measured quality, cost and latency against the agreed targets; the docs frame model choice as balancing capability, speed and cost. Technical internals and impressions don't let a CFO weigh the decision.

Source: platform.claude.com/docs/en/about-claude/models/choosing-a-model

Q-D6-016Select 2Medium

You are presenting the choice of a workflow over a fully autonomous agent to a steering committee. Which two points best communicate the trade-off? (Select two.)

  • A) The workflow should be chosen mainly because it uses the newest available technology.
  • B) The decision is final and will not be revisited, whatever happens to requirements later.
  • C) The workflow is more predictable and cheaper per task, while an agent would handle open-ended cases at higher cost and latency.
  • D) Evaluation results show that the workflow meets the agreed quality target on current cases.
  • E) Agents are always worse than workflows, so they never need to be considered for this system.

โœ” Answer: C, D

Workflows offer predictability and consistency for well-defined tasks, while agents trade latency and cost for flexibility; pairing that with evidence that the workflow meets the target makes the trade-off clear. Absolute claims and closing the decision for good undermine trust.

Source: www.anthropic.com/engineering/building-effective-agents

Q-D6-019Select 2Medium

You are presenting the rollout plan for a new model version to risk-averse business owners. Which two elements best address their concerns? (Select two.)

  • A) A promise that the new model version cannot regress on any of their tasks.
  • B) A staged rollout that starts with a small share of traffic and widens as metrics hold.
  • C) Keeping the rollout from the business owners until it is fully complete.
  • D) An immediate switch of all traffic, so that the rollout is finished quickly.
  • E) Predefined rollback criteria tied to quality, latency and cost thresholds.

โœ” Answer: B, E

(inferred) Staged exposure limits how many users see a regression, and agreed rollback thresholds make the decision to revert objective; together they show owners how the risk is contained. Promising no regressions or switching everything at once ignores that behavior can change between model versions.

Source: platform.claude.com/docs/en/about-claude/models/migration-guide

Manage stakeholder feedback loops and expectation alignment (including SLAs) (5)
Q-D6-002Select 2Medium

A senior architect is managing stakeholder expectations for a Claude-based reporting assistant midway through development, and stakeholders are growing more concerned about response latency. Which two actions most directly support expectation alignment here? (Select two.)

  • A) Pause all development and move engineering resources to latency optimization, without checking whether an SLA gap actually exists.
  • B) Present measured p50 and p95 latency baselines against the agreed SLA thresholds so stakeholders see accurate data.
  • C) Swap the current Claude model for a third-party model that might offer lower latency, without evaluating it.
  • D) Tell stakeholders that latency concerns are a known LLM limitation outside the architecture team's control.
  • E) Revise the SLA definition together with stakeholders if current targets cannot be met under production constraints.

โœ” Answer: B, E

(inferred) Alignment starts from facts: measured p50 and p95 baselines against the agreed SLA show whether a gap exists, and if the targets can't be met under production constraints, revising the SLA together with stakeholders resets expectations honestly. Pausing work or swapping models without evidence, and dismissing latency as an LLM limitation, ignore what stakeholders actually need to hear.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-latency

Q-D6-003Select 2Medium

You are building a feedback-and-alignment routine for a multi-stakeholder deployment. Which two practices belong in the routine? (Select two.)

  • A) Record every session and share the recording with stakeholders who could not attend live.
  • B) Escalate every stakeholder disagreement to the executive sponsor for a binding resolution.
  • C) Set a regular cadence for revisiting expectations and assumptions as conditions change over time.
  • D) Reconcile divergent stakeholder positions explicitly instead of papering over them in the moment.
  • E) Rotate facilitation among the participating stakeholder groups so ownership of the routine is shared.

โœ” Answer: C, D

(inferred) A feedback loop only keeps expectations aligned if it recurs as conditions change and if differing positions are surfaced and resolved openly instead of hidden. Recording sessions and rotating facilitation are logistics, and escalating every disagreement to an executive replaces alignment with a ruling.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D6-010Select 1Medium

A stakeholder expects the assistant to be "100% accurate". How should the architect respond?

  • A) Promise 100% accuracy once enough extra instructions have been added to the system prompt.
  • B) Decline to set any accuracy target at all, because model outputs are never fully predictable.
  • C) Explain that outputs can be wrong, agree a measurable accuracy target on a representative test set, and plan human review for high-risk cases.
  • D) Agree to the 100% target to keep the project moving, and raise the accuracy question again after launch.

โœ” Answer: C

Mitigations reduce hallucinations but don't eliminate them, and the docs advise always validating critical information, so expectations are set with a measurable target plus review for high-stakes outputs. Accepting 100% or refusing any target both misalign expectations.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-hallucinations

Q-D6-013Select 2Hard

You are drafting the SLA for a Claude-based document assistant. Which two clauses are well formed? (Select two.)

  • A) Responses will be fast enough for most users in most situations.
  • B) p95 end-to-end latency under 4 seconds, measured monthly at the API gateway.
  • C) At least 92% accuracy on a versioned evaluation set, re-measured before each release.
  • D) The assistant will give the right answer to every question users ask it.
  • E) The underlying model will never change for the life of the contract.

โœ” Answer: B, C

(inferred) A useful SLA clause states a measurable metric, a threshold, and how and when it is measured. Absolute promises, vague wording and freezing the model can't be measured or kept.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D6-017Select 1Medium

Pilot users send feedback through emails, chats and meetings, and much of it gets lost. Which practice fixes this?

  • A) Accepting feedback only from executives, since they own the budget for the project.
  • B) Asking pilot users to hold all of their feedback until the system has officially launched, so it can be reviewed in one batch.
  • C) Reading all of the collected feedback once, at the very end of the pilot period.
  • D) One feedback channel with tagged categories, triaged on a regular cadence, with outcomes reported back to users.

โœ” Answer: D

(inferred) A feedback loop needs one place to collect input, a regular cadence to act on it, and a way to show users what changed; that keeps expectations aligned during the pilot. Delaying, filtering by seniority or reading feedback only at the end breaks the loop.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Support lifecycle phases (discovery, design, handoff, monitoring, iteration) (3)
Q-D6-004Select 1Medium

You are identifying the signals that a deployment should return to design instead of continuing to iterate in place. Which signal most directly indicates the need for a new design cycle?

  • A) A dashboard alert fires constantly because its threshold was set before traffic growth changed the normal baseline volume.
  • B) Several customer-facing strings use inconsistent terminology, and support tickets show users are confused by the mismatched wording.
  • C) The current architecture cannot meet the new requirements without changing component responsibilities or core contracts.
  • D) Several runbook steps are out of date and describe procedures that no longer match how the service operates.

โœ” Answer: C

(inferred) Design has to be reopened when the architecture itself can't satisfy the requirements, meaning component responsibilities or core contracts must change. Noisy alert thresholds, inconsistent wording and outdated runbooks are all fixed by ordinary iteration without changing the architecture.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D6-012Select 1Medium

Three months after launch, user satisfaction drops while error logs look normal. Which lifecycle activity should this trigger?

  • A) A monitoring review: sample recent conversations, compare them with the eval baseline, and check whether inputs have shifted.
  • B) Closing the project as complete, because the error logs show that nothing is failing.
  • C) An immediate switch to a different model provider, since the current model has clearly degraded.
  • D) Adding new features quickly, so that users focus on what is new instead of the drop.

โœ” Answer: A

(inferred) Quality can drift without any errors, for example when the inputs change, so the monitoring phase compares current behavior with the baseline and feeds findings into the next iteration. Switching providers without a diagnosis, or ignoring the signal, skips that loop.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D6-018Select 1Medium

A company wants to "apply Claude everywhere" in its first year. As the architect, what do you recommend for the first pilot?

  • A) Skip the pilot entirely and go straight to a company-wide production rollout to save time.
  • B) Launch in every department at the same time, so that adoption across the company is as fast and visible as possible.
  • C) Pick the most complex workflow in the company first, so that the pilot proves the hardest case early.
  • D) Start with one narrow, high-value use case with a baseline and measurable success criteria, then expand.

โœ” Answer: D

(inferred) A focused pilot with a baseline and measurable criteria shows real value, exposes problems while they are cheap to fix, and produces evidence for the next phase. A company-wide launch or the hardest workflow first makes failures large and hard to diagnose.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Conduct structured discovery and requirement gathering (3)
Q-D6-005Select 2Medium

You are running a discovery engagement for a new Claude-based capability and must finish the requirements-gathering steps before validating with stakeholders. Which two steps must be done BEFORE validating the captured requirements with stakeholders? (Select two.)

  • A) Identify the non-functional constraints that cover latency, cost, audit, data sensitivity, and regulatory needs.
  • B) Produce architecture decision records capturing the rationale for major design choices.
  • C) Document the consolidated requirements, tracing each item back to its source stakeholder.
  • D) Capture the business goals, success criteria, and in-scope user population for the engagement.
  • E) Plan the rollout milestones and dependencies with engineering and product partners.

โœ” Answer: A, D

(inferred) There has to be captured content to validate: the business goals, success criteria and in-scope users, plus the non-functional constraints on latency, cost, audit, data sensitivity and regulation. Consolidated documentation with traceability follows from that content, while decision records and rollout scheduling belong to later design and delivery phases.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D6-008Select 2Easy

In the first discovery workshop for a claims-automation project, which two topics matter most? (Select two.)

  • A) Which agent framework is currently the most talked about on social media.
  • B) How many slides the final steering-committee presentation should have.
  • C) What success looks like in measurable terms, and what today's baseline is.
  • D) Which fonts and color palette the final reporting dashboard should use.
  • E) Which data sources, systems and constraints such as privacy, latency and audit apply.

โœ” Answer: C, E

(inferred) Discovery establishes measurable success criteria with a baseline, along with the data, systems and non-functional constraints the solution must respect; these drive every later design and evaluation choice. Presentation details and trends don't shape requirements.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Q-D6-014Select 1Medium

Legal, sales and support give conflicting priorities for a contract assistant during discovery. What should the architect do?

  • A) Follow the priorities of the group that argues most strongly in the workshop, so that the project can move on.
  • B) Leave the conflicts unresolved for now and let production usage decide which priorities win.
  • C) Quietly build three separate assistants, one for each group, without raising the conflict with anyone.
  • D) Record each group's requirements, make the conflicts explicit, and have the decision owner rank them against agreed success criteria.

โœ” Answer: D

(inferred) Conflicting requirements should be surfaced and resolved by the accountable owner against shared criteria during discovery, so design starts from an agreed baseline. Letting volume, silence or production decide leaves the conflict to surface later at higher cost.

Source: platform.claude.com/docs/en/test-and-evaluate/develop-tests

Document architectures and provide implementation guidance (3)
Q-D6-007Select 1Medium

You are moving a Claude-based deployment from design into implementation. Which handoff package most directly supports a clean transition?

  • A) The architecture overview, ADRs, component contracts, an evaluation framework with a reference set, runbooks, an on-call playbook, and known limitations.
  • B) An architecture overview given verbally in a kickoff meeting, with no written component contracts, evaluation framework, or runbooks.
  • C) A project charter and stakeholder sign-off record, treated as enough governance to proceed with implementation.
  • D) An architecture overview and component contracts, leaving the evaluation framework and on-call playbook for the implementation team to write after handoff.

โœ” Answer: A

(inferred) A clean handoff gives the implementers everything they need in writing: the architecture and the decisions behind it, the contracts between components, how quality will be evaluated, how the system will be operated, and what it can't do yet. Verbal overviews, charters and sign-offs, or handing over only part of the package leave gaps the implementation team has to guess at.

Source: code.claude.com/docs/en/best-practices

Q-D6-011Select 2Easy

Which two items belong in an architecture decision record (ADR) for choosing RAG over long-context prompting? (Select two.)

  • A) The context and constraints behind the decision, such as corpus size and cost targets.
  • B) Each team member's personal opinion about AI tools in general.
  • C) A list of everyone who attended a project meeting in the last year.
  • D) The options that were considered and the consequences of the chosen option.
  • E) The complete source code of the retrieval service at the time.

โœ” Answer: A, D

(inferred) An ADR records the context, the options weighed and the consequences of the decision, so later teams understand why it was made and when to revisit it. Source code and attendance lists belong elsewhere.

Source: code.claude.com/docs/en/best-practices

Q-D6-015Select 1Medium

A team is handing a Claude Code-based automation over to a platform team. What helps both the new team and Claude Code work consistently in that repository?

  • A) A CLAUDE.md in the repository with build and test commands, conventions and key architecture notes, shared through git.
  • B) Comments spread across many source files, with no index that points to any of them.
  • C) A personal notes file kept on the original developer's laptop and emailed to the new team whenever someone asks for it.
  • D) A single handoff meeting in which the original developer explains the setup verbally.

โœ” Answer: A

CLAUDE.md persists across sessions, is shared with the team through git and is discovered automatically, so commands, conventions and architecture notes travel with the repository. Personal notes and verbal handoffs are easily lost.

Source: code.claude.com/docs/en/memory

D7 Developer Productivity & Operational Enablement 11 questions ยท 7% of exam

Configure Claude tools and environments for teams (e.g., Claude Code) (5)
Q-D7-001Select 2Medium

You are bringing Claude Code into a team workflow and must finish the design and configuration steps before piloting the integrated workflow. Which two steps must be done BEFORE piloting it with a small group? (Select two.)

  • A) Identify the workflow steps where AI-assisted tooling adds value and the ones where human authority has to stay.
  • B) Negotiate the workflow change with affected teams and collect formal sign-off from every manager.
  • C) Set up the project-scope Model Context Protocol (MCP) servers, permissions, subagents, and persistent project context.
  • D) Document the integrated workflow, including hand-off criteria, permission boundaries, and on-call runbooks.
  • E) Iterate on the integrated workflow using pilot findings before rolling out to the wider team.

โœ” Answer: A, C

(inferred) Before a pilot you need to decide where AI assistance helps and where humans stay in charge, and set up the shared project configuration (project-scope MCP servers, permission rules, subagents, and CLAUDE.md context) so the pilot group runs the intended setup. Sign-offs, written runbooks and iteration on findings come around or after the pilot.

Source: code.claude.com/docs/en/settings

Q-D7-003Select 2Medium

A Claude architect is auditing configuration scope assignments. Which two statements correctly describe an appropriate use of user-scope configuration, as opposed to other scopes? (Select two.)

  • A) Saving a preferred Claude response language that applies across every repository the engineer uses.
  • B) Defining MCP server endpoints shared by all contributors to one specific repository.
  • C) Keeping API authentication keys in user-scope settings so they stay out of version control.
  • D) Enforcing a company-wide policy that switches off a feature for all engineers.
  • E) Keeping personal editor theme preferences that follow an engineer from project to project.

โœ” Answer: A, E

(inferred) User scope holds an individual's own settings, such as a theme saved to ~/.claude/settings.json, and follows that engineer across every project. Endpoints shared by a repository's contributors belong in project scope, and a company-wide policy belongs in managed settings that the organization deploys.

Source: code.claude.com/docs/en/settings

Q-D7-006Select 1Medium

A security team must make sure no developer can turn off certain Claude Code permission rules on their own machine. Where should these rules be set?

  • A) In the project's CLAUDE.md, as an instruction telling Claude to follow the rules.
  • B) In the repository README, as a policy that every developer agrees to read.
  • C) In managed settings, which come from the admin console, MDM or a managed-settings.json file and can't be overridden.
  • D) In each developer's user settings file, which they are asked to keep unchanged.

โœ” Answer: C

Managed settings belong to the organization: they come from the admin console, MDM or managed-settings.json, and no personal settings file can override them, which makes them the place for a security team's policy. User settings and CLAUDE.md can be changed by the developer.

Source: code.claude.com/docs/en/settings

Q-D7-008Select 2Easy

Which two statements about Claude Code memory files are correct? (Select two.)

  • A) A project CLAUDE.md is shared with the team through git.
  • B) CLAUDE.md files are not allowed to contain build or test commands.
  • C) CLAUDE.md is read only when the user types a special command.
  • D) Each developer has to copy CLAUDE.md into their home folder by hand.
  • E) Personal preferences go in CLAUDE.local.md, which is added to .gitignore.

โœ” Answer: A, E

CLAUDE.md is persistent across sessions, shared with the team through git and discovered automatically, while personal preferences go in CLAUDE.local.md, which is kept out of the repository with .gitignore.

Source: code.claude.com/docs/en/best-practices

Q-D7-011Select 1Medium

A team wants a reusable Claude Code reviewer that can read code but can never edit files, with the limit enforced by the tool rather than by a prompt. What should they create?

  • A) A custom subagent in .claude/agents/ whose tools are limited to Read, Grep and Glob.
  • B) A section in CLAUDE.md asking Claude to act as a strictly read-only code reviewer.
  • C) A personal settings file that sets the tone of every review to strict and formal.
  • D) A slash command that reminds Claude not to edit any files while it is reviewing code.

โœ” Answer: A

Giving a custom subagent in .claude/agents/ only Read, Grep and Glob makes it a reviewer that can't edit anything, and that limit is enforced by Claude Code rather than requested in a prompt. CLAUDE.md text and slash-command reminders are only instructions.

Source: code.claude.com/docs/en/best-practices

Support debugging and operational issue resolution (4)
Q-D7-002Select 1Easy

You are preparing an operational runbook for a Claude-based service. Which content is essential to include?

  • A) A general on-call rotation schedule, a team contact list, shift handoff notes, and each responder's paging preferences.
  • B) A glossary of system architecture terms, a service dependency map, a component ownership table, and data-flow diagrams between services.
  • C) A post-incident review template, a historical incident log, blameless retrospective guidelines, and a tracker for follow-up actions.
  • D) Common alerts with their triage steps, escalation paths, rollback procedures, and references to the relevant dashboards and logs.

โœ” Answer: D

(inferred) A runbook is what an on-call responder uses during an incident: which alerts to expect and how to triage them, who to escalate to, how to roll back, and where to look in dashboards and logs. Rotation schedules, architecture references and post-incident review material support operations but aren't what a responder needs in the moment.

Source: code.claude.com/docs/en/troubleshooting

Q-D7-004Select 1Medium

You are diagnosing a Claude Code session in which a subagent already uses 50,000 tokens of context before the engineer types a single message. Which root cause is most likely?

  • A) A retrieved-context preload step runs automatically at session start and pulls in reference documents that use up context budget before anything is typed.
  • B) Many MCP servers are configured, each adding tool definitions to the context budget, and Tool Search is not enabled, so every definition loads upfront.
  • C) A large project-scoped CLAUDE.md is loaded automatically at session start and adds substantial content to the context budget before any message.
  • D) A verbose system prompt with extensive background instructions is loaded at session start and takes a large share of the context budget before the first message.

โœ” Answer: B

(inferred) Every configured MCP server contributes its tool definitions to context, and when tool search isn't in effect all of them load at session start, so a large number of servers can consume tens of thousands of tokens before the first message. CLAUDE.md and the system prompt do take context, but they rarely reach that size, and Claude Code has no automatic retrieval preload step.

Source: code.claude.com/docs/en/mcp

Q-D7-005Select 1Easy

You are helping an engineer whose Claude Code session reports a permission denial for an action the engineer expected to be allowed. Which resolution step is most appropriate?

  • A) Run the action outside Claude Code and paste the output back into the session so the engineer can carry on uninterrupted.
  • B) Add a broad allow-list entry at the user scope so the action is permitted in this session and in all of that user's future sessions.
  • C) Inspect the active permission rules across all scopes to find which rule denies the action, and confirm whether it should be amended.
  • D) Change the permission rules at the local scope to allow the action, then re-run it to confirm the denial is gone.

โœ” Answer: C

Permission rules are evaluated in order, deny first, then ask, then allow, and the first match decides, so a broader deny rule can block a call that a narrower allow rule seems to permit. Finding which rule actually denied the action, and confirming it should change, comes before editing anything; amending a scope blindly or adding a broad user-scope allow can open up far more than intended.

Source: code.claude.com/docs/en/permissions

Q-D7-010Select 2Medium

A long debugging session in Claude Code has become slow, and Claude is starting to lose track of earlier details. Which two actions help? (Select two.)

  • A) Hand broad investigation to a subagent, which works in a separate context window and returns a summary.
  • B) Clear or compact the conversation, then restate the key facts before continuing.
  • C) Paste the entire log history into the conversation again so nothing is missed.
  • D) Add every file in the repository to the context at once for completeness.
  • E) Turn off all tools so that Claude can concentrate on the conversation itself.

โœ” Answer: A, B

Subagents do research in a separate context window, keeping the main conversation lighter, and clearing or compacting frees space when the context fills up. Re-pasting logs or loading the whole repository fills the context even faster.

Source: code.claude.com/docs/en/best-practices

Improve developer workflows using AI-assisted tooling (2)
Q-D7-007Select 1Medium

A team wants Claude Code never to edit files under migrations/, without depending on Claude remembering an instruction. What should they use?

  • A) A request typed at the start of each session asking Claude to avoid migrations.
  • B) A line in CLAUDE.md, marked IMPORTANT, asking Claude to always leave the migrations folder alone.
  • C) A reminder in the pull request template asking reviewers to check migrations.
  • D) A PreToolUse hook that blocks edits to paths under migrations/ by exiting with code 2.

โœ” Answer: D

Hooks run deterministically, and a PreToolUse hook that exits with code 2 blocks the tool call, whereas CLAUDE.md instructions and session reminders are advisory and can be missed.

Source: code.claude.com/docs/en/hooks-guide

Q-D7-009Select 1Medium

A team wants Claude Code to run automatically in CI, triage failed builds and post a summary. Which mode fits?

  • A) Plan mode in the desktop app, opened by whoever is on call when a build fails.
  • B) A developer copying the build logs into a chat window by hand after each failure.
  • C) An interactive terminal session left running on the build server at all times for the CI job.
  • D) Non-interactive (headless) mode with the -p flag, scripted as a step in the CI job.

โœ” Answer: D

Non-interactive mode with the -p flag runs Claude Code from scripts and pipelines without a person at the terminal, which suits CI jobs. Interactive sessions and manual copying need someone present.

Source: code.claude.com/docs/en/headless