AWS Certified Solutions Architect – Professional (SAP-C02) — Question 360

A company has a solution that analyzes weather data from thousands of weather stations. The weather stations send the data over an Amazon API Gateway REST API that has an AWS Lambda function integration. The Lambda function calls a third-party service for data pre-processing. The third-party service gets overloaded and fails the pre-processing, causing a loss of data.

A solutions architect must improve the resiliency of the solution. The solutions architect must ensure that no data is lost and that data can be processed later if failures occur.

What should the solutions architect do to meet these requirements?

Answer options

Correct answer: B

Explanation

Integrating Amazon API Gateway directly with an Amazon SQS primary queue decouples the ingestion layer from the processing layer, protecting against data loss when the downstream third-party service fails. By configuring a secondary SQS queue as a dead-letter queue (DLQ) for the primary queue, messages that fail to process after multiple Lambda retries are safely preserved for later processing. Other options using EventBridge or incorrect DLQ configurations do not provide this robust queuing and retry mechanism directly out of the box for API Gateway ingestion.