Kubernetes

Which Kubernetes object is used to automatically scale Pods based on resource utilization?

Which Kubernetes object is used to automatically scale Pods based on resource utilization? a) ReplicaSet b) Horizontal Pod Autoscaler (HPA) c) StatefulSet d) DaemonSet Answer: b) Horizontal Pod Autoscaler (HPA) Explanation: The Horizontal Pod Autoscaler (HPA) automatically scales the number of Pods in a deployment based on observed CPU utilization or other select metrics. Reference:

Which Kubernetes object is used to automatically scale Pods based on resource utilization? Read More »

What is the main purpose of a ConfigMap in Kubernetes?

What is the main purpose of a ConfigMap in Kubernetes? a) To store application logs b) To store non-confidential configuration data c) To manage container images d) To update the Kubernetes API Answer: b) To store non-confidential configuration data Explanation: A ConfigMap in Kubernetes is used to store non-confidential configuration data such as environment variables,

What is the main purpose of a ConfigMap in Kubernetes? Read More »

What does the kubectl command do in Kubernetes?

What does the kubectl command do in Kubernetes? a) Automates testing b) It is the command-line interface to communicate with Kubernetes clusters c) Monitors application performance d) Handles backups of the cluster Answer: b) It is the command-line interface to communicate with Kubernetes clusters Explanation: kubectl is the command-line tool that allows users to interact

What does the kubectl command do in Kubernetes? Read More »

Which Kubernetes component ensures communication between different nodes in a cluster?

Which Kubernetes component ensures communication between different nodes in a cluster? a) Kube-proxy b) Kube-scheduler c) Kube-apiserver d) etcd Answer: a) Kube-proxy Explanation: Kube-proxy is a network component in Kubernetes that ensures that services can communicate with each other across different nodes within the cluster. Reference: Kubernetes Quiz – MCQ – Multiple Choice Questions

Which Kubernetes component ensures communication between different nodes in a cluster? Read More »

How do you scale a deployment in Kubernetes?

How do you scale a deployment in Kubernetes? a) kubectl scale deployment <deployment-name> –replicas=<number> b) kubectl create scale <deployment-name> c) kubectl replicas set –scale <number> d) kubectl deploy replicas <number> Answer: a) kubectl scale deployment <deployment-name> –replicas=<number> Explanation: To scale a Kubernetes deployment, you use the kubectl scale deployment command followed by the desired number

How do you scale a deployment in Kubernetes? Read More »

Which command is used to deploy an application in Kubernetes?

Which command is used to deploy an application in Kubernetes? a) kubectl create deployment b) kubectl deploy app c) kubectl deploy pod d) kubectl build app Answer: a) kubectl create deployment Explanation: The kubectl create deployment command is used to create a new deployment for an application in Kubernetes. Reference: Kubernetes Quiz – MCQ –

Which command is used to deploy an application in Kubernetes? Read More »

What is the role of the Kube-scheduler in Kubernetes?

What is the role of the Kube-scheduler in Kubernetes? a) Schedules tasks on nodes b) Monitors application performance c) Configures networking between Pods d) Stores application logs Answer: a) Schedules tasks on nodes Explanation: The Kube-scheduler is responsible for assigning Pods to available nodes in the Kubernetes cluster based on resource availability and other constraints.

What is the role of the Kube-scheduler in Kubernetes? Read More »

Which component of Kubernetes is responsible for managing the state of the cluster?

Which component of Kubernetes is responsible for managing the state of the cluster? a) Kubelet b) etcd c) Kube-scheduler d) Kube-apiserver Answer: d) Kube-apiserver Explanation: The Kube-apiserver is the control plane component that exposes the Kubernetes API and manages the state of the Kubernetes cluster. Reference: Kubernetes Quiz – MCQ – Multiple Choice Questions

Which component of Kubernetes is responsible for managing the state of the cluster? Read More »

What is a Kubernetes Pod?

What is a Kubernetes Pod? a) A virtual machine b) The smallest deployable unit in Kubernetes c) A network protocol d) A configuration file Answer: b) The smallest deployable unit in Kubernetes Explanation: A Pod is the smallest and simplest Kubernetes object that represents a single instance of a running process in a cluster, and

What is a Kubernetes Pod? Read More »

What is Kubernetes primarily used for?

What is Kubernetes primarily used for? a) Managing databases b) Orchestrating containerized applications c) Running virtual machines d) Hosting static websites Answer: b) Orchestrating containerized applications Explanation: Kubernetes is an open-source platform that automates the management, scaling, and deployment of containerized applications across clusters of machines. Reference: Kubernetes Quiz – MCQ – Multiple Choice Questions

What is Kubernetes primarily used for? Read More »

Scroll to Top