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:
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.
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.
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
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
Master "Identity and Access Management" in AWS
9 interactive learning modes - each teaches the same concept differently