nerdexam
AmazonAmazon

DEA-C01 · Question #135

DEA-C01 Question #135: Real Exam Question with Answer & Explanation

The correct answer is A: Increase the message retention period. To minimize data loss from an SQS queue when an application experiences downtime, the message retention period should be extended, and a dead-letter queue should be attached.

Data Store Management

Question

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.)

Options

  • AIncrease the message retention period
  • BIncrease the visibility timeout.
  • CAttach a dead-letter queue (DLQ) to the SQS queue.
  • DUse a delay queue to delay message delivery
  • EReduce message processing time.

Explanation

To minimize data loss from an SQS queue when an application experiences downtime, the message retention period should be extended, and a dead-letter queue should be attached.

Common mistakes.

  • B. Increasing the visibility timeout only prevents other consumers from processing a message while it is being processed; it does not prevent messages from expiring and being deleted from the queue if the consumer application remains down.
  • D. Using a delay queue only delays the initial availability of a message in the queue; it does not address the issue of data loss due to messages expiring if the application is down or fails to process them.
  • E. Reducing message processing time helps improve throughput and responsiveness but does not directly prevent data loss caused by messages expiring during extended application downtime.

Concept tested. SQS message retention and dead-letter queues

Reference. https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html

Topics

#SQS#Message Retention#Dead-Letter Queue#Data Durability

Community Discussion

No community discussion yet for this question.

Full DEA-C01 PracticeBrowse All DEA-C01 Questions