0
0
HLDsystem_design~20 mins

Global server load balancing (GSLB) in HLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
GSLB Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
How does GSLB improve user experience globally?

Imagine you have users all over the world accessing your website. How does Global Server Load Balancing (GSLB) help improve their experience?

ABy sending all user requests to a single central server to maintain consistency.
BBy directing users to the closest or fastest server to reduce latency and improve response time.
CBy randomly distributing user requests to any server regardless of location.
DBy caching all content on the user's device to avoid server requests.
Attempts:
2 left
💡 Hint

Think about how distance affects loading speed.

Architecture
intermediate
1:30remaining
Which component is essential in a GSLB architecture for health checks?

In a GSLB system, which component regularly checks if servers are healthy and available?

AGlobal DNS server that performs health checks and updates routing accordingly.
BUser's browser that pings servers before sending requests.
CLoad balancer inside each data center without global coordination.
DContent Delivery Network (CDN) that caches static content only.
Attempts:
2 left
💡 Hint

Think about who decides where to send user requests globally.

scaling
advanced
2:00remaining
How to scale GSLB to handle millions of global users?

You want your GSLB system to support millions of users worldwide. Which approach best supports this scale?

ARely on client-side load balancing to distribute traffic evenly.
BUse a single global DNS server with a large database to handle all requests.
CDeploy multiple global DNS servers with geo-redundancy and use Anycast IP for fast routing.
DUse only local load balancers in each data center without global coordination.
Attempts:
2 left
💡 Hint

Consider how to reduce latency and avoid single points of failure.

tradeoff
advanced
2:00remaining
Tradeoff between DNS TTL and failover speed in GSLB

In GSLB, what is the tradeoff when setting a very low DNS TTL (time-to-live) value?

ALow TTL eliminates the need for health checks on servers.
BLow TTL reduces DNS query load but causes slow failover during outages.
CLow TTL improves caching efficiency but risks stale routing information.
DLow TTL allows fast failover but increases DNS query load and latency for users.
Attempts:
2 left
💡 Hint

Think about how often DNS records are refreshed and its impact.

estimation
expert
2:30remaining
Estimate DNS query capacity for a global GSLB system

Your global website has 100 million daily active users. Each user makes 10 DNS queries per day on average. You deploy 5 global DNS servers. Estimate the average DNS queries per second each server must handle.

AApproximately 2300 queries per second per server.
BApproximately 2000 queries per second per server.
CApproximately 23000 queries per second per server.
DApproximately 20000 queries per second per server.
Attempts:
2 left
💡 Hint

Calculate total queries per day, then per second, then divide by servers.