Bird
0
0

How can you combine quorum queues with message TTL (time-to-live) to optimize resource usage in RabbitMQ?

hard📝 Workflow Q9 of 15
RabbitMQ - Clustering
How can you combine quorum queues with message TTL (time-to-live) to optimize resource usage in RabbitMQ?
AUse classic queues with TTL and mirror them for availability.
BDeclare a quorum queue with 'x-message-ttl' argument to auto-expire messages.
CSet TTL on consumers instead of queues for better control.
DApply TTL only on exchanges, not queues.
Step-by-Step Solution
Solution:
  1. Step 1: Understand TTL usage with quorum queues

    Quorum queues support 'x-message-ttl' argument to expire messages automatically.
  2. Step 2: Identify correct method to optimize resource usage

    Setting TTL on quorum queues removes old messages, saving space.
  3. Final Answer:

    Declare a quorum queue with 'x-message-ttl' argument to auto-expire messages. -> Option B
  4. Quick Check:

    TTL on quorum queues = resource optimization [OK]
Quick Trick: Use 'x-message-ttl' on quorum queues to expire messages [OK]
Common Mistakes:
MISTAKES
  • Using classic queues instead of quorum for TTL
  • Setting TTL on consumers which is unsupported
  • Applying TTL only on exchanges

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More RabbitMQ Quizzes