Bird
0
0

If an SNS topic has three SQS queues subscribed and a message is published, but one queue's policy denies access, how many queues receive the message?

medium📝 Predict Output Q5 of 15
AWS - SNS and SQS
If an SNS topic has three SQS queues subscribed and a message is published, but one queue's policy denies access, how many queues receive the message?
AAll three queues receive the message
BOnly two queues receive the message
CNo queues receive the message
DOnly the queue with denied policy receives the message
Step-by-Step Solution
Solution:
  1. Step 1: Understand access policies impact

    If a queue denies access, SNS cannot deliver messages to it.
  2. Step 2: Count successful deliveries

    Two queues with correct policies receive messages; one denied queue does not.
  3. Final Answer:

    Only two queues receive the message. -> Option B
  4. Quick Check:

    Denied policy blocks delivery [OK]
Quick Trick: Queue policy must allow SNS to deliver messages [OK]
Common Mistakes:
  • Assuming all queues get messages regardless of policy
  • Thinking denied queue still receives messages
  • Believing no queues get messages if one denies

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes