The following Docker Compose file is deployed as a stack:

Is this statement correct about this health check definition?
Solution.Health checks lest for app health ten seconds apart. Three failed health checks transition the container into "unhealthy" status.
Correct Answer: A
Explanation
The statement is correct. In the provided Docker Compose file, a health check is defined for the service "app".
It uses curl to perform a health check on the application every 10 seconds (as specified by the "interval" parameter). If it fails three times (as specified by the "retries" parameter), then the container is marked as unhealthy. A health check is a way of checking the health of a running container and applying actions based on the result1. It can be used to monitor the status of the service and restart the container if it becomes unhealthy2. References:
* Compose file version 3 reference | Docker Docs
* Docker Compose & Health Checks - Gabriel's World