Bird
0
0

Given an SNS topic with two subscribed SQS queues, if a message is published to SNS, what will be the total number of messages received by the queues?

medium📝 Predict Output Q4 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 total number of messages received by the queues?
ATwo messages, one in each queue
BOne message split between the two queues
CZero messages until queues poll SNS
DOne message duplicated in the first queue only
Step-by-Step Solution
Solution:
  1. Step 1: Understand SNS fan-out delivery

    Each subscribed queue receives a full copy of the message.
  2. Step 2: Calculate total messages

    Two queues mean two messages total, one per queue.
  3. Final Answer:

    Two messages, one in each queue. -> Option A
  4. Quick Check:

    Fan-out = message per queue [OK]
Quick Trick: Each queue gets its own copy of the message [OK]
Common Mistakes:
MISTAKES
  • Thinking message is split or shared
  • Assuming queues must poll SNS to get messages
  • Believing only first queue gets message

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes