A digital media platform distributes content globally via an Amazon CloudFront distribution. A SysOps administrator must defend the platform against application-layer DDoS attacks using AWS WAF. A partner organization crawls the platform for metadata updates from a known set of static IP addresses.
The administrator must implement a rate limit of requests per 5 minutes for all incoming client connections, while ensuring the partner's crawler is not affected by this limit and remains subject to all other security rules in the Web ACL. Additionally, the administrator must minimize the storage costs and ingestion fees of WAF logs in Amazon S3 by only recording traffic that is blocked by the Web ACL.
Which two actions must the administrator take to meet these requirements?
- Create an IP set containing the partner's IP addresses. In the rate-based rule configuration, set the scope of inspection to evaluate only requests that do not match the IP set.Cevap
- Enable WAF logging with Amazon Kinesis Data Firehose as the destination. Configure WAF log filtering with a rule action of Keep when the terminating rule action is Block.Cevap
- CCreate an IP set containing the partner's IP addresses. Create a rule with an Allow action and a higher priority than the rate-based rule, and configure it to match the partner's IP set.
- DEnable WAF logging to an Amazon S3 bucket, and configure an Amazon S3 lifecycle policy to transition all log files directly to Amazon S3 Glacier Deep Archive after 1 day.
- EEnable WAF logging with Amazon CloudWatch Logs as the destination. Create a metric filter on the log group to capture only Block actions, and set the log group retention period to 1 day.