nerdexam
Amazon

DOP-C02 · Question #19

A company has deployed an application in a production VPC in a single AWS account. The application is popular and is experiencing heavy usage. The company's security team wants to add additional…

The correct answer is A. Create a log group in Amazon CloudWatch Logs. Configure the VPC flow log to capture accepted. To meet the requirements most cost-effectively, the DevOps engineer should create a log group in Amazon CloudWatch Logs and configure the VPC flow log to capture accepted traffic and to send the data to the log group. Then, create an Amazon CloudWatch metric filter for IP…

Submitted by manish99· Mar 6, 2026Monitoring & Logging

Question

A company has deployed an application in a production VPC in a single AWS account. The application is popular and is experiencing heavy usage. The company's security team wants to add additional security, such as AWS WAF, to the application deployment. However, the application's product manager is concerned about cost and does not want to approve the change unless the security team can prove that additional security is necessary. The security team believes that some of the application's demand might come from users that have IP addresses that are on a deny list. The security team provides the deny list to a DevOps engineer. If any of the IP addresses on the deny list access the application, the security team wants to receive automated notification in near real time so that the security team can document that the application needs additional security. The DevOps engineer creates a VPC flow log for the production VPC. Which set of additional steps should the DevOps engineer take to meet these requirements MOST cost-effectively?

Options

  • ACreate a log group in Amazon CloudWatch Logs. Configure the VPC flow log to capture accepted
  • BCreate an Amazon S3 bucket for log files. Configure the VPC flow log to capture all traffic and to
  • CCreate an Amazon S3 bucket for log files. Configure the VPC flow log to capture accepted traffic
  • DCreate a log group in Amazon CloudWatch Logs. Create an Amazon S3 bucket to hold query

How the community answered

(37 responses)
  • A
    73% (27)
  • B
    14% (5)
  • C
    8% (3)
  • D
    5% (2)

Explanation

To meet the requirements most cost-effectively, the DevOps engineer should create a log group in Amazon CloudWatch Logs and configure the VPC flow log to capture accepted traffic and to send the data to the log group. Then, create an Amazon CloudWatch metric filter for IP addresses on the deny list and create a CloudWatch alarm with the metric filter as input. Set the period to 5 minutes and the datapoints to alarm to 1. Finally, use an Amazon Simple Notification Service (Amazon SNS) topic to send alarm notices to the security team. Option A is the correct answer. It provides a cost-effective solution that meets the requirements. The CloudWatch alarm notifies the security team in near real-time when traffic from an IP address on the deny list is detected. This will help the security team document that the application needs additional security. This solution only requires the use of AWS services that the company is already using, and does not require any additional services or tools.

Topics

#VPC Flow Logs#CloudWatch Logs#Security Auditing#Traffic Analysis

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice