AWS WAF
Filters HTTP(S) requests to protected web resources using rules you define.
Official AWS Reference https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html ↗// DECISION LOGIC MATRIX
When to Choose
You block SQL injection, XSS, bots, or rate-limit in front of CloudFront, ALB, API Gateway, or AppSync.
When to Avoid
The attack is a Layer 3/4 flood, or the traffic is not HTTP.
// EXAM TRAPS & SIGNAL KEYWORDS
// OFFICIAL AWS REFERENCE
"AWS WAF is a web application firewall that monitors HTTP(S) requests to protected resources and returns the content, HTTP 403, or a custom response."
- Protected resource types: CloudFront distribution, API Gateway REST API, Application Load Balancer, AppSync GraphQL API, Cognito user pool, App Runner service, Bedrock AgentCore Gateway, Verified Access instance, AWS Amplify.
- No direct attachment to EC2 or an NLB. ECS is protected via a WAF-enabled Application Load Balancer.
// AWS WAF TAKEAWAYS
Role: Filters HTTP(S) requests to protected web resources using rules you define.
Choose: You block SQL injection, XSS, bots, or rate-limit in front of CloudFront, ALB, API Gateway, or AppSync.
Avoid: The attack is a Layer 3/4 flood, or the traffic is not HTTP.
Trap: Watch for exam signals like UDP, Network Load Balancer, direct EC2 attachment.
Fact: Protected resource types: CloudFront distribution, API Gateway REST API, Application Load Balancer, AppSync GraphQL API, Cognito user pool, App Runner service, Bedrock AgentCore Gateway, Verified Access instance, AWS Amplify.
Fact: No direct attachment to EC2 or an NLB. ECS is protected via a WAF-enabled Application Load Balancer.
// PRACTICE QUESTIONS
Ready to test your AWS WAF knowledge?
25 practice questions cover AWS WAF.