Skip to content

05 — Quiz: hooks

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

#

1. Your PreToolUse hook spots rm -rf and exits with code 1. What happens to the call?

#

2. Your hook prints {"permissionDecision": "deny"} at the top level of its JSON, then exits 0. What happens?

#

3. A session runs in bypassPermissions. Your PreToolUse hook denies a command. Does it run?

#

4. You want a log line for every successful tool call, without slowing Claude down. Which setup fits?

#

5. You add a hook with matcher mcp__notes to guard every tool of an MCP server named notes. It never fires. Why?

Quiz Progress

0 / 0 questions answered (0%)

0 correct