CCDV-F domain - 3.1% of the exam

Claude Code

Claude Code is 3.1% of the CCDV-F exam. These are the objectives it covers, each with practice questions, with every answer explained.

The domain in numbers

9
Practice questions
1
Objectives
9
Medium

Where people go wrong

  • Using an interactive session for an unattended run

    The wrong answers keep a human approval step in a job that has nobody at the terminal. An interactive run blocks whenever a new tool is requested, so a build agent stalls until it times out and the pipeline cannot fail cleanly. Headless mode removes the prompt, an explicit ceiling on turns or spend bounds the run, and tool permissions in a committed settings.json keep the surface identical on every agent.

    See it in a sample question
  • Putting configuration in the wrong file

    The wrong answers put the information in a file that is committed or familiar but does a different job. settings.json configures tool behaviour and permissions, so prose conventions placed there never reach the model as context. A README is not guaranteed to be read on a given task. CLAUDE.md carries project conventions, but integration detail copied into four teams' own files means four edits whenever the platform group changes the query surface. An MCP server keeps tool definitions with their owner.

    See it in a sample question
  • Paying the agent for work a tool already decides

    The wrong answers keep the model reading and reasoning over material that a deterministic step settles. Reading every file to find call sites consumes the context later edits depend on, when one search returns the full list. Trimming the report, batching runs or resizing the model leaves the formatter and type checker work with the agent. Run the existing tools as pipeline steps and leave the model the judgement they cannot make.

    See it in a sample question

Objectives in this domain

Sample questions from this domain

Free sampleClaude Codemedium

A team wants Claude Code to triage failing builds automatically on a build machine with no person watching. Each run must read the build log, inspect files in the checked-out commit and write one comment, and an operations rule states that a run must never stop waiting for an interactive approval, because a stalled run holds a build agent until it times out. The team also requires that the set of tools a run may use be identical on every build agent and visible to a reviewer before it changes. How should the team set this up?

  • ARun Claude Code interactively on the build agent under a service account, and have an engineer approve tool use for the first run of each day so later runs inherit that decision.
  • BRun Claude Code in its non-interactive headless mode with the permitted tools defined in a committed settings.json, so each run proceeds without prompting and the permission set is reviewed like code. Correct
  • CRun Claude Code interactively but grant it unrestricted tool use on the build agent, since the agent is disposable and any unwanted action is discarded when the container is destroyed.
  • DRun Claude Code with the permitted tools passed as arguments from the pipeline definition on each build agent, leaving the repository configuration untouched so the pipeline owns the decision.
Unattended Claude Code runs need headless operation plus a committed permission configuration, so nothing waits on a human and the tool surface is reviewable. Two separate mechanisms are needed. Headless mode addresses the stall, because a non-interactive run does not pause for an approval prompt. A committed settings.json addresses the second requirement, because the permitted tool surface then lives in one reviewed file rather than in per-machine state or per-pipeline arguments.

Why A is wrong: Tempting because a single daily approval sounds like a small burden, but an interactive run still blocks whenever a new tool is requested, which is the stall the operations rule forbids.

Why B is correct: Correct because headless operation removes the interactive prompt that would stall the agent, and holding the permissions in committed configuration makes the tool surface identical across agents and reviewable before it changes.

Why C is wrong: Tempting because a disposable container does limit lasting damage, but unrestricted tool use gives no reviewable boundary and the build log is untrusted input that can steer the run.

Why D is wrong: Tempting because pipeline definitions are often version controlled too, but the permission set then differs per pipeline and drifts between agents, which breaks the stated requirement for one identical surface.

Free sampleClaude Codemedium

Four teams at one company use Claude Code and all four need it to query the same internal deployment tracker, which exposes a private HTTP API. The platform group owns the tracker and expects to change its query surface twice a year. Each team currently pastes an export of yesterday's deployment table into the session, and the teams have measured answers based on stale rows. The platform group must be able to change the query surface without any team editing its own configuration prose. Which arrangement fits that ownership boundary?

  • AHave the platform group run an MCP server that exposes the tracker as tools, and have each team connect Claude Code to that server so queries run against the tracker at the moment they are asked. Correct
  • BHave each team record the tracker's API shape in its own CLAUDE.md and ask Claude Code to call the endpoint directly, updating the four files whenever the platform group changes the surface.
  • CHave the platform group publish a nightly export of the tracker to a shared location and ask each team to read that file at the start of a session rather than pasting it themselves.
  • DHave each team write its own small integration script in its repository and instruct Claude Code to run that script whenever a question about deployments comes up during a session.
An MCP server lets the team owning a system publish tools once, so consumers get live data without holding integration detail themselves. Two constraints decide this: the data must be read when the question is asked, and the integration must be maintained by the group that owns the system. A server exposing tools satisfies both, because the schema and the call live with the owner and every consuming client picks up a change without editing anything of its own.

Why A is correct: Correct because the tool definitions live with the team that owns the tracker, so a change to the query surface ships from one place, and each call reads live data rather than a copy.

Why B is wrong: Tempting because CLAUDE.md is the right home for project conventions, but it puts the same integration detail in four files owned by four teams, which is exactly the coordination the platform group must avoid.

Why C is wrong: Tempting because it removes the manual paste and centralises the data, but the answers are still as old as the last export, so the measured staleness remains.

Why D is wrong: Tempting because a local script does fetch live data, but four independently maintained scripts drift and each must be updated when the platform group changes the surface.

Free sampleClaude Codemedium

A team runs Claude Code as a pull request review step. The step currently asks it to check formatting, import ordering, type errors and design consistency in one pass. The repository already has a formatter, a linter and a type checker that all run in seconds, and finance has set a per pull request cost ceiling that the review step now exceeds. Which change best fits the stated constraint?

  • AKeep all four checks in the agent pass but ask for a shorter written report, so that fewer output tokens are generated on each pull request and the cost per review falls below the stated ceiling.
  • BMove the whole review step to a nightly scheduled run over the day's merged pull requests, so the cost lands once per day rather than once per pull request while the same four checks are still performed.
  • CKeep the four checks together and reduce spend by pinning the review step to the smallest available model, accepting that design consistency findings will be weaker than the ones produced today.
  • DRun the formatter, linter and type checker as ordinary pipeline steps, fail the build on their output, and scope the Claude Code step to the design consistency judgement that no existing tool decides. Correct
Give deterministic tools every check they already decide, and scope the agent step to the judgement no script can make. Formatting, import ordering and type errors have exact answers a tool computes reproducibly and cheaply, so paying a model to read a diff and reach the same verdict adds cost and variance without adding information. Narrowing the agent's remit to the judgement call is what brings spend under the ceiling without losing coverage.

Why A is wrong: Shortening the report is a real cost lever, but the expense here is the agent reading and reasoning over the whole diff for checks a tool already decides, so the saving is small and the reasoning cost remains.

Why B is wrong: Batching does reduce the number of runs, but it removes review from the point where it is useful and still pays an agent to decide things the formatter and the type checker already decide deterministically.

Why C is wrong: Model sizing is a legitimate lever, but the stem gives no evidence the quality bar tolerates it, and it leaves an agent doing mechanical work that a script performs faster and identically every time.

Why D is correct: The three mechanical checks are fully decidable by existing deterministic tools that run in seconds for no model spend, so scoping the agent to the one judgement call removes most of the cost while keeping the finding that only a model can produce.

Other domains in this exam

See also the CCDV-F cert hub, the study guide, and the cheat sheet.

Examworthy is not affiliated with or endorsed by Anthropic. Original, blueprint-aligned practice material only.