Kubernetes MCQs with answers Page - 2

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 of these resources ensures a specified number of pods are running?

  • (A) Deployment
  • (B) Service
  • (C) Ingress
  • (D) Volume

A

Admin • 833.24K Points
Coach

Q. What type of service is used for internal cluster communication?

  • (A) LoadBalancer
  • (B) NodePort
  • (C) ClusterIP
  • (D) Ingress

A

Admin • 833.24K Points
Coach

Q. Which Kubernetes object defines how a container should run?

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

A

Admin • 833.24K Points
Coach

Q. What is the purpose of a ConfigMap in Kubernetes?

  • (A) Store logs
  • (B) Store passwords
  • (C) Store configuration data
  • (D) Store container images

A

Admin • 833.24K Points
Coach

Q. Which Kubernetes object helps in managing sensitive data?

  • (A) Volume
  • (B) Secret
  • (C) Deployment
  • (D) Service

A

Admin • 833.24K Points
Coach

Q. How does Kubernetes handle high availability of applications?

  • (A) By creating services
  • (B) By storing state in etcd
  • (C) By replicating pods
  • (D) By using config maps

A

Admin • 833.24K Points
Coach

Q. Which command creates a new Kubernetes deployment?

  • (A) kubectl init
  • (B) kubectl deploy
  • (C) kubectl create deployment
  • (D) kubectl make deployment

A

Admin • 833.24K Points
Coach

Q. What does the kube-proxy do?

  • (A) Stores logs
  • (B) Runs containers
  • (C) Manages node health
  • (D) Manages networking rules

A

Admin • 833.24K Points
Coach

Q. What is Helm in the Kubernetes ecosystem?

  • (A) A monitoring tool
  • (B) A container runtime
  • (C) A package manager
  • (D) A storage plugin

A

Admin • 833.24K Points
Coach

Q. Which command is used to view the current Kubernetes context?

  • (A) kubectl context get
  • (B) kubectl config get-contexts
  • (C) kubectl show config
  • (D) kubectl get current