Kubernetes MCQs with answers Page - 9

Here, you will find a collection of MCQ questions on Kubernetes. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 828.03K Points
Coach

Q. Which object type helps define reusable pod specifications in Kubernetes?

  • (A) PodTemplate
  • (B) StatefulSet
  • (C) Job
  • (D) Ingress

A

Admin • 828.03K Points
Coach

Q. What is the purpose of a Horizontal Pod Autoscaler?

  • (A) To replicate StatefulSets
  • (B) To scale nodes automatically
  • (C) To scale pods based on CPU/memory usage
  • (D) To expose services automatically

A

Admin • 828.03K Points
Coach

Q. What does the command 'kubectl explain pod' do?

  • (A) Shows logs of a pod
  • (B) Describes a pod's configuration
  • (C) Explains the structure and fields of a pod manifest
  • (D) Deletes a pod

A

Admin • 828.03K Points
Coach

Q. What is the maximum number of pods per node by default in Kubernetes?

  • (A) 50
  • (B) 100
  • (C) 110
  • (D) 250

A

Admin • 828.03K Points
Coach

Q. Which of the following commands deletes a service in Kubernetes?

  • (A) kubectl remove service <name>
  • (B) kubectl delete service <name>
  • (C) kubectl destroy svc <name>
  • (D) kubectl drop svc <name>

A

Admin • 828.03K Points
Coach

Q. Which component in Kubernetes performs health checks on pods?

  • (A) kube-proxy
  • (B) kubelet
  • (C) etcd
  • (D) kubectl

A

Admin • 828.03K Points
Coach

Q. Which of the following is not a valid Kubernetes probe type?

  • (A) Liveness
  • (B) Readiness
  • (C) Startup
  • (D) Shutdown

A

Admin • 828.03K Points
Coach

Q. Which of the following tools can be used to visualize Kubernetes clusters?

  • (A) kubectl
  • (B) Lens
  • (C) CoreDNS
  • (D) etcdctl

A

Admin • 828.03K Points
Coach

Q. What command will list all nodes in the Kubernetes cluster?

  • (A) kubectl show nodes
  • (B) kubectl get nodes
  • (C) kubectl view nodes
  • (D) kubectl list all-nodes

A

Admin • 828.03K Points
Coach

Q. What does the 'tolerations' field in a pod specification do?

  • (A) Defines pod priorities
  • (B) Allows pods to be scheduled on tainted nodes
  • (C) Controls access to resources
  • (D) Specifies network bandwidth

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