Challenge - 5 Problems
Message Queue Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding the core purpose of a message queue
Which of the following best describes the main purpose of a message queue in system design?
Attempts:
2 left
💡 Hint
Think about how systems talk to each other without waiting.
✗ Incorrect
A message queue allows different parts of a system to send messages that are stored temporarily. This helps systems communicate without needing to wait for each other, enabling asynchronous communication.
❓ Architecture
intermediate2:00remaining
Identifying components in a message queue system
In a typical message queue system like RabbitMQ, which component is responsible for receiving messages from producers and storing them until consumers retrieve them?
Attempts:
2 left
💡 Hint
This component holds messages until they are processed.
✗ Incorrect
The queue is the component that stores messages sent by producers until consumers are ready to process them.
❓ scaling
advanced2:00remaining
Scaling message queue consumers
If a system using RabbitMQ experiences a sudden increase in message volume, what is the best way to scale the system to handle the load efficiently?
Attempts:
2 left
💡 Hint
Think about how to process more messages faster.
✗ Incorrect
Adding more consumers allows messages to be processed in parallel, improving throughput and handling higher loads.
❓ tradeoff
advanced2:00remaining
Tradeoffs of message durability in RabbitMQ
What is a common tradeoff when enabling message durability in RabbitMQ queues?
Attempts:
2 left
💡 Hint
Durability means saving messages safely, but it costs something.
✗ Incorrect
Durable queues write messages to disk, which slows down processing but protects messages from loss if the server crashes.
❓ estimation
expert3:00remaining
Estimating message queue capacity needs
A system expects to receive 10,000 messages per second, each averaging 1 KB in size. If messages are stored in RabbitMQ queues for up to 5 minutes before processing, approximately how much storage capacity should be allocated for the queues?
Attempts:
2 left
💡 Hint
Calculate total messages in 5 minutes and multiply by message size.
✗ Incorrect
10,000 messages/second * 60 seconds * 5 minutes = 3,000,000 messages. Each is 1 KB, so total is about 3,000,000 KB = 3 GB.