DVA-C02 Question 382
Single answerA developer is working on an e-commerce application that experiences high traffic during seasonal sales. The application uses Amazon RDS for its database and is facing performance bottlenecks during peak load. The developer needs to optimize the application to handle the increased traffic efficiently. Which solution would best address the issue?
- A
Enable Amazon RDS Read Replicas and configure the application to distribute read traffic across replicas.
- B
Switch the database engine from Amazon RDS to Amazon DynamoDB to handle high throughput.
- C
Use Amazon ElastiCache to cache frequently accessed data to reduce database load.
- D
Upgrade the RDS instance to a larger instance type to improve database performance.
Show answer and explanation
Correct answer: A
Explanation
The best solution is to enable Amazon RDS Read Replicas and distribute read traffic across replicas. This approach allows the application to scale read operations efficiently without overloading the primary database. Other options, such as switching to DynamoDB or upgrading the instance, involve significant changes or provide only temporary fixes, while ElastiCache is better suited for caching rather than addressing database read scalability.
- A. Correct.
This is the correct answer because Amazon RDS Read Replicas can help offload read traffic from the primary database, improving performance and scalability for read-heavy workloads.
- B. Incorrect.
Switching to Amazon DynamoDB might not be a practical or feasible solution in this case, as it would require significant changes to the application and might not address the immediate bottleneck.
- C. Incorrect.
While Amazon ElastiCache can help improve performance by caching frequently accessed data, it does not directly address the need to scale read traffic for the database.
- D. Incorrect.
Upgrading the RDS instance might improve performance temporarily but does not provide scalability for handling high traffic during peak loads.