AWS Certified Solutions Architect – Associate (SAA-C02) — Question 456

A company hosts an application on AWS Lambda functions that are invoked by an Amazon API Gateway API. The Lambda functions save customer data to an
Amazon Aurora MySQL database. Whenever the company upgrades the database, the Lambda functions fail to establish database connections until the upgrade is complete. The result is that customer data is not recorded for some of the event.
A solutions architect needs to design a solution that stores customer data that is created during database upgrades.
Which solution will meet these requirements?

Answer options

Correct answer: D

Explanation

Using an Amazon SQS FIFO queue decouples the ingestion layer from the database write layer, allowing customer data to be safely buffered during database upgrades. Once the database is back online, the consumer Lambda function can process the queued messages without any data loss. Other options like RDS Proxy (A) do not persist data during prolonged database downtime, Lambda timeouts (B) are limited to 15 minutes and will cause API Gateway timeouts, and Lambda local storage (C) is ephemeral and not shared across invocations.