
Answer-first summary for fast verification
Answer: By default, user data runs only during the boot cycle when you first launch an instance, By default, scripts entered as user data are executed with root user privileges
User Data is generally used to perform common automated configuration tasks and even run scripts after the instance starts. When you launch an instance in Amazon EC2, you can pass two types of user data - shell scripts and cloud-init directives. You can also pass this data into the launch wizard as plain text or as a file.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A company operates its technology infrastructure using a fleet of Amazon EC2 instances. To ensure that specific software is available on the instances to facilitate their daily operations, the development team has been instructed to utilize the user data feature of EC2 instances for configuration purposes.
Which of the following statements about the user data feature in EC2 instances are correct? (Select two)
A
By default, user data runs only during the boot cycle when you first launch an instance
B
By default, scripts entered as user data are executed with root user privileges
C
When an instance is running, you can update user data by using root user credentials
D
By default, user data is executed every time an EC2 instance is re-started
E
By default, scripts entered as user data do not have root user privileges for executing
No comments yet.