exam questions

Exam 70-740 All Questions

View all questions & answers for the 70-740 exam

Exam 70-740 topic 1 question 233 discussion

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

You have a server named Server1 that runs Windows Server 2016.
Server1 is a Docker host.
You are creating a Dockerfile to build a Docker image.
You need to add a file named File1.txt from Server1 to C:\Folder1\ in the Docker image.
What are two possible commands that you can use to achieve the goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  • A. COPY file1.txt c:/folder1/
  • B. copy-item file1.txt folder1\file1.txt
  • C. ROBOCOPY file.txt \folder1\
  • D. XCOPY file1.txt c:\folder1\
  • E. ADD file1.txt /folder1/
Show Suggested Answer Hide Answer
Suggested Answer: AE 🗳️
References:
https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/manage-windows-dockerfile

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
Thanishn
4 years, 5 months ago
https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/manage-windows-dockerfile
upvoted 2 times
...
Tr1v
4 years, 5 months ago
Got this Q in October
upvoted 2 times
rag01
4 years, 4 months ago
was the answers the same? and in same order?
upvoted 1 times
...
...
V1980
4 years, 8 months ago
Got this July 2020
upvoted 2 times
...
LeongCC
4 years, 9 months ago
Got this q on exam (11AUG2020) The correct answer is A and E
upvoted 3 times
...
jam7272
4 years, 9 months ago
Forward slashes in Containers are happy... elsewhere in Windows... not really
upvoted 2 times
...
VeiN
4 years, 11 months ago
correct answer is A and D (copy and xcopy) in both the full path is specified and the file will get copied. We don`t know where file1 is located so we don`t know where copy-item will copy the file
upvoted 1 times
alexnt
4 years, 10 months ago
I think A and E are correct
upvoted 2 times
nonoelptirobo
4 years, 10 months ago
from the cited reference : On Windows, the destination format must use forward slashes. For example, these are valid COPY instructions: COPY test1.txt /temp/ COPY test1.txt c:/temp/ The ADD instruction is like the COPY instruction, but with even more capabilities. Considerations for running ADD with Windows On Windows, the destination format must use forward slashes. For example, these are valid ADD instructions: ADD test1.txt /temp/ ADD test1.txt c:/temp/ Meanwhile, the format with backslashes won't work: A & E are both using the correct syntax
upvoted 5 times
...
...
...
Knicks
5 years, 1 month ago
Why won’t xcopy work?
upvoted 1 times
...
Aldrid
5 years, 4 months ago
Got that q on exam
upvoted 4 times
Wanderlusting
5 years, 3 months ago
So did I
upvoted 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago