0% found this document useful (0 votes)
78 views2 pages

Docker and Kubernetes Quiz

Uploaded by

Ashok Sharda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views2 pages

Docker and Kubernetes Quiz

Uploaded by

Ashok Sharda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Certified DevOps Foundation Docker and Kubernetes Quiz

1. What is a Docker image?


a. A file containing a Linux operating system
b. A base image with zero or more file system layers added
c. A running Docker application
d. A type of container

2. What is the name of a cloud-hosted service from Docker that provides registry capabilities for
public and private content?
a. Docker Swarm
b. Docker Hub
c. Docker Cloud
d. Docker Compose

3. Which of these is a tool for defining and running multi-container Docker applications?
a. Docker Swarm
b. Docker Hub
c. Docker Cloud
d. Docker Compose

4. What is the relationship between a Docker Image and a Docker Container?


a. An image is a container
b. A container is a runnable copy of an image
c. A container is a template for creating images
d. A container contains images

5. Containers run on a single machine and all share the same operating system kernel, so they start
instantaneously and make more efficient use of RAM.
a. TRUE
b. FALSE

6. Suppose you have 5 containers running and out of these, you like to access one of them. How do
you access a running container?
a. $ docker exec -it bash
b. docker run -it -d
c. $ docker exec -it <container id> bash
d. docker info

7. What are the main components of Kubernetes architecture?


a. Master and Worker Node
b. Master and Slave Node
c. Parent and Child Node
d. Master and Child Node

https://www.devopsuniversity.org [email protected]
all rights reserved with DevOps University
Certified DevOps Foundation Docker and Kubernetes Quiz

8. What is Kubelet?
a. Kubelet is a master service that runs pods.
b. Kubelet is a daemon service that runs pods.
c. Kubelet is a worker service that runs pods.
d. Kubelet is an agent service that runs pods.

9. What is the role of a load balancer?


a. A load balancer provides a standard way to distribute network traffic among different
backend services
b. A load balancer provides a standard way to distribute memory load among different
backend services
c. A load balancer provides a standard way to distribute CPU load among different
backend services
d. A load balancer is an orchestration service that spins new pods based on load

10. Why docker $docker system prune is used


a. This command is used to start all the stopped containers
b. This command is used to remove all the stopped containers, all the networks that are
not used, all suspended images and all build caches
c. This command is used to delete all the docker images
d. This command is used to list all the running containers

11. How to delete a stopped container?


a. $ docker rm <container id>
b. $ docker ps
c. $ docker rm
d. $ docker delete

Answers:

1. B, 2. B, 3. D, 4. B, 5. A, 6. C, 7. A, 8. D, 9. A, 10. B, 11. A

https://www.devopsuniversity.org [email protected]
all rights reserved with DevOps University

You might also like