PrepAway - Latest Free Exam Questions & Answers

When Auto Scaling needs to terminate an EC2 instance by default, AutoScaling will: Choose 2 answers

An Auto-Scaling group spans 3 AZs and currently has 4 running EC2 instances. When Auto Scaling needs to
terminate an EC2 instance by default, AutoScaling will:
Choose 2 answers

PrepAway - Latest Free Exam Questions & Answers

A.
Allow at least five minutes for Windows/Linux shutdown scripts to complete, before terminating the
instance.

B.
Terminate the instance with the least active network connections. If multiple instances meet this criterion,
one will be randomly selected.

C.
Send an SNS notification, if configured to do so.

D.
Terminate an instance in the AZ which currently has 2 running EC2 instances.

E.
Randomly select one of the 3 AZs, and then terminate an instance in that AZ.

18 Comments on “When Auto Scaling needs to terminate an EC2 instance by default, AutoScaling will: Choose 2 answers

  1. kamleshj says:

    CD

    C: For example, if you configure your Auto Scaling group to use the autoscaling: EC2_INSTANCE_TERMINATE notification type, and your Auto Scaling group terminates an instance, it sends an email notification. This email contains the details of the terminated instance, such as the instance ID and the reason that the instance was terminated.

    D:Auto Scaling determines whether there are instances in multiple Availability Zones. If so, it selects the Availability Zone with the most instances and at least one instance that is not protected from scale in. If there is more than one Availability Zone with this number of instances, Auto Scaling selects the Availability Zone with the instances that use the oldest launch configuration.




    0



    0
      1. vladam says:

        For C here is the link:
        http://docs.aws.amazon.com/autoscaling/latest/userguide/lifecycle-hooks.html

        “Auto Scaling lifecycle hooks enable you to perform custom actions as Auto Scaling launches or terminates instances. For example, you could install or configure software on newly launched instances, or download log files from an instance before it terminates.

        You can use Amazon SNS to set up a notification target to receive notifications when a lifecycle action occurs.”




        0



        0
  2. Anthony says:

    “When Auto Scaling needs to
    terminate an EC2 instance by default, AutoScaling will:”…does it send sns notification when it needs to terminate or after it terminates the instance? There is a difference. If it doesn’t send a y notification before it terminates the instance, then C is wrong. D is definitely right, but not sure what the other answer should be, but I am thinking B.




    0



    0
  3. Glen says:

    Hi Guys

    I’m still learning and going through Ryan’s courses to come up to the speed with cloud, however I need help in sorting out some of the scenario questions, please let me know your best answers?

    Q You are building an API backend available at services yourcomapny.com. The API is implemented with API gateway and Lambda. You successfully tested the API using CURL. You implemented javascript to call API from a webpage on your corporate website, http://www.yourcomany.com, when you access that page in your browser, you get the following error:

    “The same origin policy disallows reading the remote resource”

    How can you allow your corporate webpages to invoke the API?

    I picked choice: Enable CORS in the API gateway? ( Please let me know otherwise?)

    Q.1 You need a solution to distribute traffic evenly across all the containers for a task running on amazon ECS. Your task definitions define dynamic host port mapping for your containers.

    Q.2 What AWS feature provides this functionality?

    Q.3 Which auto-scaling feature allow you to scale ahead of expected increase in load?




    0



    0

Leave a Reply

Your email address will not be published. Required fields are marked *