Bird
0
0

If a RabbitMQ queue is configured with 'auto-delete' and all consumers disconnect, what happens to the queue?

medium📝 Predict Output Q5 of 15
Kafka - Basics and Event Streaming
If a RabbitMQ queue is configured with 'auto-delete' and all consumers disconnect, what happens to the queue?
AQueue remains until manually deleted
BQueue is deleted automatically
CQueue messages are persisted but queue stays
DQueue is paused but not deleted
Step-by-Step Solution
Solution:
  1. Step 1: Understand 'auto-delete' queue behavior

    Auto-delete queues are deleted when the last consumer disconnects.
  2. Step 2: Apply to scenario

    When all consumers disconnect, the queue is removed automatically.
  3. Final Answer:

    Queue is deleted automatically -> Option B
  4. Quick Check:

    Auto-delete queue = deleted on last consumer disconnect A [OK]
Quick Trick: Auto-delete queues vanish when no consumers remain [OK]
Common Mistakes:
  • Assuming queue persists without consumers
  • Confusing with durable queues
  • Thinking messages are saved after deletion

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes