AWS DevOps Engineer Professional DOP-C01 – Question236

A company runs an application consisting of an AWS CodeDeploy deployment group that uses Auto Scaling and an Application Load Balancer. The application deployments are automated using AWS CodePipeline, which consists of AWS CodeCommit as the source and AWS CodeDeploy as the deployment provider.
After a recent successful deployment, the application experienced an outage for several minutes until the deployment was manually rolled back. A DevOps engineer verified that the pipeline was successful and did not indicate any errors, but found that the code caused the application to become unresponsive after several hours.
Which actions will help to prevent future downtime in similar situations? (Choose two.)

A.
Configure a TCP health check for the Auto Scaling target group on a listening port of the application.
B. Configure an HTTP or HTTPS health check for the Auto Scaling target group to check a specific application path.
C. Create a script to test the application health and execute the script during the BeforeInstall lifecycle hook in the CodeDeploy appspec.yml file.
D. Update the CodeDeploy deployment group to roll back automatically to the previous version if the deployment fails.
E. Update the CodeDeploy deployment group to roll back based on a custom Amazon CloudWatch alarm using an application status metric.

Correct Answer: CE