in AWS by
You will be launching and terminating EC2 instances on a need basis for your workloads. You need to run some shell scripts and perform certain checks connecting to the AWS S3 bucket when the instance is getting launched. Which of the following options will allow performing any tasks during launch? (choose multiple)

A. Use Instance user data for shell scripts.

B. Use Instance metadata for shell scripts.

C. Use AutoScaling Group lifecycle hooks and trigger AWS Lambda function through CloudWatch events.

D. Use Placement Groups and set “InstanceLaunch” state to trigger AWS Lambda functions.

1 Answer

0 votes
by

A. Use Instance user data for shell scripts.

C. Use AutoScaling Group lifecycle hooks and trigger AWS Lambda function through CloudWatch events.

Answer: A, C
Option A is correct.
Option C is correct.
...