AWS Certified SysOps Administrator – Associate — Question 471

A company has a policy that requires all Amazon EC2 instances to have a specific set of tags. If an EC2 instance does not have the required tags, the noncompliant instance should be terminated.
What is the MOST operationally efficient solution that meets these requirement?

Answer options

Correct answer: D

Explanation

AWS Config is designed to continuously monitor resource configurations and evaluate compliance against defined rules, offering built-in remediation via AWS Systems Manager Automation to terminate noncompliant EC2 instances with minimal operational overhead. Options A and C require writing, maintaining, and executing custom AWS Lambda code, which increases operational complexity. Option B is incorrect because IAM policies are used for access control and cannot actively monitor resources or execute automated termination workflows based on compliance state.