Practice
Solution
Step 1: Understand HNSW index rebuild behavior
HNSW index rebuilds asynchronously; during rebuild, queries use the last consistent snapshot.Step 2: Analyze worker behavior at Step 4
The ANN Search Worker returns results from the previous stable index snapshot, so stale but consistent results are served.Final Answer:
Option A -> Option AQuick Check:
HNSW queries serve last snapshot during rebuild, avoiding blocking [check]
Solution
Step 1: Understand Feed Ranking fallback logic
Empty feed (A) harms UX; waiting (C) blocks response; global trending (B) is a fallback but not personalized.Step 2: Identify personalization fallback
Creator Stack (D) provides personalized creator recommendations when watch history is missing, improving engagement.Final Answer:
Option B -> Option BQuick Check:
Creator Stack fallback personalizes feed without watch history [check]
Solution
Step 1: Compare static vs dynamic ETA computation
Static shortest path (A) and precomputed caches (D) ignore live traffic variability, leading to inaccurate ETAs.Step 2: Evaluate heuristic and dynamic approaches
Heuristic ignoring traffic (C) fails in variable conditions; dynamic routing (B) adapts to live and historical data for accurate ETA.Final Answer:
Option D -> Option DQuick Check:
Dynamic routing with live traffic yields accurate ETAs in variable conditions [check]
Solution
Step 1: Identify session stickiness requirement
Session stickiness requires requests from the same client to reach the same server to maintain session state.Step 2: Evaluate options for stickiness and fault tolerance
Round Robin ignores stickiness; Least Connections needs external session store adding complexity; Weighted Round Robin adjusts load but not stickiness. IP Hash provides stickiness by hashing client IP.Final Answer:
Option A -> Option AQuick Check:
IP Hash ensures session stickiness but may cause uneven load distribution [check]
Solution
Step 1: Identify bottleneck candidates at 10x scale
Branch metadata store handles all branch pointer updates; centralized and stateful, it faces high write contention.Step 2: Compare other components
Object storage scales horizontally; merge service CPU load is distributed; notification system can be sharded and throttled.Step 3: Conclude bottleneck
Branch metadata store's centralized writes limit throughput and cause latency spikes first.Final Answer:
Option A -> Option AQuick Check:
Centralized branch metadata store -> write contention bottleneck [check]
