0
0
AWScloud~10 mins

Free tier usage monitoring in AWS - Interactive Code Practice

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

Complete the AWS CLI command to check free tier usage alerts.

AWS
aws ce get-[1] --time-period Start=2023-01-01,End=2023-01-31 --metrics "UsageQuantity"
Drag options to blanks, or click blank then click option'
Ausage-forecasts
Bbudgets
Ccost-and-usage
Dbilling
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'budgets' instead of 'cost-and-usage' will not show detailed usage data.
Using 'billing' is incorrect because it does not provide usage metrics.
2fill in blank
medium

Complete the AWS CLI command to create a budget alert for free tier usage.

AWS
aws budgets create-budget --account-id 123456789012 --budget [1]
Drag options to blanks, or click blank then click option'
A"{\"BudgetName\": \"FreeTierUsage\", \"BudgetLimit\": {\"Amount\": \"15\", \"Unit\": \"HOURS\"}, \"TimeUnit\": \"DAILY\", \"BudgetType\": \"USAGE\"}"
B"{\"BudgetName\": \"FreeTierUsage\", \"BudgetLimit\": {\"Amount\": \"15\", \"Unit\": \"GB\"}, \"TimeUnit\": \"MONTHLY\", \"BudgetType\": \"USAGE\"}"
C"{\"BudgetName\": \"FreeTierUsage\", \"BudgetLimit\": {\"Amount\": \"15\", \"Unit\": \"USD\"}, \"TimeUnit\": \"MONTHLY\", \"BudgetType\": \"COST\"}"
D"{\"BudgetName\": \"FreeTierUsage\", \"BudgetLimit\": {\"Amount\": \"15\", \"Unit\": \"USD\"}, \"TimeUnit\": \"MONTHLY\", \"BudgetType\": \"USAGE\"}"
Attempts:
3 left
💡 Hint
Common Mistakes
Setting BudgetType to COST instead of USAGE will track cost, not usage.
Using HOURS as unit when monitoring storage usage is incorrect.
3fill in blank
hard

Fix the error in the AWS CLI command to describe free tier usage alerts.

AWS
aws budgets describe-[1] --account-id 123456789012 --budget-name FreeTierUsage
Drag options to blanks, or click blank then click option'
Abudgets
Balert
Cnotifications
Dalerts
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'alert' causes a command not found error.
Using 'budgets' is incorrect because it lists budgets, not alerts.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that filters free tier usage data for services with usage over 1000 units.

AWS
usage_over_1000 = {service: data[1] for service, data in usage_data.items() if data [2] 1000}
Drag options to blanks, or click blank then click option'
A.get('UsageQuantity', 0)
B>
C>=
D['UsageQuantity']
Attempts:
3 left
💡 Hint
Common Mistakes
Using ['UsageQuantity'] can cause errors if the key is missing.
Using '>=' includes 1000, but the task asks for over 1000.
5fill in blank
hard

Fill all three blanks to create a filtered dictionary of services with usage below 500 units and convert service names to uppercase.

AWS
filtered_usage = [1]: data for service, data in usage_data.items() if data[2] 500 and service[3] 's3'
Drag options to blanks, or click blank then click option'
Aservice.upper()
B<
C!=
Dservice.lower()
Attempts:
3 left
💡 Hint
Common Mistakes
Using '==' instead of '!=' includes the 's3' service, which is not desired.
Using '>' instead of '<' filters the wrong usage range.