SOA-C02 practice question 6 of 10

[Security and Compliance] A company has an AWS Config rule that identifies open SSH ports in security groups. The rule has an automatic remediation action to delete the SSH inbound rule for noncompliant security groups. However, business units require SSH access and can provide a list of trusted IPs to restrict access. Options:

Full set: 557 questions
Answer options
A: Create a new AWS Systems Manager Automation runbook that adds an IP set to the security group's inbound rule. Update the AWS Config rule to change the automatic remediation action to use the new runbook.
B: Create a new AWS Systems Manager Automation runbook that updates the security group’s inbound rule with the IP addresses from the business units. Update the AWS Config rule to change the automatic remediation action to use the new runbook. Correct answer
C: Create an AWS Lambda function that adds an IP set to the security group's inbound rule. Update the AWS Config rule to change the automatic remediation action to use the Lambda function.
D: Create an AWS Lambda function that updates the security group's inbound rule with the IP addresses from the business units. Update the AWS Config rule to change the automatic remediation action to use the Lambda function.
Correct Answer:
B. Create a new AWS Systems Manager Automation runbook that updates the security group’s inbound rule with the IP addresses from the business units. Update the AWS Config rule to change the automatic remediation action to use the new runbook.
Explanation

AWS Config relies natively on AWS Systems Manager Automation runbooks to perform automatic remediation actions for noncompliant resources. When an AWS Config rule detects a noncompliant resource, such as a security group allowing unrestricted SSH access, it can trigger an automation document to correct the issue. By creating an AWS Systems Manager Automation runbook that targets the specific security group and updates its inbound rules restricted to the trusted IP addresses provided by the business units, the SysOps administrator accurately fulfills the requirement natively. This approach replaces the default remediation with customized, automated logic that retains necessary business access while maintaining a secure posture, natively hooking directly into the AWS Config remediation framework without needing external custom endpoints.

Why Incorrect

A. AWS Config remediation updates standard security groups based on explicit IPv4/IPv6 address ranges rather than abstract "IP sets," which are primarily associated with AWS WAF constructs.
C. AWS Config automatic remediation functions natively by invoking AWS Systems Manager Automation documents, not by directly integrating with or directly executing AWS Lambda functions.
D. While a Lambda function could technically execute API calls to modify security groups, AWS Config natively uses SSM Automation documents, preventing direct Lambda integration as a direct remediation action.

References

AWS Documentation: AWS Config Developer Guide, Document ID: config-dg, Section: "Remediating Noncompliant AWS Resources by AWS Config Rules."

Scroll to Top