A Java application is deployed in an AWS Auto Scaling group.
You want to create a Bash script running in each EC2 instance that can periodically perform the health check of the web application.
If the health check has failed in the script, the instance should be marked as “Unhealthy” and be replaced by a new instance in the Auto Scaling group.
With this script, the application can auto heal when an EC2 instance has an issue.
How would you design the Bash script?
Click on the arrows to vote for the correct answer
A. B. C. D.