0
0
Azurecloud~10 mins

Cost optimization pillar 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 budget alert in Azure Cost Management.

Azure
az consumption budget create --amount [1] --time-grain Monthly --name MyBudget --resource-group MyResourceGroup
Drag options to blanks, or click blank then click option'
A1000
B5000
Cten thousand
Dbudget
Attempts:
3 left
💡 Hint
Common Mistakes
Using non-numeric strings for the amount
Omitting the amount parameter
2fill in blank
medium

Complete the code to list all cost management budgets in a subscription.

Azure
az consumption budget list --subscription [1]
Drag options to blanks, or click blank then click option'
AMyResourceGroup
B12345678-1234-1234-1234-123456789abc
CMyBudget
DMonthly
Attempts:
3 left
💡 Hint
Common Mistakes
Using resource group name instead of subscription ID
Using budget name instead of subscription ID
3fill in blank
hard

Fix the error in the code to enable cost alerts when spending reaches 80% of the budget.

Azure
az consumption budget update --name MyBudget --resource-group MyResourceGroup --threshold [1]
Drag options to blanks, or click blank then click option'
A0.8
B80%
Ceighty
D80
Attempts:
3 left
💡 Hint
Common Mistakes
Using decimal values like 0.8
Including the percent sign in the value
4fill in blank
hard

Fill both blanks to create a cost management export that runs monthly and saves to a storage account.

Azure
az consumption export create --name MonthlyExport --subscription MySubscription --storage-account [1] --recurrence [2]
Drag options to blanks, or click blank then click option'
Amystorageaccount
Bweekly
Cmonthly
Ddaily
Attempts:
3 left
💡 Hint
Common Mistakes
Using recurrence values that don't match the export frequency
Using incorrect storage account names
5fill in blank
hard

Fill all three blanks to create a reserved instance purchase with a 1-year term and a specific SKU.

Azure
az reservation order create --reserved-resource-type VirtualMachines --term [1] --sku [2] --quantity [3]
Drag options to blanks, or click blank then click option'
A1Year
BStandard_D2s_v3
C5
D12-month
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect term formats like '12-month'
Using invalid SKU names
Using non-numeric quantity values