After acquiring another company and adding it as a new OU in AWS Organizations, a DevOps engineer must ensure the new OU can only launch t3.small EC2 instances and may launch instances only in US Regions. Which SCP configuration enforces these constraints?
Choose an answer
Tap an option to check your answer.
Correct answer: Add an SCP statement that denies ec2:RunInstances when ec2:InstanceType is not equal to t3.small. Add another SCP statement that denies ec2:RunInstances when aws:RequestedRegion is not equal to a us-* pattern..
Why this is the answer
The correct option uses a deny-by-default approach, which is a best practice for security. By denying ec2:RunInstances when the instance type is not t3.small, it effectively restricts launches to only t3.small. Similarly, denying ec2:RunInstances when the requested region is not a US region (using us- for pattern matching) ensures instances are only launched in US regions. SCPs are implicitly deny, so explicit Deny statements are powerful. The incorrect options either use incorrect logic (e.g., allowing when not equal, denying when equal to the desired value) or attempt to use Allow statements in a way that would not enforce the constraints effectively. SCPs do not have an explicit "allow only" mechanism; instead, they rely on denying everything else.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed