Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 365 discussion

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?

  • A. Use Lambda event filtering to allow only messages that are related to email address changes to invoke the Lambda function.
  • B. 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.
  • C. 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.
  • D. 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.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Saudis
1 week ago
Selected Answer: B
ANS IS B
upvoted 1 times
...
preachr
1 month, 1 week ago
Selected Answer: B
https://docs.aws.amazon.com/sns/latest/dg/sns-message-filtering.html https://docs.aws.amazon.com/sns/latest/dg/sns-subscription-filter-policies.html
upvoted 1 times
...
FYXL
1 month, 4 weeks ago
Selected Answer: B
For A, Lambda event filtering does not support SNS
upvoted 1 times
...
KennethNg923
2 months, 3 weeks ago
Selected Answer: 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.
upvoted 2 times
...
rdiaz
4 months ago
Selected Answer: B
SNS filter policies allow you to specify criteria that messages must meet to be delivered to a particular subscriber.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...