DVA-C02 Exam QuestionsBrowse all questions from this exam

DVA-C02 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?

Show Answer
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

3 comments
Sign in to comment
tomchandler077
Jul 7, 2024

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).

kyowo
Jul 5, 2024

D is the correct answer

siheomOption: B
Jul 12, 2024

Definitely B