Exam DVA-C02 All QuestionsBrowse all questions from this exam
Question 365

A developer is creating an AWS Lambda function that is invoked by messages to an Amazon Simple Notification Service (Amazon SNS) topic. The messages represent customer data updates from a customer relationship management (CRM) system

The developer wants the Lambda function to process only the messages that pertain to email address changes. Additional subscribers to the SNS topic will process any other messages.

Which solution will meet these requirements in the LEAST development effort?

    Correct Answer: B

    Using an SNS filter policy on the Lambda function subscription is the most efficient solution to allow only messages that are related to email address changes to invoke the Lambda function. This approach minimizes development effort because it leverages a built-in feature of SNS to filter messages before they reach the Lambda function, thus avoiding the need for additional processing or configuration within the Lambda code itself.

Discussion
rdiazOption: B

SNS filter policies allow you to specify criteria that messages must meet to be delivered to a particular subscriber.