AWS Certified Data Engineer – Associate (DEA-C01) — Question 130
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.)
Answer options
- 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.
Correct answer: A, C
Explanation
Increasing the message retention period (Option A) allows messages to stay in the queue longer, reducing the risk of data loss during downtime. Attaching a dead-letter queue (Option C) helps to capture messages that cannot be processed, providing a safeguard against data loss. The other options do not directly address the issue of message expiration and data loss.