Courseiva

CCDV-F · domain

Claude Code

This domain covers Claude Code as an agentic terminal tool: how it plans multi-step work, runs tools, reacts to failures, and keeps a human in the loop. Questions are scenario-based, asking you to pick the right developer action, judge safe versus unsafe operations, and describe how execution flow and error recovery actually work.

32 questions5 easy11 medium16 hard

Focused practice

Practice Claude Code questions

Scored sessions drawing only from this domain — pick a length below.

Start 20-question practice test →

What this domain covers

What to know about Claude Code

Be able to supervise an agentic loop: give a clear goal, let Claude Code plan, run tools, and self-correct on failures, and approve risky actions. The key is knowing when to intervene with context versus when to let the agent iterate on its own.

How Claude Code plans and sequences multi-step tasks, tracking progress toward completion across tool calls.

Using CLAUDE.md project memory and /init to give the agent persistent context and conventions.

Guiding failure recovery: reading test output, forming a hypothesis, and letting the agent edit and re-run.

Safe standard actions like reading files, running tests, and searching, versus destructive or network operations.

Watch out for

Common Claude Code exam traps

  • ▸Assuming the agent needs step-by-step manual instructions instead of letting it plan and iterate on its own.
  • ▸Pasting raw error text without context rather than pointing the agent at the failing test and letting it investigate.
  • ▸Treating every file write or command as safe; destructive actions like force-push or mass deletion still need approval.

Question index

All Claude Code questions (32)

Click any question to see the full explanation, or start a practice session above.

1

Refer to the exhibit. What is the most effective way to address the agent's modification of build artifacts?

Hard
2

Refer to the exhibit. How does Claude Code handle this interruption, and what is the expected outcome?

Hard
3

A developer is working in a large repository and wants Claude Code to understand the project structure and available tools before making changes. They run `claude` in the project root. Which action best ensures Claude Code has the necessary context for the session?

Medium
4

When Claude Code executes a shell command that requires user intervention (such as an interactive prompt), how does the agent typically handle this situation?

Hard
5

A developer is using Claude Code to debug a complex issue. After several exchanges, Claude Code suggests a solution that involves modifying a configuration file outside the project directory. The developer is concerned about unintended side effects. What is the most appropriate way to handle this?

Hard
6

A developer wants to integrate Claude Code into a CI/CD pipeline. Why is this generally discouraged or difficult to achieve directly?

Hard
7

A developer is working in a large monorepo and wants Claude Code to automatically run `npm run lint` and `npm run test` after every file edit it makes, without needing to ask each time. Which Claude Code feature should the developer configure to achieve this?

Medium
8

A developer notices that Claude Code is hallucinating about the availability of a specific CLI tool that is not installed in the current environment. What is the most effective way to correct this behavior?

Medium
9

Which TWO of the following capabilities are native to Claude Code when operating in a repository?

Hard
10

Refer to the exhibit. You are working with Claude Code and receive this error message during a batch refactor. What is the most appropriate course of action?

Hard
11

Which of the following is an example of an effective natural language instruction for Claude Code?

Easy
12

You are working in a monorepo where the repository root contains a CLAUDE.md with shared coding standards, and the packages/api directory has its own CLAUDE.md with API-specific conventions. During a session started from the repository root, Claude Code begins editing files under packages/api. Which CLAUDE.md content is applied to those edits, and how should you expect the two files to interact?

Hard
13

How does Claude Code maintain context over a long-running conversation in the terminal?

Medium
14

A developer wants Claude Code to understand the team's API conventions, directory layout, and preferred testing framework for a specific service, and wants that guidance loaded automatically at the start of every session in that repository without typing it. What is the most appropriate way to accomplish this?

Hard
15

When should a developer choose to 'reject' an edit suggested by Claude Code?

Medium
16

A developer wants Claude Code to remember a project-specific convention: all new database migration files must be placed in the `db/migrations` directory and named with a `YYYYMMDDHHMMSS_` prefix. The developer wants this rule applied automatically in every future Claude Code session for this repository, without having to repeat the instruction each time. What is the most appropriate way to achieve this?

Medium
17

A developer wants Claude Code to run a series of shell commands as part of a build task but is concerned about the assistant executing arbitrary or destructive commands. Which TWO practices reduce this risk while still allowing the needed commands to run? (Choose two.)

Hard
18

A developer wants Claude Code to add input validation to a specific function in `src/api/users.py`. Which instruction is most likely to produce a correct, targeted change?

Easy
19

What role do 'project-aware' features play in Claude Code during a development session?

Medium
20

What is the primary purpose of the 'Claude Code' tool in a professional development environment?

Easy
21

When Claude Code is asked to perform a complex, multi-file task, how does it typically approach the problem?

Medium
22

A developer is working on a large refactoring task with Claude Code. They want to ensure the agent has sufficient context about the project's architecture and coding standards. Which TWO of the following are recommended ways to provide this context? (Choose two.)

Hard
23

Why is it important to use the Claude Code CLI within an initialized Git repository?

Medium
24

What is the primary purpose of the 'claude' command-line interface tool?

Easy
25

When Claude Code is asked to perform a complex task that might take a long time, how does the agent manage the execution flow to ensure task completion?

Medium
26

Refer to the exhibit. Claude Code has encountered a test failure while implementing a feature. How should the developer effectively guide the agent to resolve this error using the agent's internal capabilities?

Hard
27

A developer is using Claude Code to refactor a function across multiple files. After a few edits, Claude Code proposes a change that would alter the behavior of a critical utility function used elsewhere. The developer wants to ensure the change is safe before applying it. What is the most appropriate action?

Hard
28

A team wants Claude Code to run a custom script that inspects the repository for license headers before any commit. The script must run automatically each time Claude Code is about to create a commit, and the team wants the same hook to apply to every developer without manual setup. Which mechanism should they use?

Hard
29

A developer is onboarding to an unfamiliar Python service and wants to use Claude Code to build an accurate mental model of how requests flow through the codebase before making changes. Which TWO actions best leverage Claude Code for this exploration task? (Choose two.)

Medium
30

What is the role of the user when using Claude Code for a complex refactoring task?

Hard
31

A developer repeatedly types the same multi-step instruction to Claude Code: review the current diff, run the unit tests, and summarize any failures. They want to trigger this workflow with a single short command in future sessions. What should they create?

Easy
32

Which THREE of these actions are considered safe and standard for Claude Code to perform during an interactive session?

Hard

Frequently asked questions

What does the Claude Code domain cover on the CCDV-F exam?
Be able to supervise an agentic loop: give a clear goal, let Claude Code plan, run tools, and self-correct on failures, and approve risky actions. The key is knowing when to intervene with context versus when to let the agent iterate on its own.
How many questions are in this domain?
This page lists all 32 Claude Code questions in the CCDV-F question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
What is the best way to practise this domain?
Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
Can I practise only Claude Code questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.
anthropic-claude-developer ANTHROPIC-CLAUDE-DEVELOPER claude code Practice Questions