exam questions

Exam 70-740 All Questions

View all questions & answers for the 70-740 exam

Exam 70-740 topic 1 question 134 discussion

Actual exam question from Microsoft's 70-740
Question #: 134
Topic #: 1
[All 70-740 Questions]

You have a server named Server1 that runs Windows Server 2016. Server1 has the Containers feature installed.
You create a text file that contains the commands that will be used to automate the creation of new containers.
You need to ensure that the commands in the text file are used when you create new containers.
What should you name the file?

  • A. Bootstrap.ini
  • B. Config.ini
  • C. Dockerfile
  • D. Unattend.txt
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
https://www.digitalocean.com/community/tutorials/docker-explained-using-dockerfiles-to-automate-building-of-images

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
JBSPLAT
4 years, 7 months ago
As for why the name itself of the file might be important: a lot of auto builders, specially Docker's itself, refer to this file by its well-known name, "Dockerfile". But again that's more of a standardization issue than a technical one.
upvoted 1 times
...
JBSPLAT
4 years, 7 months ago
To clear jamesps' concern: The name of the file is not a deal breaker, but the extension is. Dockerfile should not have an extension, thus invalidating all the other options but "C".
upvoted 3 times
...
jamesps
4 years, 12 months ago
Why does the file need to be named 'Dockerfile'. I understand that 'Dockerfile' is the correct term for the file, but isn't the name arbitrary? You specify the path to the Dockerfile when you run the 'docker build' command. So it could be anything.
upvoted 3 times
...
Jake__
5 years, 1 month ago
Also got this q on exam
upvoted 3 times
...
idbnur
5 years, 3 months ago
I also got this question
upvoted 3 times
...
Izhar
5 years, 5 months ago
Got thia question in exam
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...