DCA Mock Test - 1
Sign in to Google to save your progress. Learn more
You have a swarm cluster which consists of 27 active nodes. Out of which, 9 nodes are managers, and one node is the leader. What will be the fault tolerance and quorum of this swarm cluster respectively? *
Which statement(s) are correct about Docker Images? *
Yes
No
All Docker Images layers are Read-Only.
Docker Image layers are downloaded as a tar file and stored at /var/lib/docker/aufs/<image-name>
Docker Images are volatile.
Each layer of a Docker Image is a delta of the previous layer.
Docker Images can be built without Dockerfiles.
Which container runtimes are supported by Kubernetes (up to v1.19)? *
Yes
No
crun
containerd
Docker
railcar
CRI-O
Which of the following is the smallest deployable unit in Kubernetes? *
Which instruction is used to set the base image for the subsequent builds in the Dockerfile? *
Yes
No
ARG
ONBUILD
FROM
RUN
SCRATCH
Which Docker command is used to list out bind-mounts on a Docker host? *
Yes
No
docker volume ls
docker volumes
docker object list
docker mount ls
bind-mounts cannot be managed by Docker CLI
Which command will you use to list out tasks of one or more services running on a swarm cluster? *
Yes
No
docker service ps
docker ps
docker service ls --task
docker service ls
docker services
What is the role of Orchestrator in Swarm? *
Yes
No
To accept the command and create a service object.
To allocate IP addresses to tasks.Row 2
To assign tasks on swarm nodes.
To execute tasks assigned to worker nodes.
To create tasks for service objects in swarm.
Which network driver is not supported by Docker natively? *
Yes
No
host
bridge
Load Balancer
macvlan
VPN
Which key-value store is used to store all cluster data in Kubernetes? *
Yes
No
CDB
Venti
LMDB
etcd
BDB
In a Kubernetes cluster, which process is responsible for running the containers in a scheduled Pod? *
Yes
No
etcd
kube-apiserver
containerd
kubelet
kube-proxy
Which kubectl command will you use to scale up a deployment to create five more pod replicas? *
Yes
No
kubectl scale up <deployment-name> --replicas=5
kubectl update <deployment-name> --add-replicas=5
kubectl deployment scale <deployment-name> --replicas=5
kubectl scale <deployment-name> --replicas=5
kubectl scale <deployment-name> replicas=5
Which command will you use to list out the contents of /etc directory of a running Ubuntu Container, without interrupting container's default process? *
Yes
No
docker login <container_name> ls /etc
docker attach <container_name> ls /etc
docker exec <container_name> ls /etc
docker connect <container_name> ls /etc
docker load <container_name> ls /etc
How do you interpret a "running container" in a Linux environment? *
Yes
No
Program
Installation Package
Process
File
Bloatware
Which command is used to list out all the intermediate layers of a Docker image? *
Yes
No
docker images
docker images --layers
docker list
docker history
docker inspect
You have built your Docker Image using Docker Daemon on your system and now you want to deliver it as a tar archive to your client. Which command will you use? *
Yes
No
docker load
docker save
docker export
docker commit
docker backup
Which docker network is used to connect individual docker daemons participating in swarm cluster? *
What is the role of Scheduler in Swarm? *
Yes
No
To accept the command and create a service object.
To allocate IP addresses to tasks.
To assign tasks on swarm nodes.
To instruct worker node to start running a task.
To execute tasks assigned to worker nodes.
docker service scale command can be applied only on… *
Yes
No
global service
replicated service
both replicated and global service
Terminated Services
Network Services
You have specified multiple WORKDIR instructions in the Dockerfile, what will be the output of RUN instruction in the container? *
Captionless Image
Yes
No
x/y/z
/y/z
/z
/x/y/z
/x
Which Kubernetes component watches Pod creation process and schedules newly created pods on suitable cluster node? *
Yes
No
kube-controller
kube-pod-scheduler
kube-scheduler
kube-apiserver
kube-controller-manager
Which process does DTR carry out to automatically delete unused Docker Image layers stored on it? *
Yes
No
DTR Image Cleaner
Garbage Cleaner
DTR Image Collection
DTR Image Pruner
Garbage Collection
What is the correct order of service creation process in swarm mode? *
Yes
No
docker API > allocator > scheduler > dispatcher > orchestrator
docker API > scheduler > allocator > dispatcher > orchestrator
docker API > orchestrator > dispatcher > allocator > scheduler
docker API > orchestrator > allocator > dispatcher > scheduler
docker API < orchestrator < allocator < dispatcher < scheduler
Which are the exec and shell forms of ENTRYPOINT Dockerfile instruction? *
Yes
No
ENTRYPOINT ["executable" : "param1" ] , ENTRYPOINT "command" "param1"
ENTRYPOINT ["executable", "param1" ] , ENTRYPOINT ["command", "param1"]
ENTRYPOINT ["executable ", "param1" ] , ENTRYPOINT command param1
ENTRYPOINT [ 'executable' : 'param1' ] , ENTRYPOINT param1 param2
ENTRYPOINT [ 'executable' 'param1' ] , ENTRYPOINT param1 command
Which command will you use to clean up dangling Docker Images from your Docker host? *
Yes
No
docker rmi
docker image rm --prune=true
docker image prune
docker system prune --image=true
docker image delete --all
You create a website with a visitor counter and host it using a containerized webserver. The data of the visitor count is stored in tmpfs storage. What will happen to this data once the container stops running? *
Yes
No
Visitor data persists in tmpfs storage.
Visitor data moves from tmpfs to RAM.
Docker creates a backup of tmpfs data on Docker host at /var/lib/docker/volumes/tmpfs.
Visitor data is lost from tmpfs storage.
The Visitor data gets backed up on Cloud Storage.
Which Docker network assigns MAC address to container's virtual network interface to make it appear as directly connected to the physical network of Docker host? *
Yes
No
bridge
host
overlay
macvlan
docker_gwbridge
You have a swarm cluster of 22 nodes, out of which 9 are managers. How can you divide them across 3 availability zones? *
Yes
No
4-4-1
3-3-3
3-2-4
6-1-2
1-3-5
Where does docker daemon store Docker objects related data such as Docker Images, Volumes, secrets, etc... on a Linux host system? *
Yes
No
/etc/docker
/var/lib/docker
/var/lib/docker-ce
/var/lib/config/docker
/etc/lib/docker
What is the outcome of the container created from the following Dockerfile? *
Captionless Image
Which of the following commands is used to pretty-print the list of all the containers to display only containers’ IDs, names and statuses in tabular form? *
Which command will you use to remove UCP from an active swarm cluster in Docker? *
Yes
No
docker ucp uninstall mirantis/ucp --interactive
docker ucp rm --all
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock mirantis/ucp remove-ucp --interactive
docker rm mirantis/ucp --all
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock mirantis/ucp uninstall-ucp --interactive
Which components are active on Kubernetes master? *
Yes
No
etcd
kubelet
kube-apiserver
kube-scheduler
kube-proxy
Which logging-drivers are supported by Docker? *
Yes
No
Splunk
syslog
fluentd
datadog
json-file
Which of the following describes Kubernetes in the most suitable way? *
What is the purpose of Replicasets? *
Yes
No
To prevent clone containers from invading other clusters.
To create custom network policies for replicated pods.
To keep a stable set of replicated Pods running at a time.
To create and manage Stateful Applications.
To create a certain number of pods to successfully complete a job.
Which of the following apiVersion applies to pods? *
Which software release channels are used for Docker Community Edition? *
Yes
No
Stable
Scratch
Test
Nightly
Early
What is the scope of default bridge network in Docker? *
Yes
No
Container Network Stack
global
local
host
swarm
Which Dockerfile instruction is used to set the system call signal that will be sent to the container to exit? *
Yes
No
CMD
ENTRYPOINT
RUN
STOPSIGNAL
ONBUILD
Which command will you use to deploy a new stack of swarm services? *
One of the swarm cluster's node is facing some troubles. Which command will you run on manager node to find out about the target node's ID, status, and its availability? *
Yes
No
docker node ls --filter "availability=down"
docker node ls
docker nodes --all
docker list --nodes
docker node list --all
You tried to spin up a container using Kubernetes Pod, but because of the improper image URL, Pod has not been scheduled successfully. What would be the current state of Pod? *
Yes
No
Failed
Pending
Completed
Unknown
Scheduling
You need to create a MySQL database container. Which command will you use to instruct Docker Daemon to create it? *
Yes
No
docker run --name database --image mysql:5.4
docker create --name database --image mysql:5.4
docker create --name database mysql:5.4
docker run --name database mysql:5.4
docker container create --name database mysql:5.4
What is the default container format of Docker? *
Following is a YAML configuration of a standard Kubernetes pod. Choose which container image registry will be used by default to pull nginx image for this pod. *
Captionless Image
Yes
No
Google Container Registry (GCR)
GitHub Container Registry
Amazon Elastic Container Registry
Docker Hub
Private Registry of User
Which ports on Docker host must be available for communication to install and manage Swarm mode? *
Yes
No
TCP and UDP Port 2375
UDP Port 4789
TCP and UDP Port 7946
TCP and UDP Port 8080
TCP Port 2377
Which command will you use to rename busybox:latest as busybox:v1? *
Yes
No
docker rename busybox:latest busybox:v1
docker save --output busybox:v1 busybox:latest
docker swap busybox:latest busybox:v1
docker tag busybox:latest busybox:v1
docker build --rename busybox:latest busybox:v1
You wanted to calculate the value of Pi up to 40 decimals using a containerized python application as a Kubernetes job. What will be the state of pod once the task is finished? *
Which Docker command will you use to initialize a new swarm cluster? *
Yes
No
docker swarm init --advertise-address <managerIP>
docker swarm init --create-new-cluster
docker swarm init --advertise-addr <managerIP>
docker swarm init --advertise-addr <masterIP>
docker swarm init --advertise-addr <workerIP>
Which of the following services does not allow you to access your containers outside the cluster? *
Which kubectl command will give you information such as what node and IP address a pod is on? And any failure events? *
Yes
No
kubectl get pods --describe
kubectl describe pod <pod-name>
kubectl describe pod <pod-name> --events
kubectl inspect pod <pod-name>
kubectl get pods --name <pod-name> --events
Which command will you use to revoke cluster management and orchestrating privileges from manager node? *
Yes
No
docker node down
docker node rm
docker node stop
docker node demote
docker node scale down
Submit
Clear form
This form was created inside of Cerulean Canvas. Report Abuse