Only Some Messages per Subscriber
One SNS topic carries order, refund and signup events, with a type message attribute. The billing queue should only receive refund events. What's the cleanest way?
order
refund
signup
type
Choose one answer
A separate SNS topic per event type, with the producer publishing to all three.
A Lambda function subscribed to the topic that forwards refund events to billing.
A subscription filter policy on the billing subscription: {"type": ["refund"]}.
{"type": ["refund"]}
An SQS queue policy on billing that rejects messages whose type isn't refund.