Bird
Raised Fist0

Given a system where requests enter through a load balancer, then pass to a web server, and finally to a database, what is the correct exit flow?

medium🧠 Conceptual Q4 of Q15
LLD - Design — Parking Lot System
Given a system where requests enter through a load balancer, then pass to a web server, and finally to a database, what is the correct exit flow?
AClient -> Load Balancer -> Web Server -> Database
BLoad Balancer -> Web Server -> Database -> Client
CWeb Server -> Load Balancer -> Database -> Client
DDatabase -> Web Server -> Load Balancer -> Client
Step-by-Step Solution
Solution:
  1. Step 1: Trace the entry flow

    Requests enter: Client -> Load Balancer -> Web Server -> Database.
  2. Step 2: Reverse for exit flow

    Responses exit in reverse: Database -> Web Server -> Load Balancer -> Client.
  3. Final Answer:

    Database -> Web Server -> Load Balancer -> Client -> Option D
  4. Quick Check:

    Exit flow reverses entry flow [OK]
Quick Trick: Exit flow is reverse of entry flow path [OK]
Common Mistakes:
MISTAKES
  • Mixing entry and exit flow directions
  • Assuming load balancer only handles entry
  • Incorrect sequence of components

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes