WalzoneInterview Prep
📞 Interviewing soon? Practice with a realistic AI mock phone interview — it calls you, then scores you. First 15 min FREE →

AWS · Intermediate · question 23 of 100

Explain the difference between a launch configuration and a launch template in Auto Scaling.?

📕 Buy this interview preparation book: 100 AWS questions & answers — PDF + EPUB for $5

Auto Scaling is a service offered by AWS that allows users to automatically scale their resources in response to changing demand. When using Auto Scaling, users have the option of using a launch configuration or a launch template to define the configuration of the instances that will be launched.

Launch Configuration:

A launch configuration is a template that defines the configuration of the instances that will be launched by Auto Scaling. Launch configurations can specify the AMI ID, instance type, security groups, key pair, user data, and other parameters that are used to launch the instances.

Once a launch configuration is created, it can be used by an Auto Scaling group to launch new instances as needed. If the configuration of the instances needs to be updated, the launch configuration can be updated and the changes will be applied to new instances launched by the Auto Scaling group.

Launch Template:

A launch template is a newer and more flexible option for configuring instances launched by Auto Scaling. A launch template can be used to define the configuration of the instances, as well as the version of the AMI, the network settings, and the instance metadata options.

Launch templates can also specify instance types, security groups, key pairs, user data, and other parameters. However, launch templates provide more options and flexibility for configuring instances, such as allowing the use of instance types that were not available at the time of creating the launch template.

Another important feature of launch templates is the ability to use versioning, which allows users to create multiple versions of a template and specify which version should be used when launching instances. This can be useful for testing and rolling out changes to the configuration of instances launched by Auto Scaling.

Key Differences:

Here are some key differences between launch configurations and launch templates:

Flexibility: Launch templates provide more options and flexibility for configuring instances than launch configurations.

Versioning: Launch templates support versioning, which allows users to create multiple versions of a template and specify which version should be used when launching instances.

Targeting: Launch templates can be targeted to specific instances or instance groups, while launch configurations are applied to all instances launched by an Auto Scaling group.

Compatibility: Launch templates are only supported by certain Auto Scaling features, such as EC2 Auto Scaling groups and Spot Fleet, while launch configurations are supported by all Auto Scaling features.

Overall, both launch configurations and launch templates can be used to define the configuration of instances launched by Auto Scaling. However, launch templates provide more options and flexibility, as well as versioning capabilities, while launch configurations are a more basic option that is supported by all Auto Scaling features.

Reading is step one. Saying it out loud is the interview. Our AI interviewer calls your phone and runs a realistic AWS interview — then scores it.
📞 Practice AWS — free 15 min
📕 Buy this interview preparation book: 100 AWS questions & answers — PDF + EPUB for $5

All 100 AWS questions · All topics