New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 305-300 Exam - Topic 1 Question 23 Discussion

Actual exam question for LPI's 305-300 exam
Question #: 23
Topic #: 1
[All 305-300 Questions]

Which of the following statements in a Dockerfile leads to a container which outputs hello world? (Choose two.)

Show Suggested Answer Hide Answer
Suggested Answer: B, C

Contribute your Thoughts:

0/2000 characters
Armanda
3 months ago
C and B are the ones that will output "hello world".
upvoted 0 times
...
Isreal
3 months ago
Wait, is E even valid syntax? Sounds off.
upvoted 0 times
...
Ramonita
3 months ago
I’m pretty sure D won't work either.
upvoted 0 times
...
Oretha
4 months ago
I think A is wrong, it needs quotes around the command.
upvoted 0 times
...
Lauran
4 months ago
C is definitely one of the correct answers!
upvoted 0 times
...
Isadora
4 months ago
I definitely remember that the correct syntax for ENTRYPOINT should not have quotes around the command, so maybe C is right.
upvoted 0 times
...
Sylvia
4 months ago
I feel like A and D might be wrong because of the quotes, but I can't recall the exact syntax rules.
upvoted 0 times
...
Jillian
4 months ago
I think I practiced a similar question where the exec form used commas, so maybe C is one of the answers?
upvoted 0 times
...
Horace
5 months ago
I remember that ENTRYPOINT can take both exec form and shell form, but I'm not sure which one is correct here.
upvoted 0 times
...
Florinda
5 months ago
I'm feeling pretty confident about this one. The key is to use the exec form of the ENTRYPOINT instruction, which is the array syntax. Options A and C are the correct answers.
upvoted 0 times
...
Rupert
5 months ago
I'm a little confused by the wording of the question. Does it want us to choose the two options that will output "hello world", or the two options that are syntactically correct? I'll need to think this through carefully.
upvoted 0 times
...
Polly
5 months ago
Okay, I've got this. The correct answers are options A and C, since they both use the exec form of the ENTRYPOINT instruction with the proper array syntax to execute the "echo hello world" command.
upvoted 0 times
...
Fletcher
5 months ago
This looks like a straightforward Dockerfile question. I'll carefully read through the options and think about the proper syntax for the ENTRYPOINT instruction.
upvoted 0 times
...
Terrilyn
5 months ago
Hmm, I'm a bit unsure about the correct way to format the ENTRYPOINT command. I'll need to review the Dockerfile documentation to make sure I understand the differences between the string form and the exec form.
upvoted 0 times
...
Charlesetta
5 months ago
This looks like a straightforward NetSuite configuration question. I'll focus on identifying the two key settings that need to be enabled.
upvoted 0 times
...
Kenia
5 months ago
I think the answer is B - it applies the global policy. That seems like the most logical default behavior if a user-defined policy doesn't match.
upvoted 0 times
...
Keneth
5 months ago
This one seems pretty straightforward. As long as I set up the automatic rule correctly and configure the conditions, I should be able to get this done. Gotta stay focused though, can't afford any mistakes on the exam.
upvoted 0 times
...
Detra
1 year ago
I'm just glad the question didn't ask about the CMD instruction. That one always trips me up!
upvoted 0 times
Beth
1 year ago
E) ENTRYPOINT \'echo\', \'Hello\', \'World\'
upvoted 0 times
...
Madonna
1 year ago
I always get confused with CMD too.
upvoted 0 times
...
Bernadine
1 year ago
B) ENTRYPOINT [ \'echo hello world\' ]
upvoted 0 times
...
Ula
1 year ago
Yeah, CMD can be tricky sometimes.
upvoted 0 times
...
Leontine
1 year ago
C) ENTRYPOINT [ \'echo\', \'hello\', \'world\
upvoted 0 times
...
Frederica
1 year ago
A) ENTRYPOINT \'echo Hello World\'
upvoted 0 times
...
...
Elden
1 year ago
C and D are the way to go. I'm surprised that option E has 'World*' instead of 'World'. That's a bit of a giveaway that it's not correct.
upvoted 0 times
...
Lili
1 year ago
I was a bit confused at first, but now I see that C and D are the way to go. The exec form is the way to go for ENTRYPOINT.
upvoted 0 times
Yolande
1 year ago
Yes, using the exec form with an array is the best practice for ENTRYPOINT.
upvoted 0 times
...
Talia
1 year ago
I agree, those are the correct options for a Dockerfile that outputs hello world.
upvoted 0 times
...
Stephen
1 year ago
D) ENTRYPOINT echo Hello World
upvoted 0 times
...
Avery
1 year ago
C) ENTRYPOINT [ \'echo\', \'hello\', \'world\' ]
upvoted 0 times
...
...
Lezlie
1 year ago
I'm not sure, but I think option B) ENTRYPOINT [ \'echo hello world\' ] could also work.
upvoted 0 times
...
Shanice
1 year ago
I agree with Dusti. C and D are the correct answers. The other options don't use the exec form or don't properly split the command.
upvoted 0 times
Keena
1 year ago
I agree, D is also correct because it uses the exec form.
upvoted 0 times
...
Johnetta
1 year ago
I think C is correct because it properly splits the command.
upvoted 0 times
...
...
Carline
1 year ago
I agree with Dannette, option C) seems like the correct choice.
upvoted 0 times
...
Dannette
1 year ago
I think option C) ENTRYPOINT [ \'echo\', \'hello\', \'world\' ] would output hello world.
upvoted 0 times
...
Dusti
2 years ago
I think the correct answers are C and D. The ENTRYPOINT instruction in a Dockerfile should be in the exec form, which is a JSON array, and the command should be split into individual elements.
upvoted 0 times
Rebbecca
1 year ago
C and D are the correct statements for the ENTRYPOINT instruction in a Dockerfile to output hello world.
upvoted 0 times
...
Rebbecca
1 year ago
Yes, C and D are the right choices for a Dockerfile that outputs hello world.
upvoted 0 times
...
Rebbecca
1 year ago
I agree, the correct answers are C and D.
upvoted 0 times
...
...

Save Cancel