Exam DVA-C02 All QuestionsBrowse all questions from this exam
Question 360

A developer is building an ecommerce application. When there is a sale event, the application needs to concurrently call three third-party systems to record the sale. The developer wrote three AWS Lambda functions. There is one Lambda function for each third-party system, which contains complex integration logic.

These Lambda functions are all independent. The developer needs to design the application so each Lambda function will run regardless of others' success or failure.

Which solution will meet these requirements?

    Correct Answer: B

    When there is a sale event, the application needs to concurrently call three third-party systems, with each Lambda function running independently regardless of the success or failure of others. The best approach to meet these requirements is to use Amazon Simple Notification Service (SNS). Publishing the sale event from the application to an SNS topic and subscribing the three Lambda functions to be triggered by the SNS topic will ensure that all three functions are invoked concurrently and independently. SNS provides a pub/sub messaging pattern that fits well with this use case, as it allows multiple subscribers to be notified simultaneously.

Discussion
tomchandler077

B Given the requirements to concurrently call three independent third-party systems when there is a sale event, and ensuring that each Lambda function runs regardless of the success or failure of the others, the best solution is to use Amazon Simple Notification Service (SNS).

siheomOption: B

Definitely B

kyowo

D is the correct answer