Practice
Solution
Step 1: Understand bucket pattern write flow
Writes append to a bucket document until size or time limits are reached.Step 2: Behavior when bucket is full
System creates a new bucket document to avoid exceeding MongoDB's 16MB document size limit.Final Answer:
Option A -> Option AQuick Check:
New bucket created to respect document size limits [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 bottleneck in distributed updates
Centralized coordinator serializes updates to maintain consistency, limiting throughput.Step 2: Analyze other components
Network bandwidth and hash function speed scale better; sketch arrays have fixed size but don't overflow.Step 3: Understand scale impact
At 10x scale, coordinator becomes overwhelmed, causing update latency and failures.Final Answer:
Option D -> Option DQuick Check:
Central coordinator serialization bottlenecks updates at scale [check]
Solution
Step 1: Analyze Kafka broker bottlenecks at scale
Kafka brokers face partition leader overload and disk I/O saturation as event volume grows 10x.Step 2: Compare other components
Flink scales with more nodes; OLAP stores can shard; dashboards scale horizontally; Kafka's broker disk and network limits are hardest to scale first.Final Answer:
Option A -> Option AQuick Check:
Kafka broker disk I/O saturates first at 10x event volume [check]
Solution
Step 1: Analyze scaling challenges per component
The PageRank cluster faces superlinear growth in graph edges, causing memory and CPU bottlenecks.Step 2: Compare other components
URL Frontier can shard with heuristics; query serving scales with caching; storage bandwidth scales better than PageRank compute.Final Answer:
Option D -> Option DQuick Check:
PageRank graph growth causes first bottleneck at 10x scale [check]
