AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 272

An Amazon EC2 Auto Scaling group manages EC2 instances that were created from an AMI. The AMI has the AWS Systems Manager Agent installed. When an EC2 instance is launched into the Auto Scaling group, tags are applied to the EC2 instance.

EC2 instances that are launched by the Auto Scaling group must have the correct operating system configuration.

Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

Systems Manager State Manager is designed to define and maintain consistent operating system configurations on managed instances. By creating a State Manager association targeted via tags, any newly launched EC2 instance with those tags will automatically and immediately have the configuration applied. Other options either rely on scheduled maintenance windows which delay the setup, or are intended strictly for patch management rather than general OS configuration.