Q87 — AWS SAA-C03 Ch.4

Question 87 of 105 | ← Chapter 4

Q282. A company recently deployed a new auditing system to centralize information about operating system versions, patching, and installed software for Amazon EC2 instances. A solutions architect must ensure all instances provisioned through EC2 Auto Scaling groups successfully send reports to the auditing system as soon as they are launched and terminated. Which solution achieves these goals MOST efficiently?

Correct Answer: B. Use EC2 Auto Scaling lifecycle hooks to execute a custom script to send data to the audit system when instances are launched and terminated.

Explanation

Amazon EC2 Auto Scaling offers the ability to add lifecycle hooks to your Auto Scaling groups. These hooks enable an Auto Scaling group to be aware of events in the Auto Scaling instance lifecycle, and then perform a custom action when the corresponding lifecycle event occurs. A lifecycle hook provides a specified amount of time (one hour by default) to complete the lifecycle action before the instance transitions to the next state.https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.htmlhttps://docs.aws.amazon.com/es_es/autoscaling/ec2/userguide/lifecycle-hooks.html