Black Friday Reward - Upto 75% off - Ends in 0d 00h 00m 00s - Coupon code: CFsave75

Anthropic Claude Certified Architect – Foundations CCAR-F Question # 7 Topic 1 Discussion

Anthropic Claude Certified Architect – Foundations CCAR-F Question # 7 Topic 1 Discussion

CCAR-F Exam Topic 1 Question 7 Discussion:
Question #: 7
Topic #: 1

You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The system runs automated code reviews, generates test cases, and provides feedback on pull requests. You need to design prompts that provide actionable feedback and minimize false positives.

Your pipeline runs:

PROMPT='You are a code reviewer. Analyze the provided diff for bugs, security issues, and style violations.'

claude -p \

--dangerously-skip-permissions \

--system-prompt "$PROMPT" \

< diff.txt

The reviews complete and return feedback, but Claude only comments on the piped diff text—it never reads surrounding files in the checked-out repository to understand broader context, even when the diff modifies a function called by many other modules.

Which change to the invocation will cause Claude to inspect related repository files while still applying your custom review instructions?


A.

Remove --system-prompt entirely and place the review instructions in a CLAUDE.md file, because --system-prompt is incompatible with tool use under -p.


B.

Keep --system-prompt and add --allowedTools "Read,Glob,Grep", because non-interactive -p mode otherwise disables filesystem tools.


C.

Stop piping the diff through standard input and embed it inside the prompt, so Claude Code treats the invocation as an agentic session.


D.

Replace --system-prompt with --append-system-prompt and explicitly instruct Claude to inspect related repository files whenever broader context is needed.


Get Premium CCAR-F Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.