Bird
0
0

Given this bucket policy snippet for an S3 static website:

medium📝 Predict Output Q13 of 15
AWS - S3 Fundamentals
Given this bucket policy snippet for an S3 static website:
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Principal": "*",
    "Action": "s3:GetObject",
    "Resource": "arn:aws:s3:::example-bucket/*"
  }]
}
What is the effect of this policy?
AAllows only authenticated users to write to the bucket
BBlocks all access to the bucket
CAllows anyone to read objects in the bucket
DAllows anyone to delete objects in the bucket
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the policy statements

    The policy allows "Effect": "Allow" for "Principal": "*" which means everyone, on the action "s3:GetObject" for all objects in the bucket.
  2. Step 2: Understand the permission granted

    This means anyone can read (get) objects from the bucket, which is needed for public website hosting.
  3. Final Answer:

    Allows anyone to read objects in the bucket -> Option C
  4. Quick Check:

    Principal * + GetObject = public read [OK]
Quick Trick: Principal * with GetObject means public read access [OK]
Common Mistakes:
MISTAKES
  • Thinking it blocks access instead of allowing
  • Confusing GetObject with write or delete permissions
  • Assuming only authenticated users have access

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes