0
0
RabbitMQdevops~20 mins

Event sourcing with RabbitMQ - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Event Sourcing Master with RabbitMQ
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Event Sourcing with RabbitMQ

What is the primary role of RabbitMQ in an event sourcing architecture?

ATo store the complete state of the application in a database
BTo act as a message broker that transports events between services
CTo execute business logic when events occur
DTo replace the need for event storage entirely
Attempts:
2 left
💡 Hint

Think about what RabbitMQ does best in a system that uses events.

💻 Command Output
intermediate
1:00remaining
RabbitMQ Queue Declaration Output

What is the output of the following RabbitMQ CLI command?

rabbitmqctl list_queues
AEmpty output with no queues listed
BError: RabbitMQ server not running
CSyntax error: command not found
DListing of all queues with their message counts
Attempts:
2 left
💡 Hint

This command lists queues and their message counts if the server is running.

Configuration
advanced
2:00remaining
Configuring a Durable Queue for Event Sourcing

Which RabbitMQ queue configuration ensures that events are not lost if the broker restarts?

Aqueue_declare(queue='events', durable=False)
Bqueue_declare(queue='events', exclusive=True)
Cqueue_declare(queue='events', durable=True)
Dqueue_declare(queue='events', auto_delete=True)
Attempts:
2 left
💡 Hint

Durability means the queue survives broker restarts.

🔀 Workflow
advanced
2:30remaining
Event Publishing and Consumption Workflow

In an event sourcing system using RabbitMQ, what is the correct order of steps when a new event is generated?

A2,1,3,4
B1,3,4,2
C1,2,3,4
D2,3,1,4
Attempts:
2 left
💡 Hint

Think about storing the event before publishing it.

Troubleshoot
expert
3:00remaining
Diagnosing Missing Events in RabbitMQ

You notice that some events are missing from your consumer application logs. Which RabbitMQ misconfiguration is the most likely cause?

AThe queue is declared as non-durable and RabbitMQ was restarted.
BThe exchange type is set to 'fanout'.
CThe consumer is using manual acknowledgments.
DThe queue has a high prefetch count.
Attempts:
2 left
💡 Hint

Consider what happens to non-durable queues on broker restart.