Complete the code to enable predictive scaling for an Auto Scaling group.
aws autoscaling put-scaling-policy --auto-scaling-group-name my-asg --policy-name predictive-policy --policy-type [1]The policy type must be PredictiveScaling to enable predictive scaling.
Complete the code to specify the maximum capacity for predictive scaling.
aws autoscaling put-scaling-policy --auto-scaling-group-name my-asg --policy-name predictive-policy --policy-type PredictiveScaling --predictive-scaling-configuration MaxCapacityBehavior=[1]HonorMaxCapacity ensures the predictive scaling respects the maximum capacity set for the group.
Fix the error in the predictive scaling configuration to set the scheduling buffer time.
aws autoscaling put-scaling-policy --auto-scaling-group-name my-asg --policy-name predictive-policy --policy-type PredictiveScaling --predictive-scaling-configuration SchedulingBufferTime=[1]The SchedulingBufferTime must be an integer number of seconds, so 300 (5 minutes) is correct.
Fill both blanks to configure predictive scaling with a customized metric and target value.
aws autoscaling put-scaling-policy --auto-scaling-group-name my-asg --policy-name predictive-policy --policy-type PredictiveScaling --predictive-scaling-configuration PredefinedMetricSpecification=[1], TargetValue=[2]
Use ASGAverageCPUUtilization as the predefined metric and set the target value to 50.0 percent.
Fill all three blanks to create a predictive scaling policy with a customized metric, target value, and disable scale-in.
aws autoscaling put-scaling-policy --auto-scaling-group-name my-asg --policy-name predictive-policy --policy-type PredictiveScaling --predictive-scaling-configuration PredefinedMetricSpecification=[1], TargetValue=[2], DisableScaleIn=[3]
Use ASGAverageNetworkIn as the metric, set target value to 75.0, and disable scale-in by setting true.