Practice
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]
Solution
Step 1: Understand Kafka's role in decoupling sender and receiver
Kafka buffers messages durably, allowing sender to proceed without waiting for receiver.Step 2: Trace failure without Kafka
Without Kafka, sender must synchronously wait for receiver acknowledgment; if Bob's server crashes, no durable store exists, causing message loss and blocking sender.Final Answer:
Option A -> Option AQuick Check:
Without Kafka, synchronous send blocks and loses message if receiver crashes [check]
Solution
Step 1: Importance of monitoring leader election
Real-time metrics detect leader election delays indicating failover issues early.Step 2: Evaluate other options
Manual checks (A) are slow; backup reports (C) don't catch live failover issues; client logs (D) lack centralized alerting.Final Answer:
Option C -> Option CQuick Check:
Real-time alerting enables proactive failover management [check]
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]
Solution
Step 1: Analyze storage backend scaling
Storage can be scaled horizontally with sharding; unlikely first failure.Step 2: Analyze Kafka cluster scaling
Kafka scales with partitions but requires careful tuning; not first failure at 10x.Step 3: Analyze aggregation workers
Aggregation workers scale horizontally; CPU load manageable with more instances.Step 4: Analyze metric agents
Agents push metrics frequently, increasing network usage exponentially; network bandwidth at agents is limited and saturates first.Final Answer:
Option D -> Option DQuick Check:
Agents saturate network bandwidth first at 10x scale [check]
