Question 26
CCA-F is a newly released exam. These practice questions reflect our best current understanding — the exact wording and question formats may change in the live exam until the certification matures. Use them to learn the concepts, not to memorize.
Scenario: Claude Code for Continuous Integration - Your pipeline script runs `claude "Analyze this pull request for security issues"`, but the job hangs indefinitely. Logs show Claude Code is waiting for interactive input. What is the correct approach to run Claude Code in an automated pipeline? What is the correct approach?
- AAdd a `--batch` flag: `claude --batch "Analyze this pull request for security issues"`.
- BAdd the `-p` flag: `claude -p "Analyze this pull request for security issues"`.
- CRedirect stdin from `/dev/null`: `claude "Analyze this pull request for security issues" < /dev/null`.
- DSet the environment variable `CLAUDE_HEADLESS=true` before running the command.