CCDV-F · Sample questions
CCDV-F sample questions with answers and explanations
10 real questions from the CertifyDeck CCDV-F bank, spread across the domains of the official Claude Certified Developer – Foundations 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.
- Question 1Domain: Model Selection and OptimizationMedium
A CI review bot is being moved to a newer model release. The previous model was tuned to a specific effort level, and the team wants to choose the level for the new model. A draft plan runs long review sessions and switches the top-level effort value partway through each session to compare levels on the same pull requests. Which approach should replace the draft plan?
- A.Set the maximum effort level for every review, because the highest setting always gives the best result per unit of cost.
- B.Keep the draft plan but enable the 1-hour cache duration so that the mid-session effort changes stay cached.
- C.Run a fresh sweep of two or three effort levels on real reviews, each level in its own session, and compare score and cost.
- D.Carry over the effort level tuned for the previous model, because effort levels behave identically from one model release to the next.
Show answer and explanation
Correct answer: C. Run a fresh sweep of two or three effort levels on real reviews, each level in its own session, and compare score and cost.
Explanation
The migration guidance says to run a fresh effort sweep on your own evaluations rather than carry over a setting tuned for an earlier model, and the cost guidance says to run each level in a separate session because changing top-level effort mid-session invalidates the cache and distorts the comparison. A longer cache duration does not help, because the effort change itself breaks the cached prefix, and maximum effort is not automatically the best value per unit of cost.
Official references
- Question 2Domain: Security and SafetyEasy
A retail startup's single-page web app calls the Claude API directly from the browser, with the API key in the JavaScript bundle and the TypeScript SDK's dangerouslyAllowBrowser option enabled. A security review flags that any visitor can read the key. The product must keep its chat feature. Which change most directly addresses the finding?
- A.Keep the browser call but minify and obfuscate the bundle so that the key string is much harder to find in the page source.
- B.Keep the browser call but scope the key to a single workspace so that a stolen key reaches only that workspace's resources.
- C.Keep the browser call but create a key with a short expiration and replace it in the bundle each time it is about to lapse.
- D.Have the front end call the startup's own back end, which holds the key and makes the Claude API request on its behalf.
Show answer and explanation
Correct answer: D. Have the front end call the startup's own back end, which holds the key and makes the Claude API request on its behalf.
Explanation
The authentication guide says to call the Claude API from your own back end, not from code running in users' browsers, because anyone using the page can read a key in its code; the front end calls the back end, which holds the key. Obfuscation, short expirations and workspace scoping all leave a usable key in every visitor's browser, so they only reduce the damage rather than removing the exposure.
Official references
- Question 3Domain: Claude CodeMedium
A developer builds a plugin with this layout: my-plugin/.claude-plugin/plugin.json and my-plugin/.claude-plugin/skills/review/SKILL.md. Starting claude --plugin-dir ./my-plugin shows no error, but /my-plugin:review does not exist in the session. Which change fixes it?
- A.Rename SKILL.md to review.md, which is the file format that plugins use for their skills.
- B.Run /reload-plugins so that the session picks up skills added after it was started.
- C.Add a skills array that lists review to the plugin's entry in a marketplace.json file.
- D.Move skills/ out of .claude-plugin/ to the plugin root, next to the .claude-plugin folder.
Show answer and explanation
Correct answer: D. Move skills/ out of .claude-plugin/ to the plugin root, next to the .claude-plugin folder.
Explanation
Only plugin.json belongs inside .claude-plugin/, and components saved there do not load; skills/ has to sit at the plugin root, which is the documented cause when a plugin loads but its skills are missing. --plugin-dir does not read marketplace.json, so editing it changes nothing here. Flat Markdown files are the older commands/ format, and reloading cannot pick up a skill from a folder Claude Code never scans.
Official references
- Question 4Domain: Eval, Testing, and DebuggingMedium
A judge checks whether each answer from a research assistant is supported by the retrieved source excerpts. Some test items ship with truncated excerpts, and on those items the judge still returns confident supported or unsupported verdicts that human reviewers consider arbitrary. Which change most directly addresses this?
- A.Raise the judge's max_tokens so it can quote more of each source excerpt in its reasoning.
- B.Instruct the judge to return Unknown when the material it was given is not enough to decide.
- C.Switch the judge to a pairwise comparison between two candidate answers for each test item.
- D.Run three judges on every item and keep the majority verdict as the final grade for that item.
Show answer and explanation
Correct answer: B. Instruct the judge to return Unknown when the material it was given is not enough to decide.
Explanation
To avoid hallucinated grades, the guidance is to give the judge a way out, such as returning Unknown when it does not have enough information, so missing evidence shows up as missing rather than as a guess. More output tokens do not add evidence that was truncated from the input. A majority of three judges still forces each of them to guess, and pairwise comparison answers a different question than whether one answer is supported.
Official references
- Question 5Domain: Prompt and Context EngineeringMedium
A compliance assistant prepends a JSON header with eight metadata fields, such as policy ID, owner and effective date, to the text of each document block. Citations sometimes point at the header instead of the policy clause, yet the model needs the metadata to answer questions about owners and dates. Which change most directly fixes the defect?
- A.Move the header into the context field as stringified JSON, which the model reads but cannot cite.
- B.Remove the header and tell users to look up owners and effective dates in a separate system.
- C.Move the whole header into the document's title field, so that the metadata stays with the document.
- D.Put the header in a second document with citations disabled, sent next to the cited policy document.
Show answer and explanation
Correct answer: A. Move the header into the context field as stringified JSON, which the model reads but cannot cite.
Explanation
Text inside a document's source can be cited, while title and context are passed to the model without being used as cited content; because title is limited in length, the context field is the documented place for metadata as text or stringified JSON. A request cannot mix documents that have citations enabled with documents that do not, so a separate uncited document fails. Removing the header breaks the questions about owners and dates.
Official references
- Question 6Domain: Applications and IntegrationMedium
A team commits .claude/settings.json with a permissions.allow rule for Bash(npm run test *) and a permissions.deny rule for reading .env files. A new teammate clones the repository and starts Claude Code: reads of .env files are blocked as expected, but every npm test run still prompts for approval. What is the most likely cause?
- A.Permission lists from different files replace each other, so the teammate's empty allow list in user settings removes the project rule.
- B.The settings file has a syntax error in the allow entry, so Claude Code skips that entry and keeps the deny rule in effect.
- C.Allow rules in the shared file are overridden by the teammate's user settings, while deny rules from any file always win.
- D.Allow rules from the committed file take effect only after the teammate trusts the folder, while deny and ask rules apply at once.
Show answer and explanation
Correct answer: D. Allow rules from the committed file take effect only after the teammate trusts the folder, while deny and ask rules apply at once.
Explanation
For a committed .claude/settings.json, permissions.allow rules, additional directories, extra marketplaces and most env values apply only after each teammate trusts the folder, while deny and ask rules apply right away, which matches the symptom exactly. List keys such as permissions.allow merge across files instead of replacing each other, and user settings rank below the shared project file. A malformed rule is possible, but nothing in the evidence points to it, whereas the trust step explains a fresh clone.
Official references
- Question 7Domain: Applications and IntegrationEasy
A team's committed .claude/settings.json sets the model key to a Sonnet model. One developer wants every session in this project to start on Opus, without changing teammates' sessions or the committed file and without typing a flag at each launch. Where should the developer set the model key?
- A.In .claude/settings.local.json, which applies over the committed project file for this developer only.
- B.In the committed .claude/settings.json, inside a block of overrides that applies to this developer only.
- C.In ~/.claude/settings.json, because personal user settings take precedence over the shared project file.
- D.In a --settings JSON passed when starting claude, because the command line sits above every settings file.
Show answer and explanation
Correct answer: A. In .claude/settings.local.json, which applies over the committed project file for this developer only.
Explanation
Project local settings sit above shared project settings, so a model key in .claude/settings.local.json changes only this developer's sessions in the project, and the file stays out of commits. User settings rank below the shared project file, so the team's value would still win. --settings works for one session only, which fails the no-flag requirement, and settings files have no per-person override blocks.
Official references
- Question 8Domain: Tools and MCPMedium
An Agent SDK finance agent routes each issue_refund call to a human reviewer through its canUseTool callback. When the reviewer rejects a refund, the callback returns deny with an empty message. Traces show Claude then retries the same refund, or asks the user to repeat the request, because it does not know why the action was blocked. Which change most directly fixes this?
- A.Return allow with an empty updatedInput when the reviewer rejects, so that the refund call becomes a harmless no-op.
- B.Add the refund policy to the issue_refund description so that Claude stops proposing refunds a reviewer would reject.
- C.Return deny with a message giving the reviewer's reason, such as the order being outside the refund window.
- D.Set destructiveHint to true on issue_refund so that Claude understands that rejected calls must not be repeated.
Show answer and explanation
Correct answer: C. Return deny with a message giving the reviewer's reason, such as the order being outside the refund window.
Explanation
The user-input guide says that when denying, you should provide a message explaining why, because Claude sees that message and may adjust its approach. Returning allow with altered input would run the tool against the reviewer's decision, and tool annotations such as destructiveHint are metadata about the tool, not feedback on a particular rejection. A better description may reduce bad proposals but does not tell Claude why this call was blocked.
Official references
- Question 9Domain: Agents and WorkflowsEasy
A PreToolUse hook registered with the matcher Write|Edit denies any call whose file_path ends in .env. In a later trace, the agent still creates a .env file by running a shell command that redirects output into it. What is the most likely cause?
- A.Hook event names are not case-sensitive, so the hook was registered under another event by mistake.
- B.The Write|Edit matcher limits the hook to the Write and Edit tools, so a Bash call never triggers it.
- C.PreToolUse hooks fire only after the tool executes, so the deny arrived after the file already existed.
- D.The hook returned permissionDecision deny without a permissionDecisionReason, so the SDK ignored it.
Show answer and explanation
Correct answer: B. The Write|Edit matcher limits the hook to the Write and Edit tools, so a Bash call never triggers it.
Explanation
Matchers filter by tool name, and the documentation warns that a Write|Edit matcher does not run when Claude writes the file with a Bash command; the guard needs to cover Bash too, for example with a Bash matcher that inspects the command. The reason field explains a deny but is not what makes it apply. PreToolUse fires before the tool runs, and event names are case-sensitive, so neither of those explains the gap.
Official references
- Question 10Domain: Agents and WorkflowsEasy
A retail team built a multi-agent prototype to answer product questions from its catalog. On the team's evaluation set, a single model call that receives the retrieved product pages and a few in-context examples already meets the accuracy target, while the prototype is slower and more expensive with no measured accuracy gain. What should the team do?
- A.Ship the single call with retrieval and examples, and add agentic steps only when an evaluation shows a gain.
- B.Ship the multi-agent prototype anyway, because its extra capacity will be needed as the catalog keeps growing.
- C.Replace the prototype's lead agent with an orchestrator-workers design that uses smaller models as workers.
- D.Wrap each single-call answer in an evaluator-optimizer loop so that a second model reviews every response.
Show answer and explanation
Correct answer: A. Ship the single call with retrieval and examples, and add agentic steps only when an evaluation shows a gain.
Explanation
Anthropic's guidance is to find the simplest solution that works and add complexity only when it demonstrably improves outcomes, because agentic systems trade latency and cost for task performance; often a single call with retrieval and in-context examples is enough. Shipping the prototype pays that cost for a gain the evaluation did not show. An evaluator-optimizer loop or an orchestrator-workers redesign also adds calls without any measured need.
Official references
How to use these CCDV-F sample questions
Answer each question before opening the explanation, and write down why you discarded the other options. On CCDV-F, 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-F 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-F format.