Refer to the exhibit.

Refer to the exhibit. The Dockerfile is placed in the current working directory. Which command builds an image named application:1.0.0 that contains application-1.0.0.jar and also includes any updates to the parent image?
Suggested Answer: D
Get Premium 350-901 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
26 comments · newest first
CH
Charlette
2 days ago
Plus, the versioning is clear.
LE
Leanora
7 days ago
Exactly! Always stay updated.
CA
Carey
12 days ago
I like C too. It covers all bases.
KE
Kenny
17 days ago
Got it! C is the safest choice.
CH
Charlette
22 days ago
Right! We need the latest base image.
LE
Leanora
27 days ago
A doesn't pull updates. That's risky.
KE
Kenny
1 month ago
I'm confused. Why not A?
CH
Charlette
1 month ago
Agreed! C makes sense for the latest image.
LE
Leanora
1 month ago
I think it's C. Pulling updates is crucial.
DA
Dalene
2 months ago
Agreed, C covers all bases.
RA
Rashida
2 months ago
Plus, the build-arg is necessary for versioning.
DA
Dalene
2 months ago
Right, we need the latest base image.
TE
Tenesha
2 months ago
B doesn't include the pull command, which is important.
DA
Dalene
2 months ago
I was leaning towards B, but C makes more sense.
RA
Rashida
2 months ago
Exactly! Keeping the image updated is crucial.
TE
Tenesha
3 months ago
Yeah, it pulls updates and sets the version.
RA
Rashida
3 months ago
I think option C is the best choice.
JE
Jeanice
3 months ago
I’m surprised there’s no option for just pulling the latest image directly!
DE
Denna
3 months ago
Definitely C! It’s the standard way to build with updates.
KA
Kaitlyn
3 months ago
Wait, why would you use --file for a jar? That's odd.
MO
Mona
3 months ago
I think B is better, but C works too.
JO
Josephine
4 months ago
C is the correct choice! It pulls the latest updates.
LU
Lucille
4 months ago
I vaguely recall that --file is not used to specify the JAR file directly in the build command. That makes option D seem wrong.
LE
Leah
5 months ago
I feel like option C is the right choice since it combines both pulling updates and setting the version. But I might be overthinking it.
ST
Stanford
6 months ago
I think I practiced a similar question where we had to specify the version using --build-arg. Is that what we need here?
LA
Laurel
6 months ago
I remember something about using --pull to get the latest updates from the parent image, but I'm not sure if it's necessary for this question.