Challenge - 5 Problems
Routing and Load Balancing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
How does round-robin load balancing distribute requests?
Imagine you have 3 identical servers behind a load balancer using round-robin. How will the load balancer distribute 6 incoming requests?
Attempts:
2 left
💡 Hint
Think about how round-robin cycles through servers evenly.
✗ Incorrect
Round-robin load balancing sends each request to the next server in a fixed order, cycling through all servers evenly.
❓ Architecture
intermediate2:00remaining
Choosing a load balancer for microservices
You have a microservices system with many small services. Which load balancing approach fits best to route requests efficiently?
Attempts:
2 left
💡 Hint
Think about scalability and dynamic service discovery in microservices.
✗ Incorrect
Client-side load balancing lets each service instance decide where to send requests, improving scalability and handling dynamic changes.
❓ scaling
advanced2:00remaining
Scaling load balancers for high traffic
Your system faces millions of requests per minute. What is the best way to scale load balancing to avoid bottlenecks?
Attempts:
2 left
💡 Hint
Think about avoiding single points of failure and distributing load evenly.
✗ Incorrect
Multiple load balancers in parallel distribute traffic and avoid bottlenecks or single points of failure.
❓ tradeoff
advanced2:00remaining
Tradeoffs between sticky sessions and stateless load balancing
What is a key tradeoff when using sticky sessions (session affinity) in load balancing compared to stateless balancing?
Attempts:
2 left
💡 Hint
Consider how session data affects routing choices.
✗ Incorrect
Sticky sessions keep a user tied to one server, simplifying session state but limiting even load distribution and failover.
❓ estimation
expert3:00remaining
Estimating load balancer capacity for peak traffic
Your service expects 10 million requests per hour at peak. Each request requires 5ms processing on the load balancer. How many load balancer instances are needed to handle peak load without queuing?
Attempts:
2 left
💡 Hint
Calculate requests per second and how many can be handled per instance.
✗ Incorrect
10 million requests/hour = ~2778 requests/second. Each instance handles 1/0.005 = 200 requests/second. 2778/200 ≈ 13.9, so 14 instances needed.