AWS Certified Developer – Associate (DVA-C02) — Question 20

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?

Answer options

Correct answer: C

Explanation

Option C is the best solution because it allows for a single SNS topic with filtering capabilities, enabling each partner to receive only their relevant updates without needing multiple topics or Lambda functions. Options A and B create unnecessary complexity and maintenance overhead with separate topics or functions for each partner. Option D does not provide the necessary filtering, so all partners would receive every notification, which is not aligned with the requirement of notifying partners about only their own orders.