Question 242:
You are managing thousands of Amazon EC2 instances in an enterprise organization. You need to frequently configure multiple instances at the same time by running the same shell commands such as “docker restart”. The operation should be fully monitored and recorded in CloudTrail. You do not want to configure SSH keys to access the instances. Which of the following methods should you choose?
Answer options:
A.Create Ansible playbooks to execute shell commands in EC2 instances. Configure an inventory document to group and manage EC2 instances. B.Install the Chef agent on EC2 instances. Register instances in AWS OpsWorks and edit cookbooks to execute shell commands. C.Create CloudFormation templates to run shell scripts for multiple EC2 instances. Configure products and portfolios using the templates in AWS Service Catalog. D.Install the AWS Systems Manager agent in EC2 instances and use AWS Systems Manager Run Command to manage instances remotely.