SAP-C02 Question 490
Select 3A company is hosting a web application on Amazon EC2 instances behind an Application Load Balancer (ALB). The application experiences variable traffic patterns, with significant spikes during product launches and seasonal sales. To optimize costs and ensure reliable performance, what is the most appropriate scaling strategy?
- A
Configure an Auto Scaling group with a scheduled scaling policy for predictable traffic patterns.
- B
Set up an Auto Scaling group with a target tracking scaling policy based on average CPU utilization.
- C
Manually launch additional EC2 instances during high-traffic events to meet demand.
- D
Use an Auto Scaling group with step scaling policies to handle traffic spikes dynamically.
- E
Enable Elastic Load Balancing cross-zone load balancing to ensure even traffic distribution across instances.
Show answer and explanation
Correct answers: A, B, D
Explanation
The combination of scheduled scaling, target tracking policies, and step scaling provides a comprehensive scaling strategy to handle both predictable and unpredictable traffic patterns. Scheduled scaling optimizes costs for known high-demand periods, while target tracking and step scaling ensure reliable performance during dynamic traffic spikes. Cross-zone load balancing improves traffic distribution but does not address scaling needs directly.
- A. Correct.
This is correct because scheduling scaling policies can optimize costs when traffic patterns are predictable, such as during seasonal sales or product launches.
- B. Correct.
This is correct because target tracking scaling policies adjust the number of instances dynamically based on metrics like CPU utilization, ensuring performance during variable traffic loads.
- C. Incorrect.
This is incorrect because manually launching instances is not a scalable or efficient solution, especially during unpredictable spikes.
- D. Correct.
This is correct because step scaling policies can adjust capacity dynamically based on thresholds, making it suitable for handling sudden traffic spikes.
- E. Incorrect.
This is incorrect because enabling cross-zone load balancing only distributes traffic across instances evenly but does not scale instances based on demand.