Bird
0
0

Which of the following is the correct way to create an IAM user using AWS CLI?

easy📝 Configuration Q12 of 15
AWS - Identity and Access Management
Which of the following is the correct way to create an IAM user using AWS CLI?
Aaws iam create-user --user-name MyUser
Baws iam add-user --name MyUser
Caws create iam user --username MyUser
Daws iam new-user --user MyUser
Step-by-Step Solution
Solution:
  1. Step 1: Recall AWS CLI syntax for IAM user creation

    The correct command is 'aws iam create-user --user-name '.
  2. Step 2: Verify options

    The other options use incorrect commands or flags not recognized by AWS CLI.
  3. Final Answer:

    aws iam create-user --user-name MyUser -> Option A
  4. Quick Check:

    Correct AWS CLI syntax = B [OK]
Quick Trick: Remember 'create-user' with '--user-name' flag for IAM user creation [OK]
Common Mistakes:
  • Using incorrect command verbs like 'add-user' or 'new-user'
  • Mixing up flag names like '--name' instead of '--user-name'
  • Incorrect command order or syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes