
Ultimate access to all questions.
A developer is tasked with configuring an Amazon EC2 Auto Scaling Group that must launch both Spot and On-Demand instances depending on the specific needs of the application. It is also essential that the CodeDeploy agent is automatically installed on these EC2 instances upon launch. All instances will be running the Amazon Linux operating system.
What method would provide the most operational efficiency in meeting this configuration requirement?
A
Use launch templates to configure the EC2 Auto Scaling Group for On-Demand and spot instances. When you create a launch template use the User data field to add a configuration script that runs when the instance starts. This shell script can, in turn, install the CodeDeploy agent
B
Use AWS Systems Manager for installing and updating the CodeDeploy agent automatically for Spot and On-Demand instances
C
Use launch configurations to configure the EC2 Auto Scaling Group for On-Demand and spot instances. Add the shell script to the Launch configuration tab on the AWS console. This shell script will install the CodeDeploy agent
D
Configure AWS Resource Access Manager(RAM) to schedule the automatic install of CodeDeploy agent on the EC2 instances. RAM automatic schedules work on only Linux machines and not on Windows operating systems