AWS WAF Deployment Targets: ALB vs Other Services
Short answer
B An Application Load Balancer is a supported target for deploying AWS WAF rules to filter HTTP/HTTPS traffic.
Question
Key Takeaways
Tests knowledge of AWS WAF supported targets (ALB, CloudFront, API Gateway) versus services that do not natively integrate with WAF at the load balancer level.
Identifies Application Load Balancer as a valid AWS WAF integration point for filtering HTTP traffic, distinguishing it from non-compatible services like EC2 or NLB.
Common mistake: Choosing Amazon EC2 (A) by assuming security rules are applied directly to compute instances rather than through integrated network or web layers.
Expert Analysis
Why the Answer Is Correct
AWS WAF is designed to filter HTTP and HTTPS traffic, which operates at Layer 7 of the OSI model. Among the provided options, the Application Load Balancer (ALB) is a native target for AWS WAF. You can associate an AWS WAF web ACL directly with an ALB to protect your web applications from common exploits like SQL injection or cross-site scripting. This integration allows WAF to inspect and filter traffic before it reaches the underlying EC2 instances.
Why the Other Options Are Wrong
Amazon EC2 (A) is a compute service; while you can install host-based firewalls, EC2 itself is not a direct deployment target for AWS WAF rules in the same way ALB, CloudFront, or API Gateway are. AWS Trusted Advisor (C) is a tool for best practices and cost optimization, not a network security component. Network Load Balancer (D) operates at Layer 4 (TCP/UDP) and does not support AWS WAF because WAF functions at Layer 7 (HTTP/HTTPS).
Community Comment Notes
The community consensus strongly supports B, with multiple users noting that WAF integrates with "Application Load Balancer, API Gateway, CloudFront" as per official documentation. One commenter clarified that WAF handles HTTP (Layer 7) while NLB handles TCP (Layer 3/4), reinforcing why D is incorrect. Another user questioned if EC2 could be used, but comments correctly pointed out that ALB is the specific infrastructure component listed here that supports WAF association.
Official Reference
https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-cloudfront-regions.html
This link opens the official vendor documentation in a new tab.
Exam Strategy
When asked about AWS WAF deployment, immediately look for Layer 7 services: CloudFront, ALB, API Gateway, and AppSync. If these aren't options, consider that WAF cannot be deployed on Layer 4-only services like NLB or bare EC2 instances without additional proxies.
Frequently Asked Questions
Can I deploy AWS WAF directly on an EC2 instance?
Why doesn't Network Load Balancer support AWS WAF?
Community Votes
100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 7 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 7
-
CTao 👍 2 Answered BDeploy on Application Load Balancer, API Gateway, CloudFront
-
Supercell 👍 1 Answered BAccording to Google Gemini AI : AWS WAF rules can be deployed through web application firewalls. Of the options provided, only Application Load Balancers integrate with AWS WAF. So the answer is: B. Application Load Balancer
-
Nikmah 👍 1 Answered BAWS WAF – Web Application Firewall • Protects your web applications from common web exploits (Layer 7) • Layer 7 is HTTP (vs Layer 4 is TCP) • Deploy on Application Load Balancer, API Gateway, CloudFront
-
ShaiTay 👍 1 Answered BB. Application Load Balancer- AWS WAF can be deployed to filter HTTP(S) traffic before it reaches your web application.
-
KhanhNT 👍 1 Answered BAWS WAF can be deployed on Amazon CloudFront, the Application Load Balancer (ALB), Amazon API Gateway, and AWS AppSync.
Show 2 more comments
-
Zerro 👍 1Why is it B, can't the rules directly be deployed in EC2, hence the correct answer being A???
-
123asdzxcxza 👍 1 Answered BWAF is HTTP, level 7; Network load balance is TCP, level 3
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All CLF-C02 Questions
Access 120 questions with complete answers and detailed explanations.
View Full CLF-C02 Practice Test →