Bird
0
0

You want to enforce MFA for all IAM users before they can delete any S3 bucket. Which policy condition is best to achieve this?

hard📝 Application Q8 of 15
AWS - Identity and Access Management
You want to enforce MFA for all IAM users before they can delete any S3 bucket. Which policy condition is best to achieve this?
A"Condition": {"StringEquals": {"aws:RequestedRegion": "us-east-1"}}
B"Condition": {"IpAddress": {"aws:SourceIp": "192.168.0.1/32"}}
C"Condition": {"Bool": {"aws:MultiFactorAuthPresent": "true"}}
D"Condition": {"Bool": {"aws:MultiFactorAuthPresent": "false"}}
Step-by-Step Solution
Solution:
  1. Step 1: Identify MFA enforcement condition

    The condition 'aws:MultiFactorAuthPresent' set to true requires MFA authentication.
  2. Step 2: Apply condition to delete actions

    Using this condition in a policy restricts delete actions unless MFA is used.
  3. Final Answer:

    Condition requiring MFA present (true) -> Option C
  4. Quick Check:

    MFA required = B [OK]
Quick Trick: Use aws:MultiFactorAuthPresent = true to enforce MFA [OK]
Common Mistakes:
  • Using IP address or region conditions incorrectly
  • Setting MFA condition to false
  • Ignoring MFA enforcement in policies

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes