AWS Certified Solutions Architect – Associate (SAA-C03) — Question 744

A company needs a solution to prevent AWS CloudFormation stacks from deploying AWS Identity and Access Management (IAM) resources that include an inline policy or “*” in the statement. The solution must also prohibit deployment of Amazon EC2 instances with public IP addresses. The company has AWS Control Tower enabled in its organization in AWS Organizations.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

AWS Control Tower proactive controls use AWS CloudFormation Hooks to evaluate resources before they are deployed, allowing them to block the creation of non-compliant resources like EC2 instances with public IPs or IAM policies with '*' wildcards. Detective controls only identify non-compliant resources after deployment rather than blocking them, making them unsuitable for prevention. AWS Config and SCPs are either reactive solutions or incapable of inspecting specific CloudFormation template configurations to proactively block these deployments.