Bird
0
0

You want to ensure that messages with the same order ID are processed in order and only once. Which SQS queue configuration should you use?

hard📝 Architecture Q8 of 15
AWS - SNS and SQS
You want to ensure that messages with the same order ID are processed in order and only once. Which SQS queue configuration should you use?
ACreate a Standard queue and set DelaySeconds to 0
BCreate a FIFO queue and use MessageGroupId set to the order ID
CCreate a Standard queue with a dead-letter queue attached
DCreate a FIFO queue without MessageGroupId
Step-by-Step Solution
Solution:
  1. Step 1: Identify Ordering and Exactly-Once Requirements

    FIFO queues guarantee exactly-once processing and ordering within MessageGroupId groups.
  2. Step 2: Apply MessageGroupId for Order ID

    Setting MessageGroupId to order ID ensures messages with same ID are processed in order.
  3. Final Answer:

    Create a FIFO queue and use MessageGroupId set to the order ID -> Option B
  4. Quick Check:

    Ordering + exactly-once = FIFO + MessageGroupId [OK]
Quick Trick: Use FIFO queue with MessageGroupId for ordered processing [OK]
Common Mistakes:
  • Using Standard queue for ordering
  • Not setting MessageGroupId in FIFO queue
  • Confusing dead-letter queue with ordering

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes