Bird
0
0

What is the main use of user data in an AWS EC2 instance?

easy📝 Conceptual Q1 of 15
AWS - EC2 Fundamentals
What is the main use of user data in an AWS EC2 instance?
ATo monitor instance health status
BTo store instance configuration permanently
CTo access metadata about the instance
DTo run scripts or commands automatically when the instance starts
Step-by-Step Solution
Solution:
  1. Step 1: Understand user data purpose

    User data is designed to run scripts or commands automatically during instance launch or reboot.
  2. Step 2: Differentiate from metadata and other features

    Metadata provides instance info, not script execution. Monitoring and permanent storage are separate services.
  3. Final Answer:

    To run scripts or commands automatically when the instance starts -> Option D
  4. Quick Check:

    User data = automatic startup scripts [OK]
Quick Trick: User data runs scripts at launch, metadata provides info [OK]
Common Mistakes:
  • Confusing user data with metadata
  • Thinking user data stores permanent config
  • Assuming user data monitors instance health

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes