You want to delay processing of messages by 10 minutes after they are sent to an SQS queue. Which configuration should you use?
hard📝 Best Practice Q15 of 15
AWS - SNS and SQS
You want to delay processing of messages by 10 minutes after they are sent to an SQS queue. Which configuration should you use?
ASet the VisibilityTimeout to 600 seconds
BSet the ReceiveMessageWaitTimeSeconds to 600 seconds
CSet the MessageRetentionPeriod to 600 seconds
DSet the DelaySeconds attribute to 600 on the queue or per message
Step-by-Step Solution
Solution:
Step 1: Identify delay setting for message delivery
DelaySeconds controls how long a message waits before becoming visible after sending.
Step 2: Compare other attributes
VisibilityTimeout controls message invisibility after receipt, MessageRetentionPeriod controls how long messages stay in queue, ReceiveMessageWaitTimeSeconds controls long polling wait time.
Final Answer:
Set the DelaySeconds attribute to 600 on the queue or per message -> Option D
Quick Check:
DelaySeconds = message delivery delay [OK]
Quick Trick:Use DelaySeconds to delay message visibility after sending [OK]
Common Mistakes:
Confusing VisibilityTimeout with DelaySeconds
Using MessageRetentionPeriod for delay
Mistaking ReceiveMessageWaitTimeSeconds for delay
Master "SNS and SQS" in AWS
9 interactive learning modes - each teaches the same concept differently