Fabrikam Health already uses the AWS Config managed rule restricted-ssh to detect security groups allowing 0.0.0.0/0 on TCP/22. They want automatic remediation within one minute that removes the offending ingress as soon as the rule reports NON_COMPLIANT. What is the most suitable approach?
Choose an answer
Tap an option to check your answer.
Correct answer: Create an EventBridge rule for source "aws.config" and detail-type "Config Rules Compliance Change" filtering for ruleName "restricted-ssh" with complianceType "NON_COMPLIANT". Target a Lambda function that calls RevokeSecurityGroupIngress to remove 0.0.0.0/0 on port 22..
Why this is the answer
This is the most suitable approach because it provides immediate, automated remediation. An EventBridge rule triggered by Config Rules Compliance Change events for the restricted-ssh rule, specifically when complianceType is NONCOMPLIANT, ensures the remediation Lambda function is invoked precisely when needed. The Lambda function then directly calls RevokeSecurityGroupIngress to remove the problematic rule. The other options are less suitable: A custom Config rule that invokes a Lambda only when COMPLIANT would not remediate non-compliant resources. A scheduled EventBridge rule running hourly would not meet the "within one minute" requirement. AWS Firewall Manager is for central policy enforcement and would prevent such rules from being created, but it doesn't automatically remediate existing non-compliant rules in the specified timeframe without additional configuration for remediation.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed