Bird
0
0

Which of the following is the correct AWS CLI command to enable an MFA device for a user named 'bob'?

easy📝 Syntax Q3 of 15
AWS - Identity and Access Management
Which of the following is the correct AWS CLI command to enable an MFA device for a user named 'bob'?
Aaws iam enable-mfa-device --user-name bob --serial-number arn:aws:iam::123456789012:mfa/bob --authentication-code1 123456 --authentication-code2 654321
Baws iam create-mfa-device --user bob --code1 123456 --code2 654321
Caws mfa enable --user bob --code 123456
Daws iam add-mfa --username bob --serial arn:aws:mfa:bob
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct AWS CLI syntax for enabling MFA

    The command is 'aws iam enable-mfa-device' with user name, serial number, and two codes.
  2. Step 2: Verify options for correctness

    aws iam enable-mfa-device --user-name bob --serial-number arn:aws:iam::123456789012:mfa/bob --authentication-code1 123456 --authentication-code2 654321 matches the correct syntax; others use invalid commands or parameters.
  3. Final Answer:

    aws iam enable-mfa-device --user-name bob --serial-number arn:aws:iam::123456789012:mfa/bob --authentication-code1 123456 --authentication-code2 654321 -> Option A
  4. Quick Check:

    Enable MFA CLI command = aws iam enable-mfa-device [OK]
Quick Trick: Use 'enable-mfa-device' with two codes to activate MFA [OK]
Common Mistakes:
MISTAKES
  • Using wrong command names
  • Missing required parameters
  • Using single authentication code

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes