SAP-C02 practice question 7 of 35

An education company is running a web application used by college students around the world. The application runs in an Amazon Elastic Container…

Full set: 689 questions

Domain Continuous Improvement for Existing Solutions

An education company is running a web application used by college students around the world. The application runs in an Amazon Elastic Container Service (Amazon ECS) cluster in an Auto Scaling group behind an Application Load Balancer (ALB). A system administrator detected a weekly spike in the number of failed logic attempts. Which overwhelm the application’s authentication service. All the failed login attempts originate from about 500 different IP addresses that change each week. A solutions architect must prevent the failed login attempts from overwhelming the authentication service. Which solution meets these requirements with the MOST operational efficiency?
Answer options
A: Use AWS Firewall Manager to create a security group and security group policy to deny access from the IP addresses.
B: Create an AWS WAF web ACL with a rate-based rule, and set the rule action to Block. Connect the web ACL to the ALB. Correct answer
C: Use AWS Firewall Manager to create a security group and security group policy to allow access only to specific CIDR ranges.
D: Create an AWS WAF web ACL with an IP set match rule, and set the rule action to Block. Connect the web ACL to the ALB.
Correct Answer:
B. Create an AWS WAF web ACL with a rate-based rule, and set the rule action to Block. Connect the web ACL to the ALB.
Explanation

The problem describes a brute-force login attack characterized by a high volume of requests ("spike") from a large, rotating set of IP addresses. The most operationally efficient solution is an automated one that does not require manual intervention. An AWS WAF rate-based rule automatically mitigates such attacks by tracking the rate of requests from individual source IP addresses. When an IP exceeds a configured threshold within a 5-minute period, WAF automatically blocks it. This directly addresses the "spike" from numerous IPs without needing to know the specific addresses in advance, making it the most efficient solution.

Why Incorrect

A. Using a security group to deny specific IPs is operationally inefficient because the list of 500 source IPs changes weekly, requiring constant manual identification and updates.
C. Allowing access only from specific CIDR ranges is not a viable solution for a global application, as it would block legitimate students from unlisted locations.
D. An AWS WAF IP set match rule requires a manually defined list of IP addresses. This is not operationally efficient as the malicious IPs change weekly, necessitating frequent manual updates.

References

1. AWS WAF Developer Guide, "Rate-based rule statement": This document states, "A rate-based rule tracks the rate of requests for each originating IP address... If an IP address breaches the limit, the rule action is applied to that IP address." This directly supports the automated, efficient nature of the solution in option B for handling brute-force attempts.

2. AWS WAF Developer Guide, "How AWS WAF works": This guide explains that you can "associate a web ACL with one or more AWS resources," including an Application Load Balancer. This confirms the integration described in the question.

3. AWS WAF Developer Guide, "IP set match rule statement": This document describes IP set match rules as checking "if the IP address of a web request is in a set of IP addresses and address ranges that you specify." This highlights the manual configuration required, making option D less efficient than option B.

4. Amazon VPC User Guide, "Security groups for your VPC": This guide details that security groups act as a firewall for associated instances, controlling inbound and outbound traffic at the instance level. While powerful, they are less suited for application-layer threats and less efficient for managing large, dynamic IP blocklists compared to AWS WAF.

Scroll to Top