nerdexam
AmazonAmazon

DVA-C02 · Question #653

DVA-C02 Question #653: Real Exam Question with Answer & Explanation

The correct answer is D: Create a subscription filter policy on sqs-sub that contains 'department': ['finance'].. To send all notifications to email-sub, leave its filter policy unset (or set to match all messages by default). To ensure only messages with department = finance go to sqs-sub, apply a filter policy on sqs-sub with 'department': ['finance']. This configuration meets the requirem

Submitted by wei.xz· Mar 5, 2026Development with AWS Services

Question

A developer is adding an Amazon SNS topic to an application. The topic has multiple subscribers, an Amazon SQS queue subscription named sqs-sub, and an email subscription named email- sub. The developer wants the application to send all notifications to email-sub. Only messages that have an attribute of department with a value of finance must go to sqs-sub. Currently, neither subscription has a subscription filter policy. Which solution will meet these requirements?

Options

  • ACreate a subscription filter policy on email-sub that contains 'department': ['*']. Create a second
  • BCreate a subscription filter policy on email-sub that contains 'department': ['finance']. Create a
  • CCreate a subscription filter policy on email-sub that contains '*': ['*'].
  • DCreate a subscription filter policy on sqs-sub that contains 'department': ['finance'].

Explanation

To send all notifications to email-sub, leave its filter policy unset (or set to match all messages by default). To ensure only messages with department = finance go to sqs-sub, apply a filter policy on sqs-sub with 'department': ['finance']. This configuration meets the requirements with the least configuration and no unnecessary filters.

Community Discussion

No community discussion yet for this question.

Full DVA-C02 PracticeBrowse All DVA-C02 Questions