Practice
1. In a system using asynchronous replication, at step 4 the Replication Worker reads the write-ahead log entry for a committed transaction. What is the state of the replica after this step if the worker crashes before applying the entry?
easy
Solution
Step 1: Trace Replication Worker reading WAL entry
Worker reads the log but crashes before applying, so replica state unchanged.Step 2: Understand retry behavior on restart
Since transaction not applied, worker retries applying on restart ensuring consistency.Final Answer:
Option B -> Option BQuick Check:
Unapplied transaction retried after crash [check]
Hint: Unapplied logs retried after crash, no partial state [check]
Common Mistakes:
2. A webhook delivery system must guarantee ordered delivery of events per subscriber, even under retries and failures. Which component is best suited to enforce per-subscriber ordering?
easy
Solution
Step 1: Identify ordering guarantee mechanism
Kafka partitions keyed by subscriber ID ensure all events for that subscriber go to the same partition, preserving order.Step 2: Eliminate other options
Redis cache lacks strong ordering guarantees under retries; relational DB global sequence causes contention and latency; load balancer routing alone doesn't guarantee ordering without stateful processing.Final Answer:
Option A -> Option AQuick Check:
Kafka partition key -> per-subscriber ordering guaranteed [check]
Hint: Partition by subscriber ID for ordering [check]
Common Mistakes:
3. If the cache warming service crashes after partially warming keys but before marking completion, what is the immediate failure observed during launch?
medium
Solution
Step 1: Trace failure impact of partial warming crash
Without completion mark, warming restarts causing duplicate warming and resource waste.Step 2: Eliminate other options
Stale data unlikely if warming overwrites; cache misses occur but duplicate warming is immediate failure; fallback read-through causes latency, not immediate failure.Final Answer:
Option B -> Option BQuick Check:
Crash without completion causes duplicate warming retries [check]
Hint: Crash without completion mark causes duplicate warming retries [check]
Common Mistakes:
4. If the health monitoring component of the GSLB fails silently, what is the most likely failure observed by end users?
medium
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]
Hint: No health data -> users sent to unhealthy data centers [check]
Common Mistakes:
5. At 10x scale, which component in a multi-tier storage system is most likely to become the bottleneck first, and why?
hard
Solution
Step 1: Identify component roles at scale
Archive storage uses tape drives with limited concurrent access bandwidth and high latency.Step 2: Analyze scaling challenges
At 10x scale, tape drives become bottleneck due to limited parallelism and slow seek times, unlike metadata which can be sharded.Final Answer:
Option A -> Option AQuick Check:
Archive tape bandwidth limits -> first bottleneck [check]
Hint: Tape archive bandwidth limits scale poorly [check]
Common Mistakes:
