A company’s API receives real-time data from monitoring devices and stores it in an Amazon RDS DB instance. The incoming data volume fluctuates and during heavy traffic the API times out because the database cannot process the write volume. A solutions architect must minimize database connections and ensure no data loss during heavy traffic. Which solution meets these requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: Modify the API to write incoming data to an Amazon Simple Queue Service (Amazon SQS) queue. Use an AWS Lambda function that Amazon SQS invokes to write data from the queue to the database..
Why this is the answer
The correct solution uses Amazon SQS as a buffer, decoupling the API from the database. When traffic is high, SQS queues the messages, preventing the API from timing out and ensuring no data loss. A Lambda function then processes messages from the queue at a rate the RDS instance can handle, minimizing direct database connections and preventing overload. Increasing DB instance size might offer temporary relief but doesn't address fluctuating loads efficiently and can be costly. A Multi-AZ configuration provides high availability and disaster recovery but doesn't distribute write load or prevent a single instance from being overwhelmed by a high volume of writes. Using Amazon SNS is less suitable because SNS is a publish/subscribe service primarily for fan-out messaging, not for buffering and reliably
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed