Message-Queue Delivery Semantics & Failure Handling Quiz

Q1. EASY: What does the 'at-least-once' delivery guarantee imply for message delivery?




Q2. EASY: What is the purpose of an idempotency key (unique message ID) in a messaging system?




Q3. EASY: What is a Dead-Letter Queue (DLQ) used for in message queuing systems?




Q4. EASY: Why are exponential backoff and jitter used when retrying message processing failures?




Q5. EASY: In a message queue with acknowledgments, what happens if a consumer fails to acknowledge a message within the visibility timeout?




Q6. MEDIUM: What is a trade-off of using multiple partitions for a message queue instead of a single FIFO queue?




Q7. MEDIUM: What happens to a message when it reaches its TTL (time-to-live) in a message queue?




Q8. MEDIUM: Which statement is true regarding duplicate message detection in messaging systems?




Q9. MEDIUM: In message queuing, what is commonly referred to as a 'poison message'?




Q10. MEDIUM: In a transactional messaging setup, what problem does the 'Outbox' pattern address?




Q11. MEDIUM: In RabbitMQ, what is a Dead Letter Exchange (DLX)?




Q12. HARD: Which of the following is required to achieve exactly-once delivery semantics in Apache Kafka?




Q13. HARD: For an Amazon SQS FIFO queue, how long is a message's deduplication ID retained to prevent duplicate deliveries?




Q14. HARD: If messages for the same key arrive out of order from parallel consumers or partitions, how can their correct order be restored before processing?




Q15. HARD: Why is a two-phase commit (2PC) often avoided when integrating a database and message broker for exactly-once processing?




software-architecture