How do you auto-remediate 0.0.0.0/0 security groups across AWS Organizations?
A company wants to create an automated solution for all accounts managed by AWS Organizations to detect any security groups that use 0.0.0.0/0 as the source address for inbound traffic. The company also wants to automatically remediate any noncompliant security groups by restricting access to a specific CIDR block that corresponds with the company's intranet. Which set of actions should the CloudOps engineer take to create a solution?
Community Insight
The exam tests detection plus remediation across an organization; the trap is choosing preventive controls such as an SCP or IAM deny policy that cannot fix existing security groups.
AWS Config detects security groups that allow inbound traffic from 0.0.0.0/0 and can trigger automatic remediation to replace that source with the company's approved intranet CIDR. The correct solution uses a Config rule with remediation across AWS Organizations, not a preventive SCP or IAM deny policy.
The most common wrong answer is D: an SCP blocks creation of new 0.0.0.0/0 rules, but it does not modify existing noncompliant security groups, so it fails the automatic remediation requirement.
Community Discussion (1 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
AWS Config is the service designed to evaluate resource configuration against a rule and mark resources as noncompliant. In this scenario, a Config rule can detect security groups with inbound 0.0.0.0/0 rules, and AWS Config remediation can invoke an SSM Automation document or Lambda function to revoke the open rule and authorize the approved intranet CIDR instead. With AWS Organizations, AWS Config can be centrally deployed through a delegated administrator and an organization aggregator so member accounts are evaluated consistently. Option A therefore covers both required parts: organization-wide detection and automatic remediation to a specific CIDR block.Why the Other Options Are Wrong
Option B uses an IAM policy to deny creation of open security groups, but it does not detect or remediate existing groups and it depends on every user and role being covered correctly. Option C could theoretically inspect and modify security groups with Lambda, but a standalone Lambda function does not provide AWS Config compliance evaluation, organization-wide visibility, or the managed remediation workflow the question asks for. Option D uses an SCP to prevent new open security groups, but SCPs are preventive controls and cannot change the source address of an existing security group. Only Option A combines continuous compliance detection with automated remediation of existing noncompliant security groups.Community Comment Notes
Bad_Mat's comment aligns with this verdict, stating "The correct answer is A" and describing an AWS Config rule with automatic remediation to the approved CIDR block. No commenter argued for the SCP or IAM policy alternatives. The community input is consistent with the AWS Config detection-and-remediation design required by the question.Official Reference
Exam Strategy
When a scenario says detect noncompliant resources and automatically remediate, look for AWS Config remediation rather than a preventive control. SCPs and IAM deny policies stop new misconfigurations but do not fix existing resources, so they fail the automatic remediation requirement.
Frequently Asked Questions
Why is an SCP not enough to remediate existing open security groups?
An SCP can deny new 0.0.0.0/0 rules, but it does not modify existing security groups. Remediation requires AWS Config with an action such as SSM Automation or Lambda.
Can AWS Config detect open security groups across all Organizations accounts?
Yes, with a delegated administrator and an organization aggregator, AWS Config can evaluate member accounts and run remediation actions centrally.
Related Analysis
Practice All SOA-C03 Questions
Access 100 questions with complete answers and detailed explanations.
View Full SOA-C03 Practice Test →