Bird
0
0

You ran the command aws iam add-user-to-group --group-name Engineers --user-name dave but received an error. Which of the following is a likely cause?

medium📝 Debug Q6 of 15
AWS - Identity and Access Management
You ran the command aws iam add-user-to-group --group-name Engineers --user-name dave but received an error. Which of the following is a likely cause?
AIAM groups cannot have users added via CLI
BThe group <code>Engineers</code> already contains the user
CThe AWS CLI command requires --user instead of --user-name
DThe user <code>dave</code> does not exist in IAM
Step-by-Step Solution
Solution:
  1. Step 1: Check command syntax

    The command syntax is correct using --group-name and --user-name.
  2. Step 2: Identify common causes of failure

    If the user does not exist, the command will fail.
  3. Final Answer:

    The user dave does not exist in IAM -> Option D
  4. Quick Check:

    User must exist before adding to group [OK]
Quick Trick: User must exist before adding to group [OK]
Common Mistakes:
  • Using incorrect parameter names
  • Assuming duplicate user addition causes error
  • Believing CLI cannot add users to groups

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes