Bird
0
0

Identify the error in this REST API design: The server stores user session data between requests to track login status.

medium📝 Debug Q6 of 15
Rest API - REST API Fundamentals
Identify the error in this REST API design: The server stores user session data between requests to track login status.
AViolates statelessness constraint by storing session state on server.
BViolates cacheable responses by caching user data.
CViolates uniform interface by using standard HTTP methods.
DViolates layered system by using proxies.
Step-by-Step Solution
Solution:
  1. Step 1: Analyze session storage impact

    Storing session data on server means server keeps client state.
  2. Step 2: Match violation to REST constraint

    This breaks the statelessness constraint which requires no server-side session state.
  3. Final Answer:

    Violates statelessness constraint by storing session state on server. -> Option A
  4. Quick Check:

    Server session storage breaks statelessness [OK]
Quick Trick: No server session storage in REST statelessness [OK]
Common Mistakes:
  • Confusing session storage with caching
  • Thinking uniform interface is violated
  • Assuming proxies cause this error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes