Practice
Solution
Step 1: Understand Global Traffic Manager health check handling
Upon receiving a health check failure, the manager marks the CDN as unhealthy to prevent routing new requests to it.Step 2: Eliminate other options
Immediate rerouting (A) may cause abrupt traffic shifts without grace. Origin server notifications (C) are not part of traffic management. Caching responses (D) is unrelated to health check handling.Final Answer:
Option A -> Option AQuick Check:
Health check failure -> mark CDN unhealthy, stop routing new requests [check]
Solution
Step 1: Understand health check module role
Health checks detect unhealthy servers; without them, no updates occur to remove bad servers.Step 2: Trace routing behavior without health checks
Load balancer routes to all servers indiscriminately, including unhealthy ones, causing client errors.Final Answer:
Option D -> Option DQuick Check:
No health checks -> no removal of unhealthy servers -> client errors [check]
Solution
Step 1: Compare latency and scalability
Synchronous DB updates cause high latency and DB bottlenecks; client-side counters are untrustworthy; service-layer without persistence risks data loss.Step 2: Evaluate distributed in-memory counters
API Gateway counters provide low latency and scalability; async DB sync ensures eventual consistency and durability.Final Answer:
Option D -> Option DQuick Check:
Distributed in-memory counters balance latency and scalability [check]
Solution
Step 1: Identify stateful component bottleneck
WebSocket servers maintain persistent connections tied to server memory, limiting horizontal scaling.Step 2: Compare other components
Databases and caches can be scaled with sharding or replication; load balancers can distribute stateless HTTP requests but struggle with sticky WebSocket sessions.Step 3: Understand why WebSocket servers fail first
Because connections are stateful and bound to specific servers, scaling requires complex connection migration or results in overload.Final Answer:
Option D -> Option DQuick Check:
Stateful WebSocket servers bottleneck at scale due to connection affinity [check]
Solution
Step 1: Identify bottlenecks at 10x scale
Network switches (A) scale with hardware upgrades; ZooKeeper (C) handles coordination but is lightweight compared to brokers; consumers (D) can be scaled horizontally.Step 2: Kafka broker partition leader overload
Partition leaders handle all writes and replication for their partitions; at 10x scale, leaders become hotspots causing CPU, disk, and network saturation, leading to failures.Final Answer:
Option A -> Option AQuick Check:
Partition leaders overloaded -> broker failure first at scale [check]
