passdrill
AWS SAA-C03 · IAM & Security · Card 001/014 easy

A developer's IAM user has two identity-based policies attached. One policy allows s3:GetObject on a specific bucket; the other explicitly denies s3:GetObject on that same bucket. No service control policy, permissions boundary, or resource-based policy is involved. When the developer tries to read an object from that bucket, what happens?

  1. The allow policy wins because it was attached to the user first
  2. The request is denied, because an explicit Deny in any applicable policy always overrides an Allow
  3. AWS grants the request because at least one policy contains an Allow statement for the action
  4. The IAM console prompts the developer to pick which of the two policies should apply
Next card → Shuffle