AWS Certified DevOps Engineer – Professional — Question 195

A company's application development team uses Linux-based Amazon EC2 instances as bastion hosts. Inbound SSH access to the bastion hosts is restricted to specific IP addresses, as defined in the associated security groups. The company's security team wants to receive a notification if the security group rules are modified to allow SSH access from any IP address.
What should a DevOps engineer do to meet this requirement?

Answer options

Correct answer: C

Explanation

The correct answer is C because the AWS Config rule specifically checks for compliance with the security group's SSH access restrictions and can trigger notifications if rules are modified. Option A does not provide proactive compliance monitoring but instead relies on event logging. Option B involves GuardDuty, which is focused on threat detection rather than compliance monitoring. Option D uses Amazon Inspector, which is not designed for monitoring security group rule changes.