0
0
RabbitMQdevops~20 mins

Exactly-once processing strategies in RabbitMQ - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Exactly-once Processing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Exactly-once delivery in RabbitMQ

Which RabbitMQ feature is essential to achieve exactly-once message processing?

AUsing publisher confirms and manual message acknowledgments
BEnabling automatic message acknowledgments
CUsing transient queues without persistence
DDisabling message acknowledgments entirely
Attempts:
2 left
💡 Hint

Think about how RabbitMQ ensures messages are not lost or duplicated during delivery.

💻 Command Output
intermediate
2:00remaining
Message acknowledgment behavior

What is the output of the following RabbitMQ consumer behavior when a message is received but the consumer crashes before sending an acknowledgment?

Consumer receives message with manual ack enabled
Consumer crashes before ack
AMessage is lost and not delivered again
BMessage is requeued and delivered again to another consumer
CMessage is acknowledged automatically despite crash
DMessage is deleted from the queue without processing
Attempts:
2 left
💡 Hint

Consider what happens to unacknowledged messages when a consumer disconnects unexpectedly.

🔀 Workflow
advanced
2:30remaining
Configuring RabbitMQ for exactly-once processing

Which sequence of steps correctly configures RabbitMQ to support exactly-once message processing?

ADeclare exclusive queues, disable publisher confirms, use manual acks, and avoid idempotency
BDeclare transient queues, disable publisher confirms, use automatic acks, and rely on consumer retries
CDeclare durable queues, enable publisher confirms, use manual acks, and implement idempotent consumers
DDeclare durable queues, disable publisher confirms, use automatic acks, and implement idempotent consumers
Attempts:
2 left
💡 Hint

Think about durability, acknowledgment, and consumer design for exactly-once guarantees.

Troubleshoot
advanced
2:30remaining
Duplicate message processing despite manual acks

A RabbitMQ consumer with manual acknowledgments processes some messages twice after a network failure. What is the most likely cause?

AThe consumer used automatic acknowledgments
BThe queue was declared as durable
CPublisher confirms were enabled on the producer
DThe consumer did not implement idempotent processing logic
Attempts:
2 left
💡 Hint

Consider what happens when a message is delivered more than once and how the consumer handles it.

Best Practice
expert
3:00remaining
Ensuring exactly-once processing in distributed RabbitMQ systems

In a distributed system using RabbitMQ clusters, which practice best supports exactly-once processing across multiple consumers and nodes?

AUse consistent hashing to route messages to the same consumer and implement idempotent processing
BUse automatic acknowledgments and rely on message ordering guarantees
CDisable publisher confirms to improve throughput and use transient queues
DUse exclusive queues per consumer to avoid message duplication
Attempts:
2 left
💡 Hint

Think about message routing consistency and consumer processing behavior in clusters.