Instance Metadata and User Data

5 minutes 5 Questions

Instance Metadata is data about an EC2 instance, such as instance type, instance ID, and more. User Data is custom data or scripts provided by the user during instance launch. Both Metadata and User Data can be used to configure and manage instances, including passing information between instances …

Test mode:
AWS Certified Solutions Architect - Instance Metadata and User Data Example Questions

Test your knowledge of Instance Metadata and User Data

Question 1

On an Ubuntu EC2 instance that uses cloud-init, where is the canonical on-disk file (not the convenience symlink) that stores the raw user data after first boot?

Question 2

When launching an EC2 instance using the RunInstances API or SDK and passing user data, in what encoding must the user data be supplied?

Question 3

You are debugging issues with user data on an Amazon Linux EC2 instance. Where can you find the log file containing the user data execution output?

More Instance Metadata and User Data questions
16 questions (total)