SAP-C02 Question 493
Select 3You are designing an e-commerce application hosted on AWS that experiences unpredictable traffic patterns. During flash sales, traffic spikes significantly, and during non-sale periods, traffic decreases to minimal levels. The application is hosted across multiple Availability Zones using an Auto Scaling group behind an Application Load Balancer (ALB). Which combination of scaling methodologies would best ensure cost efficiency while maintaining high availability and performance during traffic spikes?
- A
Configure a target tracking scaling policy based on average CPU utilization to automatically scale out or in.
- B
Set the minimum capacity of the Auto Scaling group to the peak traffic level to ensure availability.
- C
Use scheduled scaling to pre-warm the Auto Scaling group before expected flash sales.
- D
Implement a step scaling policy to scale out the Auto Scaling group when latency exceeds a defined threshold.
- E
Deploy an AWS Global Accelerator to handle the scaling of traffic across Regions.
Show answer and explanation
Correct answers: A, C, D
Explanation
Combining target tracking scaling for dynamic adjustments, scheduled scaling for predictable events, and step scaling for sudden surges ensures cost efficiency and high availability. Target tracking policies manage average workload fluctuations, scheduled scaling prepares for known events like flash sales, and step scaling ensures responsiveness to unexpected traffic spikes. Setting the minimum capacity to peak traffic levels wastes resources, and AWS Global Accelerator is unrelated to scaling within a Region.
- A. Correct.
A target tracking scaling policy is cost-efficient and automatically adjusts capacity based on metrics like CPU utilization, ensuring the application scales dynamically with demand.
- B. Incorrect.
Setting the minimum capacity to the peak traffic level would waste resources during low-traffic periods and is not cost-efficient.
- C. Correct.
Scheduled scaling can pre-warm instances before predictable flash sales, ensuring that the application is ready for traffic spikes.
- D. Correct.
A step scaling policy allows scaling based on specific thresholds, such as latency, which is useful for handling sudden, unexpected traffic spikes.
- E. Incorrect.
AWS Global Accelerator improves global application performance but is not a scaling mechanism for handling unpredictable traffic patterns within a single Region.