Your Development team wants to use EC2 Instances to host their Application and Web servers.
In the automation space, they want the Instances always to download the latest version of the Web and Application servers when launched.
As an architect, what would you recommend for this scenario?
Click on the arrows to vote for the correct answer
A. B. C. D.Correct Answer - A.
AWS Documentation mentions the following:
When you launch an instance in Amazon EC2, you have the option of passing user data to the instance that can be used to perform common automated configuration tasks and even run scripts after the instance starts.
You can pass two types of user data to Amazon EC2: shell scripts and cloud-init directives.
You can also pass this data into the launch wizard as plain text, as a file (this is useful for launching instances using the command line tools) or as base64-encoded text (for API calls).
For more information on User Data, please visit the following URL:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.htmlTo ensure that EC2 instances always download the latest version of web and application servers when launched, there are different options available. Let's review the options provided in the exam question:
A. Ask the Development team to create scripts which can be added to the User Data section when the instance is launched:
B. Ask the Development team to create scripts which can be added to the Meta Data section when the instance is launched:
C. Use Auto Scaling Groups to install the Web and Application servers when the instances are launched:
D. Use EC2 Config to install the Web and Application servers when the instances are launched:
Based on the options provided, the recommended solution is A: Ask the Development team to create scripts which can be added to the User Data section when the instance is launched. This option provides the Development team with the flexibility to create and manage the scripts that are executed when the instance is launched. It also allows the team to easily update the scripts to download and install the latest version of the web and application servers.