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 purpose of Kubernetes Secrets?

What is the purpose of Kubernetes Secrets? a) To store encrypted credentials and sensitive information b) To track changes to configurations c) To define network policies d) To backup cluster data Answer: a) To store encrypted credentials and sensitive information Explanation: Secrets in Kubernetes are used to store sensitive information such as passwords, OAuth tokens,

What is the purpose of Kubernetes Secrets? 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 »

How can you expose a Kubernetes deployment to external traffic?

How can you expose a Kubernetes deployment to external traffic? a) By using a DaemonSet b) By creating a Service of type LoadBalancer or NodePort c) By creating a StatefulSet d) By using etcd Answer: b) By creating a Service of type LoadBalancer or NodePort Explanation: You can expose a Kubernetes deployment to external traffic

How can you expose a Kubernetes deployment to external traffic? 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 »

What is the purpose of a StatefulSet in Kubernetes?

What is the purpose of a StatefulSet in Kubernetes? a) To create stateless applications b) To manage stateful applications c) To store logs of the cluster d) To monitor network traffic Answer: b) To manage stateful applications Explanation: A StatefulSet is used in Kubernetes to manage stateful applications, such as databases, where each Pod needs

What is the purpose of a StatefulSet 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 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