When you add lifecycle hooks to an Autoscaling Group , what are the wait states that occur during the scale in and scale out process.
Choose 2 answers from the options given below.
Click on the arrows to vote for the correct answer
A. B. C. D.Answer - C and D.
The AWS Documentation mentions the following.
After you add lifecycle hooks to your Auto Scaling group, they work as follows:
Auto Scaling responds to scale out events by launching instances and scale in events by terminating instances.
Auto Scaling puts the instance into a wait state (Pending:Wait orTerminating:Wait)
The instance is paused until either you tell Auto Scaling to continue or the timeout period ends.
For more information on Autoscaling Lifecycle hooks, please visit the below URL:
http://docs.aws.amazon.com/autoscaling/latest/userguide/lifecycle-hooks.htmlWhen you add lifecycle hooks to an Autoscaling Group in AWS, you can define actions to be performed when instances are launched or terminated. These actions can be performed asynchronously, which means that the scaling process will wait until the action is completed before proceeding. There are two types of wait states that can occur during the scale-in and scale-out process:
Launching:Wait When an instance is launched, the "Launching:Wait" wait state occurs. This means that the instance has been launched but is not yet ready to be used. The lifecycle hook will remain in the "Launching:Wait" state until the instance is ready, which can be checked using a custom script or by pinging a URL. Once the instance is ready, the lifecycle hook will move to the "Complete" state, and the Autoscaling Group will proceed with the scaling process.
Terminating:Wait When an instance is terminated, the "Terminating:Wait" wait state occurs. This means that the instance has been marked for termination, but is still running and can be used. The lifecycle hook will remain in the "Terminating:Wait" state until the instance is terminated, which can be checked using a custom script or by pinging a URL. Once the instance is terminated, the lifecycle hook will move to the "Complete" state, and the Autoscaling Group will proceed with the scaling process.
The other two options, "Exiting:Wait" and "Pending:Wait," are not valid wait states that occur during the scale-in and scale-out process when adding lifecycle hooks to an Autoscaling Group in AWS.