
Answer-first summary for fast verification
Answer: Increase the message retention period, Attach a dead-letter queue (DLQ) to the SQS queue.
Option A is CORRECT because increasing the message retention period in Amazon SQS allows messages to remain in the queue for a longer duration before they expire. By extending the retention period (up to 14 days), the application has a longer time window to process the messages, thereby reducing the likelihood of message loss due to occasional application downtime. Option C is CORRECT because attaching a dead-letter queue (DLQ) to the SQS queue ensures that messages that cannot be processed successfully after a specified number of retries are moved to the DLQ. This helps preserve unprocessed messages rather than allowing them to expire in the main queue, enabling the application to analyze or reprocess the messages later, thereby minimizing data loss.
Author: Ritesh Yadav
Ultimate access to all questions.
Question 17/58
An application consumes messages from an Amazon Simple Queue Service (Amazon SQS) queue. The application experiences occasional downtime. As a result of the downtime, messages within the queue expire and are deleted after 1 day. The message deletions cause data loss for the application.
Which solutions will minimize data loss for the application? (Choose two.)
A
Increase the message retention period
B
Increase the visibility timeout.
C
Attach a dead-letter queue (DLQ) to the SQS queue.
D
Use a delay queue to delay message delivery
E
Reduce message processing time.
No comments yet.