exam questions

Exam 70-740 All Questions

View all questions & answers for the 70-740 exam

Exam 70-740 topic 1 question 215 discussion

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

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have two servers that run Windows Server 2016.
You have a server named Server1 that runs Windows Server 2016. Server1 has the Hyper-V server role and Docker installed.
You pull the Microsoft/iis Docker image to Server1.
You need to view the available space in the Microsoft/iis Docker image.
Solution: You run the following commands.
docker run ""name container1 ""isolation hyperv ""d Microsoft/iis docker exec ""i container1 cmd.exe dir
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
SalmanAhmed
4 years, 4 months ago
The cmdlet is wrong: docker run --name container1 --isolation hyperv -d Microsoft/iis docker exec -i container1 cmd.exe dir Correct Answer is B:
upvoted 2 times
...
rcs82
4 years, 8 months ago
Cheeky question...I assumed the formatting was just messed up but it really is as presented, i.e. the reason it's B is because the solution here truly is one long command, instead of splitting into three lines (2 docker commands + "dir")
upvoted 3 times
Dave_Holden
4 years, 4 months ago
And the shell will not execute it correctly as intended with the example syntax. If each command was run line by line in sequence, the result would be the output that was requested of the requirements.
upvoted 1 times
...
...
Craig92866
5 years ago
Correct answer is B. The next question shows the correct command.
upvoted 1 times
...
panda
5 years, 1 month ago
I think the correct answer is "A.Yes" not "B.No". Given command is correct I think.
upvoted 1 times
Robin39
5 years, 1 month ago
Have reference?
upvoted 1 times
panda
4 years, 9 months ago
My understand for B as correct answer is as follow. By docker exec ""i container1 cmd.exe, I attach to docker and cmd.exe starts. After then cmd.exe prompts next command. So I can enter dir. What I want to say, docker will reject docker exec ""i container1 cmd.exe dir.
upvoted 1 times
...
...
...
Aldrid
5 years, 4 months ago
Got that q on exam
upvoted 2 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