Bird
0
0

You wrote this AWS CLI command to create an account but get an error: 'Unknown options: --accountname'. What is the mistake?

medium📝 Debug Q6 of 15
AWS - Account and Billing
You wrote this AWS CLI command to create an account but get an error: 'Unknown options: --accountname'. What is the mistake?
aws organizations create-account --email user@example.com --accountname TestAccount
AThe email format is invalid
BThe correct option is --account-name, not --accountname
CThe command should be run in IAM service
DThe AWS CLI is outdated
Step-by-Step Solution
Solution:
  1. Step 1: Check the CLI option spelling

    The correct option for account name is '--account-name' with a hyphen, not '--accountname'.
  2. Step 2: Understand error cause

    The CLI reports unknown option because the flag is misspelled.
  3. Final Answer:

    The correct option is --account-name, not --accountname -> Option B
  4. Quick Check:

    Correct CLI flags avoid unknown option errors [OK]
Quick Trick: Use correct CLI option names with hyphens [OK]
Common Mistakes:
MISTAKES
  • Misspelling CLI options
  • Blaming email format
  • Running command in wrong service

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes