Bird
0
0

Which of the following is the correct JSON attribute to set a message delay of 10 seconds when sending a message to SQS?

easy📝 Syntax Q3 of 15
AWS - SNS and SQS
Which of the following is the correct JSON attribute to set a message delay of 10 seconds when sending a message to SQS?
A"WaitTimeSeconds": 10
B"MessageDelay": 10
C"DelayTime": 10
D"DelaySeconds": 10
Step-by-Step Solution
Solution:
  1. Step 1: Recall SQS SendMessage Parameters

    The correct attribute to set message delay is "DelaySeconds" with the number of seconds as value.
  2. Step 2: Verify Other Options

    "MessageDelay" and "DelayTime" are invalid attribute names; "WaitTimeSeconds" is used for long polling, not delay.
  3. Final Answer:

    "DelaySeconds": 10 -> Option D
  4. Quick Check:

    Message delay attribute = DelaySeconds [OK]
Quick Trick: Use DelaySeconds to set message delay in SQS [OK]
Common Mistakes:
  • Using WaitTimeSeconds instead of DelaySeconds
  • Using incorrect attribute names like MessageDelay
  • Confusing delay with long polling settings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes