Kubernetes MCQs – Setting Up Kubernetes

11.) Which of the following tools is often used to install Kubernetes in cloud or on-prem clusters automatically?

A) Minikube
B) kubeadm
C) kops
D) kubectl

Answer: Option C

Explanation: kops is used to provision production-grade Kubernetes clusters on AWS and other platforms.

12.) What does kubeadm reset do?

A) Restarts the cluster
B) Resets kubectl settings
C) Removes the Kubernetes cluster configuration
D) Deletes all namespaces

Answer: Option C

Explanation: kubeadm reset resets the node and removes cluster-related configuration.

13.) Which command checks the status of cluster components after setup?

A) kubectl system status
B) kubectl get all
C) kubectl cluster-info
D) kubectl check health

Answer: Option C

Explanation: kubectl cluster-info shows details and the health of the cluster components.

14.) What must be installed before using kubeadm to set up Kubernetes?

A) kubectl only
B) Only a text editor
C) kubelet, kubeadm, and kubectl
D) docker-compose

Answer: Option C

Explanation: All three – kubeadm, kubelet, and kubectl – are required to install and manage a Kubernetes cluster.

15.) What does CNI stand for in Kubernetes networking?

A) Container Network Infrastructure
B) Container Networking Interface
C) Cluster Network Interconnect
D) Configurable Network Interface

Answer: Option B

Explanation: CNI is a standard for configuring network interfaces in Linux containers.

16.) Which of these is a Kubernetes network plugin?

A) Envoy
B) Fluentd
C) Calico
D) Prometheus

Answer: Option C

Explanation: Calico is a commonly used CNI network plugin in Kubernetes clusters.

17.) What type of IP addressing is used by Pods in a Kubernetes cluster?

A) Global IPs
B) Dynamic IPs assigned from Pod CIDR range
C) Host IPs
D) NATed public IPs

Answer: Option B

Explanation: Kubernetes assigns IPs to pods dynamically from a configured CIDR range.

18.) What is the typical requirement for initializing a control plane node using kubeadm?

A) Public IP
B) Root access
C) kube-proxy
D) Minikube installed

Answer: Option B

Explanation: Root or sudo access is required to run kubeadm init.

19.) What does the –pod-network-cidr option in kubeadm init do?

A) Assigns service IPs
B) Defines the range of IPs for pods
C) Sets up DNS
D) Specifies external load balancer

Answer: Option B

Explanation: This option defines the IP range to assign to pods in the cluster.

20.) Which port must be open for communication between Kubernetes nodes?

A) 22
B) 6443
C) 30000
D) 80

Answer: Option B

Explanation: Port 6443 is used by the Kubernetes API server for communication.

Leave a Reply

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