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

Posted by Rodrigo on Apr 02, 2026 at 04:36 PM

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.

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


Get Premium DCA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
LO
Loreta 3 months ago
Yes, three failures do mean unhealthy status. Makes sense!
CO
Corrina 3 months ago
I disagree. The timing seems off.
ZA
Zachary 3 months ago
I think the statement is correct. Health checks are crucial.
ST
Stefania 3 months ago
Yup, that's how health checks work in Docker Compose!
LA
Latrice 3 months ago
Wait, are we sure about the timing? I thought it was different.
AU
Audria 4 months ago
Totally agree, three failures seems reasonable to me!
CL
Claribel 5 months ago
I think three failures is a bit harsh for transitioning to unhealthy.
ST
Stephania 5 months ago
The health check interval is indeed set to 10 seconds.
EM
Emmanuel 6 months ago
I thought health checks usually required a different number of failures, maybe it’s two instead of three?
CH
Chaya 6 months ago
I believe the statement is correct, but I need to double-check the specifics about the failure count.
SO
Sonia 6 months ago
I remember a similar question where the health check interval was mentioned, but I can't recall if it was three failures or something else.
JU
Justine 6 months ago
I think the health checks do run every ten seconds, but I'm not sure about the number of failures needed to mark it as unhealthy.
0/2000 characters

Save Cancel