フリー問題

Developing in Agentic AI Systems (GH-600) のフリー問題 19 / 20 問目

問題文

Which set of practices does the documentation recommend for writing hook scripts safely?

選択肢

  1. Write hooks in the shell of the developer's choice and rely on the platform to translate them.
  2. Disable timeouts so long checks can complete, and cache nothing so results are always fresh.
  3. Always validate and sanitize the input the hook processes, and use proper shell escaping when constructing commands to prevent command injection.
  4. Run hooks with elevated privileges so they can enforce policy, and log all inputs including tokens for auditing.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。