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

Cisco 350-901 Exam - Topic 3 Question 109 Discussion

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?
D) docker build --file=application-1.0.0.jar --tag application:1.0.0
A) docker build --put=VERSION='1.0.0' --tag application:1.0.0
B) docker build --build-arg VERSION='1.0.0' --tag application:1.0.0
C) docker build --pull --build-arg VERSION='1.0.0' --tag application:1.0.0

Cisco 350-901 Exam - Topic 3 Question 109 Discussion

Actual exam question for Cisco's 350-901 exam
Question #: 109
Topic #: 3
[All 350-901 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

0/2000 characters
Dalene
3 days ago
Agreed, C covers all bases.
upvoted 0 times
...
Rashida
8 days ago
Plus, the build-arg is necessary for versioning.
upvoted 0 times
...
Dalene
13 days ago
Right, we need the latest base image.
upvoted 0 times
...
Tenesha
19 days ago
B doesn't include the pull command, which is important.
upvoted 0 times
...
Dalene
24 days ago
I was leaning towards B, but C makes more sense.
upvoted 0 times
...
Rashida
29 days ago
Exactly! Keeping the image updated is crucial.
upvoted 0 times
...
Tenesha
1 month ago
Yeah, it pulls updates and sets the version.
upvoted 0 times
...
Rashida
1 month ago
I think option C is the best choice.
upvoted 0 times
...
Jeanice
1 month ago
I’m surprised there’s no option for just pulling the latest image directly!
upvoted 0 times
...
Denna
2 months ago
Definitely C! It’s the standard way to build with updates.
upvoted 0 times
...
Kaitlyn
2 months ago
Wait, why would you use --file for a jar? That's odd.
upvoted 0 times
...
Mona
2 months ago
I think B is better, but C works too.
upvoted 0 times
...
Josephine
2 months ago
C is the correct choice! It pulls the latest updates.
upvoted 0 times
...
Lucille
2 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.
upvoted 0 times
...
Leah
4 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.
upvoted 0 times
...
Stanford
4 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?
upvoted 0 times
...
Laurel
4 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.
upvoted 0 times
...

Save Cancel