193k views
1 vote
What is the maximum retention period of a message in an SQS queue?

1) 1 day
2) 7 days
3) 14 days
4) 30 days

User Markus Hay
by
8.3k points

1 Answer

1 vote

Final answer:

The maximum retention period of a message in an SQS queue is 14 days. SQS allows for a message retention period setting between 60 seconds and 1,209,600 seconds (14 days), after which messages are automatically deleted.

Step-by-step explanation:

The maximum retention period of a message in an Amazon Simple Queue Service (SQS) queue is 14 days. When you create an SQS queue, you can define the message retention period, which is the duration for which the queue retains a message if it is not deleted. The minimum retention period is 60 seconds, and the maximum is 1,209,600 seconds (14 days). Any messages that are older than the specified retention period will automatically be deleted.

It's important to choose an appropriate message retention period to ensure that your application has enough time to process and delete the messages within the given timeframe, thus avoiding any message loss.

User Niyamat Ullah
by
8.3k points