SOA-C02 Question 74
Select 3Your organization runs an e-commerce web application on an Amazon EC2 instance with a t3.medium instance type. As traffic increases during sales events, CPU utilization often reaches 90%, causing performance degradation. The team wants to address this issue by improving the application's scaling strategy. Which of the following options correctly describe horizontal and vertical scaling approaches that could solve this problem?
- A
Upgrade the EC2 instance to a larger instance type, such as m5.large, to handle increased traffic (vertical scaling).
- B
Add additional EC2 instances behind an Application Load Balancer to distribute incoming traffic (horizontal scaling).
- C
Replace your EC2 instance with an Amazon RDS instance to improve database performance (horizontal scaling).
- D
Configure Auto Scaling to increase the number of EC2 instances dynamically based on traffic demand (horizontal scaling).
- E
Add more CPU cores to the existing EC2 instance to distribute the workload (horizontal scaling).
Show answer and explanation
Correct answers: A, B, D
Explanation
Horizontal scaling involves adding more instances or servers to distribute the load, as seen in options 2 and 4. Vertical scaling focuses on upgrading the capacity of a single instance, as described in option 1. These strategies are commonly used to address performance bottlenecks in AWS environments.
- A. Correct.
This correctly describes vertical scaling, as upgrading the instance type to a larger one is an example of increasing the capacity of a single resource.
- B. Correct.
This correctly describes horizontal scaling, as adding more instances and distributing traffic using a load balancer spreads the workload across multiple resources.
- C. Incorrect.
This is incorrect because replacing an EC2 instance with an RDS instance refers to improving database performance, not scaling the application horizontally or vertically.
- D. Correct.
This correctly describes horizontal scaling, as Auto Scaling dynamically adjusts the number of instances to handle traffic demand.
- E. Incorrect.
This is incorrect because adding CPU cores to a single instance refers to vertical scaling, not horizontal scaling.