ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 54 - DCA discussion

Report
Export

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.

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: B

Explanation:

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, the container 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

asked 08/11/2024
ACHILLE CARROLL
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first