Kubernetes MCQs with answers Page - 17

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 file extension is commonly used for Kubernetes resource files?

  • (A) .conf
  • (B) .json
  • (C) .yaml
  • (D) .env

A

Admin • 828.03K Points
Coach

Q. Which of the following is NOT a valid pod phase?

  • (A) Running
  • (B) Succeeded
  • (C) Starting
  • (D) Failed

A

Admin • 828.03K Points
Coach

Q. What is the default namespace used by Kubernetes system components?

  • (A) default
  • (B) kube-public
  • (C) kube-system
  • (D) kube-admin

A

Admin • 828.03K Points
Coach

Q. What is the purpose of the `.metadata.name` field in a Kubernetes object?

  • (A) Defines the namespace
  • (B) Specifies the object’s name
  • (C) Sets resource limits
  • (D) Controls replication

A

Admin • 828.03K Points
Coach

Q. Which Kubernetes controller ensures that a pod is running on each node?

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

A

Admin • 828.03K Points
Coach

Q. Which object manages access control in Kubernetes?

  • (A) ServiceAccount
  • (B) Role and RoleBinding
  • (C) ConfigMap
  • (D) Deployment

A

Admin • 828.03K Points
Coach

Q. What is the main purpose of the `kube-proxy` component?

  • (A) Scheduling pods
  • (B) Managing storage volumes
  • (C) Maintaining network rules and routing traffic
  • (D) Running containers

A

Admin • 828.03K Points
Coach

Q. Which probe type helps determine if a container has started successfully?

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

A

Admin • 828.03K Points
Coach

Q. Which Kubernetes object provides a way to inject sensitive data into pods?

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

A

Admin • 828.03K Points
Coach

Q. How does a pod communicate with other pods in the same cluster?

  • (A) Through kubelet
  • (B) Through the API server
  • (C) Via DNS and virtual IPs
  • (D) Via etcd

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