Bird
0
0

Given this AWS CLI command sequence, what will be the output status of the MFA device for user bob?

medium📝 service behavior Q13 of 15
AWS - Identity and Access Management
Given this AWS CLI command sequence, what will be the output status of the MFA device for user bob?
aws iam create-virtual-mfa-device --virtual-mfa-device-name bob-mfa --outfile /tmp/bob-mfa.png
aws iam enable-mfa-device --user-name bob --serial-number arn:aws:iam::123456789012:mfa/bob-mfa --authentication-code1 123456 --authentication-code2 654321
aws iam list-mfa-devices --user-name bob
AAn error will occur because the authentication codes are missing
BNo MFA devices will be listed for user bob
CThe virtual MFA device will be created but not enabled
DThe MFA device named 'bob-mfa' will be listed as active for user bob
Step-by-Step Solution
Solution:
  1. Step 1: Understand command sequence

    The first command creates a virtual MFA device and outputs a QR code image. The second command enables this MFA device for user bob using two authentication codes. The third command lists all MFA devices for bob.
  2. Step 2: Predict output of list command

    Since the device was created and enabled successfully, the list command will show the 'bob-mfa' device as active for user bob.
  3. Final Answer:

    The MFA device named 'bob-mfa' will be listed as active for user bob -> Option D
  4. Quick Check:

    Created and enabled MFA device appears in list [OK]
Quick Trick: Create then enable MFA device before listing to see it [OK]
Common Mistakes:
  • Assuming device is listed before enabling
  • Thinking missing codes cause error here
  • Confusing creation with enabling steps

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes