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

A DevOps engineer uses AWS WAF to manage web ACLs across an AWS account. The DevOps engineer must ensure that AWS WAF is enabled for all Application Load Balancers (ALBs) in the account. The DevOps engineer uses an AWS CloudFormation template to deploy an individual ALB and AWS WAF as part of each application stack's deployment process. If AWS WAF is removed from the ALB after the ALB is deployed, AWS WAF must be added to the ALB automatically.

Which solution will meet these requirements with the MOST operational efficiency?

Answer options

Correct answer: A

Explanation

Option A is the most operationally efficient solution because it leverages the native AWS Config managed rule (alb-waf-enabled) and pairs it directly with AWS Systems Manager Automation for automatic, codeless remediation. Options B, C, and D are highly inefficient as they require custom AWS Lambda functions, schedule-based polling, or disruptive actions like completely redeploying the CloudFormation stack.