Skills101
← All practice quizzes

Quiz: REST APIs

5 questionsNo time limitPass: 60%+10 XP on first pass

Build a real CRUD REST API: @RestController and the mapping annotations, path variables and request bodies, records as DTOs, ResponseEntity with the right status codes, and REST design rules interviewers ask about.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    Which status code should a successful POST that creates a resource return?

  2. Question 2

    Which URL design follows REST conventions for deleting course 7?

  3. Question 3

    What does @RequestBody do?

  4. Question 4

    Which HTTP method is NOT idempotent?

  5. Question 5

    Why return DTOs instead of JPA entities from controllers?