Chapter 4 - Implement Windows Containers Flashcards

1
Q

You are the administrator for your company network. You have a Windows Server 2016 Hyper-V server named Server1. Server1 has an IP address of 192.168.1.78 and has a container named Container1 that hosts a web application on port 84. Container1 has
an IP address of 172.16.5.6 and a port mapping from port 80 on Server1 to port 84 on Container1. You have a server named Server2 that has an IP address of 192.168.1.79. To what IP address and port should you connect if you need to connect to the web application from Server2?
A. 192.168.1.78:84
B. 192.168.1.78:80
C. 172.16.5.6:80
D. 172.16.5.6:84

A

C. You would want to connect to Container1, since that is where the web application is located. Container1 has an IP address of 172.16.5.6 and a port mapping from port 80.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

You are the administrator for your company network. You have a Windows Server 2016 Hyper-V host named Server1. Server1 has a virtual machine named VM1 that is configured to run the Docker daemon. On VM1 you have a container network that uses transparent mode. What should you do if you need to ensure that containers that run on VM1 can obtain IP addresses from DHCP?
A. Run docker network connect on Server1.
B. Run docker network connect on VM1.
C. Run Get-VMNetworkAdapter-VMName VM1| Set-VMNetworkAdapter- MacAddressSpoofing On on VM1.
D. Run Get-VMNetworkAdapter-VMName VM1| Set-VMNetworkAdapter- MacAddressSpoofing On on Server1.

A

D. You will want to configure Media Access Control (MAC) address spoofing on Server1. If your container host is virtualized, you must enable MAC address spoofing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
You are the administrator for your company network. You have a Windows Server 2016 server named Server1 and you install the Docker daemon. What should you do if you need to configure the Docker daemon to accept connections only on TCP port 64500?
A. Edit the daemon.json file.
B. Edit the configuration JSON file.
C. Run the New-NetFirewallRule cmdlet. 
D. Run the Set-Service cmdle
A

A. Administrators can set any configuration option for the daemon in a JSON format. This would be the daemon.json file. By default, Docker captures the standard output (and standard error) of all your containers and writes them in files using the JSON format. The default file location is C:\ProgramData\docker\config\daemon.json.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
You are the administrator for your company network. You have a Windows Server 2016 server named Server1. You plan to deploy Internet Information Services (IIS) in a Windows container. What three actions should you perform if you need to prepare Server1 for the planned deployment? (Choose three.)
A. Install the Hyper-V Server role.
B. Install the Base Container images.
C. Install the Container feature.
D. Install the Web Server role.
E. Install Docker.
A

B, C, and E. In order, first you would install the Container feature, then install Docker, and then install the Base Container images.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

You are the administrator for your company network. You are discussing container types with a colleague. Which container type provides application isolation through process and namespace isolation technology and shares a kernel with the container host and all containers running on the host?
A. Hyper-V Container
B. Windows Server Container C. Docker Container
D. Docker Daemon Container

A

B. In a Windows Server Container, the kernel is shared among all the different Windows Containers. This container allows the administrator to isolate applications so that applica- tions can run in their own space and not affect other applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

You are the administrator for your company network. You have a Windows Server 2016 server named Server1 that runs the Docker daemon. What should you do if you need to ensure that members of a security group named Docker Administrators can administer Docker?
A. Run the sc privs command.
B. Edit the daemon.json file.
C. Add Docker Administrators to the local Administrators group.
D. Edit the configuration.json file.

A

C. Docker can only be administered by an administrator. So, by creating a Docker Admin- istrators group and adding it to the local Administrators group, you allow the Docker Administrators group to administer Docker.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

You are the administrator for your company network. You have a Windows Server 2016 container host named Server1. What parameter should you use with the docker run command if you need to start a Hyper-V Container on Server1?
A. ––entrypoint B. ––expose
C. ––runtime
D. ––isolation E. ––privileged

A

D. When you are working with Hyper-V Containers in Docker, the settings are identical to managing Windows Server containers. The one difference that you want to include in the Hyper-V Container is the –isolation=hyperv parameter. The following is
an example of the Docker command with the Hyper-V parameters: docker run -it –isolation=hyperv microsoft/nanoserver cmd.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

You are the administrator for your company network. You have a Windows Server 2016 container host named Server1. On Server1, you create a container named Container1. What should you run if you need to mount C:\ContainerFiles from Server1 to Container1?
A. dockerd ––storage-opt dm.mountopt=ContainerFiles Container1
B. docker run -it -vC:\ContainerFiles:c:\ContainerFiles Container1 C. dockerd ––storage-opt dm.datadev=/c/ContainerFiles Container1 D. docker run -it -v c:\ContainerFiles Container1

A

B. The docker run command is used with the -v switch to mount a folder to a container.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

