0
0
Azurecloud~10 mins

VM pricing models 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 specify the VM pricing model as pay-as-you-go.

Azure
vm_config = {
  "pricingModel": "[1]"
}
Drag options to blanks, or click blank then click option'
Apay-as-you-go
Breserved
Cspot
Dsubscription
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing reserved which requires upfront commitment.
Selecting spot which is for unused capacity at a discount.
2fill in blank
medium

Complete the code to set the VM pricing model to use discounted capacity with possible interruptions.

Azure
vm_config = {
  "pricingModel": "[1]"
}
Drag options to blanks, or click blank then click option'
Areserved
Bpay-as-you-go
Cspot
Dsubscription
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing reserved which is for long-term commitment.
Selecting pay-as-you-go which has no discounts.
3fill in blank
hard

Fix the error in the code to correctly specify a reserved VM pricing model.

Azure
vm_config = {
  "pricingModel": "[1]"
}
Drag options to blanks, or click blank then click option'
Aspot
Bon-demand
Cpay-as-you-go
Dreserved
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'on-demand' which is not an Azure pricing model term.
Confusing spot with reserved.
4fill in blank
hard

Fill both blanks to create a VM configuration with a reserved pricing model and a 1-year term.

Azure
vm_config = {
  "pricingModel": "[1]",
  "term": "[2]"
}
Drag options to blanks, or click blank then click option'
Areserved
Bpay-as-you-go
C1-year
Dspot
Attempts:
3 left
💡 Hint
Common Mistakes
Using spot pricing with a term, which is not applicable.
Choosing pay-as-you-go with a term.
5fill in blank
hard

Fill all three blanks to define a VM with spot pricing, eviction policy set to deallocate, and a max price of $0.05 per hour.

Azure
vm_config = {
  "pricingModel": "[1]",
  "evictionPolicy": "[2]",
  "maxPrice": [3]
}
Drag options to blanks, or click blank then click option'
Areserved
Bdeallocate
C0.05
Dspot
Attempts:
3 left
💡 Hint
Common Mistakes
Using reserved pricing with eviction policy.
Setting maxPrice as a string instead of a number.