Skip to content

14 — Quiz: agents in CI/CD

Pick an answer. The quiz checks it and shows the explanation.

#

1. A nightly job runs claude -p "Fix the lint errors" with no other flags and no mode set. Claude tries to edit a file. What happens?

#

2. Your script parses Claude's answer and also needs the session ID. Which output format fits?

#

3. In a claude -p run you pass --allowedTools "Read". Can Claude still call other tools?

#

4. A pull request adds a .mcp.json server that nobody approved. Your CI checks out the branch and runs claude -p without --bare. What happens to the server?

#

5. Your prompt says "This is a read-only task. Never edit files." Claude then reads an issue that says "update config.yaml". Which control actually stops the edit?

#

6. You run claude -p in an untrusted checkout whose .claude/settings.json has a permissions.allow rule for Bash(curl *). Does the rule apply?

#

7. You copy a workflow that uses anthropics/claude-code-action with an API key and the Claude GitHub App. Which permissions: block is the least it needs to read the code?

#

8. Your workflow sets a prompt input. When does Claude run?

#

9. On an Ubuntu runner you pass --disallowedTools "Bash" and ask Claude to find every TODO. Which search tools does it have?

Quiz Progress

0 / 0 questions answered (0%)

0 correct