AWS Certified DevOps Engineer – Professional — Question 109

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 answer because it combines a policy to prevent developers from associating Elastic IP addresses with a monitoring mechanism to alert the security team when a violation occurs. Options A and C involve checking for associations after they happen, which does not prevent the issue. Option D focuses on IAM roles rather than directly denying permissions to the developers, making it less effective for this specific requirement.