Bird
0
0

A launch template version includes a user data script, but the script does not run on instance launch. What is a possible reason?

medium📝 Debug Q7 of 15
AWS - Auto Scaling
A launch template version includes a user data script, but the script does not run on instance launch. What is a possible reason?
AThe instance type is incompatible with user data
BThe user data script was not base64 encoded
CThe launch template version is not active
DUser data scripts are not supported in launch templates
Step-by-Step Solution
Solution:
  1. Step 1: Recall user data requirements

    User data scripts must be base64 encoded to run properly on instance launch.
  2. Step 2: Analyze options

    The user data script was not base64 encoded correctly identifies a common cause; other options are incorrect because user data is supported and instance types do not block it.
  3. Final Answer:

    The user data script was not base64 encoded -> Option B
  4. Quick Check:

    User data must be base64 encoded = B [OK]
Quick Trick: Always base64 encode user data scripts in launch templates [OK]
Common Mistakes:
  • Thinking instance type blocks user data
  • Assuming launch template version status affects user data
  • Believing user data unsupported in launch templates

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes