A project account (not allowed to join the company’s AWS Organization) is launching EC2 instances larger than needed. The company wants to restrict that account so developers can launch only t3.small instances and only in us-east-2. What should a solutions architect do to enforce these requirements within the project's account?
Choose an answer
Tap an option to check your answer.
Correct answer: Create an IAM policy that allows launching only t3.small EC2 instances in us-east-2 and attach that policy to the roles and groups used by the developers in the project's account..
Why this is the answer
The correct solution is to create an IAM policy because it directly addresses the requirements within the project account. IAM policies define permissions for users, roles, and groups, allowing granular control over AWS resources. By specifying ec2:RunInstances with conditions for ec2:InstanceType as t3.small and ec2:Region as us-east-2, you restrict developers to only launch the permitted instance type in the specified region. This policy can then be attached to the relevant IAM entities used by developers. Creating a new developer account and moving resources is overly complex and unnecessary. Service Control Policies (SCPs) are for AWS Organizations, but the question states the project account is not allowed to join the company's AWS Organization, making SCPs inapplicable. Purchasing Reserved Instances doesn't enforce restrictions on what instances can be launched; it's a cost-saving measure.
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