Docker DCA Practice Test - Questions Answers, Page 17
List of questions
Related questions
Which docker run' flag lifts cgroup limitations?
'docker run -privileged
'docker run -cpu-period
'docker run -isolation
'docker run -cap-drop
A Kubernetes node is allocated a /26 CIDR block (64 unique IPs) for its address space.
If every pod on this node has exactly two containers in it, how many pods can this address space support on this node?
-995
64
32 in every Kubernetes namespace
64 for every service routing to pods on this node
32
You are running only Kubernetes workloads on a worker node that requires maintenance, such as installing patches or an OS upgrade.
Which command must be run on the node to gracefully terminate all pods on the node, while marking the node as unschedulable?
'docker swarm leave'
'docker node update -availability drain <node name>
'kubectl drain <node name>'
'kubectl cordon <node name>
Which networking drivers allow you to enable multi-host network connectivity between containers?
macvlan, ipvlan, and overlay
bridge, user-defined, host
host, macvlan, overlay, user-defined
bridge, macvlan, ipvlan, overlay
You want to mount external storage to a particular filesystem path in a container in a Kubernetes pod.
What is the correct set of objects to use for this?
a persistentVolume in the pod specification, populated with a persistentVolumeClaim which is bound to a volume defined by a storageClass
a storageClass in the pod's specification, populated with a volume which is bound to a provisioner defined by a persistentVolume
a volume in the pod specification, populated with a storageClass which is bound to a provisioner defined by a persistentVolume
a volume in the pod specification, populated with a persistentVolumeClaim bound to a persistentVolume defined by a storageClass
In Kubernetes, to mount external storage to a filesystem path in a container within a pod, you would use a volume in the pod specification. This volume is populated with a persistentVolumeClaim that is bound to an existing persistentVolume. The persistentVolume is defined and managed by the storageClass which provides dynamic or static provisioning of the volume and determines what type of storage will be provided1.
Reference:
* Dynamic Volume Provisioning | Kubernetes
Is this a supported user authentication method for Universal Control Plane?
Solution: Docker ID
Yes
No
A company's security policy specifies that development and production containers must run on separate nodes in a given Swarm cluster.
Can this be used to schedule containers to meet the security policy requirements?
Solution: node affinities
Yes
No
You created a new service named 'http' and discover it is not registering as healthy. Will this command enable you to view the list of historical tasks for this service?
Solution: 'docker ps http'
Yes
No
The Kubernetes yaml shown below describes a clusterIP service.
Is this a correct statement about how this service routes requests?
Solution: Traffic sent to the IP of this service on port 80 will be routed to port 8080 in a random pod with the label app:
nginx.
Yes
No
Is this a way to configure the Docker engine to use a registry without a trusted TLS certificate?
Solution: List insecure registries in the 'daemon.json configuration file under the \insecure-registries' key.
Yes
No
Question