Bird
0
0

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:
  1. Step 1: Identify delay setting for message delivery

    DelaySeconds controls how long a message waits before becoming visible after sending.
  2. 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.
  3. Final Answer:

    Set the DelaySeconds attribute to 600 on the queue or per message -> Option D
  4. 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

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes