0
0
AWScloud~10 mins

Budgets and cost anomaly detection 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 create a budget with a specified amount.

AWS
aws budgets create-budget --account-id 123456789012 --budget '{"BudgetName": "MyBudget", "BudgetLimit": {"Amount": "[1]", "Unit": "USD"}, "TimeUnit": "MONTHLY", "BudgetType": "COST"}'
Drag options to blanks, or click blank then click option'
A1000
BMonthly
CUSD
DCost
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'USD' or 'Monthly' instead of a numeric amount.
Leaving the amount field empty.
2fill in blank
medium

Complete the code to specify the time unit for the budget.

AWS
aws budgets create-budget --account-id 123456789012 --budget '{"BudgetName": "MyBudget", "BudgetLimit": {"Amount": "500", "Unit": "USD"}, "TimeUnit": "[1]", "BudgetType": "COST"}'
Drag options to blanks, or click blank then click option'
ADAILY
BWEEKLY
CYEARLY
DMONTHLY
Attempts:
3 left
💡 Hint
Common Mistakes
Using lowercase instead of uppercase for time units.
Choosing a time unit that does not match the billing cycle.
3fill in blank
hard

Fix the error in the command to enable cost anomaly detection monitor.

AWS
aws ce [1]-anomaly-monitor --monitor-name "MyMonitor" --monitor-type "COST_AND_USAGE"
Drag options to blanks, or click blank then click option'
Astart
Bupdate
Ccreate
Ddelete
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' or 'delete' instead of 'create'.
Confusing the monitor type with the action.
4fill in blank
hard

Fill both blanks to create a budget notification for when actual cost exceeds a threshold.

AWS
aws budgets create-notification --account-id 123456789012 --budget-name "MyBudget" --notification '{"NotificationType": "[1]", "ComparisonOperator": "[2]", "Threshold": 80, "ThresholdType": "PERCENTAGE"}'
Drag options to blanks, or click blank then click option'
AACTUAL
BFORECASTED
CGREATER_THAN
DLESS_THAN
Attempts:
3 left
💡 Hint
Common Mistakes
Using FORECASTED instead of ACTUAL for actual cost alerts.
Using LESS_THAN instead of GREATER_THAN for threshold comparison.
5fill in blank
hard

Fill all three blanks to create a cost anomaly subscription with email notification.

AWS
aws ce create-anomaly-subscription --subscription-name "MySubscription" --frequency [1] --monitor-arn-list ["[2]"] --subscribers '[{"Address": "[3]", "Type": "EMAIL"}]'
Drag options to blanks, or click blank then click option'
ADAILY
Barn:aws:ce:us-east-1:123456789012:anomaly-monitor/MyMonitor
Cuser@example.com
DWEEKLY
Attempts:
3 left
💡 Hint
Common Mistakes
Using DAILY instead of WEEKLY for frequency when weekly alerts are needed.
Incorrect ARN format or missing ARN.
Missing or invalid email address.