Skip to Content

ANS-C01: Analyzing AWS WAF Attacks with Amazon Athena using Kinesis Data Firehose integration

Learn how to set up AWS WAF to deliver logs to S3 via Firehose for querying threat patterns from application attacks with Athena for deeper security insights.

Table of Contents

Question

A company hosts a web application that runs on a fleet of Amazon EC2 instances behind an Application Load Balancer (ALB). The instances are in an Auto Scaling group. The company uses an Amazon CloudFront distribution with the ALB as an origin.

The application recently experienced an attack. In response, the company associated an AWS WAF web ACL with the CloudFront distribution. The company needs to use Amazon Athena to analyze application attacks that AWS WAF detects.

Which solution will meet this requirement?

A. Configure the ALB and the EC2 instance subnets to produce VPC flow logs. Configure the VPC flow logs to deliver logs to an Amazon S3 bucket for log analysis.
B. Create a trail in AWS CloudTrail to capture data events. Configure the trail to deliver logs to an Amazon S3 bucket for log analysis.
C. Configure the AWS WAF web ACL to deliver logs to an Amazon Kinesis Data Firehose delivery stream. Configure the stream to deliver the data to an Amazon S3 bucket for log analysis.
D. Turn on access logging for the ALB. Configure the access logs to deliver the logs to an Amazon S3 bucket for log analysis.

Answer

C. Configure the AWS WAF web ACL to deliver logs to an Amazon Kinesis Data Firehose delivery stream. Configure the stream to deliver the data to an Amazon S3 bucket for log analysis.

Explanation

This allows Athena to directly query the logs delivered from WAF to S3 through Firehose.

The other options would not contain the relevant WAF logs:

A/D – Contain ALB/instance logs but not WAF logs
B – CloudTrail contains API events, not WAF attack logs

Only configuring WAF to deliver logs through Firehose to S3 provides the filtered logs in the necessary format for Athena analysis, meeting the objective.

AWS Certified Advanced Networking – Specialty ANS-C01 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the AWS Certified Advanced Networking – Specialty ANS-C01 exam and earn AWS Certified Advanced Networking – Specialty ANS-C01 certification.