Bird
0
0

A user tries to enable MFA with this command but gets an error:

medium📝 Debug Q14 of 15
AWS - Identity and Access Management
A user tries to enable MFA with this command but gets an error:
aws iam enable-mfa-device --user-name carol --serial-number arn:aws:iam::123456789012:mfa/carol --authentication-code1 123456
What is the most likely cause of the error?
AOnly one authentication code was provided instead of two
BThe serial number ARN is incorrect format
CThe user name 'carol' does not exist
DThe command should use 'create-mfa-device' instead
Step-by-Step Solution
Solution:
  1. Step 1: Review command requirements

    The enable-mfa-device command requires two consecutive authentication codes to verify the MFA device setup.
  2. Step 2: Identify missing parameter

    The command only provides one authentication code (authentication-code1) and misses the second (authentication-code2), causing the error.
  3. Final Answer:

    Only one authentication code was provided instead of two -> Option A
  4. Quick Check:

    Enable MFA needs two codes, missing one causes error [OK]
Quick Trick: Enable MFA requires two codes, not one [OK]
Common Mistakes:
MISTAKES
  • Providing only one authentication code
  • Assuming ARN format error without checking codes
  • Confusing enable with create commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes