AWS Certified Solutions Architect – Associate (SAA-C03) — Question 337
A transaction processing company has weekly scripted batch jobs that run on Amazon EC2 instances. The EC2 instances are in an Auto Scaling group. The number of transactions can vary, but the baseline CPU utilization that is noted on each run is at least 60%. The company needs to provision the capacity 30 minutes before the jobs run.
Currently, engineers complete this task by manually modifying the Auto Scaling group parameters. The company does not have the resources to analyze the required capacity trends for the Auto Scaling group counts. The company needs an automated way to modify the Auto Scaling group’s desired capacity.
Which solution will meet these requirements with the LEAST operational overhead?
Answer options
- A. Create a dynamic scaling policy for the Auto Scaling group. Configure the policy to scale based on the CPU utilization metric. Set the target value for the metric to 60%.
- B. Create a scheduled scaling policy for the Auto Scaling group. Set the appropriate desired capacity, minimum capacity, and maximum capacity. Set the recurrence to weekly. Set the start time to 30 minutes before the batch jobs run.
- C. Create a predictive scaling policy for the Auto Scaling group. Configure the policy to scale based on forecast. Set the scaling metric to CPU utilization. Set the target value for the metric to 60%. In the policy, set the instances to pre-launch 30 minutes before the jobs run.
- D. Create an Amazon EventBridge event to invoke an AWS Lambda function when the CPU utilization metric value for the Auto Scaling group reaches 60%. Configure the Lambda function to increase the Auto Scaling group’s desired capacity and maximum capacity by 20%.
Correct answer: C
Explanation
Predictive scaling uses machine learning to analyze historical traffic patterns and automatically schedule scaling actions, including pre-launching instances 30 minutes ahead to handle anticipated loads, which minimizes operational overhead since the company lacks resources to analyze trends manually. Scheduled scaling (Option B) is less ideal because it requires the company to manually analyze trends to define the exact capacities beforehand. Dynamic scaling (Option A) and EventBridge/Lambda (Option D) are reactive solutions and cannot guarantee that instances will be provisioned 30 minutes before the jobs actually begin.