Use an EventBridge rule on the Config compliance-change event to notify an SNS topic
Short answer
B An EventBridge rule on the Config compliance-change event notifies an SNS topic in near real time.
Question
Key Takeaways
AWS Config emits compliance-change events to EventBridge; an EventBridge rule on that event → SNS gives near-real-time alerts with no custom code. The S3-snapshot + Lambda (A) and CloudWatch Logs metric-filter (C) approaches add polling/lag and extra components; a CloudWatch alarm on the Config metric (D) is less direct than the event-driven rule. B is most efficient and real-time.
To monitor the restricted-ssh Config rule continuously and get near-real-time notification when a security group becomes noncompliant, configure an Amazon EventBridge event rule triggered by the AWS Config compliance-change event for that rule, targeting an SNS topic. This is the native, near-real-time path without polling or custom Lambda.
Common mistake: Using S3 config snapshots + a Lambda on PutObject (A)—adds polling latency and custom code versus the event-driven rule. Using CloudWatch Logs metric filters + alarms (C)—more moving parts and not as direct as EventBridge. A CloudWatch alarm on the Config metric (D) is viable but less immediate than the compliance-change event rule. B is the cleanest.
Expert Analysis
Why the Answer Is Correct
AWS Config continuously evaluates the restricted-ssh managed rule and emits a compliance-change event to EventBridge whenever a security group's compliance status flips. An EventBridge rule matching that event and targeting an SNS topic delivers a near-real-time notification with no polling or custom Lambda—exactly the monitoring-and-alert requirement.
Why the Other Options Are Wrong
A relies on Config snapshots delivered to S3 plus a Lambda on PutObject, adding latency and custom code. C uses CloudWatch Logs metric filters and alarms, more components and not as immediate. D uses a CloudWatch alarm on the Config metric, workable but less direct than the event-driven EventBridge rule. B is the most efficient.
Community Comment Notes
Community voted B (100). Commenters linked the AWS Config restricted-ssh rule and the EventBridge compliance-change pattern as the near-real-time notification mechanism. B confirmed.
Official Reference
https://docs.aws.amazon.com/config/latest/developerguide/restricted-ssh.html
This link opens the official vendor documentation in a new tab.
Community Votes
100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 3 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 3
-
rhsilva 👍 2 Answered Bhttps://docs.aws.amazon.com/config/latest/developerguide/restricted-ssh.html
-
getadroit 👍 1https://aws.amazon.com/blogs/mt/implement-aws-config-rule-remediation-with-systems-manager-change-manager/
-
getadroit 👍 1https://repost.aws/knowledge-center/config-resource-non-compliant
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.