CloudFront returns 403 from an S3 origin. List the checks.
IntermediateScenarioRoute 53, CloudFront and Messaging
Answer
Situation read → It's usually OAC or bucket policy, or a missing object.
What I'd do →
- Verify the bucket policy allows
cloudfront.amazonaws.comwithAWS:SourceArnequal to the distribution ARN - Check the origin uses OAC and the correct bucket regional domain
- Check the object key exists, since missing keys return 403 without
s3:ListBucket - Check SSE-KMS key policy allows CloudFront
- Inspect with
curl -I https://d111.cloudfront.net/index.html
Why → S3 hides existence of keys from principals lacking list permission, producing 403 instead of 404.
Interview tip → KMS-encrypted origins need extra OAC key policy.
More on Route 53, CloudFront and Messaging
You want users routed to the nearest healthy region. Which Route 53 policy do you use?BeginnerPrimary region fails; how do you fail over DNS in a controlled way?IntermediateWhat is the difference between a CNAME and an alias record in Route 53?BeginnerRoll out a new version to 5 percent of users using DNS. How?IntermediateCloudFront serves stale content after you deployed a new JS bundle. How do you handle cache correctly?IntermediateProtect an origin so that only CloudFront can reach your ALB.Advanced