QuestionQ98

VerifiedDevelopment with AWS Services

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?

Explanation

SNS subscription filter policies allow declarative message filtering at the SNS level before Lambda invocation, requiring no code changes to the Lambda function. This is the least-effort solution. Lambda event filtering (A) doesn't support SNS subscriptions; SQS + filter (C) adds unnecessary infrastructure; handler-level filtering (D) requires custom code and processes unwanted messages.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!