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:
Step 1: Recall user data requirements
User data scripts must be base64 encoded to run properly on instance launch.
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.
Final Answer:
The user data script was not base64 encoded -> Option B
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
Master "Auto Scaling" in AWS
9 interactive learning modes - each teaches the same concept differently