AWS WAF
Web ACLs, rule types, rate-based rules, managed rule groups and the quotas that matter.
Legacy
Short cheat sheet. The full exam treatment is WAF and Firewall Manager.
WAF filters HTTP and HTTPS requests at layer 7. A web ACL holds ordered rules and a default action. You attach it to CloudFront, an Application Load Balancer, API Gateway, a Cognito user pool, AppSync and other supported front doors.
Rule types
| Rule | Behavior |
|---|---|
| Regular | Match conditions: IP set, geo, headers, URI, body, SQLi, XSS, regex. Action allow, block, count or challenge. |
| Rate-based | Counts requests per aggregation key (IP, header, forwarded IP or custom keys). Acts when the limit is exceeded. Cannot use Allow. |
| Managed rule group | Prebuilt, updated by AWS or Marketplace sellers. |
| Custom rule group | Reusable set you author. |
Rate-based rule details
| Item | Value |
|---|---|
| Evaluation window | 60, 120, 300 or 600 seconds. Default 300. |
| Minimum limit | 10 requests |
| Rate-based rules | 10 per web ACL, 4 per rule group |
| Base cost | 2 WCUs, plus 30 per custom aggregation key |
| Scope-down | Narrows what the rule counts. Required when using the Count all aggregation. |
Quotas
| Item | Value |
|---|---|
| Web ACLs per Region | 100 |
| Max WCUs per web ACL or rule group | 5,000. Above 1,500 WCUs costs extra. |
| Body inspection for ALB and AppSync | 8 KB |
| Body inspection for CloudFront, API Gateway, Cognito, App Runner, Verified Access | 16 KB default, raisable to 64 KB |
| IPs per IP set | 10,000 CIDR entries |
| Requests per second per web ACL | 100,000 default |
Legacy
Older material describes "conditions" combined into rules, which is WAF Classic. Current WAF uses statements inside rules. Its rate-based rule counted every five minutes. Today the window is selectable.
Exam signal
"Block SQL injection and XSS", "limit requests per IP" or "block by country or User-Agent" is WAF. "Automatically deploy a baseline of WAF rules" is the WAF Security Automations solution. Central rollout across accounts uses Firewall Manager.
Exam trap
WAF does not stop volumetric network floods. Pair with Shield. A CloudFront web ACL is global, while a Regional web ACL for ALB lives in the ALB's Region.