Kubernetes MCQs with answers Page - 15

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 Kubernetes resource defines environment variables for a container?

  • (A) ConfigMap
  • (B) Secret
  • (C) PodSpec
  • (D) Both ConfigMap and Secret

A

Admin • 828.03K Points
Coach

Q. What command would you use to describe a service in detail?

  • (A) kubectl inspect svc <name>
  • (B) kubectl show svc <name>
  • (C) kubectl describe svc <name>
  • (D) kubectl details service <name>

A

Admin • 828.03K Points
Coach

Q. What happens when you delete a namespace in Kubernetes?

  • (A) Nothing happens
  • (B) Only pods are deleted
  • (C) All resources in that namespace are deleted
  • (D) Only services are deleted

A

Admin • 828.03K Points
Coach

Q. Which Kubernetes feature allows scheduling pods based on labels on nodes?

  • (A) Tolerations
  • (B) Affinity
  • (C) Selectors
  • (D) Service

A

Admin • 828.03K Points
Coach

Q. Which API version should be used for Deployments in the latest stable Kubernetes?

  • (A) extensions/v1beta1
  • (B) apps/v1
  • (C) core/v1
  • (D) stable/v1

A

Admin • 828.03K Points
Coach

Q. What is the function of the kube-scheduler in Kubernetes?

  • (A) Schedules pods onto nodes based on resource availability
  • (B) Manages container logs
  • (C) Exposes services to the internet
  • (D) Stores configuration data

A

Admin • 828.03K Points
Coach

Q. Which component of Kubernetes stores cluster data?

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

A

Admin • 828.03K Points
Coach

Q. What does a Service of type ClusterIP do?

  • (A) Exposes the service externally using a cloud provider's load balancer
  • (B) Exposes the service only inside the cluster
  • (C) Exposes the service on a specific port on all nodes
  • (D) Maps a service name to an external URL

A

Admin • 828.03K Points
Coach

Q. Which object is used to provide DNS-based service discovery in Kubernetes?

  • (A) ConfigMap
  • (B) Deployment
  • (C) Service
  • (D) NodePort

A

Admin • 828.03K Points
Coach

Q. Which Kubernetes controller is used for time-based job scheduling?

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

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