SAP-C02 · Question #645
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…
The correct answer is B. Create two Amazon Simple Queue Service (Amazon SQS) queues: a primary queue and a. It uses two Amazon SQS queues to ensure that incoming data is not lost and can be processed later in case of failures. The primary queue acts as the initial landing point for data from the API Gateway, and the secondary queue serves as a dead-letter queue, capturing data that…
Question
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?
Options
- ACreate an Amazon Simple Queue Service (Amazon SQS) queue. Configure the queue as the
- BCreate two Amazon Simple Queue Service (Amazon SQS) queues: a primary queue and a
- CCreate two Amazon EventBridge event buses: a primary event bus and a secondary event bus.
- DCreate a custom Amazon EventBridge event bus. Configure the event bus as the failure
How the community answered
(39 responses)- A3% (1)
- B77% (30)
- C8% (3)
- D13% (5)
Explanation
It uses two Amazon SQS queues to ensure that incoming data is not lost and can be processed later in case of failures. The primary queue acts as the initial landing point for data from the API Gateway, and the secondary queue serves as a dead-letter queue, capturing data that could not be processed due to third-party service failures or other issues. This setup maintains data integrity and allows for later processing, effectively improving the solution's resiliency.
Community Discussion
No community discussion yet for this question.