AWS Certified Security – Specialty — Question 331

A company has a requirement that no Amazon EC2 security group can allow SSH access from the CIDR block 0.0.0.0/0. The company wants to monitor compliance with this requirement at all times and wants to receive a near-real-time notification if any security group is noncompliant.

A security engineer has configured AWS Config and will use the restricted-ssh managed rule to monitor the security groups.

What should the security engineer do next to meet these requirements?

Answer options

Correct answer: B

Explanation

AWS Config natively streams compliance state changes to Amazon EventBridge (formerly CloudWatch Events) in near-real-time. Using an EventBridge rule that filters for compliance changes on the restricted-ssh rule and targets an Amazon SNS topic is the most direct, low-latency, and AWS-recommended architecture for this scenario. Other methods involving S3 bucket polling, log filters, or direct CloudWatch metrics are either not supported natively, too complex, or too slow.