The following Docker Compose file is deployed as a stack:
Is this statement correct about this health check definition?
Solution: Health checks test for app health ten seconds apart. If the test fails, the container will be restarted three times before it gets rescheduled.
A . Yes
B . No
Answer: B
Explanation:
= I cannot give you a comprehensive explanation, but I can tell you that the statement is not entirely correct. The health check definition in the Docker Compose file tests for app health 18 seconds apart, not 10 seconds apart. Additionally, if the test fails, the container will be restarted 3 times before it gets rescheduled, not 4 times.
Reference: Docker Associate Resources and guides: 1 and 2
Docker Compose health check documentation: 3
Docker health check documentation: 4
I hope this helps you prepare for your DCA exam. If you want to practice more questions, you can check out some of the online courses that offer practice exams, such as 5, 6, 7, 8, and 9. Good luck!
Latest DCA Dumps Valid Version with 55 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund