DCA Mock Test - 2
Sign in to Google to save your progress. Learn more
What is the role of Allocator 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 execute tasks assigned to worker nodes.
To create tasks for service objects in swarm.
Which kubectl command will you use to find information such as what node and IP address a pod is on? *
Which of the following is the most used pod implementation in Kubernetes? *
Which of the following commands is used to create a MySQL version 5.4 database container? *
What is the default extension of Dockerfile? *
You want to run an isolated alpine Linux container which is not connected to any default or user-defined Docker Network. Which command will you use? *
Yes
No
docker network disable --network none --name alpine-net alpine:latest
docker swarm create --network none --name alpine-net alpine:latest
docker run --rm -itd --network none --name alpine-net alpine:latest
docker run --rm -itd --name alpine-net alpine:latest
docker network disconnect --all --name alpine-net alpine:latest
Which of the following should be used to store cached data in Docker? *
What are the node types in Docker's Swarm Mode? *
Yes
No
manager
master
worker
minion
assistant
Which Linux Kernel features does Docker use to create and isolate containers ? *
Yes
No
Isolated Networks
cgroups
Namespace
Directories
UnionFS
Which of the following statements are correct for docker image? *
Captionless Image
What is the scope of overlay network in Docker? *
Yes
No
Container Network stack
global
swarm
host
local
Which Docker network is responsible for communication between DTR components running on different nodes? *
Yes
No
dtr-bridge
dtr-overlay
dtr-ol
dtr-macvlan
dtr-host
Which command will you use to promote a worker node to manager node? *
Yes
No
docker node promotion
docker node up
docker node promote
docker node update nodetype=manager
docker node scale up
A Grant is made up of … *
Yes
No
Subject
Role
Access
Resource Set
Token
Which kubectl command will you use to list all pods in the ceruleancanvas namespace on master node? *
Yes
No
kubectl get pods
kubectl get pods --namespace=ceruleancanvas
kubectl list pods --namespace=ceruleancanvas
kubectl get pods --list --namespace=ceruleancanvas
kubectl list pods
A worker node of your swarm cluster is overloaded due to multiple scheduled services. What can you do to prevent any further services from getting scheduled on it? *
Yes
No
docker node stop <worker-name>
docker node update --available drain <worker-name>
docker node update --availability pause <worker-name>
docker node drain <worker-name>
docker node block <worker-name>
What is the default network driver for Docker containers? *
Yes
No
host
bridge
overlay
macvlan
none
How worker machines are identified as in Kubernetes? *
You have been asked to migrate your company's event blog in a containerized environment. As per the given requirement, you need to create a 20-node swarm cluster which will be running a swarm service serving the front-end of blog using WordPress and backend using MySQL. You also need to make sure that at least 1 MySQL task must be running on each node of the cluster. Which of the docker swarm commands will you use to fulfil the given task? *
Yes
No
docker service create --name mySQL --global mysql, docker service create --name wordpress --replicas=20 wordpress
docker service create --name mySQL --config global mysql, docker service create --name wordpress --replicas=20 wordpress
docker service create --name mySQL --mode global --image mysql, docker service create --name wordpress --replicas=20 --image wordpress
docker service create --name mySQL --mode global mysql, docker service create --name wordpress --replicas=20 wordpress
docker service create --name mySQL --replicas=global mysql, docker service create --name wordpress --replicas=20 wordpress
On Linux distributions, from whom does containers inherit the default DNS settings? *
Yes
No
Docker Registry
Base Image layer of Docker Image
ISP
Docker Host
Docker Daemon
What is the purpose of Job in Kubernetes? *
Yes
No
To prevent clone containers from invading other clusters.
To create custom network policies for replicated pods.
To keep a stable set of replica Pods running at a time.
To create a certain number of pods to successfully complete a job.
To create and manage Stateful Applications.
What will be the output of the following docker exec command? *
Captionless Image
Yes
No
Performs an update after executing the last CMD instruction then stops the container.
Overwrites the last CMD instruction with “sudo apt-get update”, performs the update and then exits the container with EXIT CODE 0.
Attaches the STD I/O of Docker Client to Container, performs the update on container, and prints the output on Docker Client's terminal.
The command will return an error of unsupported chained or quoted commands.
Pauses the container first, performs the update inside it, unpause the container and exits from container.
What is the purpose of a Storage Driver? *
Yes
No
To create and manage Docker Images.
To handle the interaction between Docker Image layers.
To store container's writable layer's data on Docker host at /var/lib/docker/volumes.
To write data in container's writable layer.
To rebuild the entire Docker Image, layer-by-layer and make them writable.
Which process’s output will be available on terminal as the standard output of the docker attach command? *
Yes
No
RUN
ENTRYPOINT/CMD
EXPOSE
FROM
ENV
You are asked to print the list of all containers (running and stopped) in a tabular format having three columns for Container ID, Container name, and their status, respectively. Which combination of a Docker command and its flags will you use? *
Yeah
No
docker ps --format table "{{.ID}}\t{{.Names}}\t{{.Status}}"
docker ps --format "{{.ID}}\t{{.Names}}\t{{.Status}}"
docker ps --print "table {{.ID}}\t{{.Names}}\t{{.Status}}"
docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Status}}"
docker ps --filter "table {{.ID}}\t{{.Names}}\t{{.Status}}"
What is the role of Dispatcher 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 execute tasks assigned to worker nodes.
To instruct worker node to start running a task.
Which command is used to show the disk usage of docker on Docker host? *
Yes
No
docker system info
docker system df
docker system top
docker system disk
docker system events
Which command will you used to stream real-time events of Docker Daemon? *
Yes
No
docker system top
docker system list
docker system events
docker system event ls
docker system logs
Where do manager nodes store the current swarm state and manager logs on Docker host? *
Yes
No
/etc/docker/swarm
/var/lib/docker/orchestrator/swarm
/etc/docker/orchestrator/swarm
/var/lib/docker/swarm
/var/lib/docker/swarmmode
What is the default container format for Docker Container? *
Yes
No
BSD Jails
LXC
App Container
libcontainer
Solaris Zones
Arrange the following events of pod startup in the appropriate order. *
Captionless Image
Which of the following Dockerfile instructions will configure a starting point for the executable container? *
Which of the following Dockerfile instruction informs Docker about the port on which container is listening? *
Which Kubernetes process allows network communication to Pod from network sessions inside or outside of the cluster? *
Yes
No
etcd
kube-apiserver
kube-proxy
kubelet
kube-scheduler
Which K8s component is used to run and manage node controller, replication controller, endpoints controller, and service account and token controller processes? *
Yes
No
kube-controller-manager
kube-pod-scheduler
kube-scheduler
kube-apiserver
kube-controller
Which of the following Docker features allows users to implement Roll Based Access Control? *
Following is a YAML configuration of a standard Kubernetes pod. Choose the correct response to fill between the square brackets of command sub-field under containers. *
Captionless Image
Yes
No
sh, -c, echo Hello && sleep 3600
'sh, -c, echo "Hello" && sleep 3600'
'sh', '-c', 'echo "Hello" && sleep 3600'
"sh, -c, echo "Hello" && sleep 3600"
'sh -c', 'echo "Hello" && sleep 3600'
How do you check the information about the current storage driver of Docker? *
Yes
No
docker system events
docker system info --driver
docker system info
docker system info --objects
docker system list
Which Linux kernel feature does Docker use to limit the  resources used by Docker containers? *
Yes
No
namespace
cgroups
blob storage
UnionFS
inklist
Which software architecture does Kubernetes itself fall into? *
Yes
No
Monolithic
Microservice
Hybrid
Portable
Blackboard
Which command will you use to join a swarm cluster as a worker node? *
Yes
No
docker swarm --join --token <worker-join-token>
docker swarm join worker
docker swarm join --token <worker-join-token>
docker swarm-join --token <worker-join-token>
docker swarm join --node worker --token <worker-join-token>
Which Docker command is not associated with Docker Volumes? *
Yes
No
docker volume ls
docker volume delete
docker volume inspect
docker volume backup
docker volume create
You have a running busybox container in development environment which is connected to the default bridge network. For testing purposes, testing team has connected the busybox container to a user-defined bridge network called "test-bridge". Can you tell that how many endpoints will be attached to the busybox container? *
Yes
No
1
3
2
4
0
Which networks are created when you initialize a swarm cluster or join a Docker host to an existing swarm ? *
Yes
No
bridge
docker_gwbridge
host
ingress
macvlan
What is the role of Executor 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 execute tasks assigned to worker nodes.
To instruct worker node to start running a task.
 What is the scope of unnamed volumes in Docker? *
Yes
No
Docker Host
User's Docker Hub repository
Docker nodes connected with a bridge network
Docker Daemon
Container's Filesystem
You want to create a docker container which has ubuntu as its base image. You want this container to perform 3 different tasks representing 3 different CMD instructions: CMD-1, CMD-2, and CMD-3, respectively. You write all these instructions sequentially in a Dockerfile and build the Docker image. Now, Which CMD instruction will be executed when the ubuntu container starts running? *
Yes
No
CMD-1
CMD-3 > CMD-2 > CMD-1
CMD-3
CMD-1 > CMD-2 > CMD-3
CMD-2
You have specified multiple WORKDIR instructions in the Dockerfile what is the result WORKDIR? *
Captionless Image
Yes
No
x/y/z
/y/z
/z
/x/y/z
/x
How do we list out Docker images which are stored on a Docker host? *
Yes
No
docker images
docker object image list
docker images ls
docker image ls
docker images list
Which of the following is the smallest deployable unit in Kubernetes? *
Which command will you use to create a new Docker Image to persist filesystem changes of a container? *
Yes
No
docker save
docker rename
docker images
docker commit
docker build
Which of the following is used to dynamically provision Persistent Volumes in Kubernetes cluster? *
Yes
No
Volume Plugins
Storage Class
Storage Claims
Persistent Volume Hooks
Persistent Volume Invoker
You want to have a containerized PHP-MySQL multi-tier application deployed via Kubernetes. Which of the following choices of services is a standard practice that can fulfil the application requirements without the threat of leaking unnecessary data? *
Yes
No
NodePort PHP, NodePort MySQL
ClusterIP PHP, NodePort MySQL
ClusterIP PHP, ClusterIP MySQL
NodePort PHP, ClusterIP MySQL
External Name PHP, NodePort MySQL
You have containerized a webserver and you want to access it using the same IP as your host. Which native Docker Network driver will you use? *
Yes
No
none
macvlan
host
overlay
bridge
Which Kubernetes component exposes Kubernetes API to all instances in the cluster and is the "front-end" for the Kubernetes Control Plane? *
Yes
No
etcd
kube-apiserver
kube-scheduler
kubelet
kube-proxy
Submit
Clear form
This form was created inside of Cerulean Canvas. Report Abuse