0
0
RabbitMQdevops~20 mins

RabbitMQ vs Kafka comparison - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Messaging Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Primary Messaging Model Difference
What is the main difference in the messaging model between RabbitMQ and Kafka?
ARabbitMQ uses a push-based queue system; Kafka uses a pull-based log system.
BRabbitMQ stores messages permanently; Kafka deletes messages immediately after consumption.
CRabbitMQ requires consumers to poll for messages; Kafka pushes messages to consumers.
DRabbitMQ and Kafka both use the same push-based queue system.
Attempts:
2 left
💡 Hint
Think about how each system delivers messages to consumers.
🧠 Conceptual
intermediate
2:00remaining
Message Durability and Retention
Which statement correctly describes message durability and retention differences between RabbitMQ and Kafka?
ARabbitMQ retains messages indefinitely; Kafka deletes messages after consumption.
BBoth RabbitMQ and Kafka delete messages immediately after delivery.
CKafka retains messages based on time or size regardless of consumption; RabbitMQ deletes messages once acknowledged.
DRabbitMQ and Kafka both retain messages permanently until manually deleted.
Attempts:
2 left
💡 Hint
Consider how each system handles message storage after consumers read them.
🔀 Workflow
advanced
3: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"}'
Arabbitmqctl set_policy ha-all "^" '{"ha-mode":"exactly", "ha-params":2}'
Brabbitmqctl set_policy ha-all "^" '{"ha-mode":"all"}'
Crabbitmqctl set_policy ha-all "^" '{"ha-mode":"nodes"}'
Drabbitmqctl set_policy ha-all ".*" '{"ha-mode":"all"}'
Attempts:
2 left
💡 Hint
The pattern ".*" matches all queues for mirroring.
Troubleshoot
advanced
2:30remaining
Diagnosing Kafka Consumer Lag
You notice that Kafka consumers are lagging behind the latest messages. Which is the most likely cause?
AConsumers are too slow or overwhelmed, causing them to fall behind the log end offset.
BKafka brokers have deleted messages before consumers read them.
CRabbitMQ queues are full, blocking message delivery.
DProducers are sending messages too slowly.
Attempts:
2 left
💡 Hint
Lag means consumers are behind the latest messages in Kafka.
Best Practice
expert
3: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?
ARabbitMQ, because it pushes messages immediately and deletes them after consumption for faster processing.
BKafka, because it stores messages in a durable log allowing replay and handles high throughput efficiently.
CRabbitMQ, because it supports message replay by default through mirrored queues.
DKafka, because it deletes messages immediately after delivery to save storage.
Attempts:
2 left
💡 Hint
Think about replay and throughput capabilities.