Practice
1. In the route leak mitigation system, at Step 4 the Route Validation Worker receives a BGP update. What does it do when the update contains a prefix not matching the configured filters?
easy
Solution
Step 1: Trace Route Validation Worker behavior at Step 4
The worker checks prefixes against filters and, in some cases, queues suspicious prefixes for manual review, delaying propagation.Step 2: Eliminate other options
Propagating invalid prefixes (A) causes leaks; marking invalid and blocking (B) is ideal but not always immediate; modifying prefixes (D) risks routing errors.Final Answer:
Option C -> Option CQuick Check:
Suspicious prefixes queued for manual review, delaying propagation [check]
Hint: Suspicious prefixes queued before propagation [check]
Common Mistakes:
2. A search ranking system must store and serve feature vectors for millions of users with low latency. Which component is best suited to provide fast, consistent feature retrieval at scale?
easy
Solution
Step 1: Identify feature retrieval requirements
Low latency and consistency for millions of users require fast, precomputed feature access.Step 2: Evaluate component suitability
A relational DB with joins (A) is too slow for real-time; batch recomputation (C) is stale; key-value store without consistency (D) risks stale or inconsistent features. Distributed in-memory feature store (B) provides fast, consistent retrieval.Final Answer:
Option B -> Option BQuick Check:
In-memory feature store -> low latency, consistent features [check]
Hint: Precompute features in-memory for fast, consistent retrieval [check]
Common Mistakes:
3. A system expects 1 million daily active users (DAU) with an average of 50 requests per user per day. Which component is best suited to handle the peak QPS estimation for capacity planning?
easy
Solution
Step 1: Identify component that reflects real-time incoming traffic
Load balancer metrics provide immediate, accurate QPS data as they handle all incoming requests before backend processing.Step 2: Eliminate other options
Relational DB counting is too slow and adds overhead; client logs are delayed and incomplete; CDN metrics reflect cached content, not all requests.Final Answer:
Option A -> Option AQuick Check:
Load balancer metrics reflect real-time QPS accurately [check]
Hint: Load balancer metrics reflect real-time QPS [check]
Common Mistakes:
4. A distributed system requires generating unique IDs for millions of records per second across multiple data centers without coordination delays. Which ID generation strategy best fits this scenario?
easy
Solution
Step 1: Identify ID generation constraints
Millions of IDs per second across multiple data centers require decentralized generation to avoid coordination delays.Step 2: Evaluate options for distributed uniqueness
Auto-increment IDs from a single node (A) cause bottlenecks; custom IDs from a global coordinator (C) add latency; auto-increment per data center (D) risks collisions. UUIDs (B) are globally unique without coordination.Final Answer:
Option A -> Option AQuick Check:
UUIDs enable decentralized unique ID generation [check]
Hint: Decentralized unique IDs at scale -> UUIDs [check]
Common Mistakes:
5. If the Kafka cluster responsible for fan-out message delivery crashes, what is the exact failure observed in the News Feed system?
medium
Solution
Step 1: Understand Kafka's role in fan-out delivery
Kafka acts as a durable queue for fan-out messages. If it crashes, Delivery Workers cannot fetch new messages, causing stale feeds.Step 2: Evaluate failure modes
Posts are not lost immediately (A) due to Kafka's durability; writes are asynchronous so no blocking (B); duplicates (D) occur only on replay, not crash.Final Answer:
Option D -> Option DQuick Check:
Kafka crash stalls delivery, causing stale feeds [check]
Hint: Kafka crash stalls delivery, causing stale feeds [check]
Common Mistakes:
