0
0
Azurecloud~10 mins

Why cost management matters in Azure - Test Your Understanding

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
B2000
C500
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Using zero or negative numbers for budget amount
Setting an unrealistically high budget
2fill in blank
medium

Complete the code to list cost management exports in Azure.

Azure
az consumption export list --resource-group [1]
Drag options to blanks, or click blank then click option'
ADefaultResourceGroup
BMyResourceGroup
CExportGroup
DCostGroup
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect or default resource group names
Misspelling the resource group name
3fill in blank
hard

Fix the error in the command to create a cost alert rule for a subscription.

Azure
az monitor metrics alert create --name CostAlert --resource-group MyResourceGroup --scopes [1] --condition "total Cost > 100" --description "Alert when cost exceeds $100"
Drag options to blanks, or click blank then click option'
A/resourceGroups/MyResourceGroup
BMySubscription
Csubscriptions/00000000-0000-0000-0000-000000000000
D/subscriptions/00000000-0000-0000-0000-000000000000
Attempts:
3 left
💡 Hint
Common Mistakes
Using subscription name instead of ID
Omitting the leading slash in resource ID
4fill in blank
hard

Fill both blanks to create a cost management export with daily recurrence and CSV format.

Azure
az consumption export create --name DailyExport --resource-group MyResourceGroup --definition '{"type": "Usage", "timeframe": "[1]", "format": "[2]"}'
Drag options to blanks, or click blank then click option'
ADaily
BMonthly
CCsv
DJson
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing timeframe and format values
Using unsupported formats
5fill in blank
hard

Fill all three blanks to create a budget with a monthly time grain, a limit of 1000, and a notification threshold at 80%.

Azure
az consumption budget create --amount [1] --time-grain [2] --name MyBudget --resource-group MyResourceGroup --notifications '{"enabled": true, "threshold": [3]'
Drag options to blanks, or click blank then click option'
A1000
BMonthly
C0.8
DDaily
Attempts:
3 left
💡 Hint
Common Mistakes
Using threshold as 80 instead of 0.8
Mixing up time grain values