Complete the AWS CLI command to check free tier usage alerts.
aws ce get-[1] --time-period Start=2023-01-01,End=2023-01-31 --metrics "UsageQuantity"
The cost-and-usage command fetches detailed usage data, including free tier usage.
Complete the AWS CLI command to create a budget alert for free tier usage.
aws budgets create-budget --account-id 123456789012 --budget [1]
The budget is set for usage in GB monthly, which fits typical free tier usage monitoring.
Fix the error in the AWS CLI command to describe free tier usage alerts.
aws budgets describe-[1] --account-id 123456789012 --budget-name FreeTierUsage
The correct subcommand is alerts to list budget alerts.
Fill both blanks to create a dictionary comprehension that filters free tier usage data for services with usage over 1000 units.
usage_over_1000 = {service: data[1] for service, data in usage_data.items() if data [2] 1000}Use .get('UsageQuantity', 0) to safely access usage quantity, and > to filter values over 1000.
Fill all three blanks to create a filtered dictionary of services with usage below 500 units and convert service names to uppercase.
filtered_usage = [1]: data for service, data in usage_data.items() if data[2] 500 and service[3] 's3'
Convert service names to uppercase, filter usage less than 500, and exclude 's3' service.