BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - 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
29 comments · newest first
JU
Juan 21 days ago
Yeah, 'docker logs' would be better for that.
CO
Cornell 26 days ago
I agree with B. We need a different command for history.
JE
Jesusa 1 month ago
True, but not historical tasks. Just current state.
PA
Pamella 1 month ago
But 'docker inspect' gives service info, right?
JO
Jonelle 1 month ago
I feel it's B) No. It doesn't show historical tasks.
JA
Jacob 2 months ago
I think it's A) Yes. That command shows details.
LO
Loreen 2 months ago
I disagree, A makes more sense.
MO
Mollie 2 months ago
I’m leaning towards B, not sure it’ll show anything.
ST
Starr 2 months ago
Same here, it’s a useful command.
VI
Vincent 2 months ago
I feel confident about option A.
LO
Loreen 2 months ago
Still, it should provide some insights.
MO
Mollie 3 months ago
But what if the service is unhealthy?
ST
Starr 3 months ago
Definitely, it shows task history.
VI
Vincent 3 months ago
I think the command will help.
GR
Graciela 3 months ago
But B makes sense too, it’s not a task list.
ME
Mendy 3 months ago
I agree with A, it’s useful for debugging.
MA
Maddie 3 months ago
B) No, it’s just inspection info.
LO
Louvenia 4 months ago
A) Yes, it gives details.
TR
Trinidad 4 months ago
I feel like it won't help.
MO
Mollie 4 months ago
I think the command will show the tasks.
CE
Celeste 4 months ago
No way, that's not how it works!
GE
German 4 months ago
Wait, can you really see historical tasks with that?
TA
Tamera 4 months ago
Definitely helps with troubleshooting!
MA
Matthew 5 months ago
I thought it was 'docker ps' for tasks?
AL
Alline 5 months ago
Yes, that command shows detailed info!
SH
Shawnda 5 months ago
I practiced a similar question, and I think 'docker inspect' is more about the current state rather than historical data.
RO
Ronald 7 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 7 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 7 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