A company has a multi-account environment with over 500 accounts. They need to enforce that all EC2 instances are launched only in approved instance families (e.g., t3, m5, c5). Which combination of AWS services provides the MOST scalable and effective enforcement?
Preventive at the API level and works for CloudFormation deployments.
Why this answer
SCPs provide preventive, account-level enforcement that blocks unauthorized EC2 instance launches before they occur, while CloudFormation hooks add a second layer of preventive control at the infrastructure-as-code level. This combination is the most scalable for 500+ accounts because SCPs are applied centrally via AWS Organizations and CloudFormation hooks operate at deployment time, ensuring no non-compliant instance is ever created.
Exam trap
The trap here is that candidates often choose reactive options like AWS Config or Lambda-based termination because they seem simpler, but the question asks for the 'MOST scalable and effective enforcement,' which requires preventive controls (SCPs and CloudFormation hooks) that block non-compliant launches entirely, rather than cleaning up after the fact.
How to eliminate wrong answers
Option B is wrong because CloudTrail-triggered Lambda is a reactive, post-launch mechanism that incurs cost and latency, and it cannot prevent the initial creation of non-compliant instances, making it less effective than preventive controls. Option C is wrong because Systems Manager scanning and tagging is purely detective and does not enforce compliance; it only identifies non-compliant instances after they exist, without any automatic remediation or prevention. Option D is wrong because AWS Config rules are detective and can trigger auto-remediation (e.g., termination), but they are reactive and may allow non-compliant instances to run for a period, whereas SCPs and CloudFormation hooks block the action at the point of request.