Bird
0
0

You tried to add user carol to group Managers using this command:

medium📝 Debug Q14 of 15
AWS - Identity and Access Management
You tried to add user carol to group Managers using this command:
aws iam add-user-to-group --group-name Managers --user carol
But it failed. What is the error in this command?
AThe command should be 'aws iam add-group-to-user' instead
BThe parameter should be --user-name, not --user
CThe group name should be specified after --user-name
DThe user name must be in quotes
Step-by-Step Solution
Solution:
  1. Step 1: Check AWS CLI command syntax

    The correct parameter for specifying the user is --user-name, not --user.
  2. Step 2: Identify the error in the command

    Using --user causes the command to fail because it is invalid.
  3. Final Answer:

    The parameter should be --user-name, not --user -> Option B
  4. Quick Check:

    Correct parameter = --user-name [OK]
Quick Trick: Use --user-name, not --user, for specifying IAM user [OK]
Common Mistakes:
MISTAKES
  • Using incorrect parameter names
  • Swapping user and group parameters
  • Adding unnecessary quotes around names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes