SAA-C03 Question 120
Single answerA media streaming company uses an Amazon EC2 instance to host a web application that is experiencing increased traffic during peak hours. The company has noticed slower performance during these times. Which solution ensures scalability and optimal performance while minimizing downtime?
- A
Upgrade the instance type to a larger instance for more CPU and memory resources.
- B
Add more EC2 instances and place them behind an Application Load Balancer.
- C
Use Auto Scaling to automatically scale vertically during peak traffic.
- D
Migrate the application to Amazon RDS for better scalability.
Show answer and explanation
Correct answer: B
Explanation
Horizontal scaling, achieved by adding more instances and distributing traffic with a load balancer, is the preferred solution for handling increased traffic in a scalable and resilient manner. Vertical scaling, while useful in some cases, has limitations in terms of scalability and downtime during upgrades.
- A. Incorrect.
Upgrading to a larger instance type is an example of vertical scaling, which can improve performance temporarily but does not address future scalability needs effectively.
- B. Correct.
Adding more EC2 instances and using an Application Load Balancer is an example of horizontal scaling, which allows the application to handle increased traffic by distributing the load across multiple instances.
- C. Incorrect.
Auto Scaling is used for horizontal scaling, not vertical scaling. Vertical scaling requires manual intervention and does not happen automatically.
- D. Incorrect.
Migrating the application to Amazon RDS is unrelated to the problem described, as RDS is a managed database service and does not address web application scalability directly.