FlashGenius Logo FlashGenius
Login Sign Up

CCDV-F Practice Questions: Claude Code Domain

Test your CCDV-F knowledge with 10 practice questions from the Claude Code domain. Includes detailed explanations and answers.

CCDV-F Practice Questions

Master the Claude Code Domain

Test your knowledge in the Claude Code domain with these 10 practice questions. Each question is designed to help you prepare for the CCDV-F certification exam with detailed explanations to reinforce your learning.

Question 1

A developer starts using Claude Code in an existing repository and notices the first responses are generic. The team has not yet set up any project-aware guidance. Session excerpt: Developer: "Refactor our API handlers using the project conventions." Claude Code: "I need more information about the repository conventions and expected structure." What is the BEST next step?

A) Initialize the repository and add durable project guidance.

B) Switch models before configuring the repository context.

C) Use a one-time prompt describing every convention.

D) Store all conventions only in personal memory.

Show Answer & Explanation

Correct Answer: A

Explanation:

Correct answer (A): Repository initialization helps Claude Code operate with project context instead of treating each interaction as isolated. Adding durable project guidance, typically through repository files such as CLAUDE.md, gives Claude Code shared conventions to use in future sessions. The problem described is missing project setup, not model capability.

Why the other options are wrong:
- Option B: Changing models does not address the missing repository context and project guidance described in the session.
- Option C: A one-time prompt may help one response, but it does not create durable project-aware behavior for future work.
- Option D: Personal memory is not the best mechanism for shared, versioned repository conventions.

Question 2

A team wants Claude Code to use the same project-level operational settings when developers open the repository. They do not want each developer to remember a setup prompt. Current note in the onboarding doc: "After opening Claude Code, ask it to use our team's preferred approval and session behavior for this repository." Which implementation is MOST appropriate?

A) Move the durable Claude Code configuration into settings.json.

B) Move all operational settings into the root CLAUDE.md file.

C) Ask each developer to store the note in Agent Memory.

D) Keep the onboarding note and rely on manual setup.

Show Answer & Explanation

Correct Answer: A

Explanation:

Correct answer (A): settings.json is the appropriate place for durable Claude Code configuration behavior. The scenario is about operational settings that should apply consistently without a repeated setup prompt, so a repository or project configuration file is the best fit. CLAUDE.md is better for natural-language project guidance rather than configurable Claude Code behavior.

Why the other options are wrong:
- Option B: CLAUDE.md is useful for repository instructions, but the scenario asks for durable operational configuration rather than coding guidance.
- Option C: Agent Memory is not the best fit for team-wide project configuration because it is not a versioned repository configuration mechanism.
- Option D: Manual setup remains error-prone and does not satisfy the requirement for consistent behavior without repeated prompts.

Question 3

A monorepo team wants shared guidance for every package, plus stricter instructions only for the payments service. Repository layout: /CLAUDE.md -> "Use pnpm, keep changes small, run affected tests." /services/payments/CLAUDE.md -> "For payments code, preserve audit logging and update ledger tests." /services/catalog/ -> no CLAUDE.md A developer opens Claude Code while working in /services/payments. What is the BEST interpretation?

A) Use both the root guidance and the payments-specific guidance.

B) Use only the root guidance because it is highest in the repo.

C) Use only the payments guidance because it is closest to the files.

D) Ignore both files unless the developer pastes them into chat.

Show Answer & Explanation

Correct Answer: A

Explanation:

Correct answer (A): Claude Code supports a hierarchy of CLAUDE.md files, and file placement matters. A root CLAUDE.md can provide shared repository guidance, while a nested CLAUDE.md can add package- or directory-specific instructions. In the payments directory, the best interpretation is to apply the shared root guidance together with the payments-specific guidance.

Why the other options are wrong:
- Option B: Root guidance is relevant, but hierarchy allows nested guidance to add more specific instructions for a subdirectory.
- Option C: The closer file matters, but the shared root guidance is still intended to apply across the repository.
- Option D: CLAUDE.md is designed to provide durable project guidance without requiring the developer to paste it manually into each session.

Question 4

A developer is cleaning up a Claude Code repository setup. Current file: ``` // settings.json { "team_note": "When editing billing code, preserve the audit-log helper and add tests." } ``` The team wants this instruction to be visible as project guidance rather than treated like tool configuration. What should the developer do?

