Bird
0
0

Which of the following is the correct way to add an IAM user named alice to a group named Developers using AWS CLI?

easy📝 Configuration Q12 of 15
AWS - Identity and Access Management
Which of the following is the correct way to add an IAM user named alice to a group named Developers using AWS CLI?
Aaws iam add-group-to-user --group-name Developers --user-name alice
Baws iam attach-user-policy --user-name alice --policy-name Developers
Caws iam add-user-to-group --user-name alice --group-name Developers
Daws iam create-group --group-name Developers --user alice
Step-by-Step Solution
Solution:
  1. Step 1: Recall AWS CLI command for adding user to group

    The correct command is aws iam add-user-to-group with parameters --user-name and --group-name.
  2. Step 2: Match command syntax with options

    aws iam add-user-to-group --user-name alice --group-name Developers matches the correct syntax exactly.
  3. Final Answer:

    aws iam add-user-to-group --user-name alice --group-name Developers -> Option C
  4. Quick Check:

    Correct CLI command = aws iam add-user-to-group --user-name alice --group-name Developers [OK]
Quick Trick: Use 'add-user-to-group' command with user and group names [OK]
Common Mistakes:
MISTAKES
  • Using 'attach-user-policy' instead of adding to group
  • Confusing 'create-group' with adding users
  • Reversing user and group parameters

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes