Practice
Solution
Step 1: Trace Expiration Worker behavior at Step 4
The worker deletes expired snippets in batches; deletion is not instantaneous upon TTL expiry.Step 2: Understand user access during deletion
Until deletion completes, the snippet remains accessible; no locking or blocking occurs.Final Answer:
Option B -> Option BQuick Check:
Batch deletion delays snippet removal, keeping it accessible briefly [check]
Solution
Step 1: Understand traffic variability
Clients open varying numbers of connections, so servers can become unevenly loaded if requests are assigned blindly.Step 2: Evaluate load balancing algorithms
Round Robin ignores current load, IP Hash pins clients to servers (may cause imbalance), Weighted Round Robin uses static weights ignoring dynamic load. Least Connections dynamically balances based on active connections.Final Answer:
Option D -> Option DQuick Check:
Least Connections adapts to real-time load, balancing uneven client connections [check]
Solution
Step 1: Trace producer behavior on broker failure
Producers get errors on send; without retries, messages are lost. They do not block indefinitely (A).Step 2: Trace consumer behavior
Consumers cannot fetch new messages; cached messages may be consumed but no new delivery occurs, causing stalls. Duplication (D) is prevented by offset commits.Final Answer:
Option A -> Option AQuick Check:
Broker failure causes producer errors and consumer stalls, risking message loss [check]
Solution
Step 1: Identify route validation worker bottleneck
CPU-intensive prefix checks saturate compute resources first as scale increases.Step 2: Compare other components
Config DB (A) can be sharded; edge routers (B) have limits but can be upgraded; dashboards (C) are less critical.Final Answer:
Option A -> Option AQuick Check:
CPU saturation in validation workers is first bottleneck at scale [check]
Solution
Step 1: Analyze component scalability at 10x load
CDN edge caches (A) scale horizontally and are designed for massive read throughput. Transcoding pipeline (C) can be scaled with more workers. Upload service (D) can be scaled with load balancers and stateless servers.Step 2: Identify view count database bottleneck
View count DB is a centralized write hotspot with high contention and latency sensitivity. At 10x scale, it becomes the first bottleneck due to write amplification and consistency requirements.Final Answer:
Option B -> Option BQuick Check:
Centralized view count DB write bottleneck fails first [check]
