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 type of value does a Fastify route handler return when it wants Fastify to send a 404 response?

In this round
  1. What type of value does a Fastify route handler return when it wants Fastify to send a 404 response?
  2. What does the querystring schema in a Fastify route definition validate?
  3. What object gives access to route parameters like `:id` in a Fastify handler?
  4. Which of these correctly registers a Fastify plugin with configuration options?
  5. What does `app.setErrorHandler(fn)` do?
  6. What is the correct way to read a custom request header, e.g. `x-api-key`, in a Fastify handler?
  7. In a Fastify route handler declared as `async (request, reply) => {...}`, how do you send a JSON response?
  8. What is the primary purpose of attaching a JSON Schema to a Fastify route?
  9. How do you set a custom HTTP status code before sending a response in Fastify?
  10. What is Fastify?
  11. What is the effect of specifying a `response` schema for status code 200 on a Fastify route?
  12. What plugin/hook type would you use to run authentication logic before every route handler in a specific plugin scope?
Gaps to close?
Read the curated Fastify notes — core concepts, patterns, interview prep.
Fastify notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web