AWS WAF Integration with ALB and Auto Scaling
Short answer
A Create an Auto Scaling group across two AZs, configure an ALB as the target, and connect WAF to the ALB.
Question
Key Takeaways
The core trap is attempting to attach AWS WAF directly to an Auto Scaling Group or EC2 instances; WAF must be associated with the ALB to effectively filter incoming web traffic before it reaches the backend resources.
This question tests designing a highly available architecture using AWS WAF, Application Load Balancer (ALB), and Auto Scaling Groups. The correct solution ensures availability across multiple Availability Zones while correctly attaching WAF to the ALB for traffic filtering.
Common mistake: Option D is the most common mistake because it attempts to connect WAF directly to the Auto Scaling Group. This is technically invalid as WAF does not support direct association with ASGs, leading to architectural failure.
Expert Analysis
Why the Answer Is Correct
Option A is the only valid solution that meets both availability and security requirements. By placing EC2 instances in an Auto Scaling Group across two Availability Zones, the application achieves high availability and fault tolerance. Connecting the Auto Scaling Group to an Application Load Balancer (ALB) distributes traffic evenly, and associating AWS WAF with the ALB ensures that malicious requests are filtered at the edge before reaching the compute layer.
Why the Other Options Are Wrong
Option B is incorrect because placement groups are designed for low-latency network performance, not availability, and WAF cannot be attached to a placement group. Option C lacks scalability and elasticity because it uses fixed EC2 instances without an Auto Scaling Group, failing to dynamically handle load changes. Option D is invalid because AWS WAF cannot be directly connected to an Auto Scaling Group; it must be attached to a supported resource like an ALB, API Gateway, or CloudFront distribution.
Community Comment Notes
Community consensus strongly supports Option A, with multiple users noting that WAF must manage incoming traffic at the ALB level. As one commenter noted, "WAF manage incoming traffic should be at ALB, because auto scaling group is behind ALB then it defeats purpose of WAF." Another user clarified that "Not D because AWS WAF cannot be directly connected to an Auto Scaling Group," reinforcing the technical limitation of direct ASG attachment.
Exam Strategy
When designing secure architectures, always place security controls like WAF at the entry point of the application, typically the Load Balancer. Ensure you distinguish between availability features (Multi-AZ, Auto Scaling) and network performance features (Placement Groups) to select the right combination for the requirement.
Frequently Asked Questions
Can AWS WAF be attached directly to an Auto Scaling Group?
Why is a Placement Group not suitable for this availability scenario?
Community Votes
100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 5 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 5
-
trinh_le 👍 6 Answered ANot D because AWS WAF cannot be directly connected to an Auto Scaling Group, it should be associated with the ALB which managing the incoming web traffic
-
Scheldon 👍 5 Answered AAnswerA WAF > ALB > AutoScalingGroup(MultiAZ EC2 Instances) Looks good
-
muhammadahmer36 👍 2 Answered AA. Create an Auto Scaling group that contains multiple Amazon EC2 instances that host the application across two Availability Zones. Configure an Application Load Balancer (ALB) and set the Auto Scaling group as the target. Connect a WAF to the ALB.
-
mk168898 👍 2WAF manage incoming traffic should be at ALB, because auto scaling group is behind ALB then it defeats purpose of WAF
-
sandordini 👍 3A: EC2 - MultiAZ > ALB > WAF
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SAA-C03 Questions
Access 120 questions with complete answers and detailed explanations.
View Full SAA-C03 Practice Test →