AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 325

A company is building a serverless application that uses AWS Lambda functions to process data.

A BeginResponse Lambda function initializes data in response to specific application events. The company needs to ensure that a large number of Lambda functions are invoked after the BeginResponse Lambda function runs. Each Lambda function must be invoked in parallel and depends on only the outputs of the BeginResponse Lambda function. Each Lambda function has retry logic for invocation and must be able to fine-tune concurrency without losing data.

Which solution will meet these requirements with the MOST operational efficiency?

Answer options

Correct answer: B

Explanation

Using an SNS-to-SQS fan-out pattern allows the BeginResponse Lambda function to publish a message once, which is then parallelized to multiple SQS queues. Because each downstream Lambda function is triggered by its own SQS queue, you can easily control individual concurrency levels and manage retries without risking message loss. Direct SNS subscriptions lack queuing features, while creating an SNS topic per queue or using sequential Step Functions adds unnecessary operational overhead and fails to meet parallel execution requirements.