AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 179

A company needs to ensure that flow logs remain configured for all existing and new VPCs in its AWS account. The company uses an AWS CloudFormation stack to manage its VPCs. The company needs a solution that will work for any VPCs that any IAM user creates.

Which solution will meet these requirements?

Answer options

Correct answer: C

Explanation

The correct answer is C because enabling AWS Config with a rule for VPC flow logs allows for continuous compliance checking and automatic remediation, ensuring that any VPC created will have flow logs enabled. Options A and B do not provide a solution that applies universally to all IAM users creating VPCs, while D restricts API calls but does not ensure flow logs are enabled for new VPCs.