AWS Certified Solutions Architect Associate SAA-C03 Practice Question
An application publishes events to an Amazon SNS topic. One subscription delivers notifications to an Amazon SQS queue and has a JSON filter policy configured. What happens when a published message does not match the subscription's filter policy?
The message is delivered to the SQS queue regardless of its attributes.
The message is filtered out and not delivered to that subscription.
The SNS Publish API call fails with an error indicating an attribute mismatch.
The message is delivered, but SNS flags it as unmatched and deletes it after 24 hours.
SNS evaluates each published message against the filter policy that is attached to the subscription. If the attributes (or payload fields) of the message satisfy the policy, the message is delivered to the subscribed SQS queue. If they do not, the message is filtered out and never delivered to that subscription. The publish call itself still succeeds, and other subscriptions without conflicting policies continue to receive the message.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Amazon SNS and how does it work?
Open an interactive chat with Bash
What are subscription filter policies in Amazon SNS?
Open an interactive chat with Bash
What happens to messages that do not match the filter policy?