All quizzes
Free quiz · 48 questions in the bank

Fastify quiz

Test your Fastify knowledge with a free interactive quiz — 48 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

What does `fastify.close()` do?

In this round
  1. What does `fastify.close()` do?
  2. How do you start listening for requests on port 3000 in Fastify?
  3. How do you register a basic GET route in Fastify?
  4. What is the primary purpose of attaching a JSON Schema to a Fastify route?
  5. What does the querystring schema in a Fastify route definition validate?
  6. What is the purpose of `reply.header('Cache-Control', 'no-store')` in a Fastify handler?
  7. What is Fastify?
  8. How do you define a route that only accepts POST requests to `/orders`?
  9. What object gives access to route parameters like `:id` in a Fastify handler?
  10. What is the correct way to read a custom request header, e.g. `x-api-key`, in a Fastify handler?
  11. What plugin/hook type would you use to run authentication logic before every route handler in a specific plugin scope?
  12. How does Fastify's default JSON body parser make the parsed body available to a handler?
Gaps to close?
Read the curated Fastify notes — core concepts, patterns, interview prep.
Fastify notes

More quizzes

.NETAccessibilityAgile MethodologyAlertmanagerAlgorithmsAndroid