CCDV-F · Domain 2: Applications and Integration · 20% of the exam
Task 2.3: Configuration and SDLC Integration
Reading configuration artifacts (CLAUDE.md files, settings.json, pinned model versions, versioned prompts, plugin dependencies, CI jobs) to find the right setup and what a change does in each environment.
Study it
Configuration and the SDLC: CLAUDE.md, settings.json, pinned models, versioned prompts and CI
Lesson coming
Sample questions
Try each one before opening the answer. Every option is explained, with the Anthropic documentation page that proves it.
Question 1 · choose 1
Your repository commits this .claude/settings.json:{
"permissions": {
"deny": ["Bash(git push *)", "Read(./.env)",]
}
}A CI job runs claude -p in the repository, and its log shows Claude running git push. No one changed the job's flags. What explains this, and what should you do?
AThe trailing comma makes the file invalid JSON, and a -p run skips a broken file without a dialog; fix the JSON
BDeny rules apply only to interactive sessions; pass the same rules to the CI job with --allowedTools
CThe rule syntax needs a colon, Bash(git push:*); rewrite each rule in that form
DProject settings load only after the workspace trust dialog is accepted; run the job once interactively to accept it
Show the answer and why
AThe trailing comma makes the file invalid JSON, and a -p run skips a broken file without a dialog; fix the JSON
Correct
Settings files are strict JSON, and a -p run continues without a broken user, project or local file.
BDeny rules apply only to interactive sessions; pass the same rules to the CI job with --allowedTools
Incorrect
Deny rules apply in -p runs too, and --allowedTools adds allow rules, not deny rules.
CThe rule syntax needs a colon, Bash(git push:*); rewrite each rule in that form
Incorrect
Bash(git push *) and Bash(git push:*) are equivalent; the rule never loaded because the file did not parse.
DProject settings load only after the workspace trust dialog is accepted; run the job once interactively to accept it
Incorrect
A -p run shows no dialog; the problem is the file's syntax, not trust.
Settings files are strict JSON, so a trailing comma is a syntax error. An interactive session would report a Settings Error, but a -p run shows no dialog: it skips the broken file and continues, so the deny rules are missing. Fix the file and run claude doctor to see what a run dropped.
Your repository's .claude/settings.json sets the model so that every run uses the same one:{"model": "claude-opus-5-5"}The CI workflow that runs Claude Code sets this environment for the job:env:
ANTHROPIC_MODEL: sonnetWhich model does the CI job use?
Aclaude-opus-5-5, because the repository's settings file ranks above the job's environment
BWhichever model the sonnet alias resolves to, because ANTHROPIC_MODEL ranks above the settings file
CThe account's default model, because two conflicting values cancel each other out
DNone: Claude Code exits with a configuration error when the two values disagree
Show the answer and why
Aclaude-opus-5-5, because the repository's settings file ranks above the job's environment
Incorrect
The environment variable ranks above the settings file in the order of priority.
BWhichever model the sonnet alias resolves to, because ANTHROPIC_MODEL ranks above the settings file
Correct
Priority runs /model, --model, ANTHROPIC_MODEL, then settings; aliases resolve to the recommended version.
CThe account's default model, because two conflicting values cancel each other out
Incorrect
Conflicting values are resolved by the priority order, not cancelled.
DNone: Claude Code exits with a configuration error when the two values disagree
Incorrect
The values are ranked, and the higher one simply applies.
Claude Code takes the model from, in order of priority, /model during the session, --model at startup, ANTHROPIC_MODEL, then the model field in settings. Aliases such as sonnet point to the recommended version and update over time.
Your workflow runs the Claude Code GitHub Action on every pull_request event with a prompt input that asks Claude to review the change. Runs succeed and the workflow log shows a full review, but nothing appears on the pull requests. What should you change?
ARemove the prompt input so that the review is posted as a comment on the pull request
BGive the triggering users write access, since runs by other users only write to the log
CAdd the user that opens the pull requests to allowed_bots so that its runs can post comments
DHave the prompt direct Claude to post the review on the pull request, with a tool that can post
Show the answer and why
ARemove the prompt input so that the review is posted as a comment on the pull request
Incorrect
Without a prompt, Claude waits for an @claude mention and no longer reviews each pull request on its own.
BGive the triggering users write access, since runs by other users only write to the log
Incorrect
A user without write access fails the trigger check; the run would not succeed at all.
CAdd the user that opens the pull requests to allowed_bots so that its runs can post comments
Incorrect
Who may start a run is a separate check; it does not decide where the results go.
DHave the prompt direct Claude to post the review on the pull request, with a tool that can post
Correct
In automation mode results go to the run log unless the prompt directs Claude to post and it has a tool for that.
With a prompt input, the action runs in automation mode: Claude starts without waiting for a mention, and by default results appear in the workflow run log rather than a comment. Claude posts to the pull request when the prompt directs it to and it has a tool that can post.
Your user settings file, ~/.claude/settings.json, has a permissions.allow list with "Bash(npm run lint)". The repository's committed .claude/settings.json has a permissions.allow list with "Bash(npm test)". No other settings file, managed settings or command-line flag sets permissions. Which of these allow rules apply in your Claude Code sessions in that repository?
AOnly Bash(npm test), because shared project settings rank above user settings and replace their list
BBoth rules, because Claude Code combines the allow lists that the two files set
COnly Bash(npm run lint), because user settings apply to every project you open
DNeither rule, because conflicting allow lists are ignored until one of the files is removed
Show the answer and why
AOnly Bash(npm test), because shared project settings rank above user settings and replace their list
Incorrect
Precedence decides single values; list keys such as permissions.allow are combined across files.
BBoth rules, because Claude Code combines the allow lists that the two files set
Correct
A list key set in more than one file is merged, so each file adds its entries.
COnly Bash(npm run lint), because user settings apply to every project you open
Incorrect
User entries are combined with the project's entries, not chosen over them.
DNeither rule, because conflicting allow lists are ignored until one of the files is removed
Incorrect
Lists from several files are combined; no entry is dropped.
For a single value, Claude Code uses the highest settings level that sets it, and shared project settings sit above user settings. List keys such as permissions.allow work differently: when more than one file sets the same list, Claude Code combines the lists instead of picking one, so each file can add entries without removing another file's.
Another team's bot already answers @claude mentions in your repository. You want the Claude Code GitHub Action, running in interactive mode, to respond only when a comment mentions @docs-helper. What should you change in the workflow?
ASet the action's trigger_phrase input to @docs-helper, replacing the default phrase
BAdd a prompt input that names @docs-helper, so that Claude answers only that mention
CPass --append-system-prompt in claude_args, telling Claude to answer only @docs-helper
DSet the github_token input to a token of a GitHub account named docs-helper
Show the answer and why
ASet the action's trigger_phrase input to @docs-helper, replacing the default phrase
Correct
trigger_phrase sets the phrase Claude responds to; its default is @claude.
BAdd a prompt input that names @docs-helper, so that Claude answers only that mention
Incorrect
A prompt input switches the action to automation mode, which runs without waiting for a mention.
CPass --append-system-prompt in claude_args, telling Claude to answer only @docs-helper
Incorrect
The action's trigger phrase decides when it responds; claude_args only passes CLI arguments to Claude Code.
DSet the github_token input to a token of a GitHub account named docs-helper
Incorrect
github_token is the token for GitHub operations; it does not set the trigger phrase.
Without a prompt input, the Claude Code GitHub Action runs in interactive mode and responds to its trigger phrase in comments. The trigger_phrase input sets that phrase, and its default is @claude. A prompt input would switch the action to automation mode, which runs on the workflow's events without waiting for a mention.