SOA-C02 Question 73
Select 3A company is running a web application on an Amazon EC2 instance. As traffic increases, the application experiences degraded performance. The company wants to address this issue by adding more resources. Which of the following options correctly describe the difference between horizontal scaling and vertical scaling in this scenario?
- A
Horizontal scaling involves adding more EC2 instances to distribute the load.
- B
Vertical scaling involves increasing the instance size for more CPU and memory resources.
- C
Horizontal scaling is the process of upgrading the underlying EC2 instance to a more powerful instance type.
- D
Vertical scaling is more suitable for applications that require distributed processing across multiple instances.
- E
Horizontal scaling is typically implemented using an Auto Scaling group.
Show answer and explanation
Correct answers: A, B, E
Explanation
Horizontal scaling adds more EC2 instances to distribute the load across multiple resources, making it suitable for stateless or distributed applications. Vertical scaling involves upgrading the instance type to add more CPU, memory, or storage resources to a single instance. Auto Scaling groups are a common method to implement horizontal scaling in AWS.
- A. Correct.
Correct: Horizontal scaling distributes the load by adding more EC2 instances, which helps handle increased traffic.
- B. Correct.
Correct: Vertical scaling involves upgrading the EC2 instance to provide more resources such as CPU and memory.
- C. Incorrect.
Incorrect: This describes vertical scaling, not horizontal scaling.
- D. Incorrect.
Incorrect: Vertical scaling is focused on upgrading a single instance and is not related to distributed processing across multiple instances.
- E. Correct.
Correct: Auto Scaling groups are often used to implement horizontal scaling by dynamically adding or removing instances.