演習 › 全問
問題 Q1-17
20 / 120分野1・フックによる介入とデータ正規化
まだ解いていません。
返金のツールに、1件あたり500ドルを超える返金は、自動では実行せず、人の承認に回すという決まりを守らせたい。最も確実な実装はどれか。
正解は A
- A正解です。呼び出しの前に割り込むフックなら、上限を超える操作を確実に止め、別の手順に回せます。
- B文面の指示は、確率的にしか守られません。金額が絡む決まりには弱い方法です。
- C事後の取り消しでは、いったん実行された事実が残ります。
- D説明は目安にとどまり、強制力がありません。
考え方:金額などの業務の決まりは、呼び出しの前のフックで強制し、人への引き継ぎに回す。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Implementing tool call interception hooks that block policy-violating actions (e.g., refunds exceeding $500) and redirect to alternative workflows (e.g., human escalation)https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Intercept and control agent behavior with hooks
Block dangerous operations before they execute, like destructive shell commands or unauthorized file accesshttps://code.claude.com/docs/en/agent-sdk/hooks.md(取得 2026-11-20)