Chapter quiz · Building REST APIs

Test what you learned.

8 questions on Building REST APIs. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Building REST APIs — Chapter Quiz

Eight questions on REST design, controllers, services, validation, errors.

0/ 9
  1. Question 1
    1

    Which is the correct status code for a successful POST that created a resource?

  2. Question 2
    2

    401 means 'I know who you are, but you can't do this.'

  3. Question 3
    3

    Why should controllers stay thin?

  4. Question 4
    4

    Why validate input with Zod at the boundary?

  5. Question 5
    5

    What's wrong with offset-based pagination?

  6. Question 6
    6

    URL-path API versioning typically looks like /api/___/users.

  7. Question 7
    7

    Which error response is most future-proof?

  8. Question 8
    8

    Which describe a properly designed REST endpoint?

    Select all that apply.

Pick an answer — instant feedback as you go.