SAA-C03 · Question #534
SAA-C03 Question #534: Real Exam Question with Answer & Explanation
The correct answer is C: Modify the API to write incoming data to an Amazon Simple Queue Service (Amazon SQS). Using Amazon SQS decouples the API from the database, allowing the system to handle write bursts without data loss. The queue buffers incoming requests, and AWS Lambda processes them asynchronously, writing to the RDS instance at a sustainable rate. "Amazon SQS acts as a buffer b
Question
A company has an API that receives real-time data from a fleet of monitoring devices. The API stores this data in an Amazon RDS DB instance for later analysis. The amount of data that the monitoring devices send to the API fluctuates. During periods of heavy traffic, the API often returns timeout errors. After an inspection of the logs, the company determines that the database is not capable of processing the volume of write traffic that comes from the API. A solutions architect must minimize the number of connections to the database and must ensure that data is not lost during periods of heavy traffic. Which solution will meet this requirement?
Options
- AIncrease the size of the DB instance to an instance type that has more available memory.
- BModify the DB instance to be a Multi-AZ DB instance. Configure the application to write to all
- CModify the API to write incoming data to an Amazon Simple Queue Service (Amazon SQS)
- DModify the API to write incoming data to an Amazon Simple Notification Service (Amazon SNS)
Explanation
Using Amazon SQS decouples the API from the database, allowing the system to handle write bursts without data loss. The queue buffers incoming requests, and AWS Lambda processes them asynchronously, writing to the RDS instance at a sustainable rate. "Amazon SQS acts as a buffer between components that produce and consume data, allowing each to operate independently. You can use AWS Lambda to process messages from SQS and write them to other services such as Amazon RDS." Why C is correct: SQS absorbs write surges and ensures durable message retention. Lambda scales automatically with message volume and reduces DB connections. Prevents timeout errors by smoothing traffic spikes. Why others are incorrect: A: Scaling RDS vertically doesn't address connection spikes. B: Multi-AZ is for availability, not write throughput. D: SNS is for fan-out message delivery, not queue-based buffering.
Community Discussion
No community discussion yet for this question.