Practice
Solution
Step 1: Identify buffering and ordering needs
RTMP packets must be buffered and ordered per stream before transcoding to maintain low latency and correct playback order.Step 2: Evaluate component suitability
A relational DB (A) is too slow for high-throughput packet buffering. Redis (C) lacks strong ordering guarantees and durability. CDN edge (D) caches output, not input packets. Kafka (B) supports partitioning by stream ID, ensuring ordered, durable buffering.Final Answer:
Option C -> Option CQuick Check:
Kafka partitions ensure ordered, durable buffering per stream [check]
Solution
Step 1: Evaluate latency and consistency trade-offs
Global synchronous quorum to all regions (A) causes high latency; asynchronous (B) sacrifices strong consistency.Step 2: Consider local quorum with global reconciliation
Local quorum writes reduce latency while global reconciliation maintains strong consistency.Final Answer:
Option D -> Option DQuick Check:
Local quorum + global reconciliation balances latency and consistency [check]
Solution
Step 1: Analyze consistent hashing at large scale
With many nodes, virtual nodes and hash ring management become complex, causing imbalance and hotspots.Step 2: Compare other bottlenecks
Memory pressure grows but is mitigated by eviction; network saturation happens later; backing store is usually scaled independently.Final Answer:
Option A -> Option AQuick Check:
Consistent hashing imbalance causes cache node hotspots first [check]
Solution
Step 1: Identify stateful components limiting scale
WebSocket servers hold persistent connections bound to server memory, limiting resharding.Step 2: Compare other components
Relational DB (A) can be scaled with sharding; search cluster (C) scales horizontally; message queues (D) can add partitions. Stateful WebSocket servers (B) face connection stickiness and memory limits first.Final Answer:
Option A -> Option AQuick Check:
Stateful WebSocket connections -> scaling bottleneck at 10x load [check]
Solution
Step 1: Identify GeoDNS scaling bottleneck
GeoDNS servers handle DNS queries globally; at 10x scale, query volume spikes, and short TTLs reduce cache hits, increasing load.Step 2: Eliminate other options
Authoritative DNS servers (A) are stateless per query. Data center load balancers (C) scale horizontally and are not the first bottleneck. Network routers (D) handle Anycast well at scale.Final Answer:
Option B -> Option BQuick Check:
GeoDNS query load spikes with limited caching cause first failure [check]