You are the administrator for your company network. You have a Windows Server 2016 server named Server1 that 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. What should you name the file if you need to ensure that the commands in the text file are used when you create new containers?
A. Bootstrap.ini B. Config.ini
C. Dockerfile
D. Unattend.txt

A

C. A Dockerfile is a text document that contains all the commands a user could call on the
command line to assemble an image.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
You are the administrator for your company network. You have a Windows Server 2016 Nano Server named Nano1. You deploy several containers to Nano1 that use an image named Image1. What should you run if you need to deploy a new container to Nano1 that uses Image1?
A. The docker run command
B. The docker load command
C. Install-NanoServerPackage cmdlet
D. Install-WindowsFeature cmdlet
A

A. The docker run command executes commands in a Dockerfile and also allows you to delete an image.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

You are the administrator for your company network. You are having a discussion with a colleague regarding the use of Docker and Windows Containers. Which of the following statements is true?
A. The Docker application does not need to be installed to work with Windows Containers.
B. The Docker application does need to be installed to work with Windows Containers. C. Neither needs to be installed; they are both already installed by default.
D. Each operates separately and they do not work together.

A

B. The Docker application does need to be installed in order to work with Windows Containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

You are the administrator for your company network. You are discussing the Docker Restart Policy with a colleague. What is the default setting for a container when working with the Docker Restart Policy?
A. always
B. on-failure[:max-retries] C. no
D. unless-stopped

A

C. The default setting for a container is no. This setting will not automatically restart the
container.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

You are the administrator for your company network. One of the advantages of using Docker is that you can go to Docker’s website to look at the different images that are avail- able. There are images for operating systems, applications, and software. But what happens if you can’t find an image that meets your needs?
A. You must find the image template that best matches your needs.
B. Just create your own Dockerfile.
C. Just pick the image template that most closely resembles what you are looking for. D. There is nothing you can do.

A

B. You can build your own images using Dockerfiles. When you install Docker, the Docker engine includes tools that can be used to create Dockerfiles. Dockerfiles are just text files that are manually created and they are compiled and turned into image files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

You are the administrator for your company network. You and a colleague are discussing how Windows Containers differ from Hyper-V Containers. Which statement is true?
A. There are no differences.
B. Windows Containers utilize their own instance of the Windows kernel and Hyper-V
Containers share the system’s kernel between all containers and the host.
C. Windows Containers utilize their own instance of the Windows kernel and Hyper-V Containers utilize the system’s kernel on just the host.
D. Windows Containers share the system’s kernel between all containers and the host and Hyper-V Containers utilize their own instance of the Windows kernel.

A

D. Windows Containers share the system’s kernel between all containers and the host. Hyper-V Containers are different because each Hyper-V Container utilizes its own instance of the Windows kernel.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

You are the administrator for your company network. You and a colleague are discussing
the Azure Container Service and what it can be used for. Which statement is true?
A. The Azure Container Service uses proprietary scheduling and management tools. B. The Azure Container Service uses open source scheduling and management tools. C. The Azure Container Service uses commercial scheduling and management tools. D. The Azure Container Service uses registered scheduling and management tools.

A

B. The Azure Container Service allows you to easily create, configure, and manage your virtual machine cluster of containers. By using open source tools, the Azure Container Service connects you with thousands of other users who are also designing, building, and maintaining container images.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

You are the administrator for your company network. You want to view the information about containers. What PowerShell cmdlet will allow you to view that information?
A. Get-ContainerHost
B. Get-ContainerNetworkAdapter C. Get-ContainerImage
D. Get-Container

A

D. The Get-Container PowerShell cmdlet allows an administrator to view information about containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

You are the administrator for your company network. You are discussing Dockerfile commands with a colleague. What Dockerfile command allows you to create a mount point and externally mounted volumes from host systems or other containers?
A. Volume B. Onbuild C. Expose D. Run

A

A. The Volume Dockerfile command allows an administrator to create a mount point and externally mounted volumes from host systems or other containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

You are the network administrator for your company network. The company has decided to start using containers. What command would you use to create a new container?
A. docker build container B. docker create
C. docker new
D. docker build

A

B. The docker create command gives you the ability to create a new container.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

You are the network administrator for your company network. The company has decided to start using containers. You have created some images. Now you’d like to see the images you created. What command allows you to see your images?
A. docker see
B. docker images C. docker info D. docker view

A

B. The docker images command gives you the ability to see your images. The docker info command allows you to see how many images you have on a host, but it does not give you details about the images.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

You are the network administrator for your company network. The company has decided to start using containers. You need to build and use a Dockerfile. What command would you use if you need to compile and create an image using the Dockerfile?
A. docker build B. docker run
C. docker compile D. docker rm

A

A. The docker build command allows you to compile and create an image. The docker run command executes commands in a Dockerfile, and the docker rm command allows you to delete an image.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

You are the network administrator for your company network. The company has decided to start using containers. You need to build and use a Dockerfile. What command would you use if you need to execute commands within the Dockerfile?
A. docker build B. docker run
C. docker compile D. docker rm

A

B. The docker run command executes commands in a Dockerfile. The docker build command allows you to compile and create an image, and the docker rm command allows you to delete an image.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

You are the network administrator for your company network. The company has decided to start using containers. You need to build and use a Dockerfile. What command would you use if you need to delete a container?
A. docker delete
B. docker kill container C. delete-docker-Container D. remove-container

A

D. The remove-container command gives you the ability to delete a container.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

You are the network administrator for your company network. The company has decided to start using containers. You need to build a new image using Windows Server Core. What command would you use to get a Windows Server Core image?
A. docker get microsoft/windowsservercore B. docker run microsoft/windowsservercore C. docker pull microsoft/windowsservercore D. docker build microsoft/windowsservercore

A

C. The docker pull microsoft/windowsservercore command allows you to grab an
image of Windows Server Core from the Docker website.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

You are the administrator for your company network. The company has decided to start using containers. Your supervisor wants to know which client operating systems can host containers. Which of the following client operating systems do you tell him? (Choose all
that apply.)
A. Windows 7 Professional
B. Windows 8.1 Enterprise
C. Windows 10 Home
D. Windows 10 Enterprise (Anniversary Update)
E. Windows Server 2016

A

D and E. Computer systems (physical or virtual machines) running Windows Server 2016 (Core and with Desktop Experience), Nano Server, or Windows 10 Professional and Enter- prise (Anniversary Update) allow you to set up containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

