Error Handling Patterns — Concept Check
Questions on Error Handling Patterns. Combine retry (with back-off), DLX, and poison-message detection to build robust error handling; alert on DLQ growth and build replay tooling for production incidents.
Questions in this quiz
8 questions on Error Handling Patterns — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A message in RabbitMQ is retried 3 times with exponential back-off and then moved to a DLQ. What could be the reason for this behavior?
- AThe message is a poison message causing consumer crashes.
- BThe message has exceeded its time-to-live setting.
- CThe message consistently fails due to a transient error.
- DThe message was manually rejected by an administrator.
2.A developer notices that the DLQ is growing rapidly. What is the most likely cause?
- APoison messages are being detected and quarantined.
- BMessages are being rejected and dead-lettered after retries.
- CThe DLX is not properly configured to route messages.
- DMessages are being retried indefinitely without success.
3.What happens to a message that is identified as a poison message in RabbitMQ?
- AIt is immediately deleted from the queue.
- BIt is logged and acknowledged to be removed from the DLQ.
- CIt is retried indefinitely until it succeeds.
- DIt is automatically corrected and reprocessed.
4.A message has been dead-lettered 6 times. What should be done to handle it?
- AIgnore it, as it will be automatically resolved.
- BQuarantine the message as a poison message.
- CManually requeue the message for another attempt.
- DIncrease the retry limit to prevent dead-lettering.
5.In the context of RabbitMQ error handling, what is the purpose of the DLX?
- ATo route failed messages to a DLQ for investigation.
- BTo retry messages with exponential back-off.
- CTo temporarily store messages before processing.
- DTo automatically fix errors in failed messages.
6.A developer configures the DLQ but notices no messages are being routed to it. What is a possible oversight?
- AThe message TTL is set too high, preventing dead-lettering.
- BThe DLQ is not durable, causing message loss.
- CThe retry policy has not been set to trigger dead-lettering.
- DThe DLX is not bound to the DLQ with the correct routing key.
7.What is the role of the RetryInterceptorBuilder in Spring AMQP?
- ATo configure the DLX for dead-lettering messages.
- BTo bind the DLQ to the DLX with a routing key.
- CTo set up retry policies with exponential back-off.
- DTo automatically detect poison messages.
8.Which of the following indicates a message is a poison message in RabbitMQ?
- AIt is retried indefinitely without success.
- BIt is rejected immediately upon arrival.
- CIt has been dead-lettered more than 5 times.
- DIt has a TTL that has expired.