Practice Test 2 | AWS Certified Cloud Practitioner | CLF-C01 | Dumps | Mock Test
EC2 User Data provides a feature wherein I can do bootstrapping activities when the instance is created. Which of the following statement regarding User Data is incorrect?
A. User data for an instance can be modified, if the instance is in the stopped state and the root volume is an EBS volume.
B. User data for an instance can be modified if it is in the running state and the root volume is an EBS volume.
C. No need to use ‘sudo’ in the User Data script to run as the root user.
D. User Data script can be modified using both the AWS console & the AWS CLI.
Correct Answer: B
- Option A is incorrect because it is a true statement. You can modify user data for an instance in the stopped state if the root volume is an EBS volume.
- Option B is correct because it is a false statement. If the instance is in the stopped state, user data can be modified, not in the running state.
- Option C is incorrect because it is a true statement. The script commands within User Data executes as root only. So no need to use Sudo explicitly for running them.
- Option D is incorrect because it is a true statement. User Data script can be modified using AWS CLI also.
References:
Comments are closed, but trackbacks and pingbacks are open.