Dead Letter Queues (DLQ) — Concept Check
Questions on Dead Letter Queues (DLQ). Messages that cannot be processed land in a DLQ; monitor DLQ depth as an SLA signal and build tooling to replay, inspect, or discard messages after investigation.
Questions in this quiz
8 questions on Dead Letter Queues (DLQ) — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A service's DLQ depth is steadily increasing. What does this indicate?
- AThe DLQ is empty.
- BThe DLQ is not configured correctly.
- CThe consumer is failing to process messages.
- DThe messages are being processed too quickly.
2.You notice that messages are not being dead-lettered even though the queue is full. What might be missing?
- Ax-overflow=reject-publish-dlx
- Bx-dead-letter-exchange
- Cx-dead-letter-routing-key
- Dx-message-ttl
3.A message in RabbitMQ is dead-lettered due to expiration. What configuration could cause this?
- Ax-dead-letter-exchange is missing.
- Bx-overflow is set to reject-publish.
- Cx-message-ttl is set too low.
- DThe DLQ is full.
4.What happens when a message is rejected with basicNack and requeue set to false?
- AIt is routed to the DLQ via the DLX.
- BIt is re-queued for another attempt.
- CThe message is permanently lost.
- DIt is processed successfully.
5.In the DLQ configuration, what is the purpose of x-dead-letter-routing-key?
- ASpecifies the DLQ name.
- BOverrides the routing key for DLX.
- CDetermines message priority.
- DSets the TTL for messages.
6.A developer assumes a DLQ is automatically created in RabbitMQ. What is the reality?
- ADLQs are created by default.
- BDLQs must be manually configured.
- CDLQs are only needed for expired messages.
- DDLQs are optional for all queues.
7.Why might a message be re-queued instead of sent to the DLQ?
- AThe DLX is missing.
- BThe message is too large.
- CThe DLQ is not configured.
- DThe message is recoverable and requeue=true.
8.What is a critical SLA metric related to DLQs?
- AQueue name
- BMessage size
- CDLQ depth
- DRouting key