Bird
0
0

In a REST API, a developer uses cookies to store session data on the client but the server still keeps session info. What problem does this cause?

medium📝 Debug Q7 of 15
Rest API - REST API Fundamentals
In a REST API, a developer uses cookies to store session data on the client but the server still keeps session info. What problem does this cause?
AClient cannot send cookies with requests
BServer is not stateless, causing scaling and reliability issues
CCookies automatically make the API stateless
DNo problem; this is standard REST practice
Step-by-Step Solution
Solution:
  1. Step 1: Analyze server storing session data

    Server storing session data breaks statelessness regardless of client cookies.
  2. Step 2: Understand consequences

    This causes scaling and reliability problems because server state must be managed.
  3. Final Answer:

    Server is not stateless, causing scaling and reliability issues -> Option B
  4. Quick Check:

    Server session storage breaks statelessness [OK]
Quick Trick: Server must not store session data even if client uses cookies [OK]
Common Mistakes:
  • Assuming cookies alone ensure statelessness
  • Believing client cannot send cookies
  • Thinking this is standard REST practice

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes