Questions 64 and 65

Explanations for questions 64 and 65

We'll cover the following

Question 64

An EC2 instance in an Auto Scaling group is having some issues that are causing it to launch new instances based on the dynamic scaling policy. A solutions architect needs to troubleshoot the EC2 instance and prevent the Auto Scaling group from launching new instances temporarily.

What is the best method to accomplish this? (Select TWO)

  1. Remove the EC2 instance from the Target Group.
  2. Disable the launch configuration associated with the EC2 instance.
  3. Place the EC2 instance that is experiencing issues into the standby state.
  4. Suspend the scaling processes responsible for launching new instances.
  5. Disable the dynamic scaling policy.

Correct Answer: 3, 4

Explanation: You can suspend and then resume one or more of the scaling processes for your Auto Scaling group. This can be useful when you want to investigate a configuration problem or other issue with your web application and then make changes to your application without invoking the scaling processes. You can manually move an instance from an ASG and put it in the standby state.

Instances in standby state are still managed by Auto Scaling, are charged as normal, and do not count towards available EC2 instances for workload/application use. Auto Scaling does not perform health checks on instances in the standby state. Standby state can be used for performing updates/changes/troubleshooting etc., without health checks being performed or replacement instances being launched.

INCORRECT: “Remove the EC2 instance from the Target Group.” is incorrect. Target Groups are features of ELB (specifically ALB/NLB). Removing the instance from the target group will stop the ELB from sending connections to it but will not stop Auto Scaling from launching new instances while you are troubleshooting it.

INCORRECT:Disable the launch configuration associated with the EC2 instance.” is incorrect. You cannot disable the launch configuration, and you cannot modify a launch configuration after you’ve created it.

CORRECT: “Place the EC2 instance that is experiencing issues into the standby state.” is a correct answer.

CORRECT: “Suspend the scaling processes responsible for launching new instances.” is also a correct answer.

INCORRECT:Disable the dynamic scaling policy.” is incorrect. You do not need to disable the dynamic scaling policy; you can just suspend it as previously described.

References:

https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.