Bird
0
0

Which AWS CLI command correctly lists your free tier usage costs using Cost Explorer?

easy📝 Syntax Q12 of 15
AWS - Account and Billing
Which AWS CLI command correctly lists your free tier usage costs using Cost Explorer?
Aaws free-tier usage --period 2024-01
Baws ce list-usage --start 2024-01-01 --end 2024-01-31
Caws ce get-cost-and-usage --time-period Start=2024-01-01,End=2024-01-31 --metrics "BlendedCost"
Daws cost-explorer show-usage --from 2024-01-01 --to 2024-01-31
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct AWS CLI syntax for Cost Explorer

    The correct command uses 'aws ce get-cost-and-usage' with --time-period and --metrics parameters.
  2. Step 2: Check options for correct syntax

    Only aws ce get-cost-and-usage --time-period Start=2024-01-01,End=2024-01-31 --metrics "BlendedCost" matches the official AWS CLI syntax for cost and usage retrieval.
  3. Final Answer:

    aws ce get-cost-and-usage --time-period Start=2024-01-01,End=2024-01-31 --metrics "BlendedCost" -> Option C
  4. Quick Check:

    Correct AWS CLI syntax = aws ce get-cost-and-usage --time-period Start=2024-01-01,End=2024-01-31 --metrics "BlendedCost" [OK]
Quick Trick: Use 'aws ce get-cost-and-usage' with time period and metrics [OK]
Common Mistakes:
MISTAKES
  • Using non-existent commands like 'list-usage'
  • Wrong parameter names like --start or --from
  • Mixing service names incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes