Bird
0
0

You wrote this bucket policy but users still cannot upload files:

medium📝 Debug Q14 of 15
AWS - S3 Fundamentals
You wrote this bucket policy but users still cannot upload files:
{
  "Effect": "Allow",
  "Principal": "*",
  "Action": "s3:PutObject",
  "Resource": "arn:aws:s3:::example-bucket"
}

What is the problem?
AThe Resource ARN is missing the /* to specify objects
BThe Action s3:PutObject is invalid
CThe Principal cannot be * for uploads
DEffect should be Deny to allow uploads
Step-by-Step Solution
Solution:
  1. Step 1: Check the Resource ARN format

    To allow object uploads, Resource must include "/*" to specify objects inside the bucket.
  2. Step 2: Validate Action and Principal

    s3:PutObject is valid, Principal "*" is allowed, and Effect "Allow" is correct.
  3. Final Answer:

    The Resource ARN is missing the /* to specify objects -> Option A
  4. Quick Check:

    PutObject needs resource with /* [OK]
Quick Trick: Resource must end with /* for object actions [OK]
Common Mistakes:
  • Using bucket ARN without /* for object actions
  • Thinking Principal * is disallowed
  • Confusing Allow and Deny effects

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes