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

LPI 701-100 Exam - Topic 12 Question 102 Discussion

Which statement in a Dockerfile defines which command should be started in the container by default when it is started? (Specify ONLY the statement's name without any values or parameters.)
A) CMD

LPI 701-100 Exam - Topic 12 Question 102 Discussion

Actual exam question for LPI's 701-100 exam
Question #: 102
Topic #: 12
[All 701-100 Questions]

Which statement in a Dockerfile defines which command should be started in the container by default when it is started? (Specify ONLY the statement's name without any values or parameters.)

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Marshall
3 days ago
CMD makes sense. It's what runs when the container starts.
upvoted 0 times
...
Brittani
9 days ago
I feel confident about CMD. It's straightforward.
upvoted 0 times
...
Thaddeus
14 days ago
CMD is the right choice. It sets the default behavior.
upvoted 0 times
...
Kris
19 days ago
Definitely CMD! It's the default command.
upvoted 0 times
...
Thaddeus
24 days ago
I think it's CMD.
upvoted 0 times
...
Hui
29 days ago
CMD is crucial for container behavior.
upvoted 0 times
...
Jonelle
1 month ago
CMD is what we use to specify the command.
upvoted 0 times
...
Lucina
1 month ago
I feel confident about CMD. It's straightforward.
upvoted 0 times
...
Clemencia
1 month ago
CMD is the right choice. Makes sense.
upvoted 0 times
...
Glenn
2 months ago
Definitely CMD! It's the default command.
upvoted 0 times
...
William
2 months ago
I think it's CMD.
upvoted 0 times
...
Garry
2 months ago
I thought it was something else, interesting!
upvoted 0 times
...
Youlanda
2 months ago
CMD is right, but ENTRYPOINT can also be used.
upvoted 0 times
...
German
2 months ago
Wait, isn't it ENTRYPOINT?
upvoted 0 times
...
Dulce
4 months ago
Definitely CMD, no doubt.
upvoted 0 times
...
Hermila
4 months ago
It's CMD for sure!
upvoted 0 times
...
Jodi
5 months ago
I recall CMD being the default command, but I can't remember if ENTRYPOINT does something similar.
upvoted 0 times
...
Vincent
5 months ago
CMD sounds right, but I feel like there was something about how it can be overridden.
upvoted 0 times
...
Theola
5 months ago
I'm pretty sure it's CMD. I remember practicing a question that asked about default commands in Dockerfiles.
upvoted 0 times
...
Jesusa
5 months ago
I think the statement we're looking for is CMD, but I might be mixing it up with ENTRYPOINT.
upvoted 0 times
...

Save Cancel