Claude Certified Architect – Foundations Practice Question 4: CLAUDE.md Scopes
Claude Certified Architect, Foundations · Test 1 · question 4 of 10
A developer keeps personal preferences (reply in a terse style, always use pnpm on their machine) in ~/.claude/CLAUDE.md. Their repository has a root CLAUDE.md with team conventions and a packages/billing/CLAUDE.md with billing-specific rules. They launch Claude Code from the repository root and ask it to edit a file in packages/billing. Which description of what Claude Code loads is correct?
Show answer and explanation
Answer:
C is correct. Claude Code loads the user-level ~/.claude/CLAUDE.md and the CLAUDE.md files in the directory hierarchy above the working directory at launch, so the root file and the personal file are both in context. CLAUDE.md files in subdirectories are not loaded at launch; they are included on demand when Claude reads files in those subdirectories.
A is wrong because user-level and project files are both loaded, and nested files do load on demand. B is wrong because the files are additive, not a replacement of one by the nearest. D is wrong because subdirectory files are loaded on demand rather than at launch, and the files are concatenated as context, not ranked so that one deterministically overrides the others; conflicting instructions should be removed.
Reference: How Claude remembers your project - Claude Code Docs