Quick Decision Rule: When An e-commerce API on CloudFront/ALB faces SQL injection, XSS payloads, and abusive per-IP HTTP request spikes, choose AWS WAF (Layer 7 HTTP inspection, managed SQLi/XSS rules, rate-based blocking); choose Shield Advanced for 24/7 SRT DDoS response and cost protection.
| Trigger Condition | An e-commerce API on CloudFront/ALB faces SQL injection, XSS payloads, and abusive per-IP HTTP request spikes |
|---|---|
| Recommended Choice | AWS WAF (Layer 7 HTTP inspection, managed SQLi/XSS rules, rate-based blocking); choose Shield Advanced for 24/7 SRT DDoS response and cost protection |
| Classic Trap | Shield Standard automatically mitigates Layer 3/4 volumetric DDoS for free, but cannot inspect HTTP bodies for SQL injection or block application-layer bots. |
| Verification | Audited on 2026-11-23 · Guide v1.1 (2026-10-29) |
30-SECOND DECISION TRAP CHECK · SECURITY
A public REST API behind an Application Load Balancer is hit by SQL injection probes and a single botnet IP sending 5,000 `POST /login` requests per minute. Which AWS service blocks both with minimal code changes?
AWS WAF inspects Layer 7 HTTP requests for SQLi/XSS signatures and enforces automatic per-IP rate-based blocking.
Trap: NACLs and Shield Standard operate at Layer 3/4 and cannot inspect HTTP request bodies for SQL injection.