A company hosts a web application behind an Application Load Balancer (ALB). A SysOps administrator is tasked with protecting the application from SQL injection and Cross-Site Scripting (XSS) attacks. Which AWS service should the administrator configure to meet this requirement?
- AWS WAFAnswer
- BNetwork Access Control Lists (Network ACLs)
- CAWS Key Management Service (AWS KMS)
- DAWS Systems Manager Run Command
Answer
AWS WAF is the correct service because it inspects HTTP/HTTPS traffic at Layer 7 and can block common web exploits like SQL injection and Cross-Site Scripting (XSS).
The correct service is AWS WAF because it operates at the application layer (Layer 7) and allows administrators to configure web access control lists (Web ACLs) that scan incoming HTTP/HTTPS requests for malicious patterns, including SQL injection and Cross-Site Scripting (XSS). It can be directly associated with resources such as Application Load Balancers, CloudFront, and Amazon API Gateway.
Step-by-Step Solution
Key Concept
AWS WAF (Web Application Firewall) operates at the application layer (Layer 7) to inspect HTTP/HTTPS requests and protect applications from common web exploits like SQL injection (SQLi) and Cross-Site Scripting (XSS).