Bird
Raised Fist0
HLDsystem_design~20 mins

Message delivery guarantees in HLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Message Delivery Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding At-Least-Once Delivery
Which of the following best describes the behavior of a messaging system with at-least-once delivery guarantee?
AMessages are delivered exactly once, with no duplicates or losses.
BMessages are delivered one or more times, possibly causing duplicates but never lost.
CMessages may be lost but never duplicated.
DMessages are delivered at most once, possibly lost but never duplicated.
Attempts:
2 left
💡 Hint
Think about whether duplicates are allowed and if messages can be lost.
Architecture
intermediate
2: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?
AAt-most-once delivery without retries.
BAt-least-once delivery with idempotent payment processing.
CExactly-once delivery with transactional support.
DNo delivery guarantee, relying on manual reconciliation.
Attempts:
2 left
💡 Hint
Consider the importance of avoiding duplicates and losing messages in payments.
scaling
advanced
2: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?
AIgnoring acknowledgments to speed up delivery.
BAllowing message loss to reduce storage requirements.
CDropping messages to maintain throughput.
DCoordinating distributed state to avoid duplicate processing increases latency and complexity.
Attempts:
2 left
💡 Hint
Think about what exactly-once delivery requires in a distributed environment.
tradeoff
advanced
2: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?
AAt-most-once avoids duplicates but risks message loss; at-least-once avoids loss but may cause duplicates.
BAt-most-once guarantees no message loss and no duplicates; at-least-once allows duplicates and loss.
CBoth guarantees always deliver messages exactly once.
DAt-least-once delivery is faster and simpler than at-most-once.
Attempts:
2 left
💡 Hint
Consider which guarantee prioritizes avoiding duplicates versus avoiding loss.
estimation
expert
3: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.
AApproximately 2.4 GB
BApproximately 1.2 GB
CApproximately 24 GB
DApproximately 240 MB
Attempts:
2 left
💡 Hint
Calculate total messages in 24 hours and multiply by metadata size.