While reviewing fastify hooks lifecycle, a route needs an authorization decision. Which action best addresses the problem?
Answer options
- A. Close it in the shutdown hook
- B. Attach it in onRequest
- C. Authorize in preHandler
- D. Apply it in onSend
Knowledge Check
While reviewing fastify hooks lifecycle, a route needs an authorization decision. Which action best addresses the problem?
PreHandler hook decision is a knowledge check interview exercise that trains prompt interpretation, explicit assumptions, a concrete response, and a clear explanation of tradeoffs. The catalog marks it as medium difficulty. It focuses on Fastify Hooks Lifecycle, Prehandler Hook. The signed-in workspace provides the tools for the round and evaluates the attempt against task-specific criteria. Reference solutions, hidden checks, evaluator instructions, and candidate work remain private.