Question 790
A production diagnostic for a healthcare document service starts from: A Claude Code agent attempts a destructive file deletion during a repository cleanup. Which FIRST check would BEST distinguish the relevant failure or configuration problem?
Explanation
Correct Answer
Inspect hook event wiring, command matcher and exit status. This isolates the initial issue, a Claude Code agent attempts a destructive file deletion during a repository cleanup. It guides the corrective approach: configure a pre-execution hook to block forbidden delete commands with an auditable failure.
Incorrect Answers
That diagnostic helps when a developer uses a post-tool hook to validate every generated configuration file before commit. It is not the best first discriminator for this task; check instead: inspect hook event wiring, command matcher and exit status.
That diagnostic helps when a ticket summarizer connects to a tenant-wide document search index without filtering organization identity. It is not the best first discriminator for this task; check instead: inspect hook event wiring, command matcher and exit status.
That diagnostic helps when a chatbot is launched without monitoring or incident escalation for unsafe responses. It is not the best first discriminator for this task; check instead: inspect hook event wiring, command matcher and exit status.



Claude Certified Developer - Foundations (CCDV-F) Practice Tests