exam questions

Exam 70-740 All Questions

View all questions & answers for the 70-740 exam

Exam 70-740 topic 1 question 216 discussion

Actual exam question from Microsoft's 70-740
Question #: 216
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 ""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: A 🗳️
References:
https://docs.docker.com/engine/reference/commandline/container_exec/#options https://www.windows-commandline.com/get-file-size-directory-size-command/

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
Its Correct! docker run -name container1 -isolation hyperv -d Microsoft/iis docker exec -i container1 cmd.exe dir
upvoted 1 times
...
GoldenFox
4 years, 7 months ago
This is the correct answer. The one that does NOT include -isolation
upvoted 2 times
...
LeonSKanady
5 years ago
A is OK.
upvoted 1 times
...
panda
5 years, 1 month ago
I think A is OK By docker run, container1 is stared. But using -d it is dettached and we can not enter more command to container1. But by docker exec -i, cmd.exe is stared on container1. Now we can enter dir by which we can get available space in the image
upvoted 2 times
TA77
4 years, 10 months ago
Bro, -d means the container is started in a Detached Mode. That's means: "By design, containers started in detached mode exit when the root process used to run the container exits." It doesn't mean that you cannot enter a command. The answer A is correct though.
upvoted 2 times
...
...
RVR
5 years, 3 months ago
really ?
upvoted 1 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