
Answer-first summary for fast verification
Answer: Integrate Amazon SQS to queue incoming data, processed by a Lambda function writing to the database.
The correct answer is C. Using Amazon SQS to queue incoming data and a Lambda function to process and write that data to the database effectively manages the fluctuating load. This minimizes the number of direct connections to the database and ensures data is not lost during high traffic periods. Options A and B do not address the issue of fluctuating load handling, while option D can introduce added complexity without solving the problem as effectively as option C.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
An API receives fluctuating real-time data from monitoring devices, storing it in an Amazon RDS instance. During peak traffic, the API experiences timeout errors due to the database's inability to handle high write volumes. What solution ensures minimal database connections and data integrity during heavy traffic?
A
Upsize the DB instance for increased memory capacity.
B
Convert the DB instance to Multi-AZ and enable writes across all instances.
C
Integrate Amazon SQS to queue incoming data, processed by a Lambda function writing to the database.
D
Utilize Amazon SNS to handle incoming data, with a Lambda function subsequently writing to the database.
No comments yet.