Bird
0
0

You run this AWS CLI command to check free tier usage but get an error:

medium📝 Troubleshoot Q14 of 15
AWS - Account and Billing
You run this AWS CLI command to check free tier usage but get an error:
aws ce get-cost-and-usage --time-period Start=2024-01-01,End=2024-01-31 --metrics BlendedCost
What is the likely cause of the error?
AIncorrect date format in --time-period
BAWS CLI is not installed
CUsing 'ce' instead of 'cost-explorer' in the command
DMissing quotes around the BlendedCost metric value
Step-by-Step Solution
Solution:
  1. Step 1: Check syntax for --metrics parameter

    The metric name must be enclosed in quotes, e.g., "BlendedCost".
  2. Step 2: Validate other parts of the command

    Date format and 'ce' alias are correct; AWS CLI installation error would be different.
  3. Final Answer:

    Missing quotes around the BlendedCost metric value -> Option D
  4. Quick Check:

    Metric names need quotes in AWS CLI [OK]
Quick Trick: Always quote metric names in AWS CLI commands [OK]
Common Mistakes:
  • Not quoting metric names
  • Changing date format incorrectly
  • Confusing service aliases
  • Assuming AWS CLI not installed without checking

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes