Bird
0
0

You want to build a system that sends messages to an AWS SQS queue and ensures each message is processed exactly once by a receiver. Which combination of features should you use?

hard📝 Best Practice Q15 of 15
AWS - SNS and SQS
You want to build a system that sends messages to an AWS SQS queue and ensures each message is processed exactly once by a receiver. Which combination of features should you use?
AStandard queue with short polling and no message deletion
BStandard queue with long polling and message deletion after processing
CFIFO queue with deduplication and message deletion after processing
DFIFO queue without deduplication and no message deletion
Step-by-Step Solution
Solution:
  1. Step 1: Understand message processing guarantees

    Standard queues can deliver messages more than once; FIFO queues preserve order and support exactly-once processing with deduplication.
  2. Step 2: Ensure messages are deleted after processing

    Deleting messages after processing prevents reprocessing the same message.
  3. Step 3: Combine features for exactly-once processing

    Use FIFO queue with deduplication and delete messages after processing to guarantee exactly-once delivery.
  4. Final Answer:

    FIFO queue with deduplication and message deletion after processing -> Option C
  5. Quick Check:

    Exactly-once = FIFO + deduplication + delete [OK]
Quick Trick: Use FIFO queue with deduplication and delete messages after processing [OK]
Common Mistakes:
MISTAKES
  • Using standard queue for exactly-once needs
  • Not deleting messages after processing
  • Ignoring deduplication feature

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes