Challenge - 5 Problems
Message Delivery Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding At-Least-Once Delivery
Which of the following best describes the behavior of a messaging system with at-least-once delivery guarantee?
Attempts:
2 left
💡 Hint
Think about whether duplicates are allowed and if messages can be lost.
✗ Incorrect
At-least-once delivery means the system ensures messages arrive but may deliver duplicates if acknowledgments are lost.
❓ Architecture
intermediate2:00remaining
Choosing a Delivery Guarantee for a Payment System
You are designing a payment processing system. Which message delivery guarantee should you choose to avoid charging customers twice while ensuring no payment is lost?
Attempts:
2 left
💡 Hint
Consider the importance of avoiding duplicates and losing messages in payments.
✗ Incorrect
Exactly-once delivery with transactions ensures each payment is processed once and only once, preventing duplicates and losses.
❓ scaling
advanced2:30remaining
Scaling a Messaging System with Exactly-Once Guarantee
What is the main challenge when scaling a distributed messaging system that provides exactly-once delivery guarantee?
Attempts:
2 left
💡 Hint
Think about what exactly-once delivery requires in a distributed environment.
✗ Incorrect
Exactly-once delivery needs coordination to track message processing state, which adds latency and complexity when scaling.
❓ tradeoff
advanced2:30remaining
Tradeoffs Between At-Most-Once and At-Least-Once Delivery
Which statement correctly describes a tradeoff between at-most-once and at-least-once message delivery guarantees?
Attempts:
2 left
💡 Hint
Consider which guarantee prioritizes avoiding duplicates versus avoiding loss.
✗ Incorrect
At-most-once may lose messages but never duplicates; at-least-once never loses messages but may duplicate them.
❓ estimation
expert3:00remaining
Estimating Storage for Exactly-Once Delivery State
A messaging system processes 1 million messages per hour with exactly-once delivery. Each message requires 100 bytes of metadata to track processing state. Estimate the storage needed to keep 24 hours of state for deduplication.
Attempts:
2 left
💡 Hint
Calculate total messages in 24 hours and multiply by metadata size.
✗ Incorrect
1 million messages/hour × 24 hours = 24 million messages. 24 million × 100 bytes = 2.4 billion bytes = 2.4 GB.
