
Explanation:
Amazon EC2 user data is used to pass shell scripts or cloud-init directives to an EC2 instance at launch. Since the application is small, updated frequently, and installs automatically, passing a script through user data is the most direct and operationally efficient way to deploy the application dynamically onto newly launched instances. Using an AMI (Option C) would require constant re-baking for frequent updates, creating unnecessary overhead.
Ultimate access to all questions.
A custom application must be installed on all Amazon EC2 instances. The application is small, updated frequently, and can be installed automatically. How can the application be deployed on new EC2 instances?
A
Launch a script that downloads and installs the application using Amazon EC2 user data.
B
Create a custom API using Amazon API Gateway to call an installation executable from an AWS CloudFormation template.
C
Use AWS Systems Manager to inject the application into an AMI.
D
Configure AWS CodePipeline to deploy code changes and updates.
No comments yet.