Challenge - 5 Problems
Messaging Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Primary Messaging Model Difference
What is the main difference in the messaging model between RabbitMQ and Kafka?
Attempts:
2 left
💡 Hint
Think about how each system delivers messages to consumers.
✗ Incorrect
RabbitMQ pushes messages to consumers from queues, while Kafka stores messages in logs and consumers pull messages at their own pace.
🧠 Conceptual
intermediate2:00remaining
Message Durability and Retention
Which statement correctly describes message durability and retention differences between RabbitMQ and Kafka?
Attempts:
2 left
💡 Hint
Consider how each system handles message storage after consumers read them.
✗ Incorrect
Kafka retains messages for a configured time or size limit even after consumers read them, enabling replay. RabbitMQ deletes messages once consumers acknowledge them.
🔀 Workflow
advanced3:00remaining
Configuring High Availability
Which configuration correctly sets up high availability in RabbitMQ using mirrored queues?
RabbitMQ
rabbitmqctl set_policy ha-all ".*" '{"ha-mode":"all"}'
Attempts:
2 left
💡 Hint
The pattern ".*" matches all queues for mirroring.
✗ Incorrect
The command uses the regex pattern ".*" to match all queues and sets ha-mode to "all" to mirror queues across all nodes.
❓ Troubleshoot
advanced2:30remaining
Diagnosing Kafka Consumer Lag
You notice that Kafka consumers are lagging behind the latest messages. Which is the most likely cause?
Attempts:
2 left
💡 Hint
Lag means consumers are behind the latest messages in Kafka.
✗ Incorrect
Consumer lag happens when consumers cannot keep up with the rate of incoming messages, causing them to fall behind the latest offset.
✅ Best Practice
expert3:00remaining
Choosing Between RabbitMQ and Kafka for Event Streaming
For a system requiring high throughput event streaming with message replay capability, which is the best choice and why?
Attempts:
2 left
💡 Hint
Think about replay and throughput capabilities.
✗ Incorrect
Kafka is designed for high throughput and durable log storage, enabling consumers to replay messages. RabbitMQ deletes messages after consumption and is not optimized for replay.