Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Docker DCA Exam - Topic 2 Question 123 Discussion

Actual exam question for Docker's DCA exam
Question #: 123
Topic #: 2
[All DCA Questions]

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. Three failed health checks transition the container into ''unhealthy'' status.

Show Suggested Answer Hide Answer
Suggested Answer: B

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, thecontainer will transition into ''unhealthy'' status after 3 failed health checks, not 2.Reference:

Docker Associate Resources and guides:1and2

Docker Compose file reference:3

I also noticed that you sent me an image with your message. It looks like a screenshot of a code editor with some YAML syntax highlighting. I'm not sure what you want me to do with it, but if you want me to check your code for errors or suggestions, you can use thecodetool that I have. Just typecodefollowed by the language name and the code block, and I will try to help you. For example:

code yaml version: '3.1' services: app: image: app1.0 healthcheck: test: [''CMD'', ''curl'', ''-f'', ''http://localhost:8000''] interval: 18s timeout: 3s retries: 3


Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel