wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Docker & Kubernetes

Total questions: 23

Worksheet time: 13mins

Name
Class
Date
1.

If we can run docker container using docker run command, then why do we need kubernetes?

a)

We don't need it

b)

To manage multiple containers and perform deployments at the same time

2.

If we changed only one layer in docker image, what will happen while building image?

a)

Entire Image will get built again

b)

Only updated layer will get built

3.

How does master node communicate with worker node?

a)

It doesn't communicate with single node. It communicates with all the nodes at a same time.

b)

Worker nodes are provided with static IP which helps master node to communicate with them.

4.

Why do we need to tag images created by docker?

a)

To maintain multiple versions of same image using same image names

b)

We don't need to tag images, we can create same image with different image names

5.

While creating deployment how can we ensure minimum specified number of pods are running for application?

a)

Execute kubectl deploy command multiple times

b)

Provide --replica option in kubectl deploy command

c)

Add multiple kubectl deploy command in One script and execute that script

6.

Which kind of applications are suited for kubernetes framework?

a)

Doesn't matter

b)

Monolithic

c)

Microservice

7.

Which layer consumes more resources in kubernetes architecture?

a)

Controll plane

b)

Data plane

8.

Which encryption strategy is used for storing secret in kubernetes cluster?

a)

sha1

b)

md5

c)

base64

d)

AES encryption

9.

Which one is not part of Kubernetes architecture?

a)

Control plane

b)

Management plane

c)

Data plane

10.

What are the important prerequisite steps to push docker image to docker hub?

a)

1. Need to have a docker hub account

b)

2. Need to have docker image created and tested on local setup

c)

3. Need to pull the latest image from the docker hub repository

d)

Only 1 & 2

e)

All 1,2 & 3

11.

Suppose you have docker file in your current folder. Which command is used to buid the image called 'abc'?

a)

docker build abc

b)

docker build -t abc .

c)

docker build -t abc

d)

docker run -d abc

12.

Why do we call containers as light weight deployable Instances?

a)

Docker compresses container image of application, hence we call it as lightweight containers

b)

Containers have no dependency on OS and hence we call it as lightweight containers

13.

This command downloads an image to your Docker host...

a)

docker pull

b)

docker run

c)

docker build

d)

docker tag

14.

This command uploads your local image to your Docker Registry

a)

docker push

b)

docker build

c)

docker tag

d)

docker run

15.

A text document that contains all the commands needed to build an image.

a)

Docker.config

b)

Dockerfile

c)

DOCKER.CONF

d)

Docker.profile

16.

This Dockerfile command specifies the base image to use when creating a Docker image

a)

FROM

b)

ADD

c)

COPY

d)

CMD

17.

A stateless, highly scalable server which stores and lets you distribute Docker images.

a)

Docker repository

b)

Docker image host

c)

Docker registry

d)

Docker git

18.

A container can consist of one or multiple pods.

a)

True

b)

False

19.

Kubernetes was originally designed and developed by which of the following company?

a)

RedHat

b)

Microsoft

c)

Google

d)

Facebook

20.

What happens when a master node inside kubernetes fails?

a)

Pods go into hung state

b)

Pods still get created

c)

Pods do not get created

d)

Pods go into terminating state

21.

What is the primary purpose of using Helm in a Kubernetes environment?

a)

To monitor the performance of pods

b)

To automate the deployment of applications

c)

To manage container images

22.

Which command is used to scale a deployment in Kubernetes?

a)

kubectl update deployment

b)

kubectl scale deployment

c)

kubectl resize deployment

23.

What is the role of a kubelet in a Kubernetes cluster?

a)

To provide networking for the cluster

b)

To ensure that containers are running in pods

c)

To manage the control plane