ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 28 - DVA-C02 discussion

Report
Export

A company receives food orders from multiple partners. The company has a microservices application that uses Amazon API Gateway APIs with AWS Lambda integration. Each partner sends orders by calling a customized API that is exposed through API Gateway. The API call invokes a shared Lambda function to process the orders.

Partners need to be notified after the Lambda function processes the orders. Each partner must receive updates for only the partner's own orders. The company wants to add new partners in the future with the fewest code changes possible.

Which solution will meet these requirements in the MOST scalable way?

A.
Create a different Amazon Simple Notification Service (Amazon SNS) topic for each partner.Configure the Lambda function to publish messages for each partner to the partner's SNS topic.
Answers
A.
Create a different Amazon Simple Notification Service (Amazon SNS) topic for each partner.Configure the Lambda function to publish messages for each partner to the partner's SNS topic.
B.
Create a different Lambda function for each partner. Configure the Lambda function to notify each partner's service endpoint directly.
Answers
B.
Create a different Lambda function for each partner. Configure the Lambda function to notify each partner's service endpoint directly.
C.
Create an Amazon Simple Notification Service (Amazon SNS) topic. Configure the Lambda function to publish messages with specific attributes to the SNS topic. Subscribe each partner to the SNS topic. Apply the appropriate filter policy to the topic subscriptions.
Answers
C.
Create an Amazon Simple Notification Service (Amazon SNS) topic. Configure the Lambda function to publish messages with specific attributes to the SNS topic. Subscribe each partner to the SNS topic. Apply the appropriate filter policy to the topic subscriptions.
D.
Create one Amazon Simple Notification Service (Amazon SNS) topic. Subscribe all partners to the SNS topic.
Answers
D.
Create one Amazon Simple Notification Service (Amazon SNS) topic. Subscribe all partners to the SNS topic.
Suggested answer: C

Explanation:

Amazon Simple Notification Service (Amazon SNS) is a fully managed messaging service that enables pub/sub communication between distributed systems. The developer can create an SNS topic and configure the Lambda function to publish messages with specific attributes to the topic. The developer can subscribe each partner to the SNS topic and apply the appropriate filter policy to the topic subscriptions. This way, each partner will receive updates for only their own orders based on the message attributes. This solution will meet the requirements in the most scalable way and allow adding new partners in the future with minimal code changes.

Reference:

[Amazon Simple Notification Service (SNS)]

[Filtering Messages with Attributes - Amazon Simple Notification Service]

asked 16/09/2024
Richard Banks
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first