How do you auto-remediate 0.0.0.0/0 security groups across AWS Organizations?

Answer Correct answer: A — Use an AWS Config rule to detect security groups open to 0.0.0.0/0 and automatic remediation to replace the source with the approved intranet CIDR.

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?

  1. Create an AWS Config rule to detect noncompliant security groups. Set up automatic remediation to change the 0.0.0.0/0 source address to the approved CIDR block. Correct Answer
  2. Create an IAM policy to deny the creation of security groups that have 0.0.0.0/0 as the source address. Attach this IAM policy to every user in the company.
  3. Create an AWS Lambda function to inspect new and existing security groups. Check for a noncompliant 0.0.0.0/0 source address and change the source address to the approved CIDR block.
  4. Create a service control policy (SCP) for the organizational unit (OU) to deny the creation of security groups that have the 0.0.0.0/0 source address. Set up automatic remediation to change the 0.0.0.0/0 source address to the approved CIDR block.

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)

Bad_Mat 👍 1 Selected: A
The correct answer is A. Create an AWS Config rule to detect noncompliant security groups. Set up automatic remediation to change the 0.0.0.0/0 source address to the approved CIDR block.

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

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.

More SOA-C03 FAQ →

Related Analysis

Practice All SOA-C03 Questions

Access 100 questions with complete answers and detailed explanations.

View Full SOA-C03 Practice Test →

← Back to SOA-C03 Study Guide