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

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.