A web application uses an HTTP API behind CloudFront. Which method is the best way to prevent clients from bypassing WAF protections by calling the API origin directly?
Answer
Restrict origin access using CloudFront origin access controls and allow the origin only from CloudFront
Explanation
Origin access controls ensure the origin is reachable only through CloudFront. This prevents direct-to-origin bypass of WAF logic.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
You need to enforce strong security controls on EBS volumes created by developers. Which combination of AWS features most effectively ensures encryption and standardization?
View question →
You are designing a secure IAM model for multi-account administration. Which statement is most accurate?
View question →
passage
View question →
A security team wants to detect suspicious behavior across accounts and regions with minimal false positives. Which AWS service capability is most appropriate?
View question →
A company uses VPC endpoints to access S3 from private subnets. Which configuration most directly reduces exposure while still allowing access?
View question →
In an AWS environment, you want to enable auditability for sensitive actions without granting overly broad permissions. Which approach best aligns with AWS Security Specialty best practices?
View question →