AWS Certified Solutions Architect – Professional (SAP-C02) — Question 377

A company is using AWS Control Tower to manage AWS accounts in an organization in AWS Organizations. The company has an OU that contains accounts. The company must prevent any new or existing Amazon EC2 instances in the OU's accounts from gaining a public IP address.

Which solution will meet these requirements?

Answer options

Correct answer: C

Explanation

An SCP (Service Control Policy) attached to the OU is the most effective way to enforce preventative restrictions, as it can directly deny the launching of EC2 instances with public IPs and prevent the association of public IPs to existing instances. AWS Systems Manager and AWS Config options are reactive detective and remediation approaches rather than preventative controls. Proactive controls in AWS Control Tower analyze CloudFormation templates during deployment but do not prevent manual configuration changes or block public IP assignments on existing running instances.