QuestionQ133

Data Ingestion and Transformation

An application consumes messages from an Amazon Simple Queue Service (Amazon SQS) queue. The application has occasional downtime. Because of this downtime, messages in the queue expire and are deleted after 1 day. These message deletions result in 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.
Explanation

Amazon SQS automatically deletes messages that remain in a queue beyond its configured message retention period, so increasing that period gives the application more time to recover and consume messages. Reducing message processing time increases throughput when the application resumes, allowing it to drain queued messages before they expire. Visibility timeout only controls how long received messages are hidden from other consumers; a DLQ captures messages after repeated failed processing attempts; and a delivery delay postpones message availability rather than preventing retention expiration.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!