TimoBy Amotion AI

CCDV-P · Free full-length practice test · No sign-up

Claude Certified Developer Professional practice exam (CCDV-P)

Take a free full-length practice test for Claude Certified Developer Professional (CCDV-P): 70 questions in 120 minutes, the same length and time as the official exam. You get your score, results by domain and an explanation for every answer option.

This practice test follows the official Claude Certified Developer – Professional exam guide (version 1.0) in force from November 2026. A practice score does not predict your scaled exam score.

Download PDF All 70 questions, then the answer key with explanations.

You can practise all 70 questions free, without signing up. Timo member mock exams do not yet include CCDV-P. Enrolled Timo consultants can book and take the official Claude certification exams.

Loading your practice exam…

Employer not a Claude partner?

If your employer is not a Claude partner but you want to become Claude certified, enroll with Timo.

Enroll with Timo

Covers: Production agent architecture, reliability, observability, evaluation, security and cost at scale.

From practice to certified

  1. Practise free

    Take the free full-length CCDV-P practice test. No sign-up.

  2. Enroll with Timo (paid)

    Enrolled users get 1,180 practice questions in 20 full-length mock exams, plus OpenAI partner courses and badges.

  3. Book your exam

    As a Timo consultant, you register for all five Claude certification exams under Amotion AI, which is Certified in the Claude Partner Network. You pay the exam fee to Anthropic.

Independent Timo preparation material. This is not an official exam and is not supplied or endorsed by Anthropic. A practice score does not predict your scaled exam score.

What the 70 questions cover

Official domainWeightQuestions
1. Advanced Agent Architecture and Orchestration17%12
2. Production Integration, Reliability, and Knowledge Grounding20%14
3. Observability and Production Monitoring12%8
4. Advanced Debugging and Incident Response10%7
5. Evaluation Engineering and Quality Assurance12%8
6. Cost and Latency Optimization at Scale8%6
7. Runtime Guardrails and Production Security11%8
8. Agent Fleet Operations for Software Delivery10%7
Total100%70

Study each topic: CCDV-P study guide.

The domains and weights come from the official Claude Certified Developer – Professional exam guide, version 1.0, in force from November 2026. The table shows the actual number of practice questions in each domain.

Claude Certified Developer Professional exam guide

The official exam has 70 questions (60 scored and 10 unscored) in 120 minutes and a pass mark of 720 on a 100 to 1,000 scale.

How CCDV-P differs from CCDV-F

CCDV-F (Foundations)CCDV-P (Professional)
Questions70 from 7 December 202670
Largest domainApplications and Integration, 20%Production Integration, Reliability, and Knowledge Grounding, 20%
FocusBuilding and shipping Claude applicationsRunning Claude systems in production at scale
Exam feeUS$125US$175

Take the free CCDV-F practice exam first if you have built with Claude but have not yet run a Claude agent in production, because the Professional guide treats the whole Foundations scope as assumed knowledge. Go straight to CCDV-P if you already operate a tool-using agent with tracing, evaluations and incident response, because Foundations is recommended but not required.

All 70 CCDV-P practice questions with answers

These are the same 70 questions as the timed practice test above and the PDF. Take the timed test first, then use this list to check each answer and its source.

