Practice
Solution
Step 1: Identify latency reduction mechanism
Latency is reduced by caching content closer to users, which is done by edge nodes in PoPs.Step 2: Eliminate other components
Origin servers hold master content but are far from users; load balancers and DNS do not cache content.Final Answer:
Option D -> Option DQuick Check:
Edge nodes cache content near users -> latency reduced [check]
Solution
Step 1: Identify Kafka's role in decoupling ingestion and delivery
Kafka partitions by conversation ID ensure ordering per conversation and durability via replication.Step 2: Eliminate other options
Redis pub/sub lacks durability and ordering guarantees; relational DBs can't handle 1M writes/sec with locking overhead; in-memory queues lack durability and don't scale across servers.Final Answer:
Option A -> Option AQuick Check:
Kafka with conversation_id partition -> ordering within conversation guaranteed [check]
Solution
Step 1: Understand Kafka's role in feature ingestion
Kafka streams feature updates to the store, enabling near real-time freshness.Step 2: Trace failure impact
If Kafka is down, streaming ingestion halts. The system falls back to batch recomputation to update features, causing delays. Training cannot proceed with partial or dropped features without risking data quality.Final Answer:
Option B -> Option BQuick Check:
Kafka outage triggers batch fallback, delaying freshness [check]
Solution
Step 1: Analyze mobile app constraints
Mobile apps need offline support and low latency; synchronous replication or global consensus cause high latency and poor offline support.Step 2: Evaluate database options
Local NoSQL with eventual sync supports offline writes and syncs later, balancing availability and consistency.Final Answer:
Option B -> Option BQuick Check:
Local NoSQL + eventual sync -> offline support and low latency [check]
Solution
Step 1: Identify route validation worker bottleneck
CPU-intensive prefix checks saturate compute resources first as scale increases.Step 2: Compare other components
Config DB (A) can be sharded; edge routers (B) have limits but can be upgraded; dashboards (C) are less critical.Final Answer:
Option A -> Option AQuick Check:
CPU saturation in validation workers is first bottleneck at scale [check]
