Bird
0
0

You created a budget with this AWS CLI command:

medium📝 Debug Q14 of 15
AWS - Cost Optimization
You created a budget with this AWS CLI command:
aws budgets create-budget --account-id 123456789012 --budget '{"BudgetName":"MyBudget","BudgetLimit":{"Amount":"100","Unit":"USD"},"TimeUnit":"MONTHLY","BudgetType":"COST"}'
But you receive an error. What is the most likely cause?
AMissing required parameter --notifications-with-subscribers
BIncorrect JSON format for the budget parameter
CUsing --account-id instead of --account-id is invalid
DBudgetLimit Amount must be an integer, not a string
Step-by-Step Solution
Solution:
  1. Step 1: Check JSON format in --budget parameter

    The JSON string uses double quotes inside single quotes but may have formatting issues or missing escapes.
  2. Step 2: Identify common CLI JSON errors

    Incorrect JSON formatting or missing escapes cause CLI errors; the command likely fails due to this.
  3. Final Answer:

    Incorrect JSON format for the budget parameter -> Option B
  4. Quick Check:

    JSON format errors cause CLI command failures [OK]
Quick Trick: Validate JSON syntax carefully in CLI commands [OK]
Common Mistakes:
  • Assuming missing notifications cause errors
  • Confusing parameter names like --account-id
  • Thinking Amount must be integer, but string is allowed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes