AWS Certified Solutions Architect – Associate (SAA-C02) — Question 424

A company operates a two-tier application for image processing. The application uses two Availability Zones, each with one public subnet and one private subnet.
An Application Load Balancer (ALB) for the web tier uses the public subnets. Amazon EC2 instances for the application tier use the private subnets.
Users report that the application is running more slowly than expected. A security audit of the web server log files shows that the application is receiving millions of illegitimate requests from a small number of IP addresses. A solutions architect needs to resolve the immediate performance problem while the company investigates a more permanent solution.
What should the solutions architect recommend to meet this requirement?

Answer options

Correct answer: B

Explanation

Security Groups are stateful and only support allow rules, meaning they cannot be used to explicitly deny specific IP addresses, which rules out options A and C. Network ACLs (NACLs) support both allow and deny rules, making them the correct tool for blocking specific IPs. Applying the deny rule to the web tier subnets (Option B) blocks the malicious traffic at the network boundary before it can reach and overwhelm the Application Load Balancer.