AWS Certified SysOps Administrator – Associate — Question 386

A company has a list of pre-approved Amazon Machine Images (AMIs) for developers to use to launch Amazon EC2 instances. However, developers are still launching EC2 instances from unapproved AMIs.

A SysOps administrator must implement a solution that automatically terminates any instances that are launched from unapproved AMIs.

Which solution will meet this requirement?

Answer options

Correct answer: A

Explanation

AWS Config provides a managed rule (approved-amis-by-id) that continuously monitors EC2 instances to ensure they are launched from authorized AMIs. When an instance fails this check, AWS Config can automatically initiate a remediation action using an AWS Systems Manager Automation runbook to terminate the non-compliant resource. The other options are incorrect because Amazon Inspector, CloudWatch metrics, and EC2 launch templates do not natively support this continuous compliance check and automatic remediation workflow.