AWS Certified Security – Specialty (SCS-C02) — Question 211

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

The correct answer is B because it directly utilizes Amazon EventBridge to react to compliance changes, providing timely notifications via Amazon SNS. Option A relies on AWS Lambda and S3, which adds unnecessary complexity and latency. Option C involves CloudWatch Logs and metric filters, which may delay notifications. Option D sets up an alarm but does not react to compliance changes in real-time like option B.