Show all 70 questions
  1. Question 1

    5. Evaluation Engineering and Quality Assurance

    A regional health plan's member portal gates prompt releases with an LLM judge that grades benefits answers against a fixed rubric and was calibrated at launch against human labels. Last week the judge's vendor moved it to a newer underlying model. The next day, the pass rate on the unchanged regression suite rose from 71% to 93%, and a spot check found the judge passing answers that quoted the wrong copay. Prompt releases are paused while the team investigates. Which two actions together re-establish trust in the judge? Select two.

    Choose two.

    • A. Move the judge to a larger, more capable model tier, since a stronger judge is more likely to catch the wrong copay amounts that the current one passes.
    • B. Pin the judge to a fixed model version, and let any later version gate releases only after its agreement with human labels meets a set threshold.
    • C. Raise the judge's pass threshold until the suite's pass rate returns to 71%, so that release decisions match the agreement level from before the change.
    • D. Have the judge attach a confidence score to each verdict, and send only verdicts below a set confidence level to human reviewers for a second look.
    • E. Re-score the launch calibration set with the judge as it runs now, and compare the result with the agreement level measured at launch.
    Show answer and explanation

    Answer: B and E

    Reasoning. The suite and rubric did not change, so the jump in pass rate came from the judge itself. Any agreement with human labels measured before the change describes the old model, not the new one, and the copay spot check shows the judge now passes answers that humans would fail. Re-scoring the labeled set measures the new judge's agreement directly, and releases stay paused until that agreement is acceptable. Pinning the model version, and requiring acceptable agreement with human labels before any later version gates releases, keeps the next model change from moving the gate unmeasured; periodic recalibration against human labels is still needed alongside pinning, because judge behaviour can shift for reasons other than a version change.

    Why A is incorrect. A different model is another uncalibrated judge. It would still need measuring against human labels before it could gate releases.

    Why B is correct. A pinned version prevents automatic model changes, and the agreement threshold makes each later version change an explicit, measured step. Ongoing drift monitoring is still needed alongside it.

    Why C is incorrect. Tuning the threshold to reproduce an old pass rate matches a number, not agreement with human labels. The judge could still pass wrong copays at the new threshold.

    Why D is incorrect. A confidence score is the judge's own view of its verdict, not independent evidence. It has not been checked against human labels and may be high on exactly the wrong verdicts.

    Why E is correct. Agreement with human labels is a direct measure of judge calibration, and re-scoring the launch set gives a before-and-after comparison.

    Source: www.anthropic.com, platform.claude.com

  2. Question 2

    5. Evaluation Engineering and Quality Assurance

    A B2B supply-chain analytics SaaS gates releases of its forecast-narrative feature on a 400-case golden set, and leadership tracks that set's score from release to release. Every release this quarter passed. Customers onboarded this quarter, who each run several warehouses, report frequent errors in their narratives. None of the 400 cases covers more than one warehouse. Leadership wants the release-to-release trend to stay comparable. Which change to the evaluation system best closes the gap?

    • A. Build a separate suite of multi-warehouse cases, gate releases on both suites, and report the original set's score as its own trend line.
    • B. Review a weekly sample of live multi-warehouse narratives by hand, and keep the release gate on the existing golden set exactly as it is today.
    • C. Replace a quarter of the 400 cases with multi-warehouse cases, so that the single golden set reflects the customer mix the product now serves.
    • D. Raise the pass threshold on the 400-case set, since a stricter gate on the existing cases will catch more of the errors that customers now report.
    Show answer and explanation

    Answer: A

    Reasoning. The golden set contains no multi-warehouse cases, so it cannot catch errors specific to multi-warehouse narratives, and releases keep passing while those customers report errors. A separate suite built from that segment, and used as a gate, closes the gap. Leaving the original 400 cases untouched preserves a like-for-like score across releases, so the existing trend still means what it meant before.

    Why A is correct. A new suite covers the missing segment and can block releases, while the untouched original set keeps its trend line intact.

    Why B is incorrect. Live review finds errors after customers have received them and adds no release gate, so regressions specific to this segment can still ship.

    Why C is incorrect. Swapping cases into the original set changes what its score measures, so the release-to-release trend leadership wants to keep stops being comparable.

    Why D is incorrect. A stricter threshold on cases that contain no multi-warehouse data cannot test multi-warehouse behavior. It only tightens the gate on the existing single-warehouse cases.

    Source: www.anthropic.com, platform.claude.com

  3. Question 3

    6. Cost and Latency Optimization at Scale

    A city transit agency triages rider complaints with a cascade: a faster, lower-cost tier routes each complaint and escalates to a more capable tier only when its self-reported confidence is below 0.7. Monthly triage cost fell by 60%. An audit of 500 routed complaints finds accessibility complaints, about 3% of volume, misrouted four times as often as others, nearly all with confidence of 0.95 or higher. On replay, the more capable tier routed them correctly, and the category riders chose on the form matched the audit for nearly all of them. Which change best fixes the misrouting while keeping most of the savings?

    • A. Raise the escalation threshold from 0.7 to 0.9, so that more of the complaints the faster tier is unsure about reach the more capable tier for routing.
    • B. Return all triage to the more capable tier, since a single tier removes the escalation step that let these complaints through without a second look.
    • C. Add accessibility examples to the faster tier's prompt, and instruct it to report lower confidence whenever a complaint mentions accessibility needs.
    • D. Route complaints whose rider-selected category is accessibility straight to the more capable tier, and keep the cascade for other categories.
    Show answer and explanation

    Answer: D

    Reasoning. The cascade relies on the faster tier knowing when it is wrong, and the audit shows it is confidently wrong on one category. Its self-reported confidence is not calibrated against correctness for this category: a 0.9 threshold would still miss the observed errors scored at 0.95 or higher, and the audit establishes no confidence threshold that reliably identifies these errors. A deterministic rule on the rider-selected category, which matched the audit for nearly all of these complaints, sends accessibility complaints (about 3% of volume) straight to the more capable tier, which routed them correctly on replay, while the remaining traffic stays on the existing cascade.

    Why A is incorrect. Nearly all of the misrouted accessibility complaints carried confidence of 0.95 or higher, so a 0.9 threshold would still let nearly all of them through without escalation.

    Why B is incorrect. Routing every complaint to the more capable tier discards the savings across all traffic, while the audit shows the failure is concentrated in one category that a narrower rule can reach.

    Why C is incorrect. The added examples are untested, and asking the model to lower its own confidence still relies on its self-assessment, the same signal that already failed on these complaints.

    Why D is correct. The category comes from the form, not the model, so routing accessibility complaints no longer depends on the faster tier's confidence, and only about 3% of traffic moves to the costlier tier.

    Source: www.anthropic.com, platform.claude.com

  4. Question 4

    5. Evaluation Engineering and Quality Assurance

    A city transit and infrastructure-operations agency launched a rider chatbot that answers schedule, fare and service-alert questions. Its only dashboard shows daily conversation counts, which have doubled since launch. The team has no labeled production data yet, and staff can review about 100 conversations a week. Planners want an early read on whether live answers are correct and useful. Which two measures together give a first view of live answer quality? Select two.

    Choose two.

    • A. Ask the chatbot to rate the correctness of its own answer at the end of each conversation, and chart the average rating each day.
    • B. Rerun the launch test set against the production prompt each week, and treat a stable offline score as evidence that live answer quality holds.
    • C. Draw a random weekly sample of about 100 live conversations, and have staff grade each answer against published schedules, fares and alerts.
    • D. Track how often riders rephrase the same question or ask for a human agent within a conversation, and chart that rate daily across all traffic.
    • E. Report the growth in daily conversation counts as the quality measure, since riders keep returning to a chatbot that answers them well.
    Show answer and explanation

    Answer: C and D

    Reasoning. Live quality needs two views: a small, accurate one and a broad, cheap one. Staff grading of a random weekly sample against the published schedules, fares and service alerts gives a representative correctness estimate within the review budget, provided graders apply the same standard. Rephrasing and requests for a person, counted on every conversation, are broader but noisier behavioral signals; they can also move with traffic mix or rider needs, so they are read alongside the graded sample. Together they give an early read, and the reviews start building the labeled data the team does not yet have.

    Why A is incorrect. Self-ratings come from the same model that produced the answer and are not independent evidence of correctness.

    Why B is incorrect. An offline set measures the prompt on launch cases, not the questions riders are asking now, so it is not a live measure.

    Why C is correct. A random sample graded by staff against the published sources gives a representative correctness estimate within the review budget; its reliability depends on consistent grading.

    Why D is correct. Rephrasing and requests for a person are available on every conversation, so they act as early warning signals across all live traffic, although on their own they do not establish correctness.

    Why E is incorrect. Usage growth can reflect demand or novelty, and riders may also return when answers are wrong, so conversation volume alone does not measure correctness.

    Source: www.anthropic.com, platform.claude.com

  5. Question 5

    4. Advanced Debugging and Incident Response

    A small-business lending platform's credit-memo agent calls an OCR service to extract bank statement figures, then a calculation tool to compute debt-service ratios. Underwriters report wrong ratios in 9% of this month's memos. Every affected memo belongs to an applicant whose statements were parsed by an OCR vendor adopted three weeks ago, and memos built from the previous vendor's output are correct. The calculation tool and the agent's prompt have not changed since spring. Which action should the team take first?

    • A. Write unit tests for the calculation tool's ratio formula, and run them against last month's inputs to rule out an arithmetic error.
    • B. Add a step in which the agent recomputes each ratio itself and flags any value outside the usual range for the applicant's industry.
    • C. Move the memo agent to a more capable model tier, since the wrong ratios could come from the model misreading the figures it was given.
    • D. Pick several affected applications and compare each extracted value with the original document to find where the numbers first diverge.
    Show answer and explanation

    Answer: D

    Reasoning. All observed failures involve applicants whose statements went through the new OCR vendor, while the calculation tool and prompt are unchanged. Comparing extracted values and field meanings with the original statements locates the first point where the numbers diverge. This tests the strongest lead first, without assuming that every new-vendor memo fails or that unchanged downstream components cannot mishandle the new input.

    Why A is incorrect. The calculation tool is unchanged and produces correct ratios from the previous vendor's output. Testing its formula checks arithmetic on figures already extracted rather than comparing affected memos with their original statements.

    Why B is incorrect. A self-check by the agent may catch some extreme values, but it does not find the cause and relies on the model to judge its own output.

    Why C is incorrect. Changing models before tracing the failing data path is premature, and the same model produces correct memos from the previous vendor's output.

    Why D is correct. Comparing extracted values with the source documents tests the strongest lead first and shows whether the numbers first diverge at extraction or at a later step.

    Source: platform.claude.com, www.anthropic.com

  6. Question 6

    2. Production Integration, Reliability, and Knowledge Grounding

    A B2B supply-chain analytics SaaS sends all tenants' forecast requests through one client with a shared retry budget and a single circuit breaker. On Tuesday one tenant began attaching very large inventory files. Traces show those requests failing with request_too_large errors and being retried until the shared budget ran out, after which the breaker opened for every tenant for 20 minutes. The breaker has protected the service through past provider overloads. Which two changes together contain one tenant's failures without weakening protection for the shared service? Select two.

    Choose two.

    • A. Give each tenant its own retry budget and breaker state, and keep a service-wide breaker that opens only on provider-side failures.
    • B. Return request_too_large and other invalid-request errors at once without retrying, and retry only transient errors with backoff and a cap.
    • C. Raise the shared retry budget and shorten the breaker's open period, so that one tenant's burst no longer drains the budget for everyone else.
    • D. Remove the circuit breaker and rely on per-request timeouts instead, since the breaker turned one tenant's failures into an outage for all.
    • E. Ask the tenant to split its files into smaller uploads, and add file-size guidance to the onboarding documentation for all tenants.
    Show answer and explanation

    Answer: A and B

    Reasoning. Two faults combined. Requests that can never succeed were retried, and their failures counted against a budget and breaker shared by every tenant. Returning invalid requests at once, and retrying only transient failures such as overloads, rate limits and server errors with backoff, stops wasted retries on oversized requests. Per-tenant budgets and breakers keep one tenant's failures inside that tenant, while a service-wide breaker on provider-side failures keeps the protection that has worked before.

    Why A is correct. Per-tenant budgets and breakers isolate one tenant's failures, and the service-wide breaker still trips on the provider failures it exists for.

    Why B is correct. A request_too_large error fails the same way on every attempt, so returning it immediately removes the retries that drained the shared budget, while transient errors still get bounded retries.

    Why C is incorrect. A larger budget lets more doomed retries through and a shorter open period weakens protection during real overloads. Neither stops oversized requests from being retried.

    Why D is incorrect. Removing the breaker discards the protection it has given during provider overloads, which the team has already relied on.

    Why E is incorrect. Guidance depends on the tenant's behavior and does nothing to stop the client from retrying requests that cannot succeed.

    Source: platform.claude.com, platform.claude.com

  7. Question 7

    2. Production Integration, Reliability, and Knowledge Grounding

    An internal developer-platform team runs a shared remote MCP server used by agents in 60 product teams. Last Thursday's release reworded the description of its search_deploy_logs tool and reached all teams at once. Within an hour, traces showed agents calling search_build_logs for deployment questions, and 14 teams' incident runbooks failed. The release had passed the server's unit tests, which check each tool's input schema and response format. Which two release practices together catch this kind of regression before it reaches every team? Select two.

    Choose two.

    • A. Release to a few teams first, compare their traces for shifts in which tools agents select, and widen the rollout only if selection holds steady.
    • B. Extend the unit tests to cover every tool's error codes and optional fields, so that any change to a tool's contract fails the build.
    • C. Freeze all existing tool descriptions, and require teams that need different wording to request a new tool instead of an edit.
    • D. On every release, score a fixed set of agent prompts, each labelled with its expected tool, against the changed tool descriptions.
    • E. Publish release notes for each description change, and ask teams to update their agents' system prompts with the new tool guidance.
    Show answer and explanation

    Answer: A and D

    Reasoning. Agents choose tools by reading their descriptions, so rewording a description can change which tool is called without changing any schema. Unit tests on schemas and responses cannot see that. An evaluation of tool selection on fixed prompts catches shifts those prompts cover before release, and a staged rollout that watches tool-selection traces surfaces other shifts while only a few teams are exposed.

    Why A is correct. A staged rollout limits exposure to a few teams and uses their tool-call traces to catch selection shifts the evaluation did not cover.

    Why B is incorrect. The release already passed schema and format tests. More contract tests still do not exercise how agents read a description.

    Why C is incorrect. Freezing descriptions blocks legitimate improvements and leads to duplicate tools, which makes selection harder.

    Why D is correct. Scoring which tool agents pick on known prompts tests the tool-selection behavior that descriptions steer, before any team receives the change.

    Why E is incorrect. Release notes and per-team prompt edits push coordination work onto 60 teams and do not test tool selection, so nothing catches the regression before the new descriptions take effect.

    Source: www.anthropic.com, code.claude.com

  8. Question 8

    1. Advanced Agent Architecture and Orchestration

    A city transit agency's crew-scheduling agent runs for a week at a time, assigning operators to shifts in a rostering system that dispatchers also edit directly. Its checkpoint, written every six hours to primary-region storage and copied to the backup region nightly, also holds operators' pending swap requests, which exist nowhere else. After a regional failover, the agent resumed from a 14-hour-old checkpoint, moved 37 operators back onto shifts they had left, and lost 14 hours of swap requests. Which two measures together stop resumed runs from acting on outdated or missing state? Select two.

    Choose two.

    • A. Turn off automatic resume after a failover, and restart each weekly run from the beginning with a newly generated schedule.
    • B. After a restart, have the agent review its own conversation history and judge whether each pending assignment still looks correct.
    • C. On resume, read current assignments from the rostering system and reconcile them with the checkpoint before the agent makes any change.
    • D. Shorten the checkpoint interval from six hours to two, so that a failover loses less of the agent's recent work in the primary region.
    • E. Save every state change, including each new or edited swap request, to storage that confirms it in both regions before accepting it.
    Show answer and explanation

    Answer: C and E

    Reasoning. The resumed run trusted a checkpoint that was behind in two ways. Assignments live in the rostering system, which dispatchers also change directly, so a checkpoint cannot be relied on to hold their latest state. Swap requests live only in the checkpoint, so anything received since the last nightly copy is gone after a failover. Reading the rostering system on resume brings assignments up to date whatever changed them, and confirming every state change in both regions before accepting it, including each swap request as it arrives, means a failover loses nothing that was acknowledged.

    Why A is incorrect. Restarting from scratch discards the run's accumulated valid work and the pending swap requests, and still risks conflicting with assignments that are already live.

    Why B is incorrect. The conversation history is part of the outdated state. Asking the model to judge it is not a check against the live roster.

    Why C is correct. Reconciling with the system of record before acting catches assignment changes the checkpoint missed, including dispatchers' direct edits.

    Why D is incorrect. A shorter interval narrows the gap in the primary region, but the backup copy is still made nightly, so swap requests made since the last copy are still lost.

    Why E is correct. Each change, including a swap request that alters no assignment, is stored durably in both regions before it is accepted, so the backup region holds every acknowledged request.

    Source: www.anthropic.com, code.claude.com

  9. Question 9

    8. Agent Fleet Operations for Software Delivery

    An internal developer-platform team enforces an MCP server allowlist for Claude Code through managed settings, which project settings cannot expand. The allowlist file's history shows edits only on the first day of each quarter. A security review approved a new incident-tracker server three weeks ago, and engineers' requests to use it are still open. An allowlisted wiki server's repository shows no commits or security patches for eight months, and connection logs show engineers using it daily. Which change to allowlist governance best handles both findings?

    • A. Let each team approve MCP servers in its own project settings, since each team knows best which servers its day-to-day work depends on.
    • B. Add each server once its security review passes, and record an owner and re-review date, so entries whose review lapses are removed.
    • C. Replace the allowlist with a denylist of known risky servers, so that newly approved servers work without waiting for anyone to edit the list first.
    • D. Keep the quarterly edit, and at each one re-review every listed server and remove any whose repository lacks recent maintenance.
    Show answer and explanation

    Answer: B

    Reasoning. Both findings point to gaps in how the allowlist is governed. Approved additions wait for the quarterly edit, and an entry stays listed until someone edits it out, so a server with no recent maintenance can remain allowlisted while in daily use. Linking additions to security-review outcomes adds approved servers promptly, and giving each entry an owner and a re-review date brings unmaintained entries back for review, with removal when re-approval is not given.

    Why A is incorrect. Project settings cannot broaden a managed allowlist locked this way, and delegating approval to teams would bypass the central security review without adding the ownership and re-review the scenario needs.

    Why B is correct. Updating the list when a security review passes adds approved servers promptly, and the owner and re-review date bring an unmaintained entry back for review and remove it if the review lapses.

    Why C is incorrect. A denylist blocks only servers that match its entries and permits every other server without prior approval, which removes the vetting the allowlist exists to enforce and does not re-review existing entries.

    Why D is incorrect. A quarterly re-review would catch the unmaintained entry, but newly approved servers would still wait for the next quarterly edit, as the incident-tracker requests have for three weeks.

    Source: code.claude.com, code.claude.com, code.claude.com

  10. Question 10

    2. Production Integration, Reliability, and Knowledge Grounding

    A small-business lending platform keeps its underwriting-assistant prompts in application code, so each prompt change ships in a full application release on a two-week cycle. Last month a prompt change produced vague decline reasons, and rolling it back also reverted a document-upload fix from the same release. Examiners require the platform to show which prompt produced each credit decision. The team wants to ship or roll back a prompt within a day. Which change best meets these needs?

    • A. Keep prompts in code but ship each prompt change in its own application release, so that a later rollback reverts only that one prompt change.
    • B. Release prompts as versioned artifacts outside the code, with one-step rollback, and store the prompt version with every decision record.
    • C. Log the full prompt text alongside each request in the application logs, so that examiners can see the instructions behind each decision.
    • D. Let underwriters edit prompts in an admin screen where their changes take effect at once, without waiting for a code release.
    Show answer and explanation

    Answer: B

    Reasoning. Prompts and code share one release unit, so neither can move without the other. Versioning prompts as their own artifacts lets a prompt ship or roll back alone and quickly, and stamping the version on each decision gives examiners a direct link from every decision to the prompt that produced it.

    Why A is incorrect. Prompts stay inside full application releases, so prompt shipping stays tied to the two-week cycle rather than meeting the one-day goal, and nothing records which prompt produced each credit decision.

    Why B is correct. Independent versioned releases meet the one-day goal without touching code, and the recorded version answers the examiners' question for each decision.

    Why C is incorrect. Logging prompt text helps trace what was sent, but prompts stay in application code, so prompt changes still wait for the two-week release and rolling one back can still revert unrelated fixes from the same release.

    Why D is incorrect. Immediate edits separate prompts from code but include no versioning, rollback step or link from each decision record to a prompt version, so the platform cannot reliably show which wording produced a past decision or roll back.

    Source: www.anthropic.com

  11. Question 11

    7. Runtime Guardrails and Production Security

    A B2B supply-chain analytics SaaS deploys its forecasting agent into each customer's own cloud account. Every deployment calls the Claude API with one organization API key built into the container image. A customer audit found that the key cannot be rotated without shipping a new image to every customer, and two customers' policies forbid long-lived credentials in their accounts. Each customer's cloud platform can already vouch for which containers are running in it. Which change best resolves the audit finding?

    • A. Issue a separate API key per customer, store it in that customer's own secrets manager, and rotate it every 90 days with an automated job.
    • B. Load the shared API key from a vault when each container starts, so that changing the key no longer requires a new image for each customer.
    • C. Set up federation so each container trades its platform-issued identity token for a short-lived token scoped to that customer's workspace.
    • D. Encrypt the shared API key inside the container image and decrypt it at startup, so that the key never appears in readable form.
    Show answer and explanation

    Answer: C

    Reasoning. The audit raises two problems with the shared key built into the image: rotating it means shipping a new image to every customer, and two customers' policies forbid long-lived credentials in their accounts. Workload identity federation lets each container present an identity token issued by its cloud platform and exchange it for a short-lived Claude API token scoped to that customer's workspace. No static API key is stored in the image or the customer's account, and scoping each customer's federation rule to its own workspace keeps its API access separate from other customers'.

    Why A is incorrect. Per-customer keys fix sharing and add rotation, but each key is still a long-lived credential in the customer's account, which two customers' policies forbid.

    Why B is incorrect. Loading the key when the container starts eases rotation, but the key is still static, shared and long-lived.

    Why C is correct. Short-lived federated tokens remove the stored key entirely, satisfy the no-long-lived-credential policies, and scope each customer to its own workspace.

    Why D is incorrect. Encryption hides the key in the image, but it remains one static key shared by every customer and decryptable wherever the image runs.

    Source: platform.claude.com

  12. Question 12

    1. Advanced Agent Architecture and Orchestration

    A regional health plan's member-portal agent uses the memory tool to remember each member's preferences and recent questions across visits. Its memory handler stores files in a folder named for the household's policy number. A subscriber reported that the agent mentioned an adult dependent's recent claim question during the subscriber's own session. Logs show the dependent asked about that claim in a separate session two days earlier. Which change best prevents this?

    • A. Filter outgoing replies and block any reply that refers to a claim the member in the current session has not raised.
    • B. Clear the household's memory folder at the end of every session, so that nothing from one member's visit carries into the next.
    • C. Store memory under the authenticated member's own identifier, and have the handler reject any path outside that member's folder.
    • D. Add a system prompt rule telling the agent never to mention another household member's claims or questions during a session.
    Show answer and explanation

    Answer: C

    Reasoning. The memory tool is client-side: the application decides where each memory file lives. Keying storage to the household rather than the member put every household member's memories in one shared folder, so each session could read the others. Scoping the store to the authenticated member, and enforcing that path in the handler, removes the shared folder while keeping cross-visit memory.

    Why A is incorrect. A reply filter acts only after the agent has read another member's data, can miss indirect references, and leaves preferences and questions that are not claims exposed.

    Why B is incorrect. Clearing memory after each visit stops the leak by discarding the cross-visit memory the feature exists to provide.

    Why C is correct. The application controls storage, so keying it to the authenticated member and enforcing the path makes another member's memory unreachable.

    Why D is incorrect. A prompt rule asks the model not to use data it can still read. The shared folder remains, so one slip still exposes another member's information.

    Source: platform.claude.com

  13. Question 13

    4. Advanced Debugging and Incident Response

    An internal developer-platform engineering team's migration agent rewrites service config files and checks them with a schema-validation tool, and the harness retries any step that times out. About one run in ten ends with a malformed config file; rerunning the same repository usually succeeds, and failures show no pattern by repository, size or language. Traces store only each run's final file and duration. The model, validator and harness owners each propose a different fix. Which step should the team take first?

    • A. Log the schema validator's verdict and error message on every run, since the validator is the step that reports a file as malformed.
    • B. Record each step's arguments, outputs and retries under one run ID, so failing runs can be compared with passing ones step by step.
    • C. Move the migration agent to a more capable model tier, since run-to-run variation in model output often causes intermittent failures.
    • D. Add an automatic rerun of the whole migration whenever the final file fails validation, since reruns of the same repository usually succeed.
    Show answer and explanation

    Answer: B

    Reasoning. The failure could start in the model's edit, in a validator that judges files inconsistently, or in a harness retry that, for example, reapplies an edit after a timeout. Final files and durations cannot tell these apart, so choosing among the three owners' fixes now would be a guess. Recording every step's inputs, outputs and retries under one run ID lets failing runs be compared with passing ones, so later failures can show where the path first diverges before any fix is chosen.

    Why A is incorrect. Validator verdicts and error messages show how the validator judged each file, not whether the model's edit or a harness retry produced it, so those suspects stay indistinguishable.

    Why B is correct. Correlated step records separate model output, tool results and harness retries, which is the evidence needed to locate the origin.

    Why C is incorrect. Changing the model presumes the model is the origin, which the current traces cannot show.

    Why D is incorrect. Automatic reruns hide the failure without finding its origin, and if the harness is the cause, reruns may make it worse.

    Source: platform.claude.com, www.anthropic.com

  14. Question 14

    2. Production Integration, Reliability, and Knowledge Grounding

    A B2B supply-chain analytics SaaS serves customers through one internal gateway that routes each request to Claude on one of two cloud platforms, depending on the customer's contract. The gateway maps a single internal name, forecast-default, to a model identifier on each platform. After a routine gateway update, customers on one platform began receiving differently formatted forecast summaries. A config diff shows the two mappings now point to different model versions. Which change best prevents a repeat?

    • A. Add a system prompt section that defines the summary format exactly, so that both platforms produce the same layout for every forecast summary.
    • B. Run the forecast evaluation suite weekly on each platform, and alert the team when the two platforms' scores begin to drift apart.
    • C. Pin each platform's identifier to the same model version, and fail gateway releases whose routes resolve to different versions or fail shared format evals.
    • D. Freeze each platform's current mapping in the gateway configuration, so later gateway updates can no longer change which model either platform serves.
    Show answer and explanation

    Answer: C

    Reasoning. After the gateway update, one internal name resolved to different model versions on the two platforms, and different versions can format output differently. Pinning each platform's identifier to the same intended version, and failing any gateway release whose routes resolve to different versions or fail the shared format evaluations on each route, stops a mismatch before customers see it without requiring identical identifiers or verbatim outputs.

    Why A is incorrect. A strict format instruction in the system prompt treats one visible symptom while different model versions keep serving different customers.

    Why B is incorrect. Weekly evaluations detect drift after customers are affected and do not stop a mismatched mapping from shipping.

    Why C is correct. Version checks catch unintended routing differences, and shared evaluations on each route catch behavioral regressions at deploy time without requiring identical platform IDs or outputs.

    Why D is incorrect. Freezing the current mappings locks in the mismatch the config diff shows, since the two platforms already point to different versions.

    Source: platform.claude.com, code.claude.com

  15. Question 15

    2. Production Integration, Reliability, and Knowledge Grounding

    A small-business lending platform sends live applicant chats, an hourly loan-portfolio summary job and the loan system's identity-verification checks through one workspace. Summaries are needed within two days; each verification check must return within a minute. During month-end, chats receive 429 errors at peak. Usage data shows the summary job using about 45% of input tokens per minute while it runs, and verification checks arriving in bursts of under 20 seconds that briefly take most of the remaining capacity. Which two changes together keep chats responsive without making verification checks miss their deadline? Select two.

    Choose two.

    • A. Run the summary job every 15 minutes instead of hourly, so that each run sends a smaller burst of requests during the peak hours.
    • B. Give verification checks their own workspace with a capped rate limit, and queue checks above the cap so each burst drains within the minute.
    • C. Raise the SDK's automatic retry count for chat requests, so that chats rejected with 429 errors succeed on a later attempt.
    • D. Submit the portfolio summaries through the Message Batches API, which processes them asynchronously under a separate set of rate limits.
    • E. Lower the max_tokens parameter on applicant chat requests, so that each chat reserves fewer output tokens per minute during the busiest peaks.
    Show answer and explanation

    Answer: B and D

    Reasoning. Two workloads compete with chats at peak. The summary job can wait up to two days, so the Message Batches API, which has its own rate limits, takes it off the Messages API capacity; most batches finish within an hour, and monitoring batch progress lets the team resubmit any request that expires unprocessed at 24 hours while time remains before the two-day deadline. Verification checks cannot wait long, but their bursts are short. A workspace rate limit sets a ceiling on how much of the organization's capacity they can take, which protects chats, and queuing the overflow lets each burst drain within the minute instead of failing. Workspace limits are ceilings, not reservations; the organization-wide limit still applies to all workspaces together.

    Why A is incorrect. Smaller, more frequent runs spread the job's load but still draw on the same per-minute limit, and they do nothing about verification bursts.

    Why B is correct. A capped workspace stops verification bursts from taking the capacity chats need, and the queue spreads each short burst over seconds rather than rejecting checks.

    Why C is incorrect. More retries add load to an exhausted limit and lengthen waits for applicants.

    Why D is correct. The Message Batches API has its own rate limits and suits work that can wait, so the summary job stops drawing on the capacity that chats and verification checks share.

    Why E is incorrect. Output-token limits count only the tokens actually generated, and max_tokens does not factor into them, so lowering it releases no reserved capacity and would only cut replies short. The usage data also points to input-token pressure from the other workloads, not chat output.

    Source: platform.claude.com, platform.claude.com

  16. Question 16

    1. Advanced Agent Architecture and Orchestration

    A B2B supply-chain analytics SaaS runs a supervisor agent that dispatches a forecasting worker for each of 40 regions nightly and merges their outputs into a capacity plan released at 5 a.m., before any analyst starts work. Each worker checks its region's minimum customer commitments and full-truckload shipment sizes, which the supervisor does not see. Two regions sharing one contract supplier planned on 80% and 70% of its capacity, the merged plan kept both allocations without flagging anything, and orders were later rejected. Supplier capacities are in a shared contracts database. Which change best fixes the merge?

    • A. Have the supervisor scale conflicting claims on a shared supplier down in proportion, so that the two regions' combined total fits within its capacity.
    • B. Have the supervisor total each supplier's claims against its capacity, re-dispatch regions over it with a share, and hold unresolved claims back.
    • C. Send every merged plan to an analyst for review and approval before it is released to the regional planning teams each morning.
    • D. Merge all regional workers into one agent that forecasts every region at once, so that no conflicting outputs ever reach a merge step.
    Show answer and explanation

    Answer: B

    Reasoning. Each worker saw only its own region, so claims on a shared supplier could each fit within capacity while together exceeding it, and the merge passed the conflict through silently. Summing the claims per supplier and comparing the total with contracted capacity exposes the 150% allocation. Re-dispatching the regions involved with a share of the capacity lets each worker re-plan against its minimum commitments and truckload sizes, which only the worker checks, and holding any unresolved claim out of the 5 a.m. release keeps an infeasible allocation from going out unattended.

    Why A is incorrect. Proportional scaling cuts each region without its worker's checks, so a scaled plan can fall below a region's minimum customer commitments or leave partial truckloads, limits only the worker sees.

    Why B is correct. Checking the total per supplier catches over-allocation that no single region shows, and the supervisor either resolves each conflict or keeps it out of the released plan.

    Why C is incorrect. Analyst review of every plan adds a manual step for all 40 regions, and no analyst is at work before the 5 a.m. release, so the plan would go out late.

    Why D is incorrect. One agent for 40 regions gives up the isolation and parallelism of per-region workers and makes each forecast harder to check.

    Source: www.anthropic.com

  17. Question 17

    5. Evaluation Engineering and Quality Assurance

    A B2B supply-chain analytics SaaS calibrated its LLM judge last year against 600 human-labeled forecast narratives, reaching 88% agreement, and the judge now gates narrative releases. This quarter the product moved to a new format that splits each narrative into per-region sections. A spot check of 50 new-format narratives shows 72% agreement overall and 58% on narratives covering four or more regions. The judge model and rubric are unchanged. Which action best restores confidence in the judge's verdicts?

    • A. Label current outputs by hand, oversampling many-region cases, restructure the rubric by section, and re-measure agreement before gating again.
    • B. Average each verdict with a second judge on a different model, since combining two judges reduces the error that either one makes alone.
    • C. Rewrite the rubric with separate criteria for each region's section, and resume gating once the judge scores all of the current outputs consistently.
    • D. Keep gating on the existing calibration, and recheck the judge against a fresh set of human labels at next year's annual review.
    Show answer and explanation

    Answer: A

    Reasoning. Calibration holds only for the kind of output it was measured on. The new format changed what the judge reads, and the spot check shows agreement has fallen, most of all on multi-region narratives. New human labels on that format, with the rubric adapted to per-region sections, are the evidence needed before the judge's verdicts can be trusted again, so the judge should not gate releases until re-measured agreement meets the team's bar.

    Why A is correct. Fresh human labels on current outputs, weighted to where agreement is weakest, re-establish calibration where it has broken, and gating waits for that evidence.

    Why B is incorrect. A second judge has not been calibrated on the new format either, so its agreement with humans is unknown and averaging with it cannot show that verdicts improved. Agreement still has to be measured against human labels.

    Why C is incorrect. A rubric fitted to the new format may help, but consistent scores are not agreement with humans. Without fresh labels nobody can tell whether the revised judge now agrees with people.

    Why D is incorrect. An unchanged judge can still disagree with humans on a new kind of input, and the spot check shows that it already does, so waiting for next year's review leaves the gate resting on a calibration that no longer holds.

    Source: www.anthropic.com, platform.claude.com

  18. Question 18

    2. Production Integration, Reliability, and Knowledge Grounding

    A city transit agency's rider assistant answers fare questions from a 40-page fare policy of about 30,000 tokens, revised twice a year. The team's draft design adds a vector database, a chunking pipeline and a reranker. In testing, the assistant gave a wrong transfer-discount answer: the retrieved chunk held the transfer rule, but its exception sat in one that was not retrieved. A trial sending the full policy text without retrieval met the latency and cost targets. The team wants the simplest design that keeps answers grounded in the policy. Which approach best fits?

    • A. Send the whole fare document behind a prompt cache breakpoint, so each rule sits beside its exceptions, and cite a page in each reply.
    • B. Replace the vector database with a keyword index that returns whole policy sections, so each rule arrives with its section's exceptions.
    • C. Add hybrid keyword search alongside the reranker, so that both a rule and its exception rank highly for transfer questions.
    • D. Keep the retrieval design but use larger chunks, so that each rule and its exceptions are more likely to be retrieved together.
    Show answer and explanation

    Answer: A

    Reasoning. Retrieval selects passages, so a rule whose exception sits elsewhere can be answered from half the text. This policy is small and stable, and the trial shows the whole text meets the latency and cost targets, so sending it whole is the simpler design: every answer sees each rule together with its exceptions, and prompt caching keeps repeated use of the same text cheap. Citing the page behind each answer ties responses to the policy, though citation support should still be checked in evaluation.

    Why A is correct. The whole policy is always in view, caching keeps the cost of resending it low, and citations tie each answer to a specific page.

    Why B is incorrect. A keyword index still selects passages, so an exception stored in another section can be missed, and it keeps a retrieval pipeline the trial shows is unnecessary.

    Why C is incorrect. More retrieval machinery adds complexity and still risks missing one of two related passages.

    Why D is incorrect. Larger chunks make split rules less likely but not impossible, and keep the complexity the team wants to avoid.

    Source: www.anthropic.com, platform.claude.com, platform.claude.com

  19. Question 19

    3. Observability and Production Monitoring

    A city transit agency's rider-information assistant has one dashboard panel showing requests per minute. During last week's signal outage, requests rose fivefold, the monthly budget alert fired two days later, and riders reported both error messages and cut-off answers. Operators could not tell what was driving cost or which failures were occurring. Which two panels together let operators judge cost and failure mix during surges? Select two.

    Choose two.

    • A. Daily tokens billed from the invoice export, giving operators and finance one shared, official cost figure for each day of the month.
    • B. Input and output tokens per minute from completed responses' usage fields, converted to estimated spend against the daily budget.
    • C. Distinct riders per hour, split into first-time riders and riders who sent more than ten requests that hour.
    • D. Requests per minute grouped by outcome, using API error types such as rate-limit or overload and stop reasons such as max_tokens.
    • E. Average end-to-end latency per minute, measured from each rider's request to the last token of the answer.
    Show answer and explanation

    Answer: B and D

    Reasoning. Request counts show volume but not what each request cost or how it ended. Completed Messages API responses report token usage, so a per-minute usage panel estimates spend as it happens instead of days later. API error responses carry an error object with a type instead, so grouping outcomes by error type, such as rate-limit or overload, and, for completed responses, by stop reason, such as max_tokens, separates the error classes behind error messages from the stops behind cut-off answers.

    Why A is incorrect. A daily billed figure arrives too late to act on during a surge, leaving operators without live spend figures, just as the delayed budget alert did.

    Why B is correct. Usage fields on completed responses give a live estimate of spend that can be compared with the budget during the surge.

    Why C is incorrect. Rider counts help spot abuse but do not show cost or failure types.

    Why D is correct. Errors and stop reasons distinguish the failure classes behind error messages and cut-off answers.

    Why E is incorrect. Latency matters but shows neither spend nor which failures riders are hitting.

    Source: platform.claude.com, platform.claude.com

  20. Question 20

    7. Runtime Guardrails and Production Security

    A B2B supply-chain analytics agent reads spreadsheets that suppliers upload, queries a shipment database holding every tenant's records, and sends webhook notifications to URLs that suppliers register. In a red-team exercise, text in a spreadsheet cell led the agent to query another tenant's shipments and include them in a webhook to a newly registered URL. The team has already added a system prompt rule to treat spreadsheet content as data. Which two changes together close this path? Select two.

    Choose two.

    • A. Log every webhook payload and alert security whenever a payload contains another tenant's identifiers, so that any leak is caught quickly.
    • B. Expand the system prompt with examples of hidden instructions, and tell the agent to refuse any request to share data across tenants.
    • C. Process spreadsheets with a more capable model tier, since a stronger model is better at noticing instructions hidden in data.
    • D. Send webhooks only to endpoints approved for the authenticated tenant, and build each payload server-side from fixed fields of its records.
    • E. Scope the agent's database credentials to the tenant that owns the uploaded spreadsheet, enforced by the database rather than the prompt.
    Show answer and explanation

    Answer: D and E

    Reasoning. The agent combines untrusted supplier input, access to every tenant's data and an outbound webhook channel to URLs that suppliers register. A prompt rule alone is not an enforceable boundary against injected text, so the controls must sit outside the model. Tenant-scoped database access, enforced by the database, keeps other tenants' records out of reach, and sending only to approved endpoints bound to the authenticated tenant, with payloads built server-side from fixed fields, removes the agent's choice of recipient and content. Together these block the demonstrated cross-tenant query and webhook path.

    Why A is incorrect. Alerting detects a leak after the data has left. It does not prevent it.

    Why B is incorrect. A longer prompt is still not an enforceable boundary, and prompt instructions alone cannot reliably stop injected text while broad database access and open webhooks remain.

    Why C is incorrect. A different model may resist some injections, but the broad access and the open outbound channel remain.

    Why D is correct. Approved destinations bound to the tenant and server-built payloads stop the agent from choosing an unapproved recipient or inserting arbitrary content into a webhook.

    Why E is correct. Least-privilege credentials enforced by the database mean the agent cannot read another tenant's records, whatever the injected text says.

    Source: platform.claude.com, code.claude.com

  21. Question 21

    3. Observability and Production Monitoring

    A regional health-plan member portal's benefits assistant moved to a newer model version on a Monday. Over the next three weeks member satisfaction dipped, and a manual review found coverage answers ending with 'contact member services to confirm' far more often than before. Uptime, latency, error rates and average answer length stayed normal, and the offline regression suite, which checks factual correctness, passed throughout. Which monitoring addition would most likely have flagged the change on the day of the update?

    • A. A monitor on output tokens per answer, since a change in answer length is a common sign of a shift in model behavior.
    • B. A nightly run of the offline regression suite against production, alerting when its pass rate falls below the release bar.
    • C. An alert when weekly member satisfaction falls below its three-month average, so that any quality dip starts an investigation.
    • D. A daily classifier on sampled live replies that tracks deflection and hedging rates against a rolling baseline.
    Show answer and explanation

    Answer: D

    Reasoning. The change was in behavior: average answer length stayed normal and the offline correctness suite kept passing, but live answers deferred to member services far more often. Among these options, only a behavior measure on live traffic, compared with a baseline from the days before, would flag the shift on the first day. Classifying a daily sample of answers for deferral or hedging and alerting on change from the baseline catches drift that correctness tests and system metrics miss.

    Why A is incorrect. Average answer length stayed normal, so a length monitor would not have fired.

    Why B is incorrect. The offline suite checks correctness and passed throughout, so running it nightly would not have flagged the change.

    Why C is incorrect. Satisfaction is a lagging signal, and a weekly alert could not flag the shift on the day of the update.

    Why D is correct. A daily behavior classifier on live samples, compared with a rolling baseline from the days before, can flag the deferral shift on the day the new version starts answering.

    Source: www.anthropic.com, platform.claude.com

  22. Question 22

    3. Observability and Production Monitoring

    A small-business lending platform's credit-memo agent occasionally cites revenue figures that differ from the applicant's documents. Its traces record span timings, token counts and tool names, with no prompt or tool-result content. The platform uses eligible models and features under a Legacy ZDR arrangement with Anthropic, and its compliance policy allows applicant content to be stored internally for at most 90 days, with account numbers masked. Which trace configuration best supports diagnosis?

    • A. Capture prompt and tool-result content on sampled traces in the platform's own store, under the approved masking and retention rules.
    • B. Capture only the model's final memo text on every trace into the platform's own store, under the approved masking and retention rules.
    • C. Keep content capture off and ask Anthropic for the request content of affected memos, using the request IDs recorded in the traces.
    • D. Keep content capture off and have the agent write a one-line summary of each figure it used at the end of every memo it produces.
    Show answer and explanation

    Answer: A

    Reasoning. Diagnosing a wrong figure means seeing what the model was given as well as what it wrote, which metadata spans cannot show. For eligible models and features under Legacy ZDR, Anthropic does not store prompts or responses at rest after the response is returned, apart from flagged content and legal holds, so any content needed for diagnosis has to be kept in the platform's own store. Capturing prompt and tool-result content on a sample, with account numbers masked and retention of at most 90 days, gives engineers the evidence while staying inside the compliance limits.

    Why A is correct. Sampled, masked content in the platform's own store shows what the model received while meeting the retention and masking rules.

    Why B is incorrect. Output alone shows the wrong figure but not the figures the model received, which is what engineers need to locate the error.

    Why C is incorrect. Request IDs identify calls; they are not an archive of request content, and under Legacy ZDR the prompts and tool results are not kept for later recovery.

    Why D is incorrect. A summary written by the model is its own account of what it used, not a record of the inputs it actually received.

    Source: platform.claude.com, platform.claude.com

  23. Question 23

    2. Production Integration, Reliability, and Knowledge Grounding

    A regional health plan released a new benefits-assistant prompt to a 5% canary of members. The new prompt corrects a claims-status error that the previous prompt makes on every plan type. After one day, overall resolution rate and satisfaction in the canary match the control group. Complaints from canary members on the high-deductible plan rose from 2 to 9 across about 300 conversations, and they say the assistant quoted deductible amounts that do not match their plan. Other plan types show no change. The rollout plan calls for expanding to 50% after one flat day. Which action should the team take?

    • A. Keep the canary at 5% for two more weeks without changes, then decide on the expansion once more complaint data has come in.
    • B. Expand to 50% as planned, since overall metrics are flat and nine complaints are too few to be statistically meaningful.
    • C. Roll back the new prompt for every member, since any rise in complaints during a canary means that the release has failed.
    • D. Hold at 5%, serve the high-deductible plan the previous prompt, and review those conversations against the control group's.
    Show answer and explanation

    Answer: D

    Reasoning. Overall metrics average across every plan type and can hide a problem confined to one. The complaint counts alone do not establish statistical significance, but the complaints report wrong deductible amounts that can be checked directly in the transcripts. Holding the rollout, serving the affected segment the previous prompt and reviewing its conversations protects those members now, keeps the claims-status fix for canary members on other plan types, and investigates the cause without exposing more members.

    Why A is incorrect. Waiting two more weeks leaves high-deductible canary members exposed to the reported deductible errors without anyone checking the transcripts.

    Why B is incorrect. Expanding ignores a specific, checkable report of wrong amounts and exposes ten times as many high-deductible members.

    Why C is incorrect. A full rollback would also protect high-deductible members, but it removes the claims-status fix from canary members on every other plan type before the cause of the deductible complaints is known.

    Why D is correct. Segmenting the canary protects the affected plan type now, while transcript review checks the reported errors without waiting for a statistically conclusive result.

    Source: www.anthropic.com

  24. Question 24

    4. Advanced Debugging and Incident Response

    A regional health-plan member portal's assistant answers coverage questions from retrieved plan documents. For some members it replies that it cannot find their coverage details. Traces for these cases show retrieval returning five documents each time, all for the right plan but from the 2025 plan year, while the member's 2026 documents are in the index under the same titles. Members' plan years begin on different renewal dates. The system prompt tells the assistant to answer only from documents for the member's current plan year. Which change addresses the cause?

    • A. Treat these replies as refusals and retry them on a fallback model, which may answer where the first model has declined to.
    • B. Add a reranker that boosts the most recently dated documents, so newer plan-year versions rank above older ones with the same title.
    • C. Pass the member's plan year to the search as a metadata filter, so that only that year's documents can reach the assistant.
    • D. Relax the system prompt so that the assistant may answer from the nearest plan year when current-year documents are not available.
    Show answer and explanation

    Answer: C

    Reasoning. The assistant is following its instructions correctly: the documents it received are from the wrong year, so it reports that it cannot find coverage. The failure is in retrieval, which returns 2025 documents instead of restricting results to the member's plan year, even though the 2026 documents are in the index. Filtering by plan year at search time makes the current documents the only candidates, and the assistant can answer from them.

    Why A is incorrect. The model is not declining the request. It is correctly reporting that its inputs lack current-year coverage.

    Why B is incorrect. A recency boost ranks by date rather than by the member's plan year, so it can surface the wrong year for members whose plan has not renewed, and it only reorders candidates without excluding other years.

    Why C is correct. A plan-year filter fixes the retrieval stage that returned the wrong documents, so the assistant receives the ones it is allowed to use.

    Why D is incorrect. Relaxing the rule would let the assistant quote prior-year coverage instead of fixing retrieval, risking outdated or wrong coverage answers.

    Source: platform.claude.com, www.anthropic.com

  25. Question 25

    6. Cost and Latency Optimization at Scale

    A regional health-plan member portal builds each request as: system prompt, the member's eligibility record, the member's plan benefits document, then the question. A cache breakpoint sits after the benefits document. Benefits documents make up most of each request's input tokens. Usage data shows cache writes on nearly every request and cache reads only on quick follow-ups, although about 40 plans serve 900,000 members. Eligibility data from one member must never appear in another member's prompt. Which change best raises cache reuse?

    • A. Add a second breakpoint after the eligibility record, so that the system prompt and eligibility data are cached apart from the document.
    • B. Place the benefits document before the eligibility record, put the breakpoint right after it, and leave member data in the uncached part.
    • C. Move the breakpoint to just after the system prompt, so that the one prefix every member's request shares is read from the cache each time.
    • D. Switch the breakpoint to the one-hour cache lifetime, and keep the eligibility record and document in their current order.
    Show answer and explanation

    Answer: B

    Reasoning. A cache hit needs an identical prefix up to the breakpoint. With eligibility data ahead of the document, every cached prefix is unique to one member, so the roughly 40 shared plan documents are written again for each member. Moving the shared document ahead of member data makes the prefix identical for every member on a plan, while each member's own data stays after the breakpoint.

    Why A is incorrect. The prefix up to the document still includes one member's eligibility record, so the document is still cached per member.

    Why B is correct. With the plan document placed before the eligibility record, all members of a plan share the cached prefix, and member data never enters it.

    Why C is incorrect. Caching only the system prompt reuses at most that smaller prefix, while the benefits documents that make up most of the input are still processed as uncached input on every request.

    Why D is incorrect. A longer lifetime keeps per-member prefixes alive longer, but each prefix still serves only one member.

    Source: platform.claude.com

  26. Question 26

    1. Advanced Agent Architecture and Orchestration

    An internal developer-platform team's migration agent upgrades 140 services to a new logging library over several days, opening one pull request per service. When a run is interrupted, the resumed run reads its earlier conversation and the repositories to decide where to continue. After three interruptions, 6 services had two pull requests for the same upgrade and 9 had none. Each duplicated service's first pull request was still open and unmerged. Which change best makes resumption reliable?

    • A. Before opening a pull request, have the agent search for an open one for that service, and keep inferring other progress from the conversation.
    • B. Resume each interrupted run with its full earlier session, so that the agent can read every previous step before choosing where to continue.
    • C. Mark each service complete in a checkpoint file once its pull request merges, and on resume start any service the file does not mark complete.
    • D. Keep a ledger outside the conversation, marking each service before and after its pull request opens, and reconcile half-done entries on resume.
    Show answer and explanation

    Answer: D

    Reasoning. The resumed runs reconstructed progress by inference, and neither source shows work in flight reliably: an open, unmerged pull request leaves the main branch unchanged, and the conversation can record a step that was planned but never completed. A ledger kept outside the conversation, marked before and after each pull request is opened, tells the resumed run which services are done, not started or interrupted mid-step, and checking interrupted entries against open pull requests closes the gap between the action and the ledger write.

    Why A is incorrect. Checking for an open pull request prevents duplicates, but progress is still inferred from the conversation, so services can still be missed, as happened with the 9 that received none.

    Why B is incorrect. The full session still leaves the agent to infer progress from history, which is what produced the gaps and duplicates.

    Why C is incorrect. A record that changes only on merge treats a service with an open, unmerged pull request as not started, so a resumed run opens a second pull request, the same duplicate failure.

    Why D is correct. The ledger records in-flight work explicitly, and reconciling half-done entries against actual pull-request state prevents a second pull request after an interruption between the two marks.

    Source: www.anthropic.com, code.claude.com

  27. Question 27

    4. Advanced Debugging and Incident Response

    During a snowstorm, a city transit and infrastructure-operations agency's rider assistant gave wrong detour information for routes 14 and 22, sending riders to closed stops. Answers for the other 60 routes were correct. Traces show the detour tool returning last week's notices for those two routes, while today's notices sit in the operations feed. The assistant's prompt last changed a month ago. The storm is expected to last two more days. Which response best fits the incident?

    • A. Roll back the assistant's most recent prompt release, since rollback is the standard first mitigation for a quality regression.
    • B. Take the rider assistant offline until the detour tool is fixed, so that no rider receives wrong detour information during the storm.
    • C. Add a system prompt instruction telling the assistant to double-check detour information before answering about the two affected routes.
    • D. Send riders on the two affected routes to the live alert page, keep serving the remaining routes, and repair the stale detour source.
    Show answer and explanation

    Answer: D

    Reasoning. The failure is partial and traced to stale data for two routes, not to the model or the prompt. A proportionate mitigation contains the harm on those routes immediately, keeps the assistant useful for the 60 routes that work during a storm when riders need it most, and repairs the data source as the fix.

    Why A is incorrect. The prompt has not changed in a month, so a rollback targets a change that did not cause this.

    Why B is incorrect. Taking the whole assistant down removes correct help on 60 routes to fix a problem on two.

    Why C is incorrect. The model cannot check notices it never received, because the tool supplies the stale data.

    Why D is correct. The mitigation is scoped to the two affected routes, keeps the working service running, and fixes the data source the traces implicate.

    Source: platform.claude.com

  28. Question 28

    6. Cost and Latency Optimization at Scale

    A B2B supply-chain analytics SaaS's report assistant writes multi-section inventory reports that take about 40 seconds to finish, inside the 60-second limit in its customer contracts, and the current model's report quality meets the contract. The interface shows a blank panel until the full report arrives, although traces show the first section's text is generated within two seconds. Logs show 35% of report requests are cancelled after 10 to 20 seconds and resubmitted, which doubles load at peak. Which change most directly reduces the cancellations?

    • A. Add API capacity and raise the concurrency limit, so that resubmitted requests no longer slow the report queue during peaks.
    • B. Stream the response and render each section as its text arrives, so that users see the report taking shape within seconds.
    • C. Disable the resubmit button while a report is pending, so that users cannot send a second request for a report in progress.
    • D. Move report generation to a smaller, faster model tier, so that each report finishes before users lose patience and cancel.
    Show answer and explanation

    Answer: B

    Reasoning. Users cancel at 10 to 20 seconds while total time is within target, and traces show text exists within two seconds, so the problem is how long users see nothing, not how long the report takes. Streaming delivers that early text as it is generated and keeps showing progress, which removes the reason to cancel without changing the model or the report.

    Why A is incorrect. More capacity absorbs the duplicate load but leaves the blank wait that causes the cancellations.

    Why B is correct. Streaming cuts the time to first visible output, the wait that drives cancellations, while total time and quality stay the same.

    Why C is incorrect. Blocking resubmission hides the symptom. Users still face a blank panel and may abandon the page.

    Why D is incorrect. A smaller tier risks the report quality the contract relies on and still shows nothing until the report is complete.

    Source: platform.claude.com, platform.claude.com

  29. Question 29

    2. Production Integration, Reliability, and Knowledge Grounding

    An internal developer-platform team's coding assistant runs on the Claude API and uses the code execution tool in about 30% of requests. The team plans failover to Claude on a second cloud platform where that tool is not available. During last month's two-hour outage, developers lost the assistant entirely. In a failover drill without the tool, several developers assumed that code the assistant had only written had already been run. A survey shows developers value explanations and code review most. Which failover design best serves developers?

    • A. Fail over with the code execution tool removed from requests, tell users running code is paused, and restore it when the primary recovers.
    • B. Fail over with the code execution tool removed from requests, and keep the interface unchanged, so that developers see no difference.
    • C. Build a self-hosted sandbox that mirrors the code execution tool, and enable failover only after it passes parity tests on the second platform.
    • D. Block failover until the second platform offers the code execution tool, so that developers never get a reduced version of the assistant.
    Show answer and explanation

    Answer: A

    Reasoning. During an outage, a reduced assistant that still explains and reviews code is better than none, and those are the uses developers value most. Each platform supports its own set of features, so the failover path has to send requests the second platform supports and tell users what is unavailable, since the drill showed several developers otherwise assume code the assistant only wrote has already been run. Restoring full features on recovery limits the reduced mode to the outage.

    Why A is correct. Degrading to the supported feature set keeps the most valued uses running, and the notice sets accurate expectations.

    Why B is incorrect. Without a notice, the drill showed that several developers assume code the assistant only wrote has already been run.

    Why C is incorrect. Until a self-hosted sandbox is built, secured and passes parity tests, there is no failover, so an outage in the meantime repeats last month's total loss, all to restore a tool used in about 30% of requests.

    Why D is incorrect. Blocking failover repeats last month's total loss of the assistant to protect a feature used in a minority of requests.

    Source: platform.claude.com, platform.claude.com

  30. Question 30

    1. Advanced Agent Architecture and Orchestration

    A regional health plan's Agent SDK member agent answers benefits questions with read-only custom MCP tools and files appeals through a submit_appeal tool. An audit found 23 of 200 appeals filed without the member seeing the final text, despite a system prompt rule to show it first. A new permission callback asks the member to approve any tool call reaching it. It runs in default permission mode with no hooks or rules. 95% of sessions use only read-only tools. Which two changes together confirm appeals with the member without slowing benefits questions? Select two.

    Choose two.

    • A. Have a second agent compare each submitted appeal with the conversation, and notify the member if the text differs from the discussion.
    • B. In the callback, display the exact appeal text about to be filed, and let the filing call run only after the member approves it.
    • C. Add allow rules for the benefits lookup tools, which approve their calls before any of those calls can reach the callback.
    • D. Add an example dialogue to the system prompt in which the agent shows the final appeal and waits for the member's agreement first.
    • E. Have the permission callback require the member's approval for every tool call, so that nothing in a session runs unapproved.
    Show answer and explanation

    Answer: B and C

    Reasoning. The confirmation lives in the prompt, and the audit shows the agent skipping it in about one appeal in nine. Moving the check into the permission callback makes it enforced: the appeal call cannot run until the member approves the exact text. In default mode, a custom tool call that no hook or rule resolves reaches the callback, so allow rules for the read-only lookup tools are also needed. They approve those calls before that step, so the 95% of sessions that never file an appeal run without prompts and only the consequential action is gated.

    Why A is incorrect. Review after submission finds the problem once the appeal has already been filed.

    Why B is correct. The callback pauses the tool call itself until the member confirms the text shown, which the model cannot skip.

    Why C is correct. These read-only calls would otherwise reach the callback and prompt the member; allow rules approve them before that step.

    Why D is incorrect. More prompt guidance is still not an enforced control, and the existing instruction already failed in 23 cases.

    Why E is incorrect. Confirming every call gates the read-only questions too, slowing the 95% of sessions the change must leave alone.

    Source: code.claude.com, code.claude.com

  31. Question 31

    7. Runtime Guardrails and Production Security

    A small-business lending platform's applicant agent reads credit scores only through a credit-data tool that returns any applicant's record by ID. After the agent quoted a score it fetched with an ID pasted from another applicant's email, the team added an output filter that blocks every message mentioning a credit score. An audit now finds that declined applicants received none of the adverse-action notices regulations require. Each notice states the applicant's own score and the reasons for the decline. No staff are available to review messages. Which change best fixes the guardrail design?

    • A. Make credit lookups return only the record of the applicant tied to the session, and drop the filter's score rule.
    • B. Send every message the filter blocks to a compliance queue, where a reviewer releases each notice whose score mention is allowed.
    • C. Exempt any message the agent labels as an adverse-action notice from the filter, and keep blocking scores in all other messages.
    • D. Drop the score rule from the outgoing filter, and add a system prompt rule to discuss only the current applicant's own data.
    Show answer and explanation

    Answer: A

    Reasoning. The filter blocks a category of content rather than the actual risk. The leak came from a lookup made with another applicant's ID, and scores reach the agent only through that lookup. Restricting lookups to the applicant bound to the session, in code outside the model, removes the path by which another applicant's score reaches the agent, so the blanket score rule is no longer needed and required notices can carry the applicant's own score.

    Why A is correct. Scoping the lookup to the session applicant enforces the real boundary at the data source, which ends the false positives on required notices without reopening the original leak.

    Why B is incorrect. No staff are available to review messages, and a deterministic control at the lookup can decide this without a human queue.

    Why C is incorrect. The label comes from the agent, so a message carrying another applicant's score could pass simply by being labeled as a notice.

    Why D is incorrect. A prompt instruction does not enforce whose record the agent may fetch, and the lookup would still return any applicant's score for a pasted ID.

    Source: code.claude.com, platform.claude.com

  32. Question 32

    1. Advanced Agent Architecture and Orchestration

    A city transit agency's incident-response agent handles every operations incident, from routine signal faults to novel events. Three months of data show signal faults are 70% of incidents and follow one eight-step checklist, yet use 65% of the agent's cost, while novel incidents are resolved well. A review found that 4% of incidents logged as signal faults were actually power failures needing a different response. Which design change best fits the data?

    • A. Replace the agent with fixed workflows for every incident type, since workflows are cheaper and easier to test than agents are.
    • B. Run the checklist as a workflow for signal faults, handing off to the agent whenever a step's result differs from what it expects.
    • C. Keep one agent for every incident but lower its effort level across the board, and track token savings per incident.
    • D. Route signal faults to a fixed checklist workflow with no path back to the agent, since the checklist covers what those incidents need.
    Show answer and explanation

    Answer: B

    Reasoning. Most of the cost goes to incidents that follow a known sequence, which a workflow handles predictably and cheaply. Classification is imperfect, though: some incidents logged as signal faults are something else. A workflow that checks each step's result and hands off to the agent when results do not fit keeps the savings while giving misclassified incidents a path to the agent.

    Why A is incorrect. Novel incidents do not follow a fixed sequence, so fixed workflows are poorly suited to the open-ended cases the agent already resolves well.

    Why B is correct. The workflow captures the savings on routine faults, and the hand-off gives misclassified incidents a path back to the agent whenever a step's result differs from what is expected.

    Why C is incorrect. Lowering effort for every incident could reduce quality on novel incidents, and the data give no evaluation showing that their successful handling would hold.

    Why D is incorrect. With no path back, the 4% of misclassified power failures stay in a checklist that cannot resolve them.

    Source: www.anthropic.com

  33. Question 33

    6. Cost and Latency Optimization at Scale

    A B2B supply-chain analytics SaaS sells AI forecasting with a monthly token allowance in each customer contract, and the contracts tolerate a small overrun. A tenant can have hundreds of forecasts in flight at once across model tiers, some with cached input. All 60 tenants' requests use one API key, and finance sees per-tenant usage only in monthly estimates built from application logs. Last quarter one tenant ran 40% past its allowance, twice, before anyone noticed. Finance must forecast next quarter's spend by tenant from Anthropic's reported usage. Which two measures together best keep each tenant close to its allowance and make its spend predictable? Select two.

    Choose two.

    • A. Before dispatch, atomically reserve each request's counted input tokens and its max_tokens from the tenant's balance, queue what does not fit, and settle from usage.
    • B. Send each tenant a monthly usage summary built from application logs, so customers can see their own consumption and manage it before it runs out.
    • C. Issue each tenant its own API key, and forecast each tenant's spend from the daily usage that the Usage and Cost Analytics API reports for that key.
    • D. Total each tenant's tokens from the usage field of every response, and start queuing that tenant's requests once the running total reaches its allowance.
    • E. Give each tenant a workspace with a monthly spend limit set from its allowance, so the platform itself stops that tenant's requests at the limit.
    Show answer and explanation

    Answer: A and C

    Reasoning. Two things are missing: enforcement in the contract's unit that accounts for requests already running in parallel, and measured per-tenant usage. For a request without server tools, max_tokens caps its output, and the token-counting endpoint estimates its input, which can differ from actual use by a small amount. Reserving both against the tenant's balance in one atomic step before dispatch, and queuing requests that do not fit, counts every request in flight, so any overrun is limited to small estimation differences rather than to however many parallel requests happen to be running. Settling each reservation from the response's usage fields, which report uncached input, cache creation, cache read and output tokens, corrects the balance to actual use. A separate API key per tenant lets the Usage and Cost Analytics API report each tenant's usage daily by API key, giving finance Anthropic's own figures to forecast from instead of log estimates.

    Why A is correct. Reserving each request's input estimate and output ceiling before it is sent accounts for parallel requests in flight, and settling from reported usage corrects the balance to what was actually used.

    Why B is incorrect. A monthly summary built from log estimates reports overruns only after they happen, the same lag that let one tenant run 40% past its allowance twice, and it gives finance no figures from Anthropic.

    Why C is correct. Per-key usage from the Usage and Cost Analytics API gives finance measured daily figures for each tenant.

    Why D is incorrect. A total built from completed responses lags the requests already in flight, and with hundreds of forecasts running at once a tenant can pass its allowance by far more than a small overrun before the check stops it.

    Why E is incorrect. A spend limit caps dollars, not tokens; with mixed model tiers and cached input, a tenant's cost per token varies, so the cap does not match the contracted allowance.

    Source: platform.claude.com, platform.claude.com, platform.claude.com

  34. Question 34

    8. Agent Fleet Operations for Software Delivery

    An internal developer-platform team plans to have Claude Code sessions add structured logging to 60 services in its monorepo at the same time. In a pilot, three sessions ran in one working directory: test runs picked up each other's half-finished edits, and two sessions overwrote the same shared logging config file. Running sessions one at a time would take about three weeks. Which approach best fits?

    • A. Give each session its own git worktree and branch, land the shared config change once from one session, then merge service branches.
    • B. Run the sessions one at a time in the shared directory, so that no two sessions touch the same files or test runs at once.
    • C. Give every session its own clone of the repository, and merge each clone's branch back as its service's logging work finishes.
    • D. Keep the shared directory, and tell each session in its prompt to edit only its own service folder and leave the shared config alone.
    Show answer and explanation

    Answer: A

    Reasoning. Parallel sessions in one directory share files and working-tree state, so their edits and test runs collide. Separate worktrees give each session its own working copy and branch from the same repository, so edits and test runs stay isolated. Landing the shared logging config change once, first, and merging the service branches after it keeps sessions from racing to edit that file.

    Why A is correct. Worktrees isolate each session's edits and tests, and landing the shared config change once first avoids merge conflicts over that file.

    Why B is incorrect. Serial runs avoid collisions but take about three weeks, losing the benefit of parallel work.

    Why C is incorrect. Separate clones isolate edits and test runs, but without landing the shared config change once, several service branches can still change that file and conflict when they merge.

    Why D is incorrect. A prompt instruction does not isolate test runs, and nothing enforces it for the shared file.

    Source: code.claude.com

  35. Question 35

    4. Advanced Debugging and Incident Response

    A regional health-plan member portal's benefits assistant started quoting wrong copay amounts within minutes of a prompt release at 10:00. By 10:20, members had received about 200 answers with wrong amounts. The release went out through the team's prompt registry, which can restore the previous version in one step, and nothing else changed that morning. Which action should the team take first?

    • A. Post a banner asking members to confirm copay amounts with member services while the team investigates the release.
    • B. Restore the prior prompt version, check that copay answers are right again, and then work out what in the change went wrong.
    • C. Patch the new prompt with an instruction forbidding guessed copay amounts, and release the patch straight away.
    • D. Compare the new and old prompts line by line to find the faulty instruction, then ship a corrected prompt once it is found.
    Show answer and explanation

    Answer: B

    Reasoning. Members are still receiving wrong amounts, about 200 in 20 minutes, the release is the only change that morning, and the previous version can be restored in one step. Rolling back is the fastest way to stop the harm and carries little risk because nothing else changed. Diagnosis can then proceed without members being affected.

    Why A is incorrect. A banner warns members but leaves the assistant giving wrong amounts.

    Why B is correct. A one-step rollback of the only recent change is the fastest way to stop the harm, and confirming that copay answers recover before investigating keeps members protected.

    Why C is incorrect. An untested patch on top of a bad release may not fix the problem and could add a new one.

    Why D is incorrect. Diagnosing first lets wrong answers continue for as long as the search takes.

    Source: www.anthropic.com

  36. Question 36

    5. Evaluation Engineering and Quality Assurance

    A small-business lending platform uses an LLM judge to score each generated credit memo from 1 to 5. Underwriters report that a low score does not show which part to fix. A review of 200 low-scored memos shows the judge's reasons name different problems for memos with the same flaw, and two underwriters agree with each other far more often than either agrees with the judge. The team has already added example memos for each score to the judge prompt. Which change most directly makes low scores actionable and checkable against underwriters?

    • A. Have the memo-writing model score each of its own sections before submission and drop the separate judge, so underwriters see one consistent score for every memo.
    • B. Move the judge to a more capable model tier, since a stronger judge will give holistic scores that agree with underwriters more often.
    • C. Replace the single score with pass or fail checks per memo section, each with a written criterion, so each check's agreement with underwriters can be measured.
    • D. Add more scored example memos at every point of the 1-to-5 scale, so the judge learns a consistent meaning for each holistic score.
    Show answer and explanation

    Answer: C

    Reasoning. A holistic 1-to-5 score compresses many judgments into one number, so the same flaw can earn different reasons and a low score cannot point to a section. The underwriters agree with each other, so consistent judgments of these memos are achievable. Breaking the rubric into section-level pass or fail checks with explicit criteria makes each failure point to a section, and measuring each check's agreement with underwriter labels shows where any remaining judge errors sit.

    Why A is incorrect. Self-scoring by the model that wrote the memo is not independent evaluation, and removing the judge does nothing to calibrate scores against underwriters.

    Why B is incorrect. A larger judge may agree more often, but its holistic score still does not identify sections, and agreement must be measured rather than assumed.

    Why C is correct. Section-level criteria answer both problems in the stem: they make low results point to a section and they make the judge's reliability measurable per criterion against underwriter labels.

    Why D is incorrect. The team has already added examples for each score, and more examples still leave one number that cannot say which section failed.

    Source: platform.claude.com, www.anthropic.com

  37. Question 37

    3. Observability and Production Monitoring

    A city transit agency's trip-planner agent sends traces to a backend with a fixed daily trace budget. The collector keeps a random 2% of traces, decided when each request starts, and lowers that rate as volume rises to stay inside the budget. During service disruptions, traffic rises sixfold and tool-call errors spike, yet afterward the on-call team finds only a handful of failed traces to study. Raising the overall sampling rate would exceed the budget, while keeping every failed and timed-out trace would use under a fifth of it even at the surge peak. Which sampling change best preserves failure evidence during surges?

    • A. Keep every trace for a fixed set of rider accounts, so that each sampled journey can be followed end to end through a disruption.
    • B. Decide sampling after each trace completes, keeping all error and timeout traces plus a small random share of successes, so failures survive surges.
    • C. Keep deciding at request start but weight the rate toward tools with the highest recent error rates, lowering other tools' rates so the total stays in budget.
    • D. Keep the current sampling and add per-tool error and latency histograms, since aggregates cover every request rather than a thinning 2% sample.
    Show answer and explanation

    Answer: B

    Reasoning. Head-based sampling decides before the outcome is known, and under a fixed budget the rate falls exactly when volume and failures rise, so failed traces are thinned out at the worst moment. Tail-based sampling decides after the trace finishes, so it can keep all failed or timed-out traces, which fit within a fifth of the budget even at peak, and spend the rest on a small baseline of successes. Failure evidence survives the surge, and the baseline still allows failed traces to be compared with normal ones.

    Why A is incorrect. Sampling only a fixed set of riders can omit failed traces from riders outside that set, so it does not preserve all failure evidence.

    Why B is correct. Deciding on outcome keeps the scarce failure traces and lets the success baseline absorb budget pressure during surges.

    Why C is incorrect. Recent tool error rates can guide sampling, but a decision made at request start cannot use that request's eventual outcome, so failed and timed-out requests that were not selected are still dropped.

    Why D is incorrect. Histograms show that a tool's errors rose, but aggregates do not keep the individual spans, attributes and sequence inside a failed trace, so the per-trace evidence needed for diagnosis is still lost.

    Source: platform.claude.com, opentelemetry.io

  38. Question 38

    6. Cost and Latency Optimization at Scale

    A city transit agency's operations assistant serves two workloads through one integration: short replies to dispatchers during live service disruptions, and overnight analysis of next week's schedules. Both run at high effort. Dispatchers report that disruption replies take too long, and traces show most of each reply's time passes in thinking before any text is produced. Evals show disruption replies keep the same quality at low effort, while overnight analysis quality drops below high. Which change best meets the dispatchers' needs?

    • A. Stream disruption replies to dispatchers so text appears as soon as it is produced, keeping high effort for both workloads.
    • B. Set effort per request by route, low for disruption replies and high for overnight schedule analysis, so each keeps its eval quality.
    • C. Move both workloads to a faster model tier at high effort, so disruption replies speed up without any change to effort settings.
    • D. Lower effort to low for the whole integration, since one shared setting is simpler to manage and disruption replies hold their quality there.
    Show answer and explanation

    Answer: B

    Reasoning. In the Messages API, effort is set on each request and is a behavioral signal for how much the model thinks and how many tokens it spends, not a strict budget; lower effort trades some capability for speed and lower cost. The two workloads have opposite needs: the evals show disruption replies keep the same quality at low effort, while overnight analysis quality drops below high. Setting effort per route reduces the thinking time that delays dispatchers and keeps the depth the overnight job depends on.

    Why A is incorrect. Most of each short reply's time passes in thinking before any text exists, so streaming text does not shorten that wait before dispatchers see the first words.

    Why B is correct. Per-request effort matches each workload to the level its evals support, cutting disruption latency without touching overnight quality.

    Why C is incorrect. Changing tier for both workloads risks the overnight quality that the evals tie to high effort, and it is a larger change than the per-route setting the evidence supports.

    Why D is incorrect. A single low setting reduces dispatcher latency, but the stem's eval shows overnight analysis quality drops below high effort.

    Source: platform.claude.com

  39. Question 39

    8. Agent Fleet Operations for Software Delivery

    An internal developer-platform team will pilot an AI code reviewer across all service repositories. Leadership wants the reviewer to block merges eventually, but no one yet knows how often its findings are correct or how many real defects it misses. During the pilot, human review remains the merge requirement and developers must not be slowed down. Which two pilot steps together show whether the reviewer is ready to gate merges? Select two.

    Choose two.

    • A. Run the reviewer on every pull request with findings posted as comments that do not block merging, while human review continues unchanged.
    • B. Compare its findings with human review comments and later production defects on the same pull requests, to measure false alarms and misses.
    • C. Make the reviewer a required status check on low-traffic repositories first, so its blocking behaviour can be observed on real merges.
    • D. Track how many comments the reviewer posts per pull request and how often developers react to them, as a measure of its usefulness.
    • E. Ask the reviewer to attach a confidence score to each finding, and treat high-confidence findings as verified for the pilot.
    Show answer and explanation

    Answer: A and B

    Reasoning. The two steps act together. Running the reviewer in shadow mode produces findings on real pull requests without affecting merges, which is the evidence base. Comparing those findings with what human reviewers flagged and with defects found later measures precision and missed defects, which is the calibration leadership needs before giving the reviewer merge authority. A review result on its own does not approve or block a pull request, so shadow operation is a natural starting state.

    Why A is correct. Shadow operation collects the reviewer's findings on real changes while humans keep the merge decision.

    Why B is correct. Comparison against human review and later defects is the calibration step that shows false positives and misses.

    Why C is incorrect. Blocking merges before accuracy is measured is gating without calibration, and it can slow developers, which the pilot must avoid.

    Why D is incorrect. Comment volume and reactions measure activity and attention, not whether findings are correct or defects are caught.

    Why E is incorrect. A model's confidence in its own findings is not independent verification of whether they are correct.

    Source: code.claude.com

  40. Question 40

    8. Agent Fleet Operations for Software Delivery

    An internal developer-platform team rolls out a coding agent to 40 engineering teams through managed settings that export OpenTelemetry metrics to the company collector, with OTEL_RESOURCE_ATTRIBUTES setting a team.id for each team. Token-usage dashboards show one team, which works across 30 repositories, using four times as much as the others, but its usage carries no repository identity and lists its subagents only as 'custom'. The team's engineers set OTEL_LOG_TOOL_DETAILS in each repository's .claude/settings.json, which changed nothing. Which change should the platform team make?

    • A. Have engineers set OTEL_LOG_TOOL_DETAILS in each repository's .claude/settings.local.json instead, so it applies to their own sessions there.
    • B. Add a repository value to the team's OTEL_RESOURCE_ATTRIBUTES in managed settings, so its token usage is labelled with the repository it came from.
    • C. Enable OTEL_LOG_USER_PROMPTS in managed settings, so analysts can read each prompt and infer which repository and subagent drove the usage.
    • D. Enable OTEL_METRICS_INCLUDE_REPOSITORY and OTEL_LOG_TOOL_DETAILS in managed settings, so usage carries repository identity and real subagent names.
    Show answer and explanation

    Answer: D

    Reasoning. Claude Code ignores enabling values of the content-capture telemetry variables, including OTEL_LOG_TOOL_DETAILS, in a repository's project and local settings; there, only an off value such as 0 applies, and only to override user settings. That is why the engineers' change did nothing, and managed settings can enable them. OTEL_METRICS_INCLUDE_REPOSITORY adds vcs.* repository identity to metrics and events, and OTEL_LOG_TOOL_DETAILS replaces the redacted 'custom' and 'third-party' placeholders with real agent, Skill, plugin and MCP names on the cost and token counters. The tool-detail setting also adds tool input to log events and trace spans when those are exported, which the team should accept knowingly.

    Why A is incorrect. Enabling the variable is ignored in local settings just as in project settings, so moving the value fails for the same reason and still adds no repository identity.

    Why B is incorrect. A managed resource attribute is fixed for every session the team runs, so one value cannot tell the team's 30 repositories apart.

    Why C is incorrect. Prompt capture exposes conversation content and still leaves repository and subagent to be inferred by hand rather than recorded on each datapoint.

    Why D is correct. These two managed settings add the repository and subagent dimensions the dashboards are missing.

    Source: code.claude.com, code.claude.com

  41. Question 41

    2. Production Integration, Reliability, and Knowledge Grounding

    A regional health plan's coverage assistant retrieves plan-document sections and answers member questions. It passes an offline eval of 400 questions written with official plan names, yet members report wrong answers. Logs show members asking about plans by nicknames such as 'the gold card plan', which appear nowhere in the plan documents; for those queries, retrieval returns sections from unrelated plans. Last month the team re-chunked the documents into smaller sections, with no change in these failures. Which change fixes the failure at the stage that causes it?

    • A. Instruct the model to ask members for their plan's official name whenever the retrieved sections do not match the plan they mention.
    • B. Add a reranker after retrieval, so the most relevant plan sections move to the top of the results for every member question.
    • C. Re-chunk the plan documents again with larger, overlapping windows, so each chunk carries more surrounding plan context for the retriever to match.
    • D. Rewrite member queries before retrieval using a maintained nickname-to-plan-name table, and add nickname phrasings to the offline eval.
    Show answer and explanation

    Answer: D

    Reasoning. The logs identify a query-to-plan mapping failure: members use nicknames that appear nowhere in the corpus, and for those queries this retriever returns unrelated plans, so the nicknames have to be mapped to official plan names rather than sent unchanged to the retriever. The offline eval passed because it used only official names, which hid the gap. Mapping nicknames to official names before retrieval fixes the mismatch where it occurs, and adding nickname phrasings to the eval keeps the gap from hiding again.

    Why A is incorrect. Asking for official names may recover individual conversations, but it leaves the nickname-to-plan retrieval mismatch in place for every other member.

    Why B is incorrect. A reranker only reorders the candidates retrieval returned, and for nickname queries those candidates come from the wrong plans.

    Why C is incorrect. Chunking only changes how existing document text is split, and the nicknames appear nowhere in the plan documents, so larger windows still contain no nickname text to match, just as smaller sections made no difference.

    Why D is correct. Query rewriting bridges the vocabulary gap before retrieval, and the added nickname phrasings make the offline eval exercise those queries from now on.

    Source: www.anthropic.com

  42. Question 42

    2. Production Integration, Reliability, and Knowledge Grounding

    A city transit agency's rider-alert service uses Claude to turn operators' service notes into rider-friendly alerts on its app. When the model API returns overloaded errors or times out for a minute or two, riders see an error screen instead of any alert. Operators' raw notes are accurate but terse. The team has already added retries with exponential backoff, which recover most short failures but leave riders waiting with no information. Which fallback keeps riders informed during short model outages?

    • A. Queue alerts that fail and publish them together once the API recovers, so every alert keeps the same generated style.
    • B. Increase the retry count and the maximum backoff, so that more requests eventually succeed before riders see the error screen.
    • C. After a short retry budget, publish the operator's note in a fixed alert template, then replace it once a generated alert succeeds.
    • D. During failures, show the last generated alert for each affected route, labelled with the date and time it was first published to riders.
    Show answer and explanation

    Answer: C

    Reasoning. Graceful degradation means serving a simpler but correct result when the dependency is down. The operator's note is already accurate, so a fixed template can deliver it without the model, and riders get the information during the outage. Bounding retries keeps the delay short, and swapping in the generated alert later restores the normal experience once the API responds.

    Why A is incorrect. Holding alerts until recovery leaves riders uninformed for the whole outage, which is the problem to solve.

    Why B is incorrect. More retries and longer backoff lengthen the wait the stem already describes, and riders still see nothing until a call succeeds.

    Why C is correct. Once the short retry budget is spent, the template fallback serves accurate information without waiting out the outage, and a generated alert replaces it once the model is available.

    Why D is incorrect. An earlier alert for the route may describe a different situation, so it can give riders wrong information during a new disruption.

    Source: platform.claude.com

  43. Question 43

    2. Production Integration, Reliability, and Knowledge Grounding

    An internal developer-platform team's documentation assistant answers engineers' questions about a monorepo that receives commits every hour. Answers come from a vector index rebuilt nightly, and a full rebuild takes four hours. Engineers report answers that describe functions renamed that morning. The same index covers design documents that change a few times a month, and engineers rate those answers well. Which retrieval change best fits the freshness each source needs?

    • A. Add the index build date to every answer and a note telling engineers to check the code itself when an answer may be stale.
    • B. Rebuild the whole vector index every hour, so code and design documents are both at most an hour old when engineers ask.
    • C. Give the assistant search and file-read tools over the live repository for code questions, and keep the nightly index for design documents.
    • D. Replace the vector index with agentic search over both the repository and the design documents, so that every source the assistant uses is read live.
    Show answer and explanation

    Answer: C

    Reasoning. The two sources change at very different rates. Code changes hourly, so a nightly index that takes four hours to rebuild will lag recent commits; agentic search with search and file-read tools reads the live repository at question time. Design documents change rarely and already get good answers from the index, so keeping the index for them preserves what works. Matching the retrieval method to each source's change rate fixes the stale code answers with the smallest change.

    Why A is incorrect. Showing the build date declares the staleness but leaves the stale answers in place.

    Why B is incorrect. Starting a four-hour full rebuild every hour does not make the indexed code at most an hour old; overlapping rebuilds still leave answers hours behind the latest commits.

    Why C is correct. Live search covers the fast-changing code, and the existing index keeps serving the slow-changing documents well.

    Why D is incorrect. Replacing the index for design documents discards a retrieval path engineers already rate well, which is an overcorrection.

    Source: www.anthropic.com

  44. Question 44

    2. Production Integration, Reliability, and Knowledge Grounding

    A city transit agency's rider agent calls the Messages API once for each rider question. After a major service disruption, question volume jumps within seconds, and many calls fail with 429 rate_limit_error responses that carry a retry-after header. The client retries each failed call immediately, and logs show the failure count climbing until the surge passes. The agency's rate limits are shared across its whole organization. Which client behaviour should replace the immediate retries?

    • A. Retry each failed call at once through a second API key, so the surge is spread across the two keys and fewer of the calls are rejected.
    • B. Send rider questions through the Message Batches API during disruptions, so requests wait on the provider side instead of failing.
    • C. Keep retrying at once but shorten each prompt, so every request uses fewer input tokens and stays under the token limit.
    • D. Wait the time given in retry-after, use exponential backoff with jitter when it is absent, and cap attempts, so the burst can drain.
    Show answer and explanation

    Answer: D

    Reasoning. A 429 means the organization has exceeded a limit, and the retry-after header states how many seconds to wait before retrying; earlier retries might fail. Immediate retries add load during the very burst that caused the limit, so failures keep climbing. Honouring retry-after, falling back to exponential backoff with jitter when the header is missing, and capping attempts lets the client spread requests out and recover as capacity returns. This fits errors like these, which carry retry-after and clear when the surge passes; a 429 from reaching the tier's monthly spend cap carries no retry-after header and keeps failing until access resumes, so retries do not clear it.

    Why A is incorrect. The limits apply to the organization, so a second key does not add capacity, and immediate retries keep the burst going.

    Why B is incorrect. Batches are processed asynchronously, which suits work that can wait, not riders expecting answers during a disruption.

    Why C is incorrect. Shorter prompts may ease input-token pressure, but immediate retries still ignore the retry-after instruction and keep adding load during the burst.

    Why D is correct. It follows the documented guidance to wait for retry-after, back off and cap attempts, and jitter spaces the retries so the burst can drain.

    Source: platform.claude.com, platform.claude.com

  45. Question 45

    3. Observability and Production Monitoring

    An internal developer-platform team runs a code-search assistant with an SLO that 99% of requests succeed within 8 seconds over 30 days. Its only alert pages whenever p95 latency exceeds 8 seconds in any five-minute window, and it fires several times a week for spikes that clear on their own. Last month, a gradual degradation over seven days used 80% of the monthly error budget, and no alert fired because no single window crossed the threshold. Which alerting change best fits this SLO?

    • A. Alert on error-budget burn rate over paired long and short windows, paging on fast burn and opening a ticket on slow, sustained burn.
    • B. Lower the p95 latency threshold to 6 seconds, so a gradual degradation like last month's crosses it before the budget is spent.
    • C. Add a dashboard of daily error-budget use that the on-call engineer reviews each morning, so slow drains are seen before the budget runs out.
    • D. Require the latency alert to fire in three consecutive five-minute windows before it pages the on-call engineer.
    Show answer and explanation

    Answer: A

    Reasoning. The SLO counts a request as bad when it fails or takes longer than 8 seconds, and allows 1% bad requests over 30 days. A p95 threshold measures something different: a brief spike can push p95 over 8 seconds while consuming little budget, and a slow degradation can make several percent of requests bad while p95 stays under 8 seconds in every window. Alerting on error-budget burn rates, each over a long window confirmed by a short one, pages quickly on a fast drain, ignores spikes that consume little budget and opens a ticket for a slow, sustained drain.

    Why A is correct. Burn-rate alerts tie paging and ticketing to budget consumption, which covers both the noisy spikes and the slow drain.

    Why B is incorrect. A lower threshold pages even more often on short spikes and still judges each five-minute window alone.

    Why C is incorrect. Daily review can spot a slow drain, but it leaves the current alert paging on brief spikes, and a fast burn from failing requests that never lifts p95 above 8 seconds waits for the next morning's review.

    Why D is incorrect. Requiring consecutive windows reduces noise but still never fires on a degradation that stays below the threshold in every window.

    Source: platform.claude.com, sre.google

  46. Question 46

    3. Observability and Production Monitoring

    A small-business lending platform's document-extraction agent fails on about 6% of loan applications. Analysts suspect scanned PDFs fail more often, because the five failed traces they opened all contained scans. Traces carry the application ID, outcome and tool-call spans, but no attribute records whether a document was scanned or born-digital. Last month produced about 90,000 traces, and the original files are stored. Which two steps together test the scanned-document hypothesis? Select two.

    Choose two.

    • A. Group all traces by document type and compare failure rates between the scanned and born-digital groups across the whole month.
    • B. Open another fifty failed traces and count how many contain scans, so that the conclusion rests on a much larger sample of failures than before.
    • C. Add a document-type attribute to the extraction span, recording scanned or born-digital, and backfill it for last month's traces from the stored files.
    • D. Ask the agent to state in its final message whether the document's format caused trouble, and tally those statements.
    • E. Route every scanned application to a more capable model tier for a week and check whether the overall failure rate falls.
    Show answer and explanation

    Answer: A and C

    Reasoning. The two steps act together. A cohort comparison needs a field to group by, so the first step records document type on every trace and backfills last month from the stored files. The second step compares failure rates between the two cohorts across all traces. If scans make up most applications, failed traces will contain scans even when scans fail no more often, so only a comparison of rates can test the hypothesis; a difference shows an association to investigate, not proof that scanning causes the failures.

    Why A is correct. Comparing failure rates across complete cohorts quantifies whether scans fail more often than born-digital files.

    Why B is incorrect. Looking only at failures ignores how common scans are among successes, so a larger failure sample still cannot show a higher failure rate.

    Why C is correct. Without a document-type attribute the traces cannot be split into the cohorts the hypothesis is about.

    Why D is incorrect. The agent's own account of what caused trouble is not measured evidence and may not reflect the real cause.

    Why E is incorrect. Changing the model for scans is a fix tried before the cause is measured, and any change in the overall rate mixes several effects.

    Source: platform.claude.com

  47. Question 47

    8. Agent Fleet Operations for Software Delivery

    An internal developer-platform team's coding agents now open twice as many pull requests a week as last quarter, while human reviewer numbers are unchanged, and median review wait has grown from hours to three days. An AI reviewer has run in shadow mode on agent pull requests for two months. On dependency bumps and test-only changes, about 70% of the volume, it raised every finding human reviewers raised, and reviewers upheld its other comments as often as their own. On authentication and billing changes it missed a third of the human findings. Which change best restores review flow?

    • A. Cap agent output at last quarter's pull-request rate, so the queue matches reviewer capacity until more reviewers are hired.
    • B. Route dependency bumps and test-only changes to AI review with passing CI, and keep required human review for every other kind of change.
    • C. Let AI review approve every agent pull request that passes CI, and have human reviewers sample a share of the merged changes each week afterward.
    • D. Assign each agent pull request to two reviewers in rotation, so whichever reviewer is free first can pick the change up sooner.
    Show answer and explanation

    Answer: B

    Reasoning. Review capacity is fixed, so it has to go where it changes outcomes. The shadow run shows the AI reviewer matching human reviewers on dependency and test-only changes, both in what it caught and in how often its comments held up, and those changes are most of the volume. On authentication and billing code it missed a third of the human findings. Promoting only the categories where the AI reviewer matched human reviewers lets AI review and CI clear most of the queue and keeps human review everywhere the AI reviewer has not been shown to match it.

    Why A is incorrect. Capping output gives up the doubled throughput, and most capped work is the kind on which the AI reviewer matched human reviewers in shadow mode.

    Why B is correct. Promotion covers only the change types where the shadow run showed the AI reviewer matching human reviewers, and every other category, including authentication and billing, keeps required human review.

    Why C is incorrect. The AI reviewer missed a third of the human findings on authentication and billing changes, so letting it approve every pull request that passes CI risks merging issues it misses, and sampling after merge detects rather than prevents.

    Why D is incorrect. A second assignee lets whichever reviewer is free pick a change up, but it adds no reviewer hours for doubled volume and leaves the measured AI-review opportunity unused.

    Source: code.claude.com

  48. Question 48

    3. Observability and Production Monitoring

    A B2B supply-chain analytics SaaS runs a forecasting agent that loops through tool calls until a report is complete. Cost dashboards show some runs costing ten times the median. Each run emits one span with total input and output tokens and a list of the tools called, and the expensive runs call the same tools, in similar counts, as normal runs. Iteration caps did not change these runs, and the company's data policy forbids copying customer content into telemetry. Which instrumentation change would show where tokens accumulate inside the expensive runs?

    • A. Add each run's iteration count and the order of its tool calls to the existing run span, so expensive runs can be compared with normal ones.
    • B. Attach the full prompt and response text of every request in a run to the existing run span, and compare expensive runs with normal ones.
    • C. Record total tokens per run as a histogram metric tagged by customer, so cost outliers can be grouped and compared across tenants.
    • D. Emit a child span for each model request with its input, output and cache-read tokens, and a span per tool call with its result size.
    Show answer and explanation

    Answer: D

    Reasoning. A run-level total cannot show where cost builds up. Each turn resends the conversation so far, so a large tool result early in a run may be paid for again on every later request, and similar tool counts can hide very different token growth. Spans for each model request with token and cache fields, nested under the run, plus tool spans with result size, would confirm or rule out that pattern by showing which step's input jumps and which tool result is carried forward.

    Why A is incorrect. Iteration counts and tool order still describe the run as a whole, and the expensive runs already resemble normal ones in tool use, so this cannot show which request's token usage grows.

    Why B is incorrect. The data policy forbids copying customer content into telemetry, and full prompt and response text is customer content. Token growth per request can be measured from usage fields without capturing any content.

    Why C is incorrect. Per-run totals grouped by customer show which tenants are expensive but still give no view inside a run.

    Why D is correct. Per-request spans with token counts and per-tool spans with result sizes give the step-level figures needed to see where tokens accumulate, without capturing customer content.

    Source: platform.claude.com

  49. Question 49

    7. Runtime Guardrails and Production Security

    A city transit agency's public assistant lets signed-in riders save routes with free-text notes, which a memory tool stores per device and loads into later conversations. Testers found that a note written like a system instruction made the assistant offer refund links to ineligible riders in later sessions, and that a note saved on a shared station kiosk appeared for a different rider. Last week the team added a keyword filter for phrases such as 'ignore previous instructions', and testers bypassed it with reworded notes. Which mitigation best closes both findings?

    • A. Bind saved notes to the rider's account, return them as untrusted tool data, and gate refund links on a server-side eligibility check.
    • B. Add system prompt rules to ignore instructions in saved notes and to offer refund links only to riders the assistant judges eligible.
    • C. Remove free-text notes and keep only saved route coordinates, so that no rider-written text reaches later conversations.
    • D. Clear kiosk memory when each session times out, and add a classifier that rejects notes resembling instructions at the moment they are saved.
    Show answer and explanation

    Answer: A

    Reasoning. There are two separate weaknesses. Notes are stored per device rather than per rider, so one rider's note reaches another rider on a shared kiosk; and stored text can steer the model, so a poisoned note can trigger actions in later sessions. Binding storage and retrieval to the rider's account closes the cross-rider path. Returning notes as untrusted tool data reduces instruction confusion but is not a boundary on its own; the server-side eligibility check is what stops an injected note from producing an unauthorized refund link, because it is enforced outside the model.

    Why A is correct. Account scoping closes cross-rider access, and the server-side eligibility check stops saved notes from causing unauthorized refund links.

    Why B is incorrect. Prompt rules leave both the note handling and the refund-link decision to the model, and they do not stop notes appearing for the wrong rider.

    Why C is incorrect. Removing free text discards a useful feature, and saved routes would still reach the wrong rider because memory is not scoped to identity.

    Why D is incorrect. A timeout leaves a window in which the next rider at the kiosk still sees the previous note, the classifier is a probabilistic screen that reworded notes can pass, and refund links still depend on the model.

    Source: platform.claude.com, platform.claude.com

  50. Question 50

    5. Evaluation Engineering and Quality Assurance

    A city transit agency evaluates its trip-planner assistant offline against a golden set of 600 questions with reference answers, and accuracy has stayed above 95% for three releases. In one passing answer, the assistant states that the last route 42 bus leaves Central Station at 23:40, which matches the reference, and cites a passage listing route 42's weekday stops without any times. The citations feature is on, and every citation resolves to a real passage in a retrieved document. Which evaluation change best exposes answers like this?

    • A. Score retrieval precision, the share of retrieved documents relevant to each question, and gate every release on it together with answer accuracy.
    • B. Score citation validity, checking that every cited document and passage exists, and gate each release on it alongside answer accuracy.
    • C. Have a grader check whether each cited passage supports the claim attached to it, and gate releases on that support rate as well as on accuracy.
    • D. Add golden questions about rarely used routes, so the accuracy metric covers more schedules and catches answers the current set misses.
    Show answer and explanation

    Answer: C

    Reasoning. Accuracy against a reference answer checks only the final value, so an answer that matches the reference, whatever its source, passes even when the passage it cites does not contain the claim. A claim-level support check compares each statement with the passage cited for it, which is the gap the example shows. Gating on that support rate alongside accuracy makes unsupported answers visible in every release.

    Why A is incorrect. Retrieved documents can be relevant to the question while the cited passage still lacks the stated time, so retrieval precision does not test support.

    Why B is incorrect. Every citation already points to a real passage, so a validity score would read perfect while the cited passage still lacks the stated time.

    Why C is correct. Checking each claim against its cited passage measures support, which accuracy cannot see.

    Why D is incorrect. More questions broaden accuracy coverage, but they still do not check whether cited passages support the attached claims, so accurate answers with unsupported citations keep passing.

    Source: platform.claude.com

  51. Question 51

    1. Advanced Agent Architecture and Orchestration

    A small-business lending platform runs an autonomous agent to check application documents: confirm that the tax return, bank statements, business license and owner ID are present, extract five fields from each, and compare them with the application form. Policy requires the same checks in the same fixed order for every application. Production traces show that the agent completes checks correctly but chooses a different step order on each run. In every run, about two-thirds of the tokens go to the agent deciding which check to do next. Which design should the platform adopt?

    • A. Use a supervisor agent that sends each document type to its own subagent and merges their findings into one result.
    • B. Keep the autonomous agent at a lower effort level, so it plans fewer steps and spends fewer tokens on each application.
    • C. Keep the autonomous agent and give its system prompt an ordered checklist with a completion check for each step.
    • D. Have application code call Claude for each check in turn, validating each step's output before moving to the next.
    Show answer and explanation

    Answer: D

    Reasoning. Workflows suit tasks whose steps are known in advance; agents suit tasks where the model must decide the path. This check has fixed steps in a fixed order, so the agent's planning adds cost and variation without adding value, as the traces show: most tokens go to choosing the next check, and the order still changes from run to run. Code that calls Claude for each check in turn gives the same order every time, predictable cost, and checkpoints between steps where outputs can be validated.

    Why A is incorrect. A multi-agent design adds coordination cost and complexity to a task with no need for dynamic delegation.

    Why B is incorrect. Lower effort may cut tokens, but the agent still chooses its own step order rather than following an enforced sequence, so runs can still vary.

    Why C is incorrect. A checklist in the prompt asks the agent to follow the order rather than enforcing it, and the agent still spends tokens deciding each next step.

    Why D is correct. Code-controlled steps fix the order, validate outputs between steps, and remove the planning tokens.

    Source: www.anthropic.com

  52. Question 52

    7. Runtime Guardrails and Production Security

    A B2B supply-chain analytics SaaS's order-support agent uses the MCP connector to reach a shipping vendor's remote MCP server, with all of the server's tools enabled. An unannounced vendor release changed the description of the rate-lookup tool to ask for the customer's full account record, including pricing contracts, and staging traces show the agent began sending it. Nothing in the platform's own configuration changed. The agent legitimately needs the rate-lookup and shipment-status tools. Which MCP configuration change best stops unreviewed tool changes from reaching production?

    • A. Add a system prompt rule that the agent must never send pricing contracts or full account records to any shipping-vendor tool it calls.
    • B. Log every call to the vendor server with its full arguments, and alert security whenever a request includes pricing-contract fields.
    • C. Allowlist only the rate-lookup and shipment-status tools in the toolset configuration, disabling every other vendor tool by default so none can reach the agent.
    • D. Reach the vendor through the platform's own gateway that pins approved tool definitions and blocks changed ones until review, exposing only the two tools.
    Show answer and explanation

    Answer: D

    Reasoning. The model reads tool descriptions as guidance on how to call a tool, so a third party that changes a description can change the agent's behaviour without any local change. A strong defence is to treat tool definitions as reviewed configuration: a gateway the platform controls records approved definitions, compares each new version, and blocks changed ones until review, which stops the change before production. Where the MCP connector's beta tool-list pinning is available, pinning the reviewed list serves the same purpose. Exposing only the two needed tools also shrinks what a future change can reach.

    Why A is incorrect. A prompt rule competes with the tool description the model is also reading, and it is not an enforced boundary on what leaves the system.

    Why B is incorrect. Logging and alerting detect the leak after customer account data has already been sent rather than preventing it.

    Why C is incorrect. Allowlisting narrows the tool set but the changed tool is one of the two allowlisted ones, so its new description still reaches production.

    Why D is correct. Pinning reviewed definitions blocks the changed description, and the narrow exposure limits the blast radius of later changes.

    Source: platform.claude.com, code.claude.com

  53. Question 53

    1. Advanced Agent Architecture and Orchestration

    A small-business lending platform's underwriting agent reads twelve months of bank statements through a document tool, extracts monthly revenue and balances, then spends many more turns on analysis. Usage data shows the raw statement tool results make up most input tokens in later turns, and sessions approach the cost ceiling. Examiners require every figure in the credit memo to trace to a statement page. A trial of compaction cut tokens, but some summaries rounded figures and dropped page references. Which context policy best fits these requirements?

    • A. Write each extracted figure with its statement and page to a structured record, then clear the raw statement results with context editing.
    • B. Move statement reading into a subagent that returns a prose summary of each month, so the raw statements stay out of the main agent's context.
    • C. Compact more often with a summary prompt instructing the model to preserve every figure and page reference exactly as written.
    • D. Move the agent to a model with a larger context window, so the raw statements fit beside the analysis without being removed.
    Show answer and explanation

    Answer: A

    Reasoning. Once the figures are extracted, the raw statements are spent tool output that every later turn pays for again. Tool result clearing removes old tool results and leaves a placeholder, so tokens fall without rewriting anything else. Saving each figure with its source page first keeps the traceability examiners require, which a free-text summary cannot guarantee, as the compaction trial showed.

    Why A is correct. A structured record keeps exact figures and sources, and clearing the raw results removes the tokens that drive cost.

    Why B is incorrect. Isolating the reading helps context size, but a prose summary has the same risk of altered figures and lost page references that the trial found.

    Why C is incorrect. Compaction rewrites history as a summary, and the trial already showed summaries altering figures; an instruction asks for accuracy rather than guaranteeing it.

    Why D is incorrect. A larger window lets the statements stay, but every later turn still pays for those input tokens, so the cost problem remains.

    Source: platform.claude.com, platform.claude.com

  54. Question 54

    8. Agent Fleet Operations for Software Delivery

    An internal developer-platform team runs a scheduled task every Monday in which a coding agent bumps outdated dependencies and opens one pull request per service. Many earlier pull requests are still unmerged, some with reviewer comments, so each week adds a new pull request that conflicts with the previous one on the same lockfile. The agent starts each run from a clean clone with no record of earlier runs. Which change to the scheduled run best stops the pile-up?

    • A. Have the agent close all of its own open pull requests at the start of each run, then open fresh ones from the latest main branch for every service.
    • B. Tell the agent in the task prompt to avoid changing any lockfile that another open pull request in the repository already modifies.
    • C. Run the task every day instead of weekly, so each pull request is smaller and less likely to conflict with the others.
    • D. Have each run first look up its open pull requests from earlier runs and update the existing branch per service instead of opening another.
    Show answer and explanation

    Answer: D

    Reasoning. An unattended agent that starts with no memory of earlier runs repeats work and collides with its own unfinished output. The fix is to make each run read prior state, here the open pull requests the agent already created, and continue from it. Updating the existing branch keeps one pull request per service, preserves reviewers' comments, and avoids duplicate pull requests competing over the same lockfile.

    Why A is incorrect. Closing and reopening leaves reviewer comments on abandoned pull requests and creates unnecessary review churn, which is an overcorrection.

    Why B is incorrect. Skipping lockfiles already changed by open pull requests avoids new lockfile conflicts, but it leaves the existing pull requests stale rather than updating them and can block dependency bumps whenever any open pull request touches the lockfile.

    Why C is incorrect. Running more often without reading prior state creates more overlapping pull requests, not fewer.

    Why D is correct. Checking existing pull requests gives the run the state it lacks and turns new work into updates.

    Source: code.claude.com

  55. Question 55

    6. Cost and Latency Optimization at Scale

    A small-business lending platform's credit agent must return a decision summary within 15 seconds. Traces show it calls the bureau-report, bank-statement and fraud-flag tools one per turn, each tool taking about 5 seconds, and no tool uses another's output; model time across all turns totals 6 seconds. The system prompt tells Claude to call one tool at a time. A test on a faster model tier cut model time by 2 seconds and still missed the target. Which change most directly meets the target?

    • A. Move the agent to a faster model tier and also lower its effort, so model time falls enough to absorb the time the tools take.
    • B. Cache the system prompt and tool definitions, so each turn of the agent loop processes its input in less time.
    • C. Stream the decision summary to underwriters, so the first words appear sooner while the three checks still run in sequence.
    • D. Remove the one-tool-at-a-time instruction so Claude requests all three checks in one turn, and run those calls concurrently.
    Show answer and explanation

    Answer: D

    Reasoning. The latency profile is dominated by 15 seconds of tool time spent in sequence, against 6 seconds of model time. Because the three checks are independent, they can be requested in one turn and run concurrently, which brings tool time to about 5 seconds and the total well under the target. Claude can call multiple tools in one response by default; the prompt instruction is what prevents it.

    Why A is incorrect. Model time is the smaller share; the stem shows a faster tier saved 2 seconds, and even removing all model time leaves 15 seconds of tools.

    Why B is incorrect. Caching can trim processing of repeated input, but it does not touch the 15 seconds of sequential tool time.

    Why C is incorrect. Streaming improves time to first token, but the target is for the complete summary, which still waits for three sequential checks.

    Why D is correct. Running independent tools in parallel removes the largest part of the latency.

    Source: platform.claude.com

  56. Question 56

    1. Advanced Agent Architecture and Orchestration

    A city transit agency's rider-services agent has about 180 tools across trip-planning, fare and lost-property systems; five trip-planning tools are called in nearly every session. The team set defer_loading on every tool except the tool search tool, which uses the regex variant, and input tokens fell sharply. Traces now show the agent answering requests such as 'I left my bag on the bus' without calling the lost-property tool, and logged searches like 'lost|bag|left' return no match for that tool, whose description reads 'Query LPMS endpoint v2.' Which change best restores discovery while keeping most tools deferred?

    • A. Remove defer_loading from every lost-property and fare tool, so those tool families always load with full definitions.
    • B. Add a system prompt list of every tool name with a one-line summary, so the agent knows which tools exist before it searches.
    • C. Rewrite deferred tool names and descriptions in riders' words, so searches can match them, and keep the most-used tools loaded.
    • D. Switch from the regex search variant to the BM25 variant, so natural-language queries can match the existing tool names and descriptions.
    Show answer and explanation

    Answer: C

    Reasoning. Both search variants match queries against tool names, descriptions and argument names and descriptions. The failed searches and the jargon description show the tool cannot be found with the words requests use. Clear names and descriptions in riders' terms address that directly, and keeping the few tools called in nearly every session non-deferred avoids a search for the most common calls while the rest of the catalog stays deferred.

    Why A is incorrect. Undeferring two whole tool families loads full definitions for every tool in both families on every request whether a session needs them or not, does not fix why deferred tools remain unfindable, and still leaves the five most-used trip-planning tools deferred.

    Why B is incorrect. Names and summaries in the system prompt could guide searches, but they put a description of the whole catalog back into context on every request and leave the jargon description itself unchanged.

    Why C is correct. Discoverable descriptions fix the search failure, and a small non-deferred set keeps common calls fast while most tools stay deferred.

    Why D is incorrect. BM25 accepts natural-language queries, but like the regex variant it matches the words in tool names, descriptions and arguments rather than their meaning, so switching variants alone does not fix opaque metadata that lacks the words riders use.

    Source: platform.claude.com

  57. Question 57

    8. Agent Fleet Operations for Software Delivery

    An internal developer-platform team runs an event-driven agent that starts whenever a main-branch build fails, investigates the logs, and posts a diagnosis on the failing commit. When it cannot explain a failure, it posts nothing. Last month two broken builds stayed red for a day before anyone looked, and the agent's run logs show it reached its time limit on both. Engineers have come to treat a quiet commit as a sign that the agent is still working. Which change best closes this gap?

    • A. Double the agent's time limit, so that it has more time to work through hard failures and post a diagnosis.
    • B. Send an hourly digest of main-branch builds still red after an hour, so the team can pick up failures the agent missed.
    • C. When it times out without a diagnosis, have it alert the owning team's on-call channel with what it checked, so someone takes over.
    • D. Have the agent rerun the failed build up to three times and mark repeats as flaky on the build dashboard, so transient failures clear.
    Show answer and explanation

    Answer: C

    Reasoning. An unattended responder needs a defined outcome for every run, including the runs it cannot finish. Silence is ambiguous to the people relying on it, so they wait. Escalating to the owning team when the time limit is reached turns a silent stop into a handoff, and passing on what the agent already checked saves the human from repeating that work.

    Why A is incorrect. A longer limit does not end silent stops: whenever the agent still reaches the limit or cannot explain a failure, it still posts nothing, and the failing build stays unowned even longer.

    Why B is incorrect. An hourly digest delays action by at least an hour, does not show whether the agent has timed out or is still investigating, and does not pass on what the agent already checked.

    Why C is correct. An explicit escalation with findings tells the team the agent has stopped and gives them a starting point.

    Why D is incorrect. Bounded reruns may clear transient failures, but a real break stays red with only a flaky mark on the dashboard, and no one is alerted that the agent stopped without a diagnosis.

    Source: code.claude.com

  58. Question 58

    1. Advanced Agent Architecture and Orchestration

    An internal developer-platform team's engineers use Claude Code on a shared service repository. Each session starts without the repository's conventions for error handling, logging and test layout, so engineers paste a 60-line conventions block into their first prompt, and copies of that block now differ between engineers. The conventions also live on the company wiki, which agent sessions on CI runners cannot reach. Several engineers already rely on the agent's auto memory, which has picked up some conventions on their own laptops. Which approach best gives every session the same conventions?

    • A. Have a wrapper fetch the conventions from the wiki with the fetch time on each request, and place them at the top of the system prompt.
    • B. Save the conventions block as a shared snippet in a team folder, so every engineer pastes the same version into prompts.
    • C. Commit the conventions to the repository's project CLAUDE.md, so every session loads one version and edits go through code review.
    • D. Keep relying on auto memory, and ask each engineer to correct the agent until it has saved every convention for them.
    Show answer and explanation

    Answer: C

    Reasoning. Conventions that apply to everyone on a repository belong in the project CLAUDE.md, which Claude Code reads at the start of every session and which is shared through version control. That gives one version for all engineers and for CI sessions, history for every change, and review of edits like any other code, with no dependency on reaching the wiki at run time.

    Why A is incorrect. Agent sessions on CI runners cannot reach the wiki, conventions fetched at request time live outside the repository's review process, and a fetch time that changes at the top of the system prompt invalidates the cached system prompt and messages whenever it changes.

    Why B is incorrect. A shared snippet still depends on each engineer pasting it into every session, which can be forgotten or done from a stale local copy, and it does not reach CI runner sessions.

    Why C is correct. A versioned project memory file loads the same conventions into every session with no manual step.

    Why D is incorrect. Auto memory is machine-local, so each engineer's copy drifts separately, which is the inconsistency the team already has.

    Source: code.claude.com, platform.claude.com

  59. Question 59

    7. Runtime Guardrails and Production Security

    A small-business lending platform's underwriting agent reads applicants' bank statements and records approve or decline decisions in the loan system after an underwriter confirms. Every agent deployment calls the loan system with one shared, long-lived service credential, and the loan system's log records only that credential and the decision. Examiners now ask, for any decision, which agent deployment made it, which underwriter approved it and which documents it read, and they accept only identities the loan system has authenticated. Which two controls together make each decision attributable? Select two.

    Choose two.

    • A. Require the underwriter's signed approval token on each record-decision call, and log the authenticated call and document reads under one decision ID.
    • B. Have the agent include the underwriter's name and the documents it used in the decision summary it writes to the loan file.
    • C. Give each agent deployment its own identity through workload identity federation, with short-lived tokens in place of the shared credential.
    • D. Grant the agent read-only access to statements and a separate write scope for decisions, so that each permission it holds is the least it needs.
    • E. Rotate the shared service credential weekly and keep it in a secrets manager, so a leaked copy stays useful for less time.
    Show answer and explanation

    Answer: A and C

    Reasoning. The two controls act together. Examiners accept only identities the loan system authenticates, and today every deployment presents the same credential, so no log entry can name the deployment. Workload identity federation gives each deployment its own identity, proven with short-lived tokens from the company's identity provider, so the loan system authenticates which deployment called. Requiring the underwriter's signed approval token on the write, and logging the authenticated call and the document reads under one decision ID, supplies the rest of what examiners ask for, recorded by the system rather than written by the model.

    Why A is correct. The approval token and audit event bind each decision to an authenticated approver and to its source documents.

    Why B is incorrect. Text the model writes into the file is self-reported, unauthenticated and can be wrong, so it does not meet the examiners' requirement for identities the loan system has authenticated.

    Why C is correct. A per-deployment federated identity lets the loan system authenticate which deployment made each call, which a shared credential cannot show.

    Why D is incorrect. Narrower scopes are good practice, but they limit what the agent can do rather than record who did it and with whose approval.

    Why E is incorrect. Rotation limits exposure of a leaked secret, but every deployment still shares one identity, so decisions remain unattributable to a specific deployment.

    Source: www.rfc-editor.org, platform.claude.com

  60. Question 60

    2. Production Integration, Reliability, and Knowledge Grounding

    A small-business lending platform processes applications from one first-in, first-out queue that feeds a fixed pool of workers sized to its rate limit. When a broker uploads 5,000 applications at once, individual applicants who apply minutes later wait hours for a decision while every worker stays busy. The broker's contract allows next-day decisions; individual applicants are promised a decision within one hour. Adding workers would exceed the rate limit. Which queue design best protects individual applications?

    • A. Reject any upload of more than 500 applications with an error, and ask brokers to resubmit their applications in smaller groups.
    • B. Split the queue by source with weighted fair scheduling that favours individual applications and caps the workers one broker can hold.
    • C. Process the queue last in, first out during bulk uploads, so the newest applications, usually from individuals, are decided first.
    • D. Add workers temporarily while a bulk upload is in the queue, so the broker's batch clears sooner and individuals reach the front faster.
    Show answer and explanation

    Answer: B

    Reasoning. The constraint is fixed capacity, and a single first-in, first-out queue lets whoever arrives in bulk take all of it. Separate queues by source, with weighted fair scheduling toward individual applications, reserve capacity for them while broker work keeps progressing, and capping each broker's concurrency stops one bulk upload from occupying every worker. Meeting both promises still depends on arrival rates and processing times fitting the capacity, but this design is what lets them be met.

    Why A is incorrect. Rejecting large uploads pushes work back to brokers and, once they resubmit in pieces, the same pieces still compete in one queue.

    Why B is correct. Per-source queues with weighted fair scheduling stop individual applications from waiting behind a broker's entire batch.

    Why C is incorrect. Last in, first out favours whatever arrived most recently, which can be broker work, and it can starve older applications of both kinds.

    Why D is incorrect. The stem states that more workers would exceed the rate limit, so the extra workers would produce rate-limit errors.

    Source: platform.claude.com

  61. Question 61

    1. Advanced Agent Architecture and Orchestration

    A small-business lending platform's intake agent talks with applicants, then delegates document verification to a document-check subagent. The intake agent passes its entire conversation history as the subagent's task. Traces show the subagent citing an applicant's unrelated billing dispute from an earlier chat as a document risk in 9% of reports, and underwriters overturn those flags. The subagent's system prompt already tells it to assess the documents only. Which change best keeps the subagent's judgment on its task?

    • A. Strengthen the subagent's system prompt to say that conversation history is background only and must never shape document findings.
    • B. Have the intake agent review each subagent report and strip any flag that refers to conversation content before an underwriter sees the report.
    • C. Pass the subagent a scoped brief with the document IDs, the required checks and the application fields to verify, without the chat history.
    • D. Merge document checking into the intake agent, so one agent holds all the context and can judge which details are relevant.
    Show answer and explanation

    Answer: C

    Reasoning. A fresh subagent receives its own system prompt and tools plus the delegation message, and that message decides what task context from the parent conversation reaches it. Sending the whole conversation puts irrelevant material in front of the subagent, and it reasons over that material. A scoped brief that contains only what the check needs sets a clean context boundary, so the unrelated history never reaches the subagent's judgment.

    Why A is incorrect. The system prompt already tells the subagent to assess the documents only and did not stop the false flags that appear in 9% of reports; stronger wording is still a prompt-only control while the unrelated history stays in context.

    Why B is incorrect. Filtering reports afterward treats the symptom and relies on another model judgment to catch every contaminated flag.

    Why C is correct. Passing only the task's inputs keeps the subagent's context, and so its judgment, scoped to the documents.

    Why D is incorrect. Merging removes the context boundary between intake and document verification, so the full applicant conversation and intake instructions sit in the same context as the document check.

    Source: code.claude.com, www.anthropic.com

  62. Question 62

    3. Observability and Production Monitoring

    A B2B supply-chain analytics SaaS receives a complaint from one customer that forecasts are slow, with a single trace attached showing a 95-second run, mostly spent in a warehouse-data tool call. One engineer proposes putting a cache in front of that tool today. The platform keeps traces for every run, and this customer runs about 400 forecasts a week. Which step should the team take before choosing a fix?

    • A. Compare this customer's average forecast latency with the platform-wide average for the same kinds of forecast.
    • B. Pull this customer's recent traces and examine the latency distribution and which spans dominate the slowest runs.
    • C. Add the cache in front of the warehouse-data tool now, since the attached trace shows where this customer's time is going.
    • D. Rerun the customer's forecast with the same inputs and time it, so the slow run is reproduced before any change is made.
    Show answer and explanation

    Answer: B

    Reasoning. One trace is a single sample and may be an outlier. With every run traced, the team can look at hundreds of this customer's runs, see how often forecasts are slow, and check whether the same span dominates the slow ones. That turns one anecdote into a measured pattern and shows whether the warehouse-data tool call is the common bottleneck before anyone decides whether a cache is the right fix.

    Why A is incorrect. Averages hide the shape of the distribution and say nothing about which span makes slow runs slow.

    Why B is correct. The distribution and span breakdown across many runs show how widespread the slowness is and where it comes from.

    Why C is incorrect. Acting on one trace risks fixing an outlier while the common cause of slowness goes unaddressed.

    Why D is incorrect. A rerun adds one more sample and depends on conditions at that moment, so it still cannot show a pattern.

    Source: platform.claude.com

  63. Question 63

    5. Evaluation Engineering and Quality Assurance

    A regional health plan's member portal answers benefit questions from plan documents and measures quality by the share of answers members rate thumbs-up. A monthly audit of 300 answers found that 12% told members a service was covered when the plan documents excluded it or set a lower limit, and members rated those answers as highly as correct ones. The team has already added a 'Was this accurate?' question to the rating widget, and ratings barely changed. Which online measure should supplement member ratings?

    • A. Sample live answers daily, check each coverage claim against the retrieved plan passages, and track the share of claims that pass.
    • B. Track the share of answers that include a citation to a plan document, as a running daily measure of how well grounded the responses are.
    • C. Track the share of conversations in which members ask a follow-up question, treating fewer follow-ups as more accurate answers.
    • D. Weight each rating by the member's years on the plan, so experienced members, who know their coverage better, count for more.
    Show answer and explanation

    Answer: A

    Reasoning. For retrieval-grounded answers, the quality that matters is whether each claim is supported by the source, and members cannot judge that from the answer alone, as the audit shows. Sampling live traffic and checking claims against the retrieved passages measures support directly and continuously, rather than once a month.

    Why A is correct. Checking sampled live coverage claims against the retrieved passages measures claim support directly, daily instead of monthly.

    Why B is incorrect. The presence of a citation does not show that the cited passage supports the coverage claim.

    Why C is incorrect. A confident wrong answer often draws no follow-up, so fewer follow-ups can mean more unsupported answers.

    Why D is incorrect. Reweighting still relies on member ratings, which did not track support in the audit or after the widget change, and member tenure does not verify any claim against plan text.

    Source: www.anthropic.com, platform.claude.com

  64. Question 64

    4. Advanced Debugging and Incident Response

    A small-business lending platform's credit agent approved 37 applications over two days without running the required business-license check, after a prompt change reordered its instructions. The team rolled back the prompt, re-reviewed the 37 applications and confirmed no other approvals skipped the check. The postmortem draft names the reordering as the cause and says reviewers should read prompt diffs more carefully. The evaluation suite passed the bad prompt; its assertions check only each case's final decision label. Which follow-up best prevents a repeat?

    • A. Require two reviewers to approve every prompt change before release, so that instruction reorderings like this one are more likely to be caught.
    • B. Make the approval tool refuse any application without a passed license-check result, and add eval cases that fail when the check is skipped.
    • C. Move the license check into a marked mandatory-steps section at the top of the system prompt, where reviewers see it in every diff.
    • D. Finalize the postmortem with its reviewer guidance and circulate it, so prompt authors check instruction order in future diffs.
    Show answer and explanation

    Answer: B

    Reasoning. The incident escaped because nothing outside the prompt required the check: the approval action ran whether or not the license check had, and the eval suite did not test which tools ran. Making approval depend on a recorded check result enforces the requirement whatever the prompt says, and regression cases detect skipped checks in the scenarios they exercise before release. Guidance and extra human review depend on people noticing the same thing next time.

    Why A is incorrect. More reviewers can still miss a subtle reorder, and the eval and production gaps that let the incident through remain.

    Why B is correct. The production prerequisite blocks approval without a passed check, while regression cases detect skipped checks in the scenarios they cover before release.

    Why C is incorrect. A marked section makes the instruction easier to see, but approval still depends on the model choosing to run the check, and nothing fails if a later edit moves it.

    Why D is incorrect. A postmortem note alone relies on attention and adds no check that would fail on a repeat.

    Source: www.anthropic.com

  65. Question 65

    7. Runtime Guardrails and Production Security

    A city transit agency's maintenance agent logs in to the work-order system with a password it reads from a shared notebook, which contractors also open to look up procedures. The password has not changed in a year. A security review flagged the notebook. The operations lead proposes changing the password monthly and posting each new one in the notebook. Which change best addresses the review finding?

    • A. Revoke the password, keep a new task-scoped credential in a secrets manager readable only by the agent's runtime identity, and remove the old entry.
    • B. Encrypt the notebook page that holds the password, and share the decryption key only with the maintenance team and with the agent's runtime service.
    • C. Restrict the notebook page to maintenance staff and change the password whenever a staff member leaves, so contractors no longer see it.
    • D. Change the password monthly as proposed and post it in the notebook, so any copy that leaks stops working within a month.
    Show answer and explanation

    Answer: A

    Reasoning. The finding is exposure: the secret sits where people who do not need it can read it, and contractors may already have copied it. Revoking it ends the use of any copy. A new credential in a secrets manager, configured so only the agent's runtime identity can read it, keeps the value away from people; reads can be audited, and rotation can be automated where the system supports it. Scoping the credential to the agent's tasks limits harm if it is misused.

    Why A is correct. Revocation ends the exposed copy, and managed storage limited to the agent's identity keeps the replacement away from people.

    Why B is incorrect. A shared decryption key becomes another shared secret, and everyone who holds it can still read the password.

    Why C is incorrect. Restricting the page still leaves a password that people can read, and contractors may already hold the current one.

    Why D is incorrect. Monthly rotation still posts each new password where contractors can read it, so the exposure continues.

    Source: support.claude.com, code.claude.com

  66. Question 66

    2. Production Integration, Reliability, and Knowledge Grounding

    A B2B supply-chain analytics SaaS runs a weekly job that classifies 300,000 product records through the Messages API within a six-hour window. When a request returns a 429 error, the job waits a fixed 60 seconds and retries, and logs show long idle stretches followed by bursts that hit the limit again. Every logged 429 names the requests-per-minute limit, and the token-limit headers on those responses show capacity remaining. Recorded responses show anthropic-ratelimit-requests-reset times well under 60 seconds after each 429. Which change best paces the job?

    • A. Send requests at a steady rate paced to the remaining request capacity in response headers, and honour retry-after when a 429 carries it.
    • B. Run the job from four parallel workers, each with its own fixed wait, so more requests are in flight when capacity frees.
    • C. Wait until the reset time reported on each 429 response, then send requests as fast as possible until the next 429 arrives.
    • D. Drop the job's own wait and send requests as fast as possible, relying on the SDK's automatic retries to absorb each 429 as it comes back.
    Show answer and explanation

    Answer: A

    Reasoning. The 429 errors name the request limit while token capacity remains, so request rate is the binding limit. Request capacity replenishes continuously, and the rate-limit headers on each response report how much remains and when it will be fully restored. A fixed 60-second wait ignores both: the job idles after capacity has returned, then sends a burst that exhausts it again. Sending at a steady rate matched to the reported capacity spreads requests across the window, and honouring retry-after when a 429 carries it handles any rate-limit 429 that still occurs. A 429 without retry-after needs its error code checked first, because a spend-cap 429 keeps failing until access resumes.

    Why A is correct. Metering on the reported capacity keeps the job sending steadily at the rate the binding limit allows, which uses the window evenly.

    Why B is incorrect. More workers hitting the same organization limit increase the bursts and the number of 429 errors.

    Why C is incorrect. Waiting for the reset time shortens the idle periods, but sending at full speed afterward still produces bursts that exhaust the limit again.

    Why D is incorrect. SDK retries react after each 429 and cap their attempts, so sending at full speed still produces repeated bursts and failed requests.

    Source: platform.claude.com

  67. Question 67

    4. Advanced Debugging and Incident Response

    A B2B supply-chain analytics SaaS's forecast narratives misstated inventory levels for 14 customers over twelve hours, after a data-pipeline change began sending stock figures in thousands where the prompt expects units. On-call engineers have just found the cause. Narratives are still being generated, and some affected customers have already placed purchase orders based on them. Which two actions together address the affected customers and stop further wrong narratives? Select two.

    Choose two.

    • A. Add an eval case with stock figures in thousands to the regression suite, so the next release catches the unit mismatch before shipping.
    • B. Correct the stock figures in the stored inputs, regenerate the last twelve hours of narratives, and replace the wrong versions in customers' accounts.
    • C. Notify the 14 affected customers which narratives were wrong, over what period, with corrected figures, and withdraw the wrong narratives.
    • D. Add a prompt instruction telling the model to check whether inventory figures look implausibly small before it writes each narrative.
    • E. Revert the pipeline change, or pause narratives, until stock figures are back in units and verified on a sample of narratives.
    Show answer and explanation

    Answer: C and E

    Reasoning. The two actions act together. During an active incident, mitigation comes first: reverting the change or pausing generation stops new wrong narratives, and checking a sample confirms the fix. Customers who already acted on wrong figures need direct communication that tells them what was wrong, when, and what the correct values are. The regression case belongs in the follow-up once the incident is contained.

    Why A is incorrect. A regression case is the right follow-up, but it neither stops narratives being generated now nor informs the customers already affected.

    Why B is incorrect. Regenerating past narratives repairs them, but the pipeline keeps sending figures in thousands, and quietly replacing narratives does not tell customers who already placed orders.

    Why C is correct. Clear notification with corrected figures addresses customers who already acted on wrong numbers.

    Why D is incorrect. A prompt instruction asks the model to catch bad data rather than fixing the data, and it does nothing for customers already affected.

    Why E is correct. Rollback or pause stops further harm at the source while the data is verified.

    Source: www.anthropic.com

  68. Question 68

    1. Advanced Agent Architecture and Orchestration

    A B2B supply-chain analytics SaaS's team of four built its forecasting agent's loop by hand, covering tool dispatch, retries and a simple history trim. The next two quarters' roadmap adds subagents for per-region research, context compaction for long runs, and permission controls on write tools. A spike showed that adding subagents alone would replace about half of the custom loop. Leadership wants the team's time spent on forecasting quality. Which approach best fits?

    • A. Extend the existing custom loop one roadmap feature at a time, building on the code that the team already knows well and owns line by line.
    • B. Adopt a different open-source library for each roadmap feature, so each piece uses the strongest option available.
    • C. Move the agent onto the Agent SDK, which supplies the harness features on the roadmap, and port the team's forecasting tools to it.
    • D. Move only the per-region research into Agent SDK subagents, and keep the custom loop for compaction and permission controls.
    Show answer and explanation

    Answer: C

    Reasoning. The roadmap is a list of harness features rather than forecasting features, and the spike shows building them in-house means rewriting much of the loop. The Agent SDK supplies the same agent loop, subagents, automatic context compaction, permission controls and hooks that power Claude Code, so adopting it moves that work off a four-person team, which ports its forecasting tools as custom tools. This matches leadership's priority of spending the team's time on forecasting quality.

    Why A is incorrect. Extending the loop commits the team to the rewrite the spike measured, which takes time away from forecasting quality.

    Why B is incorrect. Combining separate libraries leaves the team to integrate and maintain the pieces, which takes time away from forecasting quality.

    Why C is correct. An existing harness delivers the roadmap's infrastructure and lets the small team focus on its domain.

    Why D is incorrect. A partial move still leaves the team building and maintaining compaction and permission controls in its own loop, which takes time away from forecasting quality.

    Source: code.claude.com

  69. Question 69

    7. Runtime Guardrails and Production Security

    A regional health plan's member agent, built on the Agent SDK, can change a member's primary care provider through a change_pcp tool that takes a member ID. A member signed in to the portal asked the agent to change their spouse's provider, supplied the spouse's member ID, and the agent made the change. The system prompt already says to act only on the signed-in member's account. Under plan policy, adult household members have separate privacy rights. Which control best prevents this?

    • A. Have the agent ask the member to confirm they are authorized to act for the other person before it calls change_pcp.
    • B. Add examples of refused household requests to the system prompt, so the model applies the account rule more reliably.
    • C. Add a PreToolUse hook that denies change_pcp unless the member ID matches the session's identity or a recorded authorization.
    • D. Log each change_pcp call with both member IDs, and alert compliance whenever they differ, so mistakes can be reversed quickly.
    Show answer and explanation

    Answer: C

    Reasoning. The model followed a plausible request, and the system prompt rule did not hold, which shows that authorization left to the model is not enforced. A PreToolUse hook runs in code before the tool executes and can deny the call, so it checks the target member ID against the authenticated session or a recorded authorization regardless of what the conversation says. That enforces the privacy rule at the point of action.

    Why A is incorrect. A confirmation relies on the member's own unverified claim, judged by the model, so an unauthorized member can still complete the change simply by claiming authorization.

    Why B is incorrect. The system prompt already holds the rule, and more examples still leave enforcement to the model.

    Why C is correct. A deterministic check tied to the session identity and recorded authorizations blocks unauthorized changes to another member's account before they happen.

    Why D is incorrect. Logging and alerting detect the privacy breach after it has happened rather than preventing it.

    Source: code.claude.com

  70. Question 70

    5. Evaluation Engineering and Quality Assurance

    A small-business lending platform will A/B test a new credit-memo prompt for four weeks. Each of its 40 underwriters rates the usefulness of every memo used in their own credit decisions, and no extra memos or second versions can be added to their reading. In a one-week pilot that assigned each memo to a prompt at random, underwriters said they came to expect the new format's risk section and marked old-format memos down when it was missing. The new format is recognizable at a glance. Which test design gives the most trustworthy comparison?

    • A. Randomly assign half the underwriters to each prompt for the whole test, so that each reads one format, and compare the two groups.
    • B. Keep assigning each memo to a prompt at random and remove any version marking from memos, so that underwriters cannot tell which arm they rate.
    • C. Have each underwriter rate the old and new versions of the same memo side by side, so that every rating in the test is a paired comparison.
    • D. Alternate the two prompts by day, so that all memos on a given day come from one arm and each day's ratings reflect a single format.
    Show answer and explanation

    Answer: A

    Reasoning. The pilot shows exposure to one arm changing how underwriters rate the other: once raters know both formats, a rating reflects the contrast between them rather than each format's usefulness. Assigning half the underwriters at random to each arm for the whole test stops further switching between formats and adds no reading. Pilot exposure can still colour ratings, especially early on, so it is recorded and checked when results are read, for example by comparing early and late weeks. The comparison is between two groups of 20 underwriters, so ratings are summarised per underwriter and the uncertainty is reported before a difference is claimed.

    Why A is correct. Each underwriter reads one format for the whole test, which stops further cross-arm exposure without adding reading.

    Why B is incorrect. The new format is recognizable at a glance, so removing version marking still leaves every underwriter seeing and comparing both arms.

    Why C is incorrect. Rating a second version of each memo adds reading beyond the memos used in real decisions, which the workload limit rules out.

    Why D is incorrect. Alternating by day still shows every underwriter both formats across the test, so the expectation effect seen in the pilot continues.

    Source: www.anthropic.com

Free practice vs paid Timo enrollment

FeatureTimoPractice-only sites
Free full-length practice test, no sign-upFreeVaries
Full-length mock exams for four Claude certification tracksWith paid enrollment: 20 exams, 1,180 questionsVaries
Register for official Claude examsWith paid enrollment: you register under Amotion AI, which is Certified in the Claude Partner NetworkNot offered
OpenAI learningWith paid enrollment: OpenAI partner courses and badges for ChatGPT, Codex and APINot offered
Expert profile and job matchingWith paid enrollmentNot offered

Timo is a brand of Amotion AI. Amotion AI is Certified in the Claude Partner Network and an OpenAI Select Partner.

Claude exam fees are paid separately to Anthropic when you book an exam.

Enroll with Timo

100+ Claude and OpenAI certified and ready for AI work through Timo

Claude Certified Associate Foundations badge issued by AnthropicClaude Certified Architect Foundations badge issued by AnthropicClaude Certified Developer Foundations badge issued by AnthropicClaude Certified Architect Professional badge issued by Anthropic

How to review your result

Start with the domains where you scored lowest. For each question you missed or guessed, find the fact in the scenario that decides the answer, then read the explanation for every option.

How to review your practice exam result

Register for the CCDV-P exam · how to get Claude certified

CCDV-P practice exam FAQs

Is this an official CCDV-P practice exam?

No. Timo wrote this practice test independently. Anthropic has not supplied, reviewed or endorsed it, and it contains no recalled exam questions.

Can a high practice score predict whether I will pass?

No. The official exam reports a scaled score from 100 to 1,000, and a practice percentage does not convert to it. Review the questions you missed and any correct answers you guessed, then study those domains.

Are there CCDV-P exam dumps?

No legitimate ones. Anthropic's exam content is confidential, and CCDV-P is new, so a page selling "actual" CCDV-P questions cannot show where they came from. Use this free 70-question practice test, written from the official guide and Anthropic's documentation, then the guide itself.

How many questions are on the CCDV-P exam?

The CCDV-P exam has 70 questions, of which 60 are scored and 10 are unscored, in 120 minutes. You need a scaled score of 720 out of 1,000 to pass.

How do I book the CCDV-P exam?

Register and pay in Anthropic Partner Academy with a Claude Partner Network account, then book with Anthropic's exam partner. See the registration steps.

More Claude practice exams

See average practice scores by exam and country from recorded Timo attempts.

See the most common Claude certification exam mistakes, from 9,400+ practice tests.

Also: GH-700 practice test for GitHub Certified: Agentic AI Business Professional.