Bird
0
0

If you launch an EC2 instance using a launch template version with a specified security group, but override the security group during launch, which security group is applied?

medium📝 service behavior Q5 of 15
AWS - Auto Scaling
If you launch an EC2 instance using a launch template version with a specified security group, but override the security group during launch, which security group is applied?
ABoth security groups are applied
BThe security group from the launch template version
CThe security group specified in the override
DNo security group is applied
Step-by-Step Solution
Solution:
  1. Step 1: Understand override behavior in launch templates

    Overrides provided at launch replace the corresponding settings in the launch template version.
  2. Step 2: Apply override precedence

    The security group specified in the override replaces the one in the template version.
  3. Final Answer:

    The security group specified in the override -> Option C
  4. Quick Check:

    Overrides replace template settings = C [OK]
Quick Trick: Overrides take precedence over launch template settings [OK]
Common Mistakes:
  • Thinking both security groups combine automatically
  • Assuming template security group always applies
  • Believing no security group applies if overridden

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes