NEW
Font size
WorksheetsDocker & Kubernetes
Total questions: 23
Worksheet time: 13mins
If we can run docker container using docker run command, then why do we need kubernetes?
We don't need it
To manage multiple containers and perform deployments at the same time
If we changed only one layer in docker image, what will happen while building image?
Entire Image will get built again
Only updated layer will get built
How does master node communicate with worker node?
It doesn't communicate with single node. It communicates with all the nodes at a same time.
Worker nodes are provided with static IP which helps master node to communicate with them.
Why do we need to tag images created by docker?
To maintain multiple versions of same image using same image names
We don't need to tag images, we can create same image with different image names
While creating deployment how can we ensure minimum specified number of pods are running for application?
Execute kubectl deploy command multiple times
Provide --replica option in kubectl deploy command
Add multiple kubectl deploy command in One script and execute that script
Which kind of applications are suited for kubernetes framework?
Doesn't matter
Monolithic
Microservice
Which layer consumes more resources in kubernetes architecture?
Controll plane
Data plane
Which encryption strategy is used for storing secret in kubernetes cluster?
sha1
md5
base64
AES encryption
Which one is not part of Kubernetes architecture?
Control plane
Management plane
Data plane
What are the important prerequisite steps to push docker image to docker hub?
1. Need to have a docker hub account
2. Need to have docker image created and tested on local setup
3. Need to pull the latest image from the docker hub repository
Only 1 & 2
All 1,2 & 3
Suppose you have docker file in your current folder. Which command is used to buid the image called 'abc'?
docker build abc
docker build -t abc .
docker build -t abc
docker run -d abc
Why do we call containers as light weight deployable Instances?
Docker compresses container image of application, hence we call it as lightweight containers
Containers have no dependency on OS and hence we call it as lightweight containers
This command downloads an image to your Docker host...
docker pull
docker run
docker build
docker tag
This command uploads your local image to your Docker Registry
docker push
docker build
docker tag
docker run
A text document that contains all the commands needed to build an image.
Docker.config
Dockerfile
DOCKER.CONF
Docker.profile
This Dockerfile command specifies the base image to use when creating a Docker image
FROM
ADD
COPY
CMD
A stateless, highly scalable server which stores and lets you distribute Docker images.
Docker repository
Docker image host
Docker registry
Docker git
A container can consist of one or multiple pods.
True
False
Kubernetes was originally designed and developed by which of the following company?
RedHat
Microsoft
What happens when a master node inside kubernetes fails?
Pods go into hung state
Pods still get created
Pods do not get created
Pods go into terminating state
What is the primary purpose of using Helm in a Kubernetes environment?
To monitor the performance of pods
To automate the deployment of applications
To manage container images
Which command is used to scale a deployment in Kubernetes?
kubectl update deployment
kubectl scale deployment
kubectl resize deployment
What is the role of a kubelet in a Kubernetes cluster?
To provide networking for the cluster
To ensure that containers are running in pods
To manage the control plane
