Bird
0
0

Given this bucket policy snippet, what is the effect?

medium📝 Predict Output Q4 of 15
AWS - S3 Fundamentals
Given this bucket policy snippet, what is the effect?
{
  "Effect": "Deny",
  "Principal": "*",
  "Action": "s3:DeleteObject",
  "Resource": "arn:aws:s3:::mybucket/*"
}
AOnly the bucket owner can delete objects
BEveryone is denied permission to delete objects in the bucket
CEveryone is allowed to delete objects in the bucket
DNo effect because the policy is incomplete
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the Effect and Principal

    Effect is "Deny" and Principal is "*" meaning everyone is denied.
  2. Step 2: Understand the Action and Resource

    Action is "s3:DeleteObject" on all objects in the bucket, so delete is denied for all.
  3. Final Answer:

    Everyone is denied permission to delete objects in the bucket -> Option B
  4. Quick Check:

    Deny + Principal * + DeleteObject = Deny all deletes [OK]
Quick Trick: "Deny" always overrides other permissions for specified actions [OK]
Common Mistakes:
  • Thinking Deny means allow
  • Assuming only owner denied
  • Ignoring the wildcard Principal

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes