A company hosts an API on Amazon EC2 instances behind an Application Load Balancer (ALB), which is protected by an AWS WAF Web ACL. A SysOps administrator notices that legitimate API clients receive HTTP 403 Forbidden responses when uploading payload files larger than . The AWS WAF logs indicate that these requests are blocked by a custom rule designed to inspect the request body for SQL injection (SQLi) attacks. The administrator needs to ensure that clients can upload large payloads while maintaining SQLi threat protection on the inspectable portion of the request body. Which configuration change should the administrator implement to meet these requirements?
- ACreate an outbound Network ACL rule on the application subnets that allows ephemeral port traffic for payloads exceeding .
- Modify the custom SQLi rule and set the request body oversize handling setting to Continue.Answer
- CIncrease the CloudWatch metric resolution to detailed monitoring (1-minute intervals) for the ALB to handle larger request streams.
- DConfigure a Route 53 CNAME record pointing to an S3 bucket to offload the large files before they reach the ALB.
Answer
Modify the custom SQLi rule and set the request body oversize handling setting to Continue.
Setting the request body oversize handling to 'Continue' allows AWS WAF to inspect the request up to the maximum inspectable size (which is for Application Load Balancers) and evaluate it against the rule. The rest of the payload is ignored by this specific rule, but the request itself is not automatically blocked, allowing legitimate large uploads to proceed.
Step-by-Step Solution
Key Concept
AWS WAF Body Inspection Limits and Oversize Handling
Estimated Time:1m 30s