Quick Decision Rule: When Private S3 static assets must only be served through Amazon CloudFront, never directly from S3 URLs, choose Keep S3 Block Public Access enabled and restrict bucket policy to CloudFront Origin Access Control (OAC).
| Trigger Condition | Private S3 static assets must only be served through Amazon CloudFront, never directly from S3 URLs |
|---|---|
| Recommended Choice | Keep S3 Block Public Access enabled and restrict bucket policy to CloudFront Origin Access Control (OAC) |
| Classic Trap | Granting s3:GetObject to Principal "*" exposes the bucket directly and bypasses CloudFront WAF and geo restrictions. |
| Verification | Audited on 2026-11-23 · Guide v1.1 (2026-10-29) |
30-SECOND DECISION TRAP CHECK · SECURITY
Static reports in S3 must be delivered globally through CloudFront while preventing anyone from accessing S3 bucket URLs directly. Which TWO steps satisfy this requirement? (Select TWO)
Keeping S3 Block Public Access on and restricting the bucket policy to CloudFront OAC ensures traffic only flows through CloudFront.
Trap: Never open an S3 bucket publicly when CloudFront OAC can enforce private origin access.