You have subscribed two SQS queues to an SNS topic, but one queue is not receiving messages. Which of the following is the most probable cause?
medium📝 Debug Q6 of 15
AWS - SNS and SQS
You have subscribed two SQS queues to an SNS topic, but one queue is not receiving messages. Which of the following is the most probable cause?
AThe SNS topic is configured to send messages only to one queue at a time.
BThe SQS queue's access policy does not allow SNS to send messages to it.
CThe message size exceeds the maximum allowed by SNS.
DThe SQS queue is configured with a dead-letter queue.
Step-by-Step Solution
Solution:
Step 1: Check access policies
For SNS to deliver messages to an SQS queue, the queue's access policy must explicitly allow the SNS topic to send messages.
Step 2: Evaluate other options
The SNS topic is configured to send messages only to one queue at a time. is incorrect because SNS sends messages to all subscribed queues simultaneously. The message size exceeds the maximum allowed by SNS. is unrelated to delivery failure to one queue. The SQS queue is configured with a dead-letter queue. does not prevent message delivery.
Final Answer:
The SQS queue's access policy does not allow SNS to send messages to it. -> Option B
Quick Check:
Access policy must permit SNS delivery [OK]
Quick Trick:SQS queue policy must allow SNS topic to send messages [OK]
Common Mistakes:
Assuming SNS limits delivery to one queue
Blaming message size for delivery failure to one queue
Confusing dead-letter queue with delivery permissions
Master "SNS and SQS" in AWS
9 interactive learning modes - each teaches the same concept differently