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

A DevOps engineer needs to implement a solution to install antivirus software on all the Amazon EC2 instances in an AWS account. The EC2 instances run the most recent version of Amazon Linux.

The solution must detect all instances and must use an AWS Systems Manager document to install the software if the software is not present.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

The correct answer is A because it directly uses AWS Systems Manager State Manager to manage the installation of the software across all targeted instances, which meets the requirement for detection and installation. Option B, while useful for compliance checks, does not directly install the software. Option C focuses on scanning instead of installation, and Option D involves event detection and inventory collection, which is not as direct as using State Manager for installation.