QuizzesQueue TTL & Auto-Expiry — Concept Check
intermediate
rabbitmq

Queue TTL & Auto-Expiry — Concept Check

Questions on Queue TTL & Auto-Expiry. x-expires deletes an unused queue after a given idle period; useful for temporary reply queues and ephemeral work queues that should not accumulate indefinitely.

8 minutes 8 questions Pass at 70%
Time Limit
8 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

8 questions on Queue TTL & Auto-Expiry — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A temporary queue is set with x-expires for 10 minutes. What happens if no consumer accesses it during this period?

    • AThe queue is moved to a dead-letter exchange.
    • BThe queue is deleted after 10 minutes of inactivity.
    • CThe queue remains as it is until manually deleted.
    • DMessages in the queue are deleted, but the queue remains.
  2. 2.A queue has x-message-ttl set to 60 seconds and a message has an expiration of 30 seconds. When will the message expire?

    • AIt will not expire.
    • BAfter 60 seconds.
    • CAfter 90 seconds.
    • DAfter 30 seconds.
  3. 3.A developer sets x-expires on a queue but notices it is not being deleted after the specified time. What could be the issue?

    • AThe x-message-ttl is overriding x-expires.
    • Bx-expires only deletes messages, not the queue.
    • CThe queue is still being accessed by a consumer.
    • DThe queue is durable, so x-expires is ignored.
  4. 4.A message in a queue with x-message-ttl is not being dead-lettered upon expiration. What might be wrong?

    • AThe x-dead-letter-exchange is not set.
    • BThe x-expires is set too low.
    • CThe message has a shorter expiration than the queue TTL.
    • DThe queue is non-durable.
  5. 5.A queue is configured with x-expires and x-message-ttl. What happens if the queue is accessed periodically?

    • ABoth queue and messages will expire regardless of access.
    • BThe queue will expire, but messages will remain.
    • CThe queue will not expire as long as it is accessed.
    • DMessages will expire, but the queue will not.
  6. 6.A queue's x-message-ttl is set to 5 minutes. What happens to messages after this time?

    • AThey are deleted silently.
    • BThey remain in the queue indefinitely.
    • CThey are dead-lettered if x-dead-letter-exchange is set.
    • DThey are moved to another queue automatically.
  7. 7.A service uses a reply queue with x-expires of 5 minutes. What is a potential risk if the service is slow?

    • AMessages will expire before being processed.
    • BThe queue will accumulate indefinitely.
    • CThe queue will block incoming messages.
    • DThe queue may be deleted before replies are processed.
  8. 8.A queue has both x-message-ttl and x-expires set. Which one affects message expiration?

    • Ax-expires affects both queue and message expiration.
    • BBoth affect message expiration equally.
    • Cx-message-ttl affects message expiration, x-expires affects queue deletion.
    • DNeither affects message expiration.