SOA-C02 Exam QuestionsBrowse all questions from this exam

SOA-C02 Exam - Question 380


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?

Show Answer
Correct Answer: A

To deploy a custom application on new Amazon EC2 instances, you can use Amazon EC2 user data to launch a script that downloads and installs the application. This is an effective method for small applications that are frequently updated since user data scripts run during the initial launch of the instance, ensuring that the latest version of the application is installed automatically. Other options such as using AWS Systems Manager, AWS CodePipeline, or creating a custom API with Amazon API Gateway are more complex and are not as direct for this use case.

Discussion

8 comments
Sign in to comment
nharazOption: A
Jan 1, 2024

User data allows you to run scripts or execute commands on an EC2 instance during launch. You can include the script that downloads and installs the application in the user data section when launching an EC2 instance. This allows the application to be automatically deployed when the instance is launched

WinAndWinOption: A
Jan 1, 2024

As What I search from examtopic.com. A is correct one.

vivanchykOption: D
Mar 10, 2024

voted D. is it a good practice to install app using instance user data at all? sounds really weird to me.

Yowie351
Mar 26, 2024

New EC2 instances means it should be on a user data script. Hence A

Kipalom
Jan 1, 2024

deployed on NEW EC2 instances. So it really seems to be about the user data. But for every update, we need to create a new instance. So alternative answer would be D. What do you think guys?

mestuleOption: A
Apr 29, 2024

deployed on NEW ec2 instances

ovladan
May 27, 2024

Selected Answer: D Not A => By default, user data scripts run only during the first boot cycle when an EC2 instance is launched. "A" does not solve "update frequently"

Student013657Option: A
Jun 6, 2024

This is the most appropriate solution for your use case. Amazon EC2 user data is a feature that allows you to pass a script or a set of commands to the instance at launch time. This script can be used to download and install the custom application automatically when a new EC2 instance is launched. This is a simple and effective way to deploy the application, especially since it is small, updated frequently, and can be installed automatically. Key words: new instance -> user data scripts run only during the first boot cycle when an EC2 instance is launched.

SysOps4
Jun 30, 2024

Option A - key word "NEW EC2 instances" . We are interested only this app to be present in newly created EC2, question is not how to maintain app version in long-term... For me "update frequently" is to guide that this app should not be part of the AMI - (thus not option C).