Topic: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 191

A company uses AWS WAF to protect its cloud infrastructure. A DevOps engineer needs to give an operations team the ability to analyze log messages from AWS WAF. The operations team needs to be able to create alarms for specific patterns in the log output.

Which solution will meet these requirements with the LEAST operational overhead?

A.
Create an Amazon CloudWatch Logs log group. Configure the appropriate AWS WAF web ACL to send log messages to the log group. Instruct the operations team to create CloudWatch metric filters.
B.
Create an Amazon OpenSearch Service cluster and appropriate indexes. Configure an Amazon Kinesis Data Firehose delivery stream to stream log data to the indexes. Use OpenSearch Dashboards to create filters and widgets.
C.
Create an Amazon S3 bucket for the log output. Configure AWS WAF to send log outputs to the S3 bucket. Instruct the operations team to create AWS Lambda functions that detect each desired log message pattern. Configure the Lambda functions to publish to an Amazon Simple Notification Service (Amazon SNS) topic.
D.
Create an Amazon S3 bucket for the log output. Configure AWS WAF to send log outputs to the S3 bucket. Use Amazon Athena to create an external table definition that fits the log message pattern. Instruct the operations team to write SQL queries and to create Amazon CloudWatch metric filters for the Athena queries.

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 191

https://docs.aws.amazon.com/waf/latest/developerguide/logging-management.html

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 191

A & D can work, least operation overheard is A

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 191

LEAST operational overhead = A

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 191

D is correct: We have two tasks: collect log and analyze data. S3 bucket can store log and athena is for log analysis.
A: This options does not mention of log analysis. Additionally, AWS WAF web ACL cannot send log to AWS logs group
B: OpenSearch Service  and  Amazon Kinesis Data Firehose are used for other purposes. They are high-end features and cost a lots.
C: Should not use lambda to analys log

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 191

cloudwatch

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 191

cloudwatch for WAF logging

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 191

https://docs.aws.amazon.com/waf/latest/developerguide/logging.html

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 191

Answer is A based on the following AWS documentation:

https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-creating.html

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 191

A seems to involve the least operational overhead