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 1 Question 125 Discussion

Posted by Judy on May 04, 2026 at 07:29 PM

You created a new service named 'http* and discover it is not registering as healthy. Will this command enable you to view the list of historical tasks for this service?

Solution. 'docker inspect http"

Suggested Answer: B

The commanddocker inspect httpwill not enable you to view the list of historical tasks for the service.Thedocker inspectcommand returns low-level information on Docker objects, such as containers, images, networks, or volumes1.It does not work on services, which are higher-level objects that define the desired state of a set of tasks2.To view the list of historical tasks for a service, you need to use thedocker service pscommand, which shows the current and previous states of each task, as well as the node, error, and ports3.Reference:

docker inspect | Docker Docs

Services | Docker Docs

docker service ps | Docker Docs


Get Premium DCA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
24 comments · newest first
JA
Jacob 2 days ago
I think it's A) Yes. That command shows details.
LO
Loreen 7 days ago
I disagree, A makes more sense.
MO
Mollie 12 days ago
I’m leaning towards B, not sure it’ll show anything.
ST
Starr 17 days ago
Same here, it’s a useful command.
VI
Vincent 22 days ago
I feel confident about option A.
LO
Loreen 28 days ago
Still, it should provide some insights.
MO
Mollie 1 month ago
But what if the service is unhealthy?
ST
Starr 1 month ago
Definitely, it shows task history.
VI
Vincent 1 month ago
I think the command will help.
GR
Graciela 2 months ago
But B makes sense too, it’s not a task list.
ME
Mendy 2 months ago
I agree with A, it’s useful for debugging.
MA
Maddie 2 months ago
B) No, it’s just inspection info.
LO
Louvenia 2 months ago
A) Yes, it gives details.
TR
Trinidad 2 months ago
I feel like it won't help.
MO
Mollie 2 months ago
I think the command will show the tasks.
CE
Celeste 3 months ago
No way, that's not how it works!
GE
German 3 months ago
Wait, can you really see historical tasks with that?
TA
Tamera 3 months ago
Definitely helps with troubleshooting!
MA
Matthew 3 months ago
I thought it was 'docker ps' for tasks?
AL
Alline 3 months ago
Yes, that command shows detailed info!
SH
Shawnda 4 months ago
I practiced a similar question, and I think 'docker inspect' is more about the current state rather than historical data.
RO
Ronald 5 months ago
I feel like 'docker inspect' gives a lot of info, but I don't think it tracks historical tasks. I might lean towards 'No'.
CH
Chanel 5 months ago
I remember a practice question where we had to check service health, and 'docker inspect' was mentioned, but I can't recall if it was specifically for historical tasks.
ER
Ernie 5 months ago
I think using 'docker inspect' should show the details of the service, but I'm not sure if it includes historical tasks.
0/2000 characters

Save Cancel