Practice
Solution
Step 1: Role of manifest updates in HLS
Manifest updates inform clients about new segments and available bitrates, enabling selective fetching.Step 2: Consequence of missing manifest updates
Without updates, clients cannot know which segments to fetch next, leading them to request all variants to avoid stalls, wasting bandwidth.Final Answer:
Option A -> Option AQuick Check:
Missing manifest updates cause clients to fetch all variants, wasting bandwidth [check]
Solution
Step 1: Understand HyperLogLog state loss impact
Losing the register state means the approximate count for that shard is lost; no exact user IDs are stored elsewhere.Step 2: Check consequences on cardinality
Without the register, the system cannot include that shard's data, causing undercounting, not overcounting or exact counts.Final Answer:
Option A -> Option AQuick Check:
Lost registers -> missing data -> undercounting unique users [check]
Solution
Step 1: Understand distributed consensus role
Consensus protocols ensure coordinated writes and consistency across nodes.Step 2: Trace failure without consensus during partition
Without consensus, the cluster cannot safely coordinate writes and may fallback to a safe mode or external system.Final Answer:
Option D -> Option DQuick Check:
No consensus -> fallback to relational DB (plausible in some designs) [check]
Solution
Step 1: Identify stateful bottlenecks at scale
Chat servers maintain stateful WebSocket connections bound to server memory, limiting horizontal scaling.Step 2: Compare other components' scalability
Databases can shard; load balancers can be scaled horizontally; queues can be partitioned and scaled with disk expansion.Final Answer:
Option D -> Option DQuick Check:
Stateful WebSocket servers -> resharding hard -> first bottleneck at 10x scale [check]
Solution
Step 1: Analyze stateful WebSocket connections on Chat Servers
Chat Servers maintain in-memory state per WebSocket; scaling requires connection migration which is complex.Step 2: Compare other components
Databases can shard; Kafka partitions can be increased with rebalancing; presence TTL cache scales horizontally.Final Answer:
Option A -> Option AQuick Check:
Stateful WebSocket connections -> Chat Servers bottleneck at scale [check]
