All practice tasks

Knowledge Check

OnRequest hook purpose

What is the main purpose of onRequest hook in fastify hooks lifecycle?

Answer options

  • A. Release plugin resources during shutdown
  • B. Run early request-wide processing
  • C. Run policy after parsing before the handler
  • D. Inspect or transform the outgoing payload

What this task practices

OnRequest hook purpose 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 easy difficulty. It focuses on Fastify Hooks Lifecycle, Onrequest 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.

Sign in to startThe workspace and evaluation open after sign in.