A SysOps administrator is managing a web application's regional REST API hosted on Amazon API Gateway. During peak traffic hours, the API suffers from performance degradation due to a high volume of HTTP flood requests originating from a distributed set of IP addresses. The administrator needs to configure AWS WAF to mitigate these web-layer DDoS attacks. Additionally, to comply with strict storage cost optimization guidelines, only requests that are actively blocked by AWS WAF rules must be logged.
Which TWO configuration steps must the SysOps administrator implement to meet these requirements? (Select TWO.)
- Add a rate-based rule to the Web ACL that evaluates requests based on the client IP address, and set the rule action to Block.Answer
- Enable logging for the Web ACL and configure a logging filter that specifies a rule action of Block as the logging condition.Answer
- CConfigure a stateless Network ACL rule on the public subnets to block the offending IP addresses.
- DEnable AWS CloudTrail data event logging on the API Gateway and create a CloudWatch log retention policy of 24 hours to automatically purge logs.
- EConfigure the Web ACL to send logs to an Amazon S3 bucket encrypted with an AWS KMS customer managed key, using an IAM user policy to grant write access to AWS WAF.
Answer
The SysOps administrator should add a rate-based rule to the Web ACL to block clients exceeding request thresholds, and enable logging for the Web ACL with a logging filter that only records requests with a Block action.
To mitigate HTTP flood attacks from a distributed set of IP addresses, a rate-based rule should be added to the Web ACL to automatically track request rates and block IPs that exceed the threshold. To optimize storage costs, a logging filter should be set up on the Web ACL to specify that only requests matching the Block action are published to the log destination, dropping all other allowed traffic logs.
Step-by-Step Solution
Key Concept
AWS WAF threat mitigation via rate-based rules combined with logging cost optimization using logging filters.