Bird
0
0

Which is the correct JSON snippet to specify the instance type in a launch template?

easy📝 Configuration Q3 of 15
AWS - Auto Scaling
Which is the correct JSON snippet to specify the instance type in a launch template?
A{ "InstanceType": "t3.micro" }
B{ "Instance": "t3.micro" }
C{ "TypeInstance": "t3.micro" }
D{ "InstanceType": t3.micro }
Step-by-Step Solution
Solution:
  1. Step 1: Recall launch template JSON syntax

    The correct key for instance type is "InstanceType" and the value must be a string in quotes.
  2. Step 2: Check each option for syntax correctness

    { "InstanceType": "t3.micro" } uses correct key and quotes around value. { "InstanceType": t3.micro } misses quotes around value, causing syntax error.
  3. Final Answer:

    { "InstanceType": "t3.micro" } -> Option A
  4. Quick Check:

    Correct JSON key and string value = B [OK]
Quick Trick: Use "InstanceType" key with quoted string value in JSON [OK]
Common Mistakes:
  • Missing quotes around string values
  • Using incorrect key names
  • Confusing JSON syntax with other formats

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes