AWS Certified Developer Associate DVA-C02 Practice Question
A developer is building a microservices application that publishes order events to an Amazon SNS topic. Each published message includes a message attribute named "department" whose value can be "sales", "marketing", or "finance". The sales team exposes an HTTPS endpoint that must receive only the messages where department equals "sales", and no other messages. Which approach meets this requirement?
Disable raw message delivery on the sales subscription so that only messages with the "sales" attribute are forwarded.
Tag the sales HTTPS endpoint with department=sales and enable endpoint-based filtering in Amazon SNS.
Enable the Amazon SNS message grouping feature and assign the group ID "sales" to relevant messages.
Attach a subscription filter policy to the sales subscription that specifies {"department": ["sales"]}.
A subscription filter policy lets Amazon SNS compare the attributes of each published message with a JSON policy that you attach to the subscription. If the attributes satisfy the policy conditions, SNS delivers the message; otherwise, it skips that subscriber. Setting a filter policy of {"department": ["sales"]} on the sales subscription ensures the endpoint receives only messages whose department attribute equals "sales". Disabling raw message delivery, relying on endpoint tags, or using a non-existent grouping feature does not control message routing.
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 are message attributes in Amazon SNS?
Open an interactive chat with Bash
How do subscription filter policies work?
Open an interactive chat with Bash
What advantages do subscription filters provide in SNS?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Troubleshooting and Optimization
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access