Docker and Kubernetes Quiz - MCQ - Multiple Choice Questions
Q. What is Docker?
A. A container management platformB. An open-source operating system
C. A virtualization technology
D. A cloud-based development environment
Q. What is the main purpose of using Docker containers?
A. Resource isolationB. Portable and consistent environments
C. Lightweight virtualization
D. All of the above
Q. What is a Docker image?
A. A lightweight, stand-alone executableB. A template for creating Docker containers
C. A snapshot of a container at a particular point in time
D. A package containing the source code of an application
Q. How do you build a Docker image?
A. Use the docker build command and provide a DockerfileB. Run a container and commit the changes to create an image
C. Use the docker create command and specify the image name
D. Download an existing image from a registry and modify it
Q. What is a Kubernetes cluster?
A. A set of nodes managed by KubernetesB. A group of containers running on a single node
C. A distributed system for managing containerized applications
D. A platform for deploying and scaling microservices
Q. What are the main components of a Kubernetes cluster?
A. Master node, worker nodes, and podsB. Control plane, etcd, and container runtime
C. API server, scheduler, and controller manager
D. All of the above
Q. What is a pod in Kubernetes?
A. A group of containers with shared storage and networkB. A single instance of a container running an application
C. A virtual machine running on a node
D. A logical unit for managing and scaling applications
Q. How does Kubernetes handle scaling?
A. By using horizontal pod autoscalingB. Through manual scaling based on resource utilization
C. By dynamically adjusting the number of nodes in the cluster
D. All of the above
Q. What is a Deployment in Kubernetes?
A. A way to define the desired state of a pod or replica setB. A tool for managing and updating applications in a cluster
C. A method for rolling out new versions of an application
D. All of the above