Practice
1. Without the retry queue component, what exactly breaks in the webhook delivery system when a subscriber's endpoint is temporarily unreachable?
medium
Solution
Step 1: Understand retry queue role
The retry queue buffers failed deliveries to preserve order by retrying later.Step 2: Trace failure without retry queue
Without it, subsequent events may be sent immediately, causing out-of-order delivery.Final Answer:
Option D -> Option DQuick Check:
No retry queue -> out-of-order delivery possible [check]
Hint: No retry queue -> ordering breaks on failures [check]
Common Mistakes:
2. If the spam detection service becomes unavailable, what is the most likely failure mode affecting the Q&A feed?
medium
Solution
Step 1: Analyze spam detection dependency
Blocking all writes (A) is too strict; defaulting scores (B) risks spam but is safer; delayed updates (D) unlikely if spam data is missing.Step 2: Unhandled exceptions cause crashes
If the feed service does not handle missing spam data gracefully, it crashes (C), causing feed unavailability and degraded user experience.Final Answer:
Option A -> Option AQuick Check:
Missing spam data causes unhandled exceptions and feed crashes [check]
Hint: Unhandled missing spam data crashes feed service [check]
Common Mistakes:
3. Without the message broker (e.g., Kafka) in a high-throughput chat system, what exactly breaks in the message delivery flow?
medium
Solution
Step 1: Role of message broker
Broker decouples sender and receiver, enabling asynchronous delivery and retries.Step 2: Consequence of missing broker
Without it, messages are sent synchronously causing sender blocking; if receiver crashes, messages are lost; encryption (A) unaffected; blocking and loss (C) is exact failure; batch mode (D) not automatic.Final Answer:
Option A -> Option AQuick Check:
Broker removal causes blocking sends and message loss on receiver failure [check]
Hint: No broker means synchronous sends block and lose messages [check]
Common Mistakes:
4. At 10x scale, which component in a Write-Through caching system is most likely to become the bottleneck first, and why?
hard
Solution
Step 1: Identify Write-Through bottleneck
Write-Through synchronously writes to DB on every write, increasing DB load linearly with scale.Step 2: Compare other components
Cache handles fast reads; network bandwidth usually sufficient; app servers block but DB saturation causes overall failure first.Final Answer:
Option C -> Option CQuick Check:
DB synchronous writes bottleneck Write-Through at scale [check]
Hint: Write-Through sync DB writes bottleneck at scale [check]
Common Mistakes:
5. At 10x scale, which component in a message processing system with Dead Letter Queues is most likely to become the bottleneck first, and why?
hard
Solution
Step 1: Analyze scaling impact on DLQ storage
At 10x scale, failed messages accumulate rapidly in DLQ storage, which may not scale as fast as main queue throughput.Step 2: Evaluate other components
Main broker (A) can scale with partitions; retry workers (C) can be scaled horizontally; monitoring (D) is less critical bottleneck.Final Answer:
Option D -> Option DQuick Check:
DLQ storage fills faster than retries can process at 10x scale [check]
Hint: DLQ storage fills first at scale, not broker or workers [OK]
Common Mistakes:
