Protect a public endpoint and its origin
A distribution fronts a private S3 bucket. Requests through CloudFront work. The requirement is that viewers cannot fetch the same objects directly from S3. Which boundary enforces it?
Protect a public endpoint and its origin
Choose protection by threat type, restrict origin access and select or integrate managed request-filtering rules.
Work through the decision
A distribution fronts a private S3 bucket. Requests through CloudFront work. The requirement is that viewers cannot fetch the same objects directly from S3. Which boundary enforces it?
Check your reasoning
Keep the bucket private, configure CloudFront Origin Access Control and authorize the intended distribution in the bucket policy. A web ACL at the distribution inspects requests that pass through it. The origin access policy controls who can read directly.
Interpret the evidence
- CloudFront Origin Access Control
- Signs supported origin requests. Restrict the bucket policy to the intended distribution and service principal.
- AWS WAF web ACL
- Applies request-level rules to supported resources. Count mode and sampled requests help assess false positives before blocking.
- AWS Shield Advanced
- Adds managed DDoS protection capabilities for enrolled resources with specialized response features and visibility.
- Firewall Manager
- Distributes supported security policies across accounts and tracks compliance from a delegated administrator.
Practice the guide skills
- Select a control for application request filtering and a separate control for volumetric availability protection. Document which layer each covers. Watch 1:04:53
- Draw the approved CloudFront-to-S3 path and specify how the bucket policy restricts the signed origin principal to the intended distribution. Watch 1:11:50
- Put a candidate managed WAF rule in count mode on a representative request set. Review valid traffic that would be affected before deciding where to block. Watch 1:05:29
- Compare using managed marketplace rule groups, managed DDoS response and centralized policy distribution. Assign owners for updates, exclusions and ongoing review. Watch 1:08:45
Official objectives for this lesson
Decide whether a rule is ready to block
An approved WAF rule runs in count mode on a representative hour of requests.
Matched requests reviewed 100
Outside the intended policy 88
Legitimate partner callbacks 12
Blocking the rule as written would affect those 12 valid callbacks. Identify the distinguishing attributes, narrow the rule or add a carefully scoped exception, then repeat the count-mode review. Keep the origin’s admission controls in place.
Related lesson · Apply and verify data protection controls
Protect a public endpoint and its origin quiz
Answer 3 questions. Check each answer for an explanation.