DVA-C02 · Question #780
A company runs an application that returns product data to customers. To add a new product to the application, the company manually performs the following actions: - A service that runs in Amazon…
The correct answer is A. Publish new product additions to an Amazon SNS topic. Configure SNS topic subscriptions for. Publishing a “new product added” event to an Amazon SNS topic provides an asynchronous fanout pattern that decouples the indexing and email notification from the main application workflow. The Lambda functions can process the SNS notifications independently and in parallel, and…
Question
A company runs an application that returns product data to customers. To add a new product to the application, the company manually performs the following actions:
- A service that runs in Amazon ECS updates a product catalog in a
MySOL database.
- An AWS Lambda function indexes the new product in an Amazon
OpenSearch Service cluster.
- A second Lambda function uses Amazon SES to notify customers that the
new product is available. A developer needs to update the application to automate these actions and to ensure that the actions run asynchronously. The solution must not slow down the application. Which solution will meet these requirements?
Options
- APublish new product additions to an Amazon SNS topic. Configure SNS topic subscriptions for
- BConfigure a new Lambda function to add new products to the MySQL database, index the
- CConfigure Amazon ECS to update the product catalog in the MySQL database. Subscribe a
- DCreate a custom table in the MySQL database named New Products. Use Amazon EventBridge
How the community answered
(43 responses)- A81% (35)
- B9% (4)
- C7% (3)
- D2% (1)
Explanation
Publishing a “new product added” event to an Amazon SNS topic provides an asynchronous fanout pattern that decouples the indexing and email notification from the main application workflow. The Lambda functions can process the SNS notifications independently and in parallel, and the ECS service can be decoupled through an SQS queue so catalog updates are also handled asynchronously. This automation avoids adding latency to the application while ensuring all actions occur reliably in the background.
Community Discussion
No community discussion yet for this question.