Home / Claude Certified Developer – Foundations / Objective 7.3

Domain 7: Security and Safety · 8% of the exam · Full exam outline

7.3 Claude Hooks

What this objective covers · 1% of the exam

Leveraging hooks for guardrails and safety controls to prevent destructive actions within Claude applications.

Practice questions

Question 1easy

A team wants Claude Code to run a script that confirms required environment variables are set and that a local database service is reachable, each time a session starts or is resumed. Which hook event fits?

Included in Master: master every domain.See plans
Question 2easy

A team writes a Claude Code hook script that inspects shell commands and exits with code 2 when it sees a recursive delete. They register it on the PostToolUse event. Claude sees the hook's message, yet the files are already gone. Why?

Included in Master: master every domain.See plans