Practice
Solution
Step 1: Analyze real-time personalization needs
Low latency and frequent profile updates require online, streaming data processing.Step 2: Evaluate architectures
Batch (A) is too stale; static precomputed scores (C) can't adapt quickly; client-side filtering (D) lacks server-side intelligence. Online feature store with streaming (B) supports fresh data and low latency scoring.Final Answer:
Option C -> Option CQuick Check:
Streaming updates + real-time scoring -> fresh personalized matches [check]
Solution
Step 1: Identify scale bottlenecks
At 10x scale, write throughput and storage I/O become critical constraints for ingestion pipelines.Step 2: Compare component scalability
Anomaly detection can be scaled horizontally; composite alerting state grows but less than ingestion I/O; threshold checks are lightweight.Final Answer:
Option B -> Option BQuick Check:
Ingestion pipeline limited by write throughput and storage I/O [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]
Solution
Step 1: Identify bucket pattern scaling challenges
Bucket pattern creates many bucket documents requiring precise routing by mongos.Step 2: Mongos metadata overhead
Mongos maintains routing metadata and must route each write to correct shard and bucket, increasing load at scale.Step 3: Compare other components
Shard servers handle writes but document splits are less frequent; network saturates later; app server bottleneck unlikely.Final Answer:
Option B -> Option BQuick Check:
Mongos routing metadata load grows fastest at 10x scale [check]
Solution
Step 1: Analyze query router bottleneck
Query routers are typically stateless or use connection pooling; they scale horizontally well, so (A) is less likely.Step 2: Evaluate inverted index storage nodes
As index size grows 10x, random disk seeks increase non-linearly, causing latency spikes and throughput degradation, making (B) the primary bottleneck.Step 3: Consider indexing workers and Kafka
Indexing workers and Kafka scale with partitioning and parallelism, so (C) and (D) are secondary bottlenecks.Final Answer:
Option A -> Option AQuick Check:
Disk seek latency grows fastest, limiting index node throughput [check]
