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

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?

Answer options

Correct answer: B

Explanation

Amazon SNS supports a publish/subscribe (pub/sub) pattern that enables a single event message to be fanned out to multiple subscribers concurrently, ensuring each Lambda function runs independently. Amazon SQS is a point-to-point queuing service where consumers compete for messages, meaning only one Lambda would process each event. Application Load Balancer and AWS Step Functions are not designed for simple pub/sub fan-out of independent Lambda invocations without unnecessary complexity or architectural misalignment.