Bird
0
0

If a REST API server violates statelessness by storing client session data, what problem might occur when scaling the server horizontally?

medium📝 Predict Output Q5 of 15
Rest API - REST API Fundamentals
If a REST API server violates statelessness by storing client session data, what problem might occur when scaling the server horizontally?
AInconsistent session data across multiple servers
BImproved load balancing without issues
CFaster response times due to session caching
DNo impact on scalability or performance
Step-by-Step Solution
Solution:
  1. Step 1: Understand horizontal scaling

    Multiple servers handle requests; session data must be shared or consistent.
  2. Step 2: Identify issue with stored sessions

    If sessions are stored locally, different servers have inconsistent data causing errors.
  3. Final Answer:

    Inconsistent session data across multiple servers -> Option A
  4. Quick Check:

    Stored sessions cause inconsistency in scaled servers [OK]
Quick Trick: Statelessness avoids session inconsistency in scaling [OK]
Common Mistakes:
  • Assuming no impact on scaling
  • Believing session caching improves scaling
  • Ignoring session sharing issues

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes