AWS SysOps Administrator - Changing Instance Type in Autoscaling Group

Change Instance Type in Autoscaling Group

Question

You work as a System Administrator for a company.

Your team has launched an Autoscaling Group using launch configuration, and the set of underlying instances are in the running state.

There is a requirement to change the Instance type for the underlying instances and ensure that the Autoscaling group launches the Instances with the new Instance type.

How would you make these changes? (Select TWO)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answers: A and B.

This is given in the AWS Documentation.

Instance Types can be changed by creating a new launch configuration and updating the auto-scaling group or by replacing the launch configuration with a launch template.

Based on the question, to edit an Auto Scaling group that has an existing launch configuration, you have the option of replacing the launch configuration with a launch template.

Before you can replace a launch configuration in an Auto Scaling group, you must first create your launch template.

Options C and D are incorrect because you cannot modify the existing launch configuration.

You have to create a new launch configuration.

For more information on the Launch configuration, please refer to the below URL-

https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.html https://docs.aws.amazon.com/autoscaling/ec2/userguide/replace-launch-config.html

Sure, I can provide a detailed explanation for your question.

When an Autoscaling group is launched using a launch configuration, it specifies the configuration of the instances that are launched. If there is a requirement to change the instance type for the underlying instances, there are a couple of ways to make these changes.

Here are the options to make these changes:

  1. Create a new launch template: To change the instance type for the underlying instances, one option is to create a new launch template with the updated instance type. Launch templates are a newer way of configuring an Autoscaling group that allows for more flexibility in managing instance configurations.

To create a new launch template, you can go to the Amazon EC2 Auto Scaling console, select the Autoscaling group that you want to modify, and click on "Create launch template". You can then specify the new instance type in the launch template and use it to launch new instances.

  1. Replace a launch configuration with a launch template: Another option to change the instance type for the underlying instances is to replace the existing launch configuration with a launch template. This option can be performed through the Amazon EC2 Auto Scaling console as well.

To do this, you need to first create a launch template with the updated instance type. Then, go to the Amazon EC2 Auto Scaling console, select the Autoscaling group that you want to modify, and click on the "Actions" dropdown menu. Select "Create launch configuration from the launch template" and specify the new launch template that you created. After creating the new launch configuration, you can then update the Autoscaling group to use the new launch configuration.

Option C ("Modify the existing launch configuration") is not a valid option to change the instance type for the underlying instances. Once a launch configuration is created, it cannot be modified. You can create a new launch configuration with the updated instance type, but you cannot modify an existing one.

Option D ("Update the Autoscaling Group with the modified launch configuration using Amazon EC2 Auto Scaling console") is partially correct, but it is not the only option available. You can update the Autoscaling group with the modified launch configuration if you choose to create a new launch configuration with the updated instance type. However, if you choose to create a new launch template instead, you will need to update the Autoscaling group to use the new launch template instead.