A) Move the note into the relevant CLAUDE.md guidance.

B) Rename team_note to project_rule in settings.json.

C) Convert the note into a custom slash command.

D) Store the note only in the developer's session history.

Show Answer & Explanation

Correct Answer: A

Explanation:

Correct answer (A): settings.json is the place for Claude Code configuration, while CLAUDE.md is better suited for human-readable project guidance and development conventions. The instruction describes how to work on billing code, not a Claude Code configuration setting.

Why the other options are wrong:
- Option B: Renaming the key does not change the fact that settings.json is the wrong place for project coding guidance.
- Option C: A custom slash command is useful for repeatable invocations, but this is persistent guidance that should apply whenever relevant code is edited.
- Option D: Session history is not durable, reviewable team guidance and will not reliably help other contributors.

Question 5

A team is initializing Claude Code for a repository used by 20 engineers. Draft setup plan: ``` Goal: consistent Claude Code behavior across contributors. Needed: durable coding conventions, project-specific review workflow, and configuration that can be maintained as the repository evolves. ``` Which setup plan is the BEST starting point?

A) Add scoped CLAUDE.md guidance, define needed custom commands, and keep configuration in settings.json.

B) Put all conventions, workflows, and configuration values into one large settings.json file.

C) Rely on each engineer's Agent Memory and avoid repository-level Claude Code files.

D) Use only interactive prompts so each contributor can describe the project manually.

Show Answer & Explanation

Correct Answer: A

Explanation:

Correct answer (A): A maintainable Claude Code repository setup separates concerns: CLAUDE.md for durable project guidance, custom commands for repeatable project-specific workflows, and settings.json for configuration. This supports consistency across contributors and keeps behavior easier to review as the repository evolves.

Why the other options are wrong:
- Option B: settings.json is not the right place for all project conventions and workflows; it should not replace CLAUDE.md guidance or custom commands.
- Option C: Per-engineer Agent Memory would make shared repository behavior inconsistent and less reviewable across the team.
- Option D: Manual prompts are not durable or repeatable and would undermine consistency across contributors.

Question 6

A team repeatedly tells Claude Code the same repository conventions at the start of every session. They want the guidance to be durable, reviewable, and reused by all contributors. Current onboarding note: ``` Before using Claude Code, paste: - Use pytest for backend tests. - Prefer existing repository helpers over new utilities. - Follow the service naming pattern in /services. ``` What is the BEST primary change?

A) Move the conventions into a repository CLAUDE.md file.

B) Store the conventions in Agent Memory for each developer.

C) Add the conventions as comments in settings.json.

D) Paste the conventions into every new session prompt.

Show Answer & Explanation

Correct Answer: A

Explanation:

Correct answer (A): CLAUDE.md is the appropriate Claude Code mechanism for durable, human-readable project or repository instructions. It avoids repeated ad hoc prompting and makes conventions easier for the team to review and maintain across sessions and contributors.

Why the other options are wrong:
- Option B: Agent Memory can retain context or preferences, but shared project conventions should be explicit and reviewable in repository guidance rather than hidden per developer.
- Option C: settings.json is for Claude Code configuration, not for storing human-readable coding standards as comments or policy guidance.
- Option D: Repeating the guidance manually is exactly the brittle workflow the team is trying to eliminate.

Question 7

A team runs Claude Code non-interactively during a pre-merge analysis step. Observer requirement: ``` Developers watching the job should see progress as Claude Code reads files, forms its plan, and writes its final summary. Waiting only for a final blob makes long runs hard to diagnose. ``` What is the BEST operational adjustment?

A) Enable streaming mode for incremental Claude Code output.

B) Disable all progress output until the final summary is ready.

C) Move the observer requirement into Agent Memory.

D) Replace the run with a custom slash command only.

Show Answer & Explanation

Correct Answer: A

Explanation:

Correct answer (A): Streaming mode is the right fit when operators or automation need incremental visibility into Claude Code output rather than waiting only for a final response. The requirement is specifically about observing progress during a long non-interactive run.

Why the other options are wrong:
- Option B: This directly conflicts with the requirement to see progress during the run.
- Option C: Agent Memory cannot provide incremental runtime visibility into a non-interactive execution.
- Option D: A custom slash command may make invocation repeatable, but it does not address the need to stream progress output.

Question 8

A platform team wants to run Claude Code from a nightly automation job. Requirement excerpt: ``` - No developer will be present during execution. - The job should analyze changed files and produce a summary artifact. - Interactive chat prompts should not be required. ``` Which Claude Code operating pattern is the BEST fit?

A) Run Claude Code in headless mode for the job.

B) Require an interactive Claude Code session overnight.

C) Store the job instructions only in Agent Memory.

D) Replace the workflow with a nested CLAUDE.md file.

Show Answer & Explanation

Correct Answer: A

Explanation:

Correct answer (A): Headless mode is appropriate for non-interactive or automation-oriented Claude Code execution where no developer needs an interactive chat session. The requirement explicitly calls for unattended operation that produces an artifact.

Why the other options are wrong:
- Option B: An interactive session conflicts with the requirement that no developer be present and no chat prompts be required.
- Option C: Agent Memory does not define the operating mode for unattended automation and would not by itself run the job.
- Option D: A nested CLAUDE.md may provide guidance, but it does not replace the need for a non-interactive execution pattern.

Question 9

A platform engineer wants a nightly job to run Claude Code against a repository and produce a migration-risk summary without a human steering the conversation. Job requirement excerpt: "Run at 02:00 UTC, inspect the changed files from the last 24 hours, write a markdown summary artifact, and exit with a status for the scheduler." Which Claude Code operating pattern is the BEST fit?

A) Run Claude Code in headless mode for the scheduled job.

B) Use an interactive session and wait for developer input.

C) Use Agent Memory to remember the nightly schedule.

D) Use a custom slash command only during local sessions.

Show Answer & Explanation

Correct Answer: A

Explanation:

Correct answer (A): Headless mode is appropriate for non-interactive or scripted Claude Code execution. The workload is scheduled, unattended, and expected to produce an artifact and exit, so headless execution is a better operational fit than an interactive session that depends on a human.

Why the other options are wrong:
- Option B: Interactive sessions are useful when a developer is guiding work step by step, but this job is unattended automation.
- Option C: Agent Memory can preserve context, but it does not provide the non-interactive execution mode required by the scheduler.
- Option D: A custom slash command may standardize a task, but the key requirement is unattended scripted execution.

Question 10

A backend team keeps reminding Claude Code in every session to follow the same project conventions. They want the guidance to be reviewable in source control and applied consistently by all developers. Current repeated prompt: "When editing this repo, use the service/repository pattern, keep controllers thin, and run the repository's unit-test command before proposing a final change." What is the BEST place to put this guidance?

A) Add the instructions to a repository CLAUDE.md file.

B) Save the instructions only in Agent Memory.

C) Paste the instructions at the start of each session.

D) Put the instructions only in settings.json.

Show Answer & Explanation

Correct Answer: A

Explanation:

Correct answer (A): CLAUDE.md is the appropriate durable, repository-scoped mechanism for project guidance such as coding conventions, preferred workflows, and expectations that should be shared by the team. Because the requirement is reviewable, source-controlled, and applied across developers, repository guidance belongs in CLAUDE.md rather than in transient prompts or personal memory.

Why the other options are wrong:
- Option B: Agent Memory may help with personal or persistent assistant context, but it is not the best substitute for versioned, team-wide repository instructions.
- Option C: Repeating instructions in each session is workable temporarily, but it is not durable, reviewable, or consistent across the team.
- Option D: settings.json is for Claude Code configuration behavior, not the best place for natural-language repository coding standards.

Ready to Accelerate Your CCDV-F Preparation?

Join thousands of professionals who are advancing their careers through expert certification preparation with FlashGenius.

  • ✅ Unlimited practice questions across all CCDV-F domains
  • ✅ Full-length exam simulations with real-time scoring
  • ✅ AI-powered performance tracking and weak area identification
  • ✅ Personalized study plans with adaptive learning
  • ✅ Mobile-friendly platform for studying anywhere, anytime
  • ✅ Expert explanations and study resources
Start Free Practice Now

Already have an account? Sign in here

About CCDV-F Certification

The CCDV-F certification validates your expertise in claude code and other critical domains. Our comprehensive practice questions are carefully crafted to mirror the actual exam experience and help you identify knowledge gaps before test day.