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

A security team is concerned that a developer can unintentionally attach an Elastic IP address to an Amazon EC2 instance in production. No developer should be allowed to attach an Elastic IP address to an instance. The security team must be notified if any production server has an Elastic IP address at any time.

How can this task be automated?

Answer options

Correct answer: B

Explanation

Option B is the correct choice as it directly addresses both the permission denial for developers and the monitoring for Elastic IP associations through a custom AWS Config rule. Option A fails because it relies on querying logs rather than preventing the action upfront. Option C does not implement a proactive policy to deny permissions, and Option D does not address the immediate need to prevent developers from associating Elastic IPs.