Kubernetes MCQs with answers Page - 3

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 • 833.24K Points
Coach

Q. Which Kubernetes object can automatically restart crashed containers?

  • (A) ReplicaSet
  • (B) Pod
  • (C) Deployment
  • (D) Service

A

Admin • 833.24K Points
Coach

Q. Which command is used to update an existing Kubernetes deployment?

  • (A) kubectl apply
  • (B) kubectl update
  • (C) kubectl replace
  • (D) kubectl set

A

Admin • 833.24K Points
Coach

Q. What is the use of a Node in Kubernetes?

  • (A) To store container logs
  • (B) To provide network services
  • (C) To run containerized workloads
  • (D) To manage configuration files

A

Admin • 833.24K Points
Coach

Q. Which Kubernetes component provides a RESTful interface to interact with the cluster?

  • (A) kube-proxy
  • (B) kube-scheduler
  • (C) kube-apiserver
  • (D) kubelet

A

Admin • 833.24K Points
Coach

Q. What is the purpose of Ingress in Kubernetes?

  • (A) To store external data
  • (B) To run background jobs
  • (C) To route external traffic to services
  • (D) To scale deployments

A

Admin • 833.24K Points
Coach

Q. What does the 'kubectl describe pod <pod-name>' command do?

  • (A) Displays only the logs of a pod
  • (B) Deletes the specified pod
  • (C) Describes detailed information about the pod
  • (D) Creates a new pod with the given name

A

Admin • 833.24K Points
Coach

Q. Which Kubernetes object ensures that a job is completed successfully once?

  • (A) Deployment
  • (B) CronJob
  • (C) ReplicaSet
  • (D) Job

A

Admin • 833.24K Points
Coach

Q. Which one is NOT a valid Kubernetes Service type?

  • (A) ClusterIP
  • (B) ExternalName
  • (C) LoadBalancer
  • (D) ExternalIP

A

Admin • 833.24K Points
Coach

Q. Which command is used to delete a pod named 'nginx-pod'?

  • (A) kubectl remove pod nginx-pod
  • (B) kubectl delete pod nginx-pod
  • (C) kubectl destroy nginx-pod
  • (D) kubectl erase pod nginx-pod

A

Admin • 833.24K Points
Coach

Q. What is the main purpose of taints and tolerations in Kubernetes?

  • (A) To manage pod networking
  • (B) To restrict which pods can be scheduled on a node
  • (C) To increase pod resource limits
  • (D) To deploy Helm charts

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