AWS Certified Solutions Architect – Professional — Question 611

A large mobile gaming company has successfully migrated all of its on-premises infrastructure to the AWS Cloud. A solutions architect is reviewing the environment to ensure that it was built according to the design and that it is running in alignment with the Well-Architected Framework.
While reviewing previous monthly costs in Cost Explorer, the solutions architect notices that the creation and subsequent termination of several large instance types account for a high proportion of the costs. The solutions architect finds out that the company's developers are launching new Amazon EC2 instances as part of their testing and that the developers are not using the appropriate instance types.
The solutions architect must implement a control mechanism to limit the instance types that only the developers can launch.
Which solution will meet these requirements?

Answer options

Correct answer: C

Explanation

Creating an IAM policy with a condition restriction on 'ec2:InstanceType' and attaching it to the developers' IAM group is the most effective way to prevent unauthorized instance launches. Other options, like AWS Config, only detect non-compliance after the resource is launched rather than preventing it, while launch templates and EC2 Image Builder do not natively enforce restrictive launch controls on specific users.