QuestionQ12

VerifiedContinuous Improvement for Existing Solutions

A company operates a solution that analyzes weather data from thousands of weather stations. The weather stations transmit the data through an Amazon API Gateway REST API with an AWS Lambda function integration. The Lambda function invokes a third-party service for data preprocessing. The third-party service becomes overloaded and fails the preprocessing, resulting in data loss.

A solutions architect must increase the solution's resiliency. The solutions architect must ensure that no data is lost and that data can be processed later when failures occur.

What should the solutions architect do to satisfy these requirements?

Explanation

Amazon SQS provides durable buffering between API Gateway and Lambda, decoupling data ingestion from the third-party preprocessing service. Lambda polls the primary queue and deletes messages only after successful processing; failed messages become visible again for retry. Configuring a secondary SQS queue as the primary queue's dead-letter queue preserves messages that repeatedly fail so they can be processed later.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!