While reviewing fastify hooks lifecycle, a plugin owns a database connection. Which action fixes it, and which check proves it worked?
Answer options
- A. Verify no connection remains
- B. Attach it in onRequest
- C. Authorize in preHandler
- D. Close it in the shutdown hook