0
0
AWScloud~10 mins

Predictive scaling overview in AWS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enable predictive scaling for an Auto Scaling group.

AWS
aws autoscaling put-scaling-policy --auto-scaling-group-name my-asg --policy-name predictive-policy --policy-type [1]
Drag options to blanks, or click blank then click option'
ASimpleScaling
BPredictiveScaling
CTargetTrackingScaling
DStepScaling
Attempts:
3 left
💡 Hint
Common Mistakes
Using SimpleScaling instead of PredictiveScaling
Confusing TargetTrackingScaling with predictive scaling
2fill in blank
medium

Complete the code to specify the maximum capacity for predictive scaling.

AWS
aws autoscaling put-scaling-policy --auto-scaling-group-name my-asg --policy-name predictive-policy --policy-type PredictiveScaling --predictive-scaling-configuration MaxCapacityBehavior=[1]
Drag options to blanks, or click blank then click option'
AHonorMaxCapacity
BIgnoreMaxCapacity
CHonorDesiredCapacity
DIgnoreDesiredCapacity
Attempts:
3 left
💡 Hint
Common Mistakes
Using IgnoreMaxCapacity which can cause scaling beyond limits
Confusing desired capacity behavior with max capacity
3fill in blank
hard

Fix the error in the predictive scaling configuration to set the scheduling buffer time.

AWS
aws autoscaling put-scaling-policy --auto-scaling-group-name my-asg --policy-name predictive-policy --policy-type PredictiveScaling --predictive-scaling-configuration SchedulingBufferTime=[1]
Drag options to blanks, or click blank then click option'
Afive_minutes
B"300"
C0.3
D300
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string instead of an integer
Using a float or descriptive string instead of seconds
4fill in blank
hard

Fill both blanks to configure predictive scaling with a customized metric and target value.

AWS
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]
Drag options to blanks, or click blank then click option'
A"ASGAverageCPUUtilization"
B50.0
C"ALBRequestCountPerTarget"
D100.0
Attempts:
3 left
💡 Hint
Common Mistakes
Using ALBRequestCountPerTarget metric with a CPU target value
Setting target value as a string instead of a number
5fill in blank
hard

Fill all three blanks to create a predictive scaling policy with a customized metric, target value, and disable scale-in.

AWS
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]
Drag options to blanks, or click blank then click option'
A"ASGAverageNetworkIn"
B75.0
Ctrue
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Using false instead of true for DisableScaleIn
Mixing metric and target value types