0
0
HLDsystem_design~20 mins

Why load balancers distribute traffic in HLD - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Load Balancer Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why do load balancers distribute traffic?

Imagine a busy restaurant with many customers arriving at the same time. The restaurant manager wants to make sure no single waiter is overwhelmed. How does this relate to load balancers in system design?

Why do load balancers distribute traffic among servers?

ATo increase the size of the database automatically when traffic grows.
BTo store all user data centrally for faster access.
CTo evenly spread incoming requests across multiple servers to prevent any one server from becoming a bottleneck.
DTo encrypt all network traffic between clients and servers.
Attempts:
2 left
💡 Hint

Think about how sharing work helps avoid overload.

Architecture
intermediate
2:00remaining
Which architecture best shows load balancer traffic distribution?

Given a system with multiple web servers, which architecture diagram best represents how a load balancer distributes incoming user requests?

AUsers sending requests to a single web server which then forwards to a load balancer.
BMultiple web servers each receiving requests directly from users without any intermediary.
CA database server distributing queries to multiple load balancers.
DA single load balancer receiving all requests and forwarding them to multiple web servers behind it.
Attempts:
2 left
💡 Hint

Think about the role of the load balancer as the traffic controller.

scaling
advanced
2:00remaining
How does a load balancer help scale a web application?

Consider a web application experiencing increasing user traffic. How does introducing a load balancer help the system scale effectively?

ABy replacing the database with a faster one automatically.
BBy distributing incoming requests across multiple servers, it allows adding more servers to handle higher traffic.
CBy compressing all data to reduce network usage.
DBy storing user sessions on the load balancer itself.
Attempts:
2 left
💡 Hint

Think about how sharing work helps handle more users.

tradeoff
advanced
2:00remaining
What is a tradeoff when using load balancers?

While load balancers improve traffic distribution, what is a common tradeoff or challenge introduced by using them?

AThey can become a single point of failure if not designed with redundancy.
BThey reduce the total number of servers needed.
CThey eliminate the need for caching in the system.
DThey automatically fix all software bugs in backend servers.
Attempts:
2 left
💡 Hint

Think about what happens if the traffic controller stops working.

estimation
expert
2:00remaining
Estimating capacity for load balancer traffic distribution

A system expects 10,000 requests per second. Each backend server can handle 2,000 requests per second. How many backend servers should the load balancer distribute traffic to, at minimum, to handle the load without overload?

A5 servers
B4 servers
C6 servers
D3 servers
Attempts:
2 left
💡 Hint

Divide total requests by server capacity and round up.