Practice
Solution
Step 1: Trace Log Processor behavior at Step 4
It reads logs from Kafka and enriches them before forwarding.Step 2: Understand failure handling
If enrichment service is down, buffering and retrying prevents data loss and ensures enrichment.Final Answer:
Option A -> Option AQuick Check:
Buffer and retry enrichment -> no data loss or offset commit [check]
Solution
Step 1: Analyze latency and update frequency constraints
Real-time streaming (Options C and D) offers low latency but may sacrifice model complexity or accuracy.Step 2: Evaluate batch offline pipeline suitability
Batch offline ML (Use batch offline ML pipeline for periodic recommendations with high accuracy) provides higher accuracy with periodic updates, suitable when real-time freshness is not critical.Final Answer:
Option D -> Option DQuick Check:
Batch offline pipeline balances accuracy and periodic updates [check]
Solution
Step 1: Understand health monitor role
The health monitor informs GSLB which data centers are healthy; without it, GSLB cannot avoid unhealthy endpoints.Step 2: Analyze failure impact
Without health info, GSLB routes users to unhealthy data centers causing failures (Users are routed to unhealthy data centers causing request failures or timeouts). Increased latency (Users experience increased latency due to rerouting through backup data centers) or DNS failures (DNS queries fail to resolve, causing complete service outage) are indirect or unlikely. Even traffic distribution (Traffic is evenly distributed regardless of data center health, causing overload) ignores health but is less precise than routing to unhealthy nodes.Final Answer:
Option A -> Option AQuick Check:
Silent health monitor failure -> routing to unhealthy data centers [check]
Solution
Step 1: Identify bottlenecks at 10x scale
Network switches (A) scale with hardware upgrades; ZooKeeper (C) handles coordination but is lightweight compared to brokers; consumers (D) can be scaled horizontally.Step 2: Kafka broker partition leader overload
Partition leaders handle all writes and replication for their partitions; at 10x scale, leaders become hotspots causing CPU, disk, and network saturation, leading to failures.Final Answer:
Option A -> Option AQuick Check:
Partition leaders overloaded -> broker failure first at scale [check]
Solution
Step 1: Identify bottlenecks at 10x scale
Databases (A) can be scaled with sharding; delivery workers (C) can be horizontally scaled; chat servers (D) are stateful but not the first to fail.Step 2: Analyze Kafka broker load
Kafka brokers handle replication and disk I/O per partition leader; at 10x scale, leaders become overloaded causing broker failures first.Final Answer:
Option B -> Option BQuick Check:
Kafka partition leaders overloaded with replication cause first failure at scale [check]
