AWS Certified SysOps Administrator – Associate (legacy) — Question 314
A user has created a queue named `awsmodule` with SQS. One of the consumers of queue is down for 3 days and then becomes available. Will that component receive message from queue?
Answer options
- A. Yes, since SQS by default stores message for 4 days
- B. No, since SQS by default stores message for 1 day only
- C. No, since SQS sends message to consumers who are available that time
- D. Yes, since SQS will not delete message until it is delivered to all consumers
Correct answer: A
Explanation
Amazon SQS has a default message retention period of 4 days, which means messages will persist in the queue and can be retrieved by the consumer once it comes back online after 3 days. Option B is incorrect because the default retention is not 1 day, and Option C is incorrect because SQS is a pull-based queuing service, not a real-time push service. Option D is incorrect because SQS will automatically delete messages after their retention period expires, even if they have not been processed.