CertifyDeck

CCDV-P · Sample questions

CCDV-P sample questions with answers and explanations

10 real questions from the CertifyDeck CCDV-P bank, spread across the domains of the official Claude Certified Developer – Professional skills outline, with the correct answer and a full explanation of why the other options are wrong. They are original questions written from the public syllabus, not exam dumps, and they are the same style you will find in the practice tests and mock exams.

  1. Question 1Domain: Evaluation Engineering and Quality AssuranceEasy

    A logistics company uses Claude to grade shipment-exception summaries. The judge prompt asks for "your assessment of the summary's accuracy", and the judge returns complete paragraphs of prose. A script searches the prose for words such as "accurate" or "inaccurate" to produce a pass rate, but 12% of verdicts match neither word or both, and analysts cannot aggregate results across 20,000 weekly summaries. Which change best fixes the grading pipeline?

    • A.Extend the keyword script with synonyms such as "correct" and "wrong" so that more of the prose verdicts are matched.
    • B.Raise the maximum output length of the judge so that it can finish its reasoning and state a clearer conclusion.
    • C.Send the 12% of ambiguous verdicts to human reviewers each week and keep the prose format for all other summaries.
    • D.Instruct the judge to output only "correct" or "incorrect", or a score on a fixed 1 to 5 scale, for each summary.
    Show answer and explanation

    Correct answer: D. Instruct the judge to output only "correct" or "incorrect", or a score on a fixed 1 to 5 scale, for each summary.

    Explanation

    The guidance for LLM-based grading is to be empirical or specific, for example by instructing the grader to output only correct or incorrect or a 1 to 5 score, because purely qualitative evaluations are hard to assess quickly and at scale. The verdicts are already complete, so more output length does not help, and synonym matching or human triage keeps parsing free prose instead of removing the ambiguity at the source.

    Official references

  2. Question 2Domain: Cost and Latency Optimization at ScaleMedium

    A legal-services firm summarizes contracts with the smallest model tier and escalates to the most capable tier only when the small model reports a confidence score below 0.7 in its JSON output. A review of 500 summaries found that 18% omitted a material clause, and 90% of those omissions came with a self-reported confidence of 0.7 or higher. Which change makes the cascade fit for production?

    • A.Add a system prompt instruction asking the small model to be conservative and honest whenever it scores its own confidence.
    • B.Raise the escalation threshold to 0.9 so that more summaries are escalated to the larger tier.
    • C.Drop the cascade and send every contract to the most capable tier at its highest effort level.
    • D.Escalate on an independent check, such as comparing the summary with a deterministic clause extraction.
    Show answer and explanation

    Correct answer: D. Escalate on an independent check, such as comparing the summary with a deterministic clause extraction.

    Explanation

    A cascade that re-runs failures on a stronger setting needs a real failure signal; a checker that passes bad work lets those failures through, which is what the self-reported score does here. An independent outcome check catches omissions regardless of how confident the small model claims to be. Raising the threshold or prompting for caution still relies on the same unreliable self-assessment, and sending everything to the top tier gives up the saving the cascade exists for.

    Official references

  3. Question 3Domain: Production Integration, Reliability, and Knowledge GroundingMedium

    A government agency's case assistant must keep inference in the United States and sends inference_geo us on every request through the Claude API. During seasonal peaks it receives 429 rate_limit_error responses. An engineer proposes a regional failover: when a request gets a 429 under us, resend it with inference_geo global. Which assessment of the proposal is correct?

    • A.It adds headroom only for cached input, because cache reads under global routing are not counted toward the us pool.
    • B.It works if the workspace sets a default inference geo of global, which gives requests a second allowance for rate limiting.
    • C.It works because global routing draws on a separate, larger rate limit pool, but it should be limited to the 429 retries only.
    • D.It adds no headroom, since both values share one rate limit pool, and it would let inference leave the United States.
    Show answer and explanation

    Correct answer: D. It adds no headroom, since both values share one rate limit pool, and it would let inference leave the United States.

    Explanation

    The rate limits page states that limits are shared across all inference_geo values, so requests with us and global draw from the same pool and a geo switch cannot relieve a 429. Sending the retry with global also allows inference in any geography, which breaks the stated US-only requirement. A workspace default geo only fills in a value when the request omits it, and cache reads are excluded from ITPM whatever the geo.

    Official references

  4. Question 4Domain: Production Integration, Reliability, and Knowledge GroundingMedium

    An insurer's claims summariser runs on the most capable model tier. For 25 minutes it receives repeated 529 overloaded_error responses, while a lighter internal tool on a smaller tier in the same organization succeeds throughout. Each summary request currently retries the 529 up to 12 times, so adjusters wait several minutes before an error. The product owner accepts shorter summaries during incidents. Which change best improves reliability?

    • A.Move the summariser to a new workspace and API key, because the repeated 529 responses mean its own quota is exhausted.
    • B.After a short retry budget on 529, serve from another model tier, flag the summary as degraded and keep probing the primary.
    • C.Treat the 529 as a refusal and add the smaller tier to the fallbacks list, so that the API switches models inside the same call.
    • D.Raise the retry count to 30 with a longer backoff ceiling so that every request eventually lands once capacity returns.
    Show answer and explanation

    Correct answer: B. After a short retry budget on 529, serve from another model tier, flag the summary as degraded and keep probing the primary.

    Explanation

    A 529 means the API is temporarily at capacity across all users, not that the organization hit its own limit, and capacity is tracked per model, which is why the smaller tier keeps working; a bounded retry budget followed by a switch to another model, with the output flagged as degraded, matches that evidence and the owner's stated tolerance. Longer retry chains only lengthen the wait. A new workspace or key does not help because 529 is not a usage limit, and the fallbacks parameter reacts only to classifier refusals.

    Official references

  5. Question 5Domain: Advanced Agent Architecture and OrchestrationMedium

    An enterprise SaaS vendor's onboarding agents on Claude Managed Agents read a shared memory store with team conventions. Two back-office services also edit those memories through the memory store API: a nightly HR sync and an admin console. Several times a month, an admin's edit disappears because the sync overwrote it moments later from an older read. The memory must keep accepting both writers. Which change prevents the lost updates?

    • A.Have both services send a content_sha256 precondition from their last read with each update, and re-read and retry on a mismatch.
    • B.Attach the store to the onboarding sessions with read_only access, so that no agent write can overwrite either service's edits.
    • C.Rely on memory versions to find the lost edits afterwards and write their content back whenever an admin reports a missing change.
    • D.Give each service its own store with its own copy of the conventions, and attach both stores to every onboarding session.
    Show answer and explanation

    Correct answer: A. Have both services send a content_sha256 precondition from their last read with each update, and re-read and retry on a mismatch.

    Explanation

    The memory API supports optimistic concurrency: an update carrying a content_sha256 precondition applies only if the stored content still matches the hash that was read, and on a mismatch the writer re-reads and retries against the fresh state. read_only sessions do nothing here because the overwrites come from the two services, not the agents. Restoring from versions is a recovery step after the loss rather than prevention, and two divergent copies leave the agents with conflicting conventions.

    Official references

  6. Question 6Domain: Advanced Agent Architecture and OrchestrationMedium

    A bank's payments-operations agent uses threshold compaction with the instructions parameter set to 'Summarize the conversation briefly.' After each compaction, the agent loses payment reference IDs and the list of approvals still pending, and it asks operators to repeat them. The engineers believed their sentence was added to the default summarization prompt. Which change addresses the cause?

    • A.Configure a cheaper model for the summarization step, so that a longer and more detailed summary costs less on every compaction.
    • B.Lower the trigger so compaction runs earlier and more often, while each summary still covers fewer turns of the conversation.
    • C.Enable pause_after_compaction and send the compaction block back unchanged, so the next request continues from the same summary.
    • D.Rewrite instructions as a full prompt that lists what to keep, such as reference IDs and pending approvals, since it replaces the default.
    Show answer and explanation

    Correct answer: D. Rewrite instructions as a full prompt that lists what to keep, such as reference IDs and pending approvals, since it replaces the default.

    Explanation

    Custom instructions do not supplement the default summarization prompt; they replace it completely, so a one-line 'summarize briefly' prompt produces a summary without the identifiers, and the summary is all the model keeps of the compacted work. The fix is a prompt that states what the summary must retain. Compacting more often makes the summaries lossier, pausing changes nothing about what the summary contains, and threshold compaction always summarizes with the request's own model.

    Official references

  7. Question 7Domain: Agent Fleet Operations for Software DeliveryEasy

    A health-tech company moved its parallel Claude Code sessions into worktrees created with --worktree. Since then, every session's integration tests fail at startup because the .env and .env.local files that hold test-database settings are missing, although they exist in the main checkout. Both files are gitignored and must not be committed. Which change fixes this for every new worktree?

    • A.List .env and .env.local in a .worktreeinclude file at the repository root, so Claude Code copies them into each worktree it creates.
    • B.Add a SessionStart hook that runs the project's dependency install command in every new worktree before the tests run.
    • C.Set worktree.baseRef to head, so that new worktrees branch from the current local state of the checkout that holds the two files.
    • D.Remove the two files from .gitignore in each worktree's branch, so that git checks them out when Claude Code creates the worktree.
    Show answer and explanation

    Correct answer: A. List .env and .env.local in a .worktreeinclude file at the repository root, so Claude Code copies them into each worktree it creates.

    Explanation

    A worktree is a fresh checkout, so untracked files such as .env are absent; a .worktreeinclude file at the root, written in .gitignore syntax, makes Claude Code copy matching gitignored files into every worktree it creates with git. Setting worktree.baseRef to head is tempting, but it only changes which commit the branch starts from, and untracked files are not part of any commit; installing dependencies does not restore the env files, and un-ignoring them would lead to committing secrets.

    Official references

  8. Question 8Domain: Advanced Debugging and Incident ResponseEasy

    A telecom operator's billing assistant gave wrong proration amounts to customers who changed plans mid-cycle. The cause, a prompt edit, has been fixed and rolled out. Support collected 37 conversations in which customers reported the wrong amount. The offline suite, which passed before the incident, contains no mid-cycle plan change. Which learning-loop action makes this regression detectable next time?

    • A.Note the defect in the prompt's change log so that future editors know to avoid the same wording.
    • B.Add a dashboard panel that counts support tickets mentioning proration every week from now on.
    • C.Instruct the model to double-check its proration arithmetic before giving any amount to a customer.
    • D.Turn the reported conversations into cases in the regression suite that runs on every prompt change.
    Show answer and explanation

    Correct answer: D. Turn the reported conversations into cases in the regression suite that runs on every prompt change.

    Explanation

    Anthropic's evals guidance recommends turning user-reported failures from the bug tracker and support queue into test cases, and regression evals should hold a near 100% pass rate so that a decline signals that something broke. A change-log note and a ticket dashboard are advisory or detective, and a self-check instruction is not a test that runs on each change.

    Official references

  9. Question 9Domain: Runtime Guardrails and Production SecurityMedium

    An enterprise SaaS operations agent built on the Claude Agent SDK runs with permission_mode bypassPermissions to avoid prompts. The team put its production-safety checks, including a rule against deleting namespaces, in the canUseTool callback. An incident review shows the agent ran a kubectl delete on a production namespace, and the callback log has no entry for that call. Which change enforces the checks?

    • A.Switch to acceptEdits mode, which sends shell commands to the canUseTool callback for review.
    • B.Add Bash to allowed_tools so that every shell call passes through the callback before it runs.
    • C.Add an instruction to the system prompt forbidding namespace deletion in production clusters.
    • D.Move the checks into a PreToolUse hook, whose deny applies even in bypassPermissions mode.
    Show answer and explanation

    Correct answer: D. Move the checks into a PreToolUse hook, whose deny applies even in bypassPermissions mode.

    Explanation

    In the Agent SDK, a call approved at an earlier step, for example by bypassPermissions, never reaches canUseTool, so checks placed there are silently bypassed. Hooks run first in the evaluation order, run for calls that a mode or allow rule approves, and a hook deny applies even in bypassPermissions mode. Adding Bash to allowed_tools pre-approves it and skips the callback too, and a prompt instruction is not deterministic enforcement for an irreversible action.

    Official references

  10. Question 10Domain: Observability and Production MonitoringMedium

    An energy utility's billing-dispute assistant once ran a tool loop for hours before anyone noticed the spend. The SRE team now wants a page within 15 minutes whenever hourly token spend exceeds three times its baseline. One proposal polls the Usage and Cost Analytics API every five minutes with time_bucket_width set to 1m. The service already exports API spans with token usage attributes to its observability platform. Which design meets the requirement?

    • A.Alert on token usage aggregated from the exported spans, and keep the analytics API for later reconciliation because its data can lag by hours.
    • B.Poll the Usage and Cost Analytics API every minute instead of every five, so that the one-minute buckets are read as soon as they close.
    • C.Group the Usage and Cost Analytics API by cost_type and token_type so that the alert detects loops from the mix of token types rather than totals.
    • D.Download the Usage page CSV from the Console each hour and compare each API key's tokens against the same hour of the previous day.
    Show answer and explanation

    Correct answer: A. Alert on token usage aggregated from the exported spans, and keep the analytics API for later reconciliation because its data can lag by hours.

    Explanation

    The analytics API data typically refreshes within 4 hours and can take up to 24, with data_refreshed_at marking where data may be missing, so polling it more often or with finer buckets cannot meet a 15-minute page; the exported spans carry token usage for each request as it happens. The analytics API remains the better source for reconciliation because it also counts requests without spans. A Console CSV has the same lag and adds manual work.

    Official references

How to use these CCDV-P sample questions

Answer each question before opening the explanation, and write down why you discarded the other options. On CCDV-P, most mistakes come from choosing an option that is technically possible but does not meet every requirement in the scenario.

These 10 questions are a taste of the format, not a diagnostic. To know which domains you fail, practice by domain for free and take a timed mock exam that mirrors the official weights and duration.

Practice CCDV-P with hundreds more questions

Start for free, no sign-up or card. Every question includes an explanation like the ones above, and the mock exam reproduces the official CCDV-P format.