exam questions

Exam 70-740 All Questions

View all questions & answers for the 70-740 exam

Exam 70-740 topic 1 question 73 discussion

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

You have a server named Server1 that runs Windows Server 2016. The Docker daemon runs on Server1.
You need to ensure that members of a security group named Docker Administrators can administer Docker.
What should you do?

  • A. Run the Set-Service cmdlet.
  • B. Modify the Security settings of Dockerd.exe.
  • C. Edit the Configuration.json file.
  • D. Run the sc config command.
  • E. Run the sc privs command.
  • F. Add Docker Administrators to the local Administrators group.
  • G. Modify the Security settings of Docker.exe.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
The preferred method for configuring the Docker Engine on Windows is using a configuration file. The configuration file can be found at 'C:\ProgramData\Docker
\config\daemon.json'. If this file does not already exist, it can be created.
The Docker Engine can also be configured by modifying the Docker service using the sc config command.
References:
https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon

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
Dave_Holden
4 years, 4 months ago
I think there is an order of best answer to these similar docker questions. I think it goes like this, if given the option the best answer is in this order: 1. daemon.json 2. sc config 3. Add Docker Administrators to the local Administrators group Page 373 of the Exam Ref 70-740 says: Creating an administrative group: By default, only members of the local Administrators group can use the Docker client tocontrol the Dockerd engine when working on the local system. In some cases, you can grantusers this ability without giving them Administrators membership. You can configureDockerd to recognize another group—in this case, the group is called “docker”—byincluding the following setting in the daemon.json file.{ "group" : "docker"
upvoted 1 times
...
UsmanUmar
4 years, 4 months ago
Daemon.json or Sc config comman. Both can used to allow connections to a particular port.
upvoted 1 times
...
JBSPLAT
4 years, 5 months ago
The config file for the daemon is called daemon.json, not configuration.json. So that only leaves the sc config, which, although documentation is virtually non-existent, can make changes to the engine. Reference: https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon#configure-docker-on-the-docker-service
upvoted 2 times
...
asmaerazgi
4 years, 5 months ago
but we can use daemon.json too!!! so the C & D both correct???
upvoted 1 times
...
northgaterebel
4 years, 6 months ago
C is the answer. sc config modifies the properties of a service but cannot grant or deny access to administer a running service. According to the article posted in the answer the configuration file has a group setting that can grant access the docker engine.
upvoted 1 times
northgaterebel
4 years, 6 months ago
I am wrong lol. D is the correct answer. You can add a command switch to the binpath that configures access.
upvoted 1 times
...
...
abhic25
4 years, 8 months ago
Checked with docker person who works on docker and container only, he said F
upvoted 2 times
Sten111
4 years, 7 months ago
The given answer is correct. When you do F you're opening up the entire machine to those users which is 100% not an MS answer.
upvoted 4 times
...
...
Bobgross
4 years, 10 months ago
For anyone struggling, I've been having a hard time finding any references to SC Config in my official exam books. I have found a website that did mention it. https://commandwindows.com/sc.htm sc config - Configures service startup and login accounts I found a few places that mentioned using that to configure the daemon.
upvoted 2 times
...
Izhar
5 years, 3 months ago
Got this question in exam
upvoted 2 times
...
rbrink2001
5 years, 7 months ago
The answer if F. The question is not talking about configuring docker, but letting the Docker Admin group administer the docker containers.
upvoted 1 times
Riven
5 years, 7 months ago
D is also correct: https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon By default, only members of the Administrators group can access the Docker Engine through the named pipe. To specify a security group that has this access, use the group flag in daemon.json
upvoted 5 times
...
uevenasdf
5 years, 2 months ago
That's what I thought.. man these questions actually intend to throw you off
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