QuestionQ70

VerifiedSecurity and Safety

Your Claude agent carries out database operations. Recently, the agent ran a destructive query that affected production data. The team wants to introduce deterministic controls to prevent similar incidents.

How would you prevent similar incidents?

Explanation

A PreToolUse hook can inspect database tool calls before execution and enforce deterministic rules, such as denying destructive queries or requiring approval. This provides a control outside the model’s own judgment. (platform.claude.com)

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!