An internet-facing Application Load Balancer terminates HTTPS and forwards requests to EC2 instances with public IP addresses. The company must block SQL injection attempts and prevent clients from bypassing application inspection; which combination BEST meets these requirements?
Show the answer
Correct answerD. Associate AWS WAF with the load balancer; allow the instance application port only from the load balancer security group.
AWhy not this: GuardDuty detects threats but does not provide inline SQL injection filtering.
BWhy not this: Subnet CIDRs also permit other resources in those subnets to reach the application without passing through WAF.
CWhy not this: Config detects configuration issues; approved clients could still reach the instances without application inspection.
DWhy this is right: WAF provides application-layer inspection, and the security-group reference prevents direct client access to the application port.
AWS WAF inspects HTTP requests for SQL injection, while referencing the load balancer security group restricts application access to traffic from the load balancer. Allowing entire load balancer subnets also trusts other resources in those subnets.