All quizzes
Free quiz · 50 questions in the bank

REST API quiz

Test your REST API knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

Which response body format is most common for modern REST APIs?

In this round
  1. Which response body format is most common for modern REST APIs?
  2. Which of these URL designs is the strongest REST anti-pattern?
  3. A user is not logged in and tries to fetch their profile. What status code is most appropriate?
  4. What is the purpose of the HTTP `OPTIONS` method?
  5. What is `201 Created` typically used for?
  6. A user is logged in but tries to access an admin-only endpoint. What status code fits best?
  7. What does `204 No Content` mean?
  8. What is the `Content-Type` request header for?
  9. What is the practical difference between `301 Moved Permanently` and `302 Found`?
  10. What does it mean that REST is "stateless"?
  11. What status code best fits a payload that is well-formed JSON but fails business validation (e.g., "email already taken", "amount must be positive")?
  12. What does REST stand for, and what is its core idea?
Gaps to close?
Read the curated REST API notes — core concepts, patterns, interview prep.
REST API notes

More quizzes

AccessibilityAlgorithmsAngularApache KafkaAWSBootstrap