0
0
AWScloud~10 mins

Spot Instances for cost savings 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 specify the instance market option as Spot in the AWS EC2 launch template.

AWS
LaunchTemplateData={"InstanceMarketOptions": {"MarketType": "[1]"}}
Drag options to blanks, or click blank then click option'
Aon-demand
BReserved
Cspot
DDedicated
Attempts:
3 left
💡 Hint
Common Mistakes
Using "on-demand" instead of "spot" will launch regular instances without cost savings.
Misspelling "spot" (such as using uppercase letters) causes errors.
2fill in blank
medium

Complete the code to set the maximum price you are willing to pay per hour for a Spot Instance.

AWS
"SpotOptions": {"MaxPrice": "[1]"}
Drag options to blanks, or click blank then click option'
A0.5
B0.03
C1.0
D5.0
Attempts:
3 left
💡 Hint
Common Mistakes
Setting MaxPrice too high loses cost savings.
Using a number instead of a string causes errors.
3fill in blank
hard

Fix the error in the Spot Instance request code by completing the missing key for interruption behavior.

AWS
"SpotOptions": {"InterruptionBehavior": "[1]"}
Drag options to blanks, or click blank then click option'
Aterminate
Bstop
Chibernate
Dpause
Attempts:
3 left
💡 Hint
Common Mistakes
Using "pause" which is not a valid interruption behavior.
Capitalizing the first letter causes errors.
4fill in blank
hard

Fill both blanks to configure a Spot Instance request with a valid instance type and a valid Spot allocation strategy.

AWS
"InstanceType": "[1]", "SpotOptions": {"AllocationStrategy": "[2]"}
Drag options to blanks, or click blank then click option'
At3.micro
Bt2.nano
Ccapacity-optimized
Dlowest-price
Attempts:
3 left
💡 Hint
Common Mistakes
Using an invalid instance type like "t2.nano" which may not be supported in all regions.
Choosing "lowest-price" which can cause more interruptions.
5fill in blank
hard

Fill all three blanks to create a Spot Instance request with a launch template name, Spot market type, and interruption behavior.

AWS
"LaunchTemplateName": "[1]", "InstanceMarketOptions": {"MarketType": "[2]", "SpotOptions": {"InterruptionBehavior": "[3]"}}
Drag options to blanks, or click blank then click option'
Amy-spot-template
Bspot
Cterminate
Don-demand
Attempts:
3 left
💡 Hint
Common Mistakes
Using "on-demand" instead of "spot" for MarketType.
Choosing invalid interruption behaviors.