Chapter quiz · Middleware-Style Plugins

Test what you learned.

8 questions on Middleware-Style Plugins. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Middleware-Style Plugins — Chapter Quiz

Eight questions on helmet, CORS, rate limit, multipart, static, compress, formbody, proxy, circuit breakers, and caching.

0/ 9
  1. Question 1
    1

    What does @fastify/helmet do?

  2. Question 2
    2

    Which plugin handles file uploads via multipart/form-data?

  3. Question 3
    3

    @fastify/cors must be registered **before** routes are added for it to handle preflight requests for those routes.

  4. Question 4
    4

    To allow at most 100 requests per minute per IP with @fastify/rate-limit, set max: 100 and timeWindow to one ____.

  5. Question 5
    5

    What does this route serve?

    await app.register(import('@fastify/static'), {
      root: '/srv/public',
    });
    // GET /logo.png
    
  6. Question 6
    6

    What does @fastify/compress do?

  7. Question 7
    7

    When is a circuit breaker useful?

  8. Question 8
    8

    Which plugins are typically registered in production-facing Fastify apps?

    Select all that apply.

Pick an answer — instant feedback as you go.