Topic 1 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?
Use Lambda event filtering to allow only messages that are related to email address changes to invoke the Lambda function.
Use an SNS filter policy on the Lambda function subscription to allow only messages that are related to email address changes to invoke the Lambda function.
Subscribe an Amazon Simple Queue Service (Amazon SQS) queue to the SNS topic. Configure the SQS queue with a filter policy to allow only messages that are related to email address changes. Connect the SQS queue to the Lambda function.
Configure the Lambda code to check the received message. If the message is not related to an email address change, configure the Lambda function to publish the message back to the SNS topic for the other subscribers to process.
ユーザの投票
コメント(5)
- 正解だと思う選択肢: B
SNS filter policies allow you to specify criteria that messages must meet to be delivered to a particular subscriber.
👍 2rdiaz2024/07/11 - 正解だと思う選択肢: B
SNS filter policies are designed specifically for this purpose and require the least development effort. They allow you to filter messages at the SNS level before they reach the Lambda function.
👍 2KennethNg9232024/08/21 - 正解だと思う選択肢: B
For A, Lambda event filtering does not support SNS
👍 1FYXL2024/09/16
シャッフルモード