Kubernetes MCQs with answers Page - 4

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 would you use to mount a configuration file into a pod?

  • (A) ConfigMap
  • (B) Secret
  • (C) Service
  • (D) PersistentVolume

A

Admin • 828.03K Points
Coach

Q. What happens if a container in a pod crashes repeatedly in Kubernetes?

  • (A) It is ignored
  • (B) The pod is terminated
  • (C) The container enters CrashLoopBackOff state
  • (D) The container gets replaced automatically by a new pod

A

Admin • 828.03K Points
Coach

Q. Which Kubernetes object allows you to schedule jobs at specific times?

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

A

Admin • 828.03K Points
Coach

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

  • (A) To deploy one pod on each node
  • (B) To deploy an application periodically
  • (C) To expose a service
  • (D) To back up etcd data

A

Admin • 828.03K Points
Coach

Q. Which object should be used for rolling updates in Kubernetes?

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

A

Admin • 828.03K Points
Coach

Q. What does a liveness probe check in Kubernetes?

  • (A) Container memory usage
  • (B) If the container is running and healthy
  • (C) Network latency
  • (D) Pod CPU utilization

A

Admin • 828.03K Points
Coach

Q. What is the function of a readiness probe in Kubernetes?

  • (A) Checks if the container can be killed
  • (B) Checks if the container should be removed
  • (C) Checks if the container is ready to accept traffic
  • (D) Checks if the container image is valid

A

Admin • 828.03K Points
Coach

Q. What is the default port for the Kubernetes API server?

  • (A) 443
  • (B) 8080
  • (C) 6443
  • (D) 8443

A

Admin • 828.03K Points
Coach

Q. Which of the following allows blue-green deployments in Kubernetes?

  • (A) ConfigMap
  • (B) Service
  • (C) Secret
  • (D) ReplicaSet

A

Admin • 828.03K Points
Coach

Q. Which object ensures that a specific number of identical pods are running at all times?

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

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