Chapter quiz · Server & Endpoints

Test what you learned.

8 questions on Server & Endpoints. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Server & Endpoints — Chapter Quiz

Eight questions on output modes, endpoints, middleware, env.

0/ 8
  1. Question 1
    1

    To enable server rendering for a specific page in an otherwise static site, you…

  2. Question 2
    2

    What's an Astro adapter for?

  3. Question 3
    3

    A .ts file in src/pages/ is treated as an endpoint, not a page.

  4. Question 4
    4

    To return JSON from an endpoint, the shortest is…

  5. Question 5
    5

    Where do you put code that runs before every request (auth, logging)?

  6. Question 6
    6

    To read a cookie value:

  7. Question 7
    7

    A secret env var in astro:env schema is automatically prevented from being shipped to the client.

  8. Question 8
    8

    To redirect from a server page, return Astro._________("/new").

Pick an answer — instant feedback as you go.