Chapter quiz · HTTP & Servers

Test what you learned.

8 questions on HTTP & Servers. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

HTTP & Servers — Chapter Quiz

Eight questions on node:http, fetch, streaming, WebSockets.

0/ 8
  1. Question 1
    1

    Which module starts an HTTP server with no extra dependencies?

  2. Question 2
    2

    Node 18+ has a built-in fetch — no need for axios or node-fetch.

  3. Question 3
    3

    What is the safest way to set a session cookie?

  4. Question 4
    4

    What is Server-Sent Events (SSE) best for?

  5. Question 5
    5

    Why do production setups usually NOT terminate TLS in Node?

  6. Question 6
    6

    To serve a video file with constant memory regardless of size, you should ___ it to the response.

  7. Question 7
    7

    Inside a request handler, the URL is on req.url. To extract the path and query:

  8. Question 8
    8

    What's the safe pattern for setting a request timeout?

Pick an answer — instant feedback as you go.