0
0
RabbitMQdevops~20 mins

Transaction mode vs confirms in RabbitMQ - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
RabbitMQ Confirmation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Difference between Transaction Mode and Publisher Confirms

Which statement correctly describes the main difference between RabbitMQ's transaction mode and publisher confirms?

ATransaction mode requires manual acknowledgment from consumers, whereas publisher confirms automatically acknowledge messages.
BTransaction mode is asynchronous and faster than publisher confirms, which are synchronous and slow down message publishing.
CTransaction mode batches multiple messages into a single atomic operation, while publisher confirms acknowledge each message individually after it is processed.
DPublisher confirms guarantee message delivery to the consumer, while transaction mode only guarantees message receipt by the broker.
Attempts:
2 left
💡 Hint

Think about how each method handles message acknowledgment and atomicity.

💻 Command Output
intermediate
1:30remaining
Output of Enabling Publisher Confirms

What is the expected output or effect after running the following RabbitMQ client command to enable publisher confirms?

RabbitMQ
channel.confirmSelect();
AThe channel switches to confirm mode, allowing asynchronous acknowledgments for published messages.
BThe channel enters transaction mode, requiring commit or rollback for message publishing.
CThe command throws an error because confirmSelect() is deprecated.
DThe channel disables message acknowledgments from the broker.
Attempts:
2 left
💡 Hint

Consider what confirmSelect() does in RabbitMQ client libraries.

🔀 Workflow
advanced
2:30remaining
Correct Workflow for Using Transaction Mode

Which sequence correctly represents the workflow when using RabbitMQ transaction mode for publishing messages?

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

Think about the order of starting a transaction, publishing, and committing.

Troubleshoot
advanced
2:00remaining
Troubleshooting Missing Publisher Confirms

You enabled publisher confirms on your RabbitMQ channel, but your application never receives any confirmations. What is the most likely cause?

AThe consumer did not acknowledge the messages.
BThe broker does not support publisher confirms and silently ignores the setting.
CThe messages were published with the mandatory flag set to false.
DThe channel was not set to confirm mode before publishing messages.
Attempts:
2 left
💡 Hint

Check when confirm mode is enabled relative to publishing.

Best Practice
expert
3:00remaining
Choosing Between Transaction Mode and Publisher Confirms

In a high-throughput RabbitMQ system, which approach is best to ensure message delivery without significantly slowing down publishing?

AUse publisher confirms because they provide asynchronous acknowledgments and better performance than transactions.
BUse transaction mode because it guarantees atomicity and is faster than publisher confirms.
CDisable both transaction mode and publisher confirms to maximize speed and rely on consumer acknowledgments.
DUse both transaction mode and publisher confirms together for maximum reliability.
Attempts:
2 left
💡 Hint

Consider the performance impact of synchronous vs asynchronous confirmation methods.