Practice
1. Without the retry queue component in the payment gateway's webhook delivery system, what exact failure occurs when a merchant's endpoint is temporarily down?
medium
Solution
Step 1: Understand retry queue role
The retry queue buffers failed webhook notifications for asynchronous retries, ensuring eventual delivery.Step 2: Consequence of missing retry queue
Without it, failed webhooks are dropped or lost, causing permanent notification loss and inconsistent merchant state.Final Answer:
Option D -> Option DQuick Check:
Missing retry queue -> permanent webhook loss on failure [check]
Hint: Retry queue prevents permanent webhook loss [check]
Common Mistakes:
2. Given the need for zero data loss during failover and minimal downtime, which architecture is best suited for GitHub's database cluster?
medium
Solution
Step 1: Evaluate replication and failover requirements
Zero data loss requires synchronous replication; minimal downtime requires automated leader election.Step 2: Compare architectures
Asynchronous replication (A) risks data loss; multi-master (C) complicates consistency; manual failover (D) increases downtime.Final Answer:
Option D -> Option DQuick Check:
Synchronous replication + consensus election ensures data safety and fast failover [check]
Hint: Synchronous replication ensures no data loss during failover
Common Mistakes:
3. If the API Gateway's rate limiting cache fails and is not replaced, what is the immediate failure mode observed by users?
medium
Solution
Step 1: Understand cache failure impact
Without the cache, the API Gateway cannot track usage accurately, often defaulting to conservative rate limit errors to protect backend.Step 2: Evaluate other options
Silent drops cause user confusion; bypassing limits risks overload; automatic fallback to DB rate limiting is rare and slow.Final Answer:
Option A -> Option AQuick Check:
Cache failure -> conservative rate limit errors -> user impact [check]
Hint: Cache failure triggers conservative rate limit errors [check]
Common Mistakes:
4. At 10x scale, which component in the blob store architecture is most likely to fail first due to stateful connection limits, and why?
hard
Solution
Step 1: Identify stateful bottleneck at front-end API servers
API servers maintain stateful client sessions (e.g., HTTP keep-alive or TLS), limiting horizontal scaling due to connection affinity.Step 2: Eliminate other options
Storage nodes scale with added disks; metadata service shards metadata; distributed log partitions scale with more brokers.Final Answer:
Option A -> Option AQuick Check:
Stateful client sessions limit API server horizontal scaling [check]
Hint: Stateful API servers limit scaling due to connection affinity [check]
Common Mistakes:
5. At 10x current scale, which component in the Reddit voting and ranking system is most likely to fail first, and why?
hard
Solution
Step 1: Analyze stateful vs stateless components at scale
Relational DB (The relational database storing user profiles, due to increased read queries) can be scaled with read replicas; Kafka (The Kafka cluster, due to partition leader election delays under heavy load) scales well with partitions. Ranking cache (The ranking service's in-memory cache, because it cannot shard scores by post_id effectively) can shard by post_id.Step 2: Identify WebSocket server bottleneck
WebSocket servers hold stateful connections bound to server memory; these connections cannot be moved easily, limiting horizontal scaling and causing failures under 10x load.Final Answer:
Option C -> Option CQuick Check:
Stateful WebSocket servers fail first due to unshardable live connections [check]
Hint: Stateful WebSocket servers bottleneck at 10x scale [check]
Common Mistakes:
