Kubernetes MCQs – Introduction to Kubernetes

Introduction to Kubernetes: Kubernetes is an open-source platform designed to automate the deployment, scaling, and operation of application containers. Originally developed by Google, Kubernetes is now maintained by the Cloud Native Computing Foundation (CNCF). It has become the standard tool for managing containerized applications in a clustered environment.

This post introduces the fundamentals of Kubernetes, exploring its architecture, core components, and essential concepts. The accompanying multiple-choice questions (MCQs) are designed to strengthen your foundational understanding, paving the way for more advanced topics and helping you prepare effectively for interviews and certification exams.

1.) What is Kubernetes primarily used for?

A) Web development
B) Automating container operations
C) Writing code for containers
D) Monitoring server logs

Answer: Option B

Explanation: Kubernetes is a container orchestration platform that automates the deployment, scaling, and management of containerized applications.

2.) Who originally developed Kubernetes?

A) Microsoft
B) Red Hat
C) Google
D) Docker

Answer: Option C

Explanation: Kubernetes was initially developed by Google based on their experience with managing containers using Borg.

3.) What does CNCF stand for in the context of Kubernetes?

A) Central Node Cluster Foundation
B) Cloud Native Computing Foundation
C) Containerized Network Configuration Federation
D) Cloud Network Control Federation

Answer: Option B

Explanation: The CNCF (Cloud Native Computing Foundation) is responsible for maintaining Kubernetes as an open-source project.

4.) What is the smallest deployable unit in Kubernetes?

A) Node
B) Container
C) Pod
D) Service

Answer: Option C

Explanation: A Pod is the smallest and simplest unit in the Kubernetes object model that represents a running process on your cluster.

5.) What is a Node in Kubernetes?

A) A component that stores Kubernetes secrets
B) A server where Kubernetes runs workloads
C) A type of storage unit
D) A Kubernetes namespace

Answer: Option B

Explanation: A Node is a physical or virtual machine where Kubernetes schedules and runs pods.

6.) QueWhich of the following is NOT a component of Kubernetes master node?stion

A) kube-apiserver
B) etcd
C) kube-scheduler
D) kubelet

Answer: Option D

Explanation: Kubelet runs on worker nodes, not on the master node. It communicates with the API server and manages containers.

7.) What is the function of the kube-apiserver?

A) Managing networking
B) Maintaining cluster state
C) Exposing the Kubernetes API
D) Scheduling pods

Answer: Option C

Explanation: The kube-apiserver handles all REST operations and acts as the gateway to the Kubernetes control plane.

8.) Which Kubernetes component is responsible for storing all cluster data?

A) kubelet
B) etcd
C) kube-scheduler
D) kube-proxy

Answer: Option B

Explanation: etcd is a distributed key-value store used to store all Kubernetes cluster data.

9.) What does kubectl do in Kubernetes?

A) Runs containers
B) Exposes services
C) Interacts with the Kubernetes API
D) Monitors network traffic

Answer: Option C

Explanation: kubectl is the command-line tool used to communicate with the Kubernetes cluster through the API server.

10.) What is a Kubernetes cluster composed of?

A) Pods and containers
B) Master and worker nodes
C) Containers and volumes
D) Pods and namespaces

Answer: Option B

Explanation: A Kubernetes cluster includes a control plane (master nodes) and compute machines (worker nodes).

Leave a Reply

Your email address will not be published. Required fields are marked *