
Answer-first summary for fast verification
Answer: Utilize a single SNS topic with attribute-based message filtering for partner-specific notifications.
The most scalable solution with minimal code changes is to use a single SNS topic with attribute-based message filtering (Option C). This approach allows the Lambda function to publish messages with specific attributes to the SNS topic. Each partner can then subscribe to the SNS topic and apply a filter policy to receive only the messages relevant to them. This solution scales well as it requires less management and fewer changes to the codebase when adding new partners. Options A and B are less scalable as they would require creating and managing numerous SNS topics or Lambda functions. Option D does not meet the requirement of notifying partners about only their own orders.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In a microservices application using Amazon API Gateway and AWS Lambda, how can a company ensure scalable partner notifications with minimal code changes for future partner additions?
A
Assign unique Amazon SNS topics to each partner, with Lambda publishing to the corresponding topic.
B
Dedicate a separate Lambda function for each partner to notify their endpoint.
C
Utilize a single SNS topic with attribute-based message filtering for partner-specific notifications.
D
Subscribe all partners to a single SNS topic for receiving updates.
No comments yet.