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
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.
Imho C, 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.
http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html
Agree – got to be C & D
A & E are just wrong
B is wrong – Termination does check network connections
cd
I choose BC
C & D seems to be the answer
C and D
Ans : CD
CD from the aws document
http://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-termination.html#default-termination-policy
C and D
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.
I am that D is correct answer, for C i am not able to find any links. Can you help me with that.
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.”
CD
C and D
cd no doubts just tested it
“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.
C is right, so CD
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?