Bird
0
0

Given an SNS topic with two subscribed SQS queues, if a message is published to SNS, what will be the state of the message in the queues?

medium📝 service behavior Q13 of 15
AWS - SNS and SQS
Given an SNS topic with two subscribed SQS queues, if a message is published to SNS, what will be the state of the message in the queues?
AThe message is deleted from SNS and not delivered to any queue.
BThe message appears in only one queue randomly.
CThe message appears in both queues independently, waiting to be processed.
DThe message is duplicated in one queue only.
Step-by-Step Solution
Solution:
  1. Step 1: Understand SNS fan-out delivery

    SNS sends a copy of the message to each subscribed queue.
  2. Step 2: Understand SQS message handling

    Each queue holds its own copy until processed or deleted.
  3. Final Answer:

    The message appears in both queues independently, waiting to be processed. -> Option C
  4. Quick Check:

    Fan-out means each queue gets its own message copy [OK]
Quick Trick: SNS fan-out sends message copy to each queue [OK]
Common Mistakes:
MISTAKES
  • Thinking message goes to only one queue
  • Assuming message is deleted immediately
  • Believing message duplicates in one queue only

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes