ExamQuestions.com

Register
Login
AWS Certified DevOps Engineer Professional Exam Questions

Amazon

AWS Certified DevOps Engineer Professional

457 / 500

Question 457:

You use CloudFormation to launch an Auto Scaling group. In the CloudFormation stack, you create a lifecycle hook in the ASG that puts a new instance in the Wait state while the custom script of the user data is running. The script installs the web application, initializes customer data and performs a health check of the instance. After the health check has passed, how would you put the instance back to the InService state in the Auto Scaling group?

Answer options:

A.Use the record-lifecycle-action-heartbeat CLI command or the RecordLifecycleActionHeartbeat operation in the script.
B.In the script, use the AWS CLI command complete-lifecycle-action to finish the lifecycle hook customer actions.
C.Use the AWS CLI command put-lifecycle-hook to complete the lifecycle actions and put the instance back to the normal process of the Auto Scaling group.
D.In the script, use the AWS CLI command attach-instances to attach the instance to the ASG, which completes the lifecycle action and modifies the instance state from Wait to InService.