DVA-C02 · Question #561
A developer is designing an event-driven architecture. An AWS Lambda function that processes data needs to push processed data to a subset of four consumer Lambda functions. The data must be routed ba
The correct answer is D. Create a single Amazon Simple Notification Service (Amazon SNS) topic. Subscribe the four. Single SNS topic with subscription filter policies is the most efficient solution with the least operational overhead. By using a single SNS topic and configuring subscription filter policies on each consumer Lambda function, you can route messages based on specific fields in the
Question
A developer is designing an event-driven architecture. An AWS Lambda function that processes data needs to push processed data to a subset of four consumer Lambda functions. The data must be routed based on the value of one field in the data. Which solution will meet these requirements with the LEAST operational overhead?
Options
- ACreate an Amazon Simple Queue Service (Amazon SQS) queue and event source mapping for
- BCreate an Amazon Simple Notification Service (Amazon SNS) topic. Subscribe the four consumer
- CCreate a separate Amazon Simple Notification Service (Amazon SNS) topic and subscription for
- DCreate a single Amazon Simple Notification Service (Amazon SNS) topic. Subscribe the four
How the community answered
(45 responses)- A13% (6)
- B4% (2)
- C7% (3)
- D76% (34)
Explanation
Single SNS topic with subscription filter policies is the most efficient solution with the least operational overhead. By using a single SNS topic and configuring subscription filter policies on each consumer Lambda function, you can route messages based on specific fields in the data without adding any additional processing logic inside the Lambda functions. SNS filters allow you to match specific message attributes and route the data to the correct consumer Lambda functions efficiently.
Community Discussion
No community discussion yet for this question.