0
0
Azurecloud~10 mins

Spot VMs for cost savings in Azure - Interactive Code Practice

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

Complete the code to create a Spot VM by setting the eviction policy.

Azure
az vm create --resource-group myResourceGroup --name mySpotVM --image UbuntuLTS --priority [1]
Drag options to blanks, or click blank then click option'
ASpot
Bregular
Clow
Dhigh
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'regular' or 'low' instead of 'Spot' for priority.
Omitting the priority flag.
2fill in blank
medium

Complete the code to set the eviction policy to delete for the Spot VM.

Azure
az vm create --resource-group myResourceGroup --name mySpotVM --image UbuntuLTS --priority Spot --eviction-policy [1]
Drag options to blanks, or click blank then click option'
Adelete
Bpause
Cstop
Dretain
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stop' which only deallocates the VM but does not delete it.
Using 'retain' which keeps the VM but may incur costs.
3fill in blank
hard

Fix the error in the code to specify the maximum price for the Spot VM.

Azure
az vm create --resource-group myResourceGroup --name mySpotVM --image UbuntuLTS --priority Spot --max-price [1]
Drag options to blanks, or click blank then click option'
A0
Bnone
C1
D-1
Attempts:
3 left
💡 Hint
Common Mistakes
Using 0 which means no price is accepted and VM won't start.
Using 'none' which is invalid.
4fill in blank
hard

Fill both blanks to configure a Spot VM with eviction policy and max price.

Azure
az vm create --resource-group myResourceGroup --name mySpotVM --image UbuntuLTS --priority [1] --eviction-policy [2]
Drag options to blanks, or click blank then click option'
ASpot
Bdelete
Cstop
Dregular
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'regular' priority which creates a normal VM.
Using 'stop' eviction policy which only deallocates the VM.
5fill in blank
hard

Fill all three blanks to create a Spot VM with max price, eviction policy, and priority.

Azure
az vm create --resource-group myResourceGroup --name mySpotVM --image UbuntuLTS --priority [1] --eviction-policy [2] --max-price [3]
Drag options to blanks, or click blank then click option'
ASpot
Bdelete
C-1
Dregular
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'regular' priority which is not a Spot VM.
Using 'stop' eviction policy which only deallocates VM.
Using '0' or other invalid max price values.