nerdexam
Amazon

DOP-C02 · Question #378

How long are the messages kept on an SQS queue by default?

The correct answer is D. 4 days. The SQS message retention period is configurable and can be set anywhere from 1 minute to 2 weeks. The default is 4 days and once the message retention limit is reached your messages will be automatically deleted. The option for longer message retention provides greater flexibili

Submitted by takeshi77· Mar 6, 2026Reliability & Resilience

Question

How long are the messages kept on an SQS queue by default?

Options

  • AIf a message is not read, it is never deleted
  • B2 weeks
  • C1 day
  • D4 days

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    7% (2)
  • D
    86% (25)

Explanation

The SQS message retention period is configurable and can be set anywhere from 1 minute to 2 weeks. The default is 4 days and once the message retention limit is reached your messages will be automatically deleted. The option for longer message retention provides greater flexibility to allow for longer intervals between message production and consumption.

Topics

#SQS#message queue#message retention

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice