A company hosts a corporate website on Amazon EC2 instances behind a Network Load Balancer (NLB). The NLB has one TLS listener. The company wants to use AWS WAF to enhance security for the website. Which solution will meet this requirement?
- AAttach an Elastic IP address to the NLB. Associate an AWS WAF web ACL with the Elastic IP address.
- BReplace the NLB with an Application Load Balancer (ALB). Associate an AWS WAF web ACL with the ALB. (correct answer)
- CAssociate an AWS WAF web ACL with the NLB.
- DAssociate an AWS WAF web ACL with the EC2 instances that are behind the NLB.
Reveal answer & explanationHide answer
The correct answer is B. Option B: Replace the NLB with an Application Load Balancer (ALB). Associate an AWS WAF web ACL with the ALB.
Explanation
An Application Load Balancer distributes HTTP/HTTPS traffic and supports path/host routing. A load balancer distributes traffic across targets in multiple AZs for availability and scale. AWS WAF protects web applications from common exploits and malicious requests.