Practice
Solution
Step 1: Aggregation Worker error handling
Discarding entire batch (A) or pausing (C) causes unnecessary delays; default timestamps (D) risk data corruption.Step 2: Skipping invalid metrics
Skipping only the invalid metric preserves throughput and data integrity for valid metrics.Final Answer:
Option A -> Option AQuick Check:
Skip invalid metrics, process valid batch entries [check]
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 component capabilities
Load Balancers typically operate at transport layer and may support SSL termination but lack detailed HTTP header manipulation; API Gateways add overhead and are less optimized for raw throughput; DNS load balancing does not handle SSL termination.Step 2: Match requirement to component
Reverse Proxy operates at HTTP layer, supports SSL termination and header manipulation efficiently, suitable for high throughput.Final Answer:
Option A -> Option AQuick Check:
Reverse Proxy = HTTP layer control + SSL termination [check]
Solution
Step 1: Identify consistency and update requirements
Strong consistency and immediate update notification are required.Step 2: Evaluate options
Distributed cache with eventual consistency delays updates; relational DB polling adds latency; message queue is asynchronous without state storage.Final Answer:
Option A -> Option AQuick Check:
Zookeeper watches -> immediate, consistent config updates [check]
Solution
Step 1: Identify coordinator role and scaling limits
The warming coordinator manages global warming state and task assignment, which is hard to shard.Step 2: Compare other components
Database can be scaled with replicas; cache servers scale horizontally; network scales with capacity upgrades.Step 3: Conclude bottleneck
Coordinator's centralized state causes it to fail first at 10x scale.Final Answer:
Option D -> Option DQuick Check:
Centralized coordinator state limits sharding, causing bottleneck [check]