You are the administrator for your company network. The network contains an Active Directory domain. The domain contains a Windows Server 2016 server named Server1. Server1 allows inbound connectivity from all computers in the domain. Server1 has an IP address of 192.168.0.10 and hosts a Windows container named Container1. Container1 hosts a website that is accessible on port 80. You need to ensure that you can use the Docker client to manage Container1 from any computer in the domain. What four cmdlets should you run? (Choose four.)
A. Restart-Service docker
B. New-ContainerNetwork- Name nat1 -Mode NAT-SubnetPrefix 192.168.0.0/24
-GatewayAddress 192.168.0.10
C. Add-Content ‘c:\programdata\docker\config\daemon.json’ ‘{“hosts”: [“tcp://127.0.0.1:80”, “npipe://”]}’
D. Add-Content ‘c”\programdata\docker\config\daemon.json’ ‘{“hosts”: [tcp://0.0.0.0:2375”, npipe://” ] }’]
E. New-Item-Type File c:\programData\docker\config\daemon.json

A

A, B, D, and E. In order, that’s E, D, A, and B. First thing you’d want to do is create a New-Item, then Add-Content, then restart the Docker service, and then create the New-ContainerNetwork.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

You are the administrator for your company network. The network has a main office and three branch offices and consists of an Active Directory domain. The main office contains three domain controllers and each branch office has one domain controller. You discover that the new settings in the Default Domain Policy are not applied in one of the branch offices, but all other Group Policy Objects (GPOs) are applied. What should you do from a domain controller in the main office if you need to check the replication of the Default Domain Policy for the branch office?
A. From Group Policy Management, click Default Domain Policy and then open the Details tab.
B. From Group Policy Management, click Default Domain Policy and then open the Scope tab.
C. Run repadmin.exe from a command prompt.
D. Run dcdiag.exe from a command prompt

A

C. repadmin.exe is a Replication Diagnostics tool. This command-line tool assists administrators in diagnosing replication problems between Windows domain controllers. repadmin.exe can also be used for monitoring the relative health of an Active Directory forest.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

You are the administrator for your company network. You and a colleague are discussing Windows Containers. Which of the following statements is true regarding Windows Containers?
A. They are independent and isolated environments that run an operating system.
B. They are independent and isolated environments that support user Home Folders.
C. They are dependent and non-isolated environments that run an operating system.
D. They are dependent and non-isolated environments that support user Home Folders.

A

A. Windows Containers are independent and isolated environments that run an operating system. These isolated environments allow an administrator to place an application into its own container, thus not affecting any other applications or containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q
You are the administrator for your company network. You are discussing container types with a colleague. Which container type runs within a virtual machine, and the container host’s kernel is not shared between the other containers?
A. Hyper-V Container
B. Windows Server Container
C. Docker Container
D. Docker Daemon Container
A

A. Hyper-V Containers run within a virtual machine, and the Windows Containers don’t need to run in a Hyper-V environment. In a Hyper-V Container, the container host’s kernel is not shared between the other Hyper-V Containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

You are the administrator for your company network. You are discussing Container components with a colleague. Which component can be on a physical or virtual machine, and is configured with the Windows Container feature?
A. Container Image
B. Container Host
C. Container OS Image D. Container Registry

A

B. The Container Host component can be on a physical or virtual machine, and it’s con- figured with the Windows Container feature. So the Windows Container sits on top of the Container Host.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

You are the administrator for your company network. You are discussing Container components with a colleague. Which component contains all of the layers of the container?
A. Container Image
B. Container Host
C. Container OS Image D. Container Registry

A

A. Container Image is the component that contains all of the layers of the container. So the Container Image contains the operating system, the application, and all of the services required to make that application function properly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q
You are the administrator for your company network. You are discussing Container components with a colleague. Your colleague is telling you about the component that runs the Docker application. What is this component called?
A. Container Registry
B. Docker daemon
C. Dockerfile
D. Docker Hub repositories
A

B. The Docker daemon is the component that runs the Docker application. The Docker daemon is automatically installed after you complete the installation of the Docker applica- tion. If you need to configure the Docker daemon, you would use the Docker daemon file. This file is in a JSON format.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

You are the administrator of your company network. You are planning on using containers on a virtualized network. You currently have the Hyper-V role installed on the system
and have the Windows Server 2016 operating system installed. You are concerned that
you might not have enough RAM. What is the minimum amount of RAM required to run containers in a virtualized network?
A. 2 GB B. 4 GB C. 6 GB D. 8 GB

A

B. A minimum of 4 GB of RAM needs to be available to the virtualized Hyper-V host.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

You are the administrator for your company network. The company has decided to start using containers. You want to see what version of Windows you have installed because you know that the operating system on the host machine must match the operating system of the Windows Container. What is one tool can you use to see what version of Windows is currently installed on the host machine?
A. repadmin.exe B. dcdiag.exe C. regedit.exe D. perfmon.exe

A

C. To see what Windows version you have installed, enter the system’s registry
(regedit.exe) and do a search for the current version.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

You are the administrator for your company network. The company has decided to install Docker. Which of the following statements regarding Docker are true? (Choose all that apply.)
A. It is a software package that allows you to create and manipulate containers and images.
B. It is a hardware package that allows you to create and manipulate containers and images.
C. It is a third-party application that Microsoft uses for containers.
D. It consists of a Docker engine and a Docker client (Docker daemon).

A

A, C, and D. Docker is the software package that you install and the Docker daemon is the application that you use to do your configuration and management. After you install Docker, the Docker daemon is automatically installed and configured with default settings. Docker is a third-party application that Microsoft has started using for containers. The Docker application consists of a Docker engine and a Docker client (Docker daemon).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

You are the administrator for your company network. The company has decided to start using containers. You need to find out which version of Windows is installed on the host machine. What registry key should you search for to see the version currently installed?
A. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows 10\CurrentVersion B. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows 2016\CurrentVersion C. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows \CurrentVersion
D. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion

A

D. One way to determine what Windows version you have installed is to enter the system’s registry (regedit.exe) and search for the following registry key: HKEY_LOCAL_MACHINE\ Software\Microsoft\Windows NT\CurrentVersion.

36
Q

You are the administrator for your company network. You have installed Docker. There are some Docker switches that can be used. The Docker switches can be run in PowerShell or at an elevated command prompt. Which command allows an administrator to debug and build a new image?
A. docker attack B. docker build C. docker commit D. docker deploy

A

C. The docker commit command allows an administrator to debug and build a new image.

37
Q

You are the administrator for your company network. You have installed Docker. There are some Docker switches that can be used. The Docker switches can be run in PowerShell or at an elevated command prompt. Administrators use which command to create and modify a stack?
A. docker attack B. docker build C. docker commit D. docker deploy

A

D. Administrators can use the docker deploy command to create and modify a stack.

38
Q
You are the administrator for your company network. You have installed Docker. You plan on using the Docker command that allows you to copy files and folders between the container and the local computer system. What command do you use?
A. docker copy
B. docker cp
C. docker create
D. docker replicate
A

B. Using the docker cp command allows an administrator to copy files and folders
between the container and the local computer system.

39
Q

You are the administrator for your company network. You have installed Docker. You plan on using the Docker command that allows you to view all of the containers. What command do you use?
A. docker ps
B. docker examine
C. docker containers D. docker replicate

A

A. The docker ps command allows you to view all of the containers.

40
Q

You are the administrator for your company network. You are discussing the Docker Restart Policy with a colleague. What Docker Restart Policy setting will try to restart the container indefinitely as well as always start on daemon startup?
A. always
B. on-failure[:max-retries] C. no
D. unless-stopped

A

A. The always setting will always restart the container. When the setting is set to always, Docker will try to restart the container indefinitely. The container will also always start on daemon startup.

41
Q

You are the network administrator for your company network. The company has decided to start using containers. You want to look to see if any containers are currently running. What command will allow you to see which containers are running?
A. docker see
B. docker images C. docker info D. docker view

A

C. The docker info command allows you to see how many images you have on a host, but it does not give you details about the images. The docker images command gives you the ability to see your images.

42
Q

You are the administrator for your company network. You have installed Docker. You plan on using the Docker command that allows you to pull an image from a registry. What command do you use?
A. docker pull B. docker push C. docker ps D. docker run

A

A. Administrators can use the docker pull command to pull an image from a registry. So, to install a container image such as Microsoft Nano Server from the online package repository, you’d type the following command into PowerShell: docker pull microsoft/ nanoserve

43
Q

You are the network administrator for your company network. The company has decided to start using containers. You have decided to delete an image from a container. What command would you use to delete an image from a container?
A. docker remove B. docker delete C. docker rmv
D. docker rm

A

D. The docker rm command allows you to delete an image. There may be a time when you need to remove an image from a container.

44
Q
You are the network administrator for your company network. The company has decided to start using containers. You have installed Docker and now want to add an image to a container. You check out what images are currently available in your repository. Now, what item do you need to turn the image into a container?
A. Image Name
B. Image ID
C. Image Info
D. Image Status
A

B. You will need the Image ID. Example, the Image ID for my Nano Server is d9bccb9d4cac. You will use this ID to turn the image into a container. Type the following into a PowerShell prompt (your Image ID will be different) and press Enter: docker run d9bccb9d4cac.

45
Q

You are the administrator for your company network. You create a bunch of different images and you’d like to do something to the images that will allow you to access them more easily. What is one way that you can keep track of the different images on your machine?
A. Search by name. B. Search by date.
C. Name the images. D. Tag the images.

A

D. Administrators have the ability to change the tags associated with the images. Admin- istrators use tag names as version names so that they can keep track of the different images on their machines. Having tags that you create allows you to easily access the images later by their tag names. To tag an image, you use the -t parameter. So the following is tagging an image as WillPanekImage: docker build -t WillPanekImage.

46
Q

You are the administrator for your company network. You have recently installed Docker and are unable to locate an image that you want to use on the Docker website. So, you have decided to use Dockerfile to create your own image. What are some of the advantages of building your own Dockerfile? (Choose all that apply.)
A. Administrators can store images as code. B. It’s an easy way to store your INI files.
C. You can have rapid re-creation of images. D. You can customize exactly what you want.

A

A, C, and D. If your organization decides that they want to build their own Dockerfiles, then they will get some benefits. Some of the advantages of building your own Dockerfiles are as follows:
■■ Administrators can store images as code.
■■ Your organization can have rapid re-creation of images. These images can then be used
for maintenance and upgrade cycles.
■■ Your organization can customize exactly what it wants.

47
Q

You are the administrator for your company network. You have decided to create your own image using Dockerfile. To make programming easier for future use, you have decided to add comments to the Dockerfile. What should you use for making commands?
A. Use the underscore (_) symbol and state exactly why each line is included. B. Use the pound (#) symbol and state exactly why each line is included.
C. Use the percent (%) symbol and state exactly why each line is included.
D. Use the asterisk (*) symbol and state exactly why each line is included.

A

B. Using the pound (#) symbol for making comments and stating exactly why each line is included helps someone following you or if someone is trying to learn what you do.

48
Q

You are the administrator for your company network. You are creating your own image using Dockerfile. There are different Dockerfile commands that you can use. Which command will copy new files, directories, or remote file URLs from a source () location to the filesystem of the image destination ?
A. Expose B. Copy C. Add
D. Volume

A

You are the administrator for your company network. You are creating your own image using Dockerfile. There are different Dockerfile commands that you can use. Which command will copy new files, directories, or remote file URLs from a source () location to the filesystem of the image destination ?
A. Expose B. Copy C. Add
D. Volume

49
Q

You are the administrator for your company network. You are creating your own image using Dockerfile. There are different Dockerfile commands that you can use. Which command tells Docker that the container is listening on the specified network ports during runtime?
A. Expose B. Copy C. Add
D. Volume

A

C. The Add command will copy new files, directories, or remote file URLs from a source () location to the filesystem of the image destination .

50
Q

You are the administrator for your company network. You are creating your own image using Dockerfile. Different Dockerfile commands are available for your use. What command allows an administrator to create a mount point and externally mounted volumes from host systems or other containers?
A. Expose B. Copy C. Add
D. Volume

A

A. The Expose command tells Docker that the container is listening on the specified net- work ports during runtime.

51
Q

You are the administrator for your company network. You are creating your own image using Dockerfile. Different Dockerfile commands are available for your use. Which setting allows you to set a trigger that is executed when the image is used as the base for another build?
A. Run
B. Onbuild C. Workdir D. Label

A

D. The Volume command allows an administrator to create a mount point and externally mounted volumes from host systems or other containers.

52
Q

You are the administrator for your company network. You have installed Docker. You notice that Docker has created three networks out of the box. Which network is described as an automatically generated network with a subnet and a gateway?
A. Bridge B. Host C. Proxy D. None

A

B. The Onbuild command allows you to set a trigger that is executed when the image is used as the base for another build.

53
Q

You are the administrator for your company network. You have installed Docker. You notice that Docker has created three networks out of the box. Which network is described as a container-specific network stack that lacks a network interface?
A. Bridge B. Host C. Proxy D. None

A

A. A bridge network is an automatically generated network with a subnet and a gateway. Docker connects to the bridge network by default; this allows deployed containers to be seen on your network.

54
Q

You are the administrator for your company network. You are discussing an advantage of using Docker with a colleague. You are discussing the public database of images that you have access to. What is this repository of images called?
A. Docker Hub
B. DockerCenter
C. DockerImageCenter D. DockerDatabase

A

A. Docker has a public database of images that you can access. The Docker Hub repository has images for Microsoft, Unix, Linux, and hundreds more. If you want to see what a ven- dor has out on the repository, just type docker search .

55
Q

You are the administrator for your company network. You and a colleague are discussing using Docker Hub to set up a private repository. But you are not sure if this is an available option. What statement is true regarding Docker Hub and a private repository?
A. The Docker Hub repository allows only Windows images.
B. Once images are added to the Docker Hub, everyone will have access to the images;
there is no private option.
C. Administrators can add users and accounts to the Docker Hub to verify that only the organization’s users are accessing the images.
D. To set up a private Docker Hub repository, you must pay a monthly fee.

A

C. Administrators have the ability to set up a private repository so that coworkers can share and use the images that you create. After you create your images using the Docker daemon, you can then push those images to your corporate Docker Hub repository. Admin- istrators can then add users and accounts to the Docker Hub to verify that only the organi- zation’s users are accessing the images.

56
Q

You are the administrator for your company network. You have decided to upload corporate images to Docker Hub. What is the first thing you need to do in order to create a Docker Hub account?
A. Create a user account.
B. Create a repository.
C. Enter the Docker ID namespace.
D. Go to the URL https://cloud.docker.com/

A

D. Before you can create an account, you must first go to the website. When you are ready to start uploading corporate images to the Docker Hub, you will first need to create a Docker Hub user account (https://cloud.docker.com/). After you have created your account, click the Create button and choose Create Repository.

57
Q
You are the administrator for your company network. You and a colleague are discussing PowerShell for containers and Docker. Which cmdlet allows an administrator to view information about containers?
A. Get-ContainerHost
B. Get-Container
C. New-Container
D. Export-ContainerImage
A

B. The Get-Container cmdlet allows an administrator to view information about containers.

58
Q
You are the administrator for your company network. You and a colleague are discussing PowerShell commands for containers and Docker. Which cmdlet can administrators use to view local container images?
A. Get-ContainerHost 
B. Get-Container
C. New-Container
D. Get-ContainerImage
A

D. Administrators can use the Get-ContainerImage cmdlet to view local container
images.

59
Q
You are the administrator for your company network. You and a colleague are discussing PowerShell commands for containers and Docker. Which cmdlet allows an administrator to add a virtual network adapter to a container?
A. Add-VirtualNetworkAdapter 
B. Add-ContainerNetworkAdapter 
C. New-ContainerNetworkAdapter 
D. Add-ContainerAdapter
A

B. The Add-ContainerNetworkAdapter cmdlet allows an administrator to add a virtual network adapter to a container.

60
Q

You are the administrator for your company network. You and a colleague are discussing Docker and Windows Containers. Which of the following statements is true in regard to working with Docker and Windows Containers?
A. Windows Containers are required in order to work with Docker.
B. Docker is required in order to work with Windows Containers.
C. Windows Containers are not required in order to work with Docker. D. Docker is not required in order to work with Windows Containers.

A

B. Docker is required in order to work with Windows Containers. Docker consists of the Docker Engine (dockerd.exe) and the Docker client (docker.exe).

61
Q

You are the administrator for your company network. You are planning on using Windows Containers. You know that two container base images are supported. What are they? (Choose two.)
A. Windows Server Core
B. Windows Server 2016 Standard C. Windows 10 Enterprise
D. Nano Server

A

A and D. Windows Containers are offered with two container base images: Windows Server Core and Nano Server.

62
Q

You are the administrator for your company network. You are planning on using containers on a virtualized network. You currently have the Hyper-V role installed on the system and have the Windows Server 2016 operating system installed. How many virtual processors
for the container host virtual machine are needed?
A. 2 B. 4 C. 6 D. 8

A

A. Two virtual processors for the container host virtual machine are required if you are going to be running virtualization with a container.

63
Q

You are the administrator for your company network. You have installed Docker. You plan on using the Docker command that allows you to terminate running containers. What command do you use?
A. docker terminate B. docker stop
C. docker kill
D. docker replicate

A

C. The docker kill command allows you to terminate running containers.

64
Q

You are the administrator for your company network. You have installed Docker. You plan on using the Docker command that allows an administrator to view changes to files or directories in the container’s filesystem. What command do you use?
A. docker diff
B. docker filesystem C. docker files
D. docker deploy

A

A. The docker diff command allows an administrator to view changes to files or directo-
ries in the containers file system.

65
Q

You are the administrator for your company network. You have installed Docker. You plan on using the Docker command that allows you to run a new command in an existing container. What command do you use?
A. docker exist
B. docker filesystem C. docker commit
D. docker exec

A

D. Administrators can use the docker exec command to run a new command in an exist- ing container

66
Q

You are the administrator for your company network. You have installed Docker. “Swarm mode” is a Docker feature that provides built-in container capabilities, including native clustering of Docker hosts and scheduling of workloads. A group of Docker hosts form a “swarm” cluster when their Docker engines are running together in swarm mode. A swarm is composed of two types of container hosts: manager nodes and worker nodes. What is the minimum number of manager nodes needed to run in swarm mode?
A. 1 B. 2 C. 3 D. 4

A

A. Any given swarm can have multiple manager nodes, but it must always have at least one.

67
Q

You are the administrator for your company network. You are discussing container types with a colleague. Name the container type described here: the container host’s kernel is not shared between the other containers.
A. Hyper-V Container
B. Windows Server Container C. Docker Container
D. Docker Daemon Container

A

A. Hyper-V Containers and Windows Containers work the same way. The difference between the two is that Hyper-V Containers run within a virtual machine and Windows Containers don’t need to run in a Hyper-V environment. In a Hyper-V Container, the container host’s kernel is not shared between the other Hyper-V Containers.

68
Q
You are the administrator for your company network. You are discussing container components with a colleague. Your colleague is telling you about the component that is a location where all of your images are stored. What component is she talking about?
A. Container Registry
B. Docker daemon
C. Dockerfile
D. Docker Hub repositories
A

D. The Docker Hub repositories are where all of your images are stored. By having a cen- tral location for stored images, you can share your images with coworkers, customers, or the entire IT population. There are Docker Hub repositories on the Internet, and these loca- tions allow you to grab and use images for your organization.

69
Q

You are the administrator for your company network. You are discussing the Docker Restart Policy with a colleague. What Docker Restart Policy command will always restart the container unless the container was stopped before the restart?
A. always
B. on-failure[:max-retries] C. no
D. unless-stopped

A

D. The unless-stopped command will always restart the container unless the container
was stopped before the restart.

70
Q

You are the administrator for your company network. You are creating your own image using Dockerfile. Different Dockerfile commands are available that you can use. What command allows you to add an environmental variable?
A. ENV
B. Environment
C. EnvironmentalVariable D. Variable

A

A. The ENV command allows you to add an environmental variable.

71
Q
You are the administrator for your company network. You are creating your own image using Dockerfile. Different Dockerfile commands are available that you can use. What command shows the location of the container image that will be used during the image creation process?
A. User
B. Where
C. From
D. Location
A

C. The From command shows the location of the container image that will be used during the image creation process.

72
Q

You are the administrator for your company network. You have installed Docker and plan on using the Docker Hub repository to search for images. The Docker Hub repository
has images for Microsoft, Unix, Linux, and hundreds more. You want to search for what Microsoft has in the repository. How do you search Docker for Microsoft images?
A. docker search Microsoft B. search docker Microsoft C. docker search MS
D. search docker MS

A

A. Type docker search Microsoft to search the repository for Microsoft images.

73
Q
You are the administrator for your company network. You have installed Docker. You plan on using the Docker command that allows you to send an image to a registry. What command do you use?
A. docker pull 
B. docker push 
C. docker ps 
D. docker run
A

B. The docker push command allows you to push an image to a registry. After you have created your repository, you can push images to the repository by providing the name of your image, your Docker Hub username, the repository name that you created, and an image tag. You’d type the following command: docker push /:.

74
Q
You are the administrator for your company network. You have installed Docker. You notice that Docker has created three networks out of the box. Which network adds a container on the host’s network stack?
A. Bridge 
B. Host 
C. Proxy 
D. None
A

B. The host network adds a container on the host’s network stack. As far as the network is concerned, there is no isolation between the host machine and the container. For instance, if you run a container that runs a web server on port 80 using host networking, the web server is available on port 80 of the host machine.

75
Q

You are the administrator for your company network. You have a Windows Server 2016 container host named Server1. What parameter should you use with the docker run command if you want to see a port or a range of ports?
A. ––entrypoint B. ––expose
C. ––runtime
D. ––isolation E. ––privileged

A

B. Using the ––expose option allows you to expose a port or a range of ports.

76
Q
You are the administrator for your company network. You have a Windows Server 2016 container host named Server1. What parameter should you use with the docker run command if you want to set up an IPv4 address?
A. ––ip
B. ––ip4
C. ––ip6
D. ––ipconfig
A

A. Using the ––ip option allows you to configure an IPv4 address (e.g., 172.30.100.104).

77
Q

You are the administrator for your company network. You have installed Docker and now would like to view the current list of Docker networks. What command should you use to see the list of available networks?
A. docker network list B. docker network
C. docker network ls D. docker list

A

C. To view the current list of Docker networks, use the docker network ls command.

78
Q

You are the administrator for your company network. You have recently installed Docker. You want to create a bridge network with a specific subnet, gateway, and name. You want the network to have a subnet of 192.168.5.0/24, a gateway of 192.168.5.10, and a name of new_subnet1. What command would you run?
A. docker network create ––driver=bridge ––subnet=192.168.5.0/24 ––gateway=192.168.5.10 new_subnet1
B. docker network create ––driver=bridge ––subnet=192.168.5.10 ––gateway=192.168.5.0/24 new_subnet1
C. docker create network ––driver=bridge ––subnet=192.168.5.0/24 ––gateway=192.168.5.10 new_subnet1
D. docker create network ––driver=bridge ––subnet=192.168.5.10 ––gateway=192.168.5.0/24 new_subnet1

A

A. Use the docker network create to create the new network. Then assign the options ––driver=bridge, ––subnet=192.168-5.0/24, ––gateway-192.168.5.10, and the new name of new_subnet1.

79
Q

You are the administrator for your company network. You are planning on using containers on a virtualized network. You need to install the Hyper-V role while connected locally to the server. What command do you use to install Hyper-V if you’re using PowerShell?
A. Install-Feature -Name Hyper-V -ComputerName
B. Install-WindowsFeature -Name Hyper-V -ComputerName
C. Install-Feature -Name Hyper-V
D. Install-WindowsFeature -Name Hyper-V

A

D. You need to use Install-WindowsFeature - Name Hyper-V. You only need to use -ComputerName if you are connected remotely.

80
Q
You are the administrator for your company network. You have installed Docker and now would like to set the metadata on a container. What command should you use?
A. ––tag
B. ––label
C. ––name
D. ––label-file
A

B. To set the metadata on a container, use the ––label or -l command.

81
Q

You are the administrator for your company network. You and a colleague are discussing the Azure Container Registry. What does the Azure Container Registry do?
A. It stores and manages public Docker container images. B. It stores and manages public Docker containers.
C. It stores and manages private Docker container images. D. It stores and manages private Docker containers.

A

C. An Azure Container Registry stores and manages private Docker container images, similar to the way Docker Hub stores public Docker images. Azure Container Registry allows you to store Docker container images in repositories. This allows you to store groups of images (or versions of images) in isolated environments

82
Q

You are the administrator for your company network. You are planning on using Windows Containers. You know that two container base images are supported. If your application will be built for the cloud and uses the .NET Core, what base image should you use?
A. Windows Server Core
B. Windows Server 2016 Standard C. Windows 10 Enterprise
D. Nano Server

A

D. If your application will be built for the cloud and uses .NET Core, then you should use Nano Server. This is because Nano Server was built with the intention of having as small a footprint as possible, and several nonessential libraries were removed. If you find that your application needs full compatibility with the .NET Framework, then you should use Windows Server Core.

83
Q
You are the administrator for your company network. You and a colleague are discussing PowerShell commands for containers and Docker. Which cmdlet can administrators use to install a software package on a computer?
A. Install-Package
B. Add-Package
C. Import-Package
D. Install-SoftwarePackage
A

A. Administrators can use Install-Package to install a software package on a computer.

84
Q
You are the administrator for your company network. You and a colleague are discussing PowerShell cmdlets for containers and Docker. Which cmdlet can administrators use to stop a container?
A. Halt-Container 
B. Seize-Container 
C. Stop-Container 
D. End-Container
A

C. Administrators can use Stop-Container to stop a container.

85
Q

You are the administrator for your company network. You have just installed Docker.
When you install Docker, how many networks are created automatically?
A. 1
B. 2
C. 3
D. 4

A

C. Once you have installed Docker, there will be three networks that are created automati- cally. You can see these networks by typing docker network ls in PowerShell or at an elevated command prompt. The three networks are bridge, none, and host.

86
Q

You are the administrator for your company network. You have installed Docker. You notice that Docker has created three networks out of the box. Which network is described as a container-specific network stack that lacks a network interface?
A. Bridge B. Host C. Proxy D. None

A

D. None is a container-specific network stack that lacks a network interface.