40+ Kubernetes mcq questions and answers | k8s interview questions

 k8s mcq questions, k8s mcqs, k8s questions, kubernetes interview questions mcq, kubernetes mcq questions, Kubernetes mcq questions and answers, kubernetes mcq sanfoundry, kubernetes mcqs, mcq for kubernetes, mcq on kubernetes, mcqs on kubernetes,
Kubernetes multiple choice questions

Kubernetes mcq questions and answers for more than 40 k8s mcq questions are given below. These Docker and Kubernetes mcq can help you crack interviews for k8s, Docker and DevOps. You can see these k8s mcqs and interview questions. Each Kubernetes objective question is given with options & correct answers. We are planning to add Kubernetes mcq pdf download link. devops kubernetes interview questions are best guide for basic and advanced DevOps interviews.

Kubernetes multiple choice questions and answers

Q.1 What is the basic operational unit of Kubernetes?
A : Pod
B : Task
C : Nodes
D : None of the above

Advertisement

pod

Q.2 ………….. can be considered as the primary data store of Kubernetes.
A : pod
B : etcd
C : node
D : All of the above

All of the above

Q.3 Which of the following runs on each node and ensures containers are running in a pod?
A : Pod
B : Etcd
C : Kubelet
D : All of the Above

Advertisement

Kubelet

Q.4 Replication Controllers and Deployment Controllers are part of which of the followings?
A : Kubeadm
B : API Controller Manager
C : Master Controller Manager
D : None of the above

Advertisement

Master Controller Manager

Q.5 Who developed Kubernetes?
A : Google
B : Apple Inc.
C : IBM
D : Microsoft

Google

Q.6 Kubernetes is a …………. platform.
A : Portable
B : Extensible
C : Open-source
D : All of the Above

Advertisement

All of the Above

Q.7 The latest version of Kubernetes is …………….
A : 2.0
B : 1.19
C : 1.20
D : 1.22

Advertisement

1.22

Q.8 A node is a …………. in kubernetes.
A : developing tool
B : worker machine
C : local machine
D : None of the above

worker machine

Q.9 …………….. can you deploy on Kubernetes.
A : Containers
B : Virtual machines
C : System processes
D : None of the above

Advertisement

Containers

Q.10 Which of the following manages the assigning nodes to pods depending on resource availability?
A : Etcd
B : Kubectl
C : Scheduler
D : None of the above

Scheduler

k8s interview questions and answers

Q.11 Kubernetes is written in …………….. programming language.
A : Go
B : Html
C : Php
D : Python

Advertisement

Go

Q.12 To create a new deployment in kubernetes, use the command …………..
A : Kubectl run
B : Kubernetes get deployment
C : Kubernetes set deployment
D : None of the above

Advertisement

Kubectl run

Q.13 …………. command is used to create kubernetes service.
A : Kubectl run
B : Kubectl deploy
C : Kubectl expose
D : None of the above

Kubectl expose

Q.14 What are the main components of Kubernetes?
A : Scheduler
B : API server
C : Controller manager
D : All of the Above

Advertisement

All of the Above

Q.15 What is the use of Google Kubernetes Engine?
A : Resize application controllers
B : Debug container clusters
C : Update and upgrade container clusters
D : All of the Above

All of the Above

Q.16 Cronjobs in kubernetes run in …………
A : UTC only
B : GMT only
C : Local time zone
D : None of the above

Advertisement

UTC only

Q.17 ……………. are the Kubernetes controllers.
A : Deployment
B : Replicaset
C : Both Deployment & Replicaset
D : None of the above

Advertisement

Both Deployment & Replicaset

Q.18 Is Google Kubernetes engine free?
A : Yes
B : No

No

Q.19 Google kubernetes comes under which of the following services?
A : ClusterIP
B : NodePort & Headless
C : LoadBalancer
D : All of the Above

All of the Above

Q.20 The different services within Kubernetes are _______.
A : Cluster IP service
B : Node Port service
C : Load Balancer service
D : All of the above

Advertisement

All of the above

kubernetes mcq questions

Q.21 In Kubernetes PVC stands for _______.
A : Present Volume Claim
B : Persistent Volume Claim
C : Persistent Volume Class
D : None of the above

Advertisement

Persistent Volume Claim

Q.22 The docker Swarm is a clustering and scheduling tool for the Docker containers. True or False?
A : True
B : False

True

Q.23 ______ is a public cloud application development and hosting platform developed by Red Hat.
A : CloseShift
B : OpenClassShift
C : OpenShift
D : None of the above

OpenShift

Q.24 ______ are the types of Kubernetes pods.
A : Single Container Pod
B : Diublecontainer pods
C : Multicontainer pods
D : Both A and C

Advertisement

Both A and C

Q.25 A ____ set is used to keep replica pods stable.
A : Replication
B : Replica
C : Both A and B
D : None of the above

Replica

Q.26 _______ are the tools that are used for container monitoring.
A : cAdvisor
B : InfluxDB
C : Heapster
D : All of the above

Advertisement

All of the above

Q.27 Namespaces are used for dividing cluster resources between multiple users. True or False?
A : True
B : False

True

Q.28 ______ is the platform using which you can pass commands to the cluster.
A : Minikube
B : Kubectl
C : Kubelet
D : None of the above

Kubectl

Q.29 GKE stands for ____.
A : Google Cluster Engine
B : Google Kubernetes Engine
C : Google Container Engine
D : None of the above

Google Kubernetes Engine

Q.30 Heapster is a cluster-wide aggregator of data provided by Kubelet running on each node. True/False?
A : True
B : False

Advertisement

True

kubernetes interview questions mcq

Q.31 What are the main benefits that Deployments offer that Replication Controllers do not?
A : Strong update and rollback model
B : Client-side updates and rollbacks
C : A declarative interface
D : Desired state

Strong update and rollback model

Q.32 Which of the following commands allow you to validate a cluster created with Kubernetes operations?
A : kubectl validate cluster
B : kubeadm validate cluster
C : kops validate cluster
D : None of the above

kubeadm validate cluster

Q.33 Which of the following kubeadm command creates a new cluster?
A : kubeadm create cluster
B : kubeadm init
C : kubeadm initialize cluster

Advertisement

kubeadm init

Q.34 What is the default range of ports used to expose a NodePort service?
A : 30000-32767
B : 500-1000
C : 60000-65536
D : 1024-32767

Advertisement

30000-32767

Q.35 You want to deploy two tightly coupled containers that share a volume and some memory. What is the best option?
A : Deploy them in different Pods and pair them over the network
B : Deploy them as two processes in a single container
C : Deploy them in a single Pod

Deploy them in a single Pod

Q.36 Which Operating System does Kubernetes run on?
A : Windows
B : Linux
C : OS X
D : FreeBSD

Windows

Q.37 Which of the following commands gives you detailed info on a Pod?
A : kubectl describe pods
B : kubectl get pods -vvv
C : kubectl get pods –detail
D : kubectl pods inspect

Advertisement

kubectl describe pods

Q.38 Which component of the K8’s worker stack registers Nodes with the cluster and watches the “apiserver” for new work?
A : Kube-proxy
B : Kubelet
C : Container runtime

Kubelet

Q.39 Which of the following is the best option for creating a local Kubernetes development environment on your local machine?
A : Minikube
B : Google Container Engine
C : Kubernetes for Mac
D : Docker for Mac

Minikube

Q.40 Which of the following describes the Google Container Engine (GKE)?
A : Packaged Kubernetes that can be installed on several cloud platforms
B : Packaged Kubernetes hosted in the GCP(Google Cloud Platform)
C : Packaged Kubernetes that can be installed on OpenStack
D : Packaged Kubernetes that can be installed in your data centre on-premises.

Advertisement

Packaged Kubernetes hosted in the GCP(Google Cloud Platform)

Docker and Kubernetes mcq

Q.41 What is the default Service type (ServiceType) if you do NOT specify a value?
A : LoadBalancer
B : NodePort
C : ClusterIP
D : Ingress

ClusterIP

Q.42 What is the default protocol for a Service?
A : TCP
B : UDP
C : HTTP
D : SSH

Advertisement

TCP

Q.43 What is the atomic unit of scheduling in K8s?
A : Pod
B : VM
C : Container
D : Deployment

Pod

Q.44 Which of the following is true about Pods and IP addressing?
A : Pods only work with IPv6 addresses
B : All containers in a Pod get unique IP addresses
C : An external DHCP server is required for Pod IP addressing
D : All containers in a Pod share a single IP address

Advertisement

All containers in a Pod share a single IP address

Leave a Comment

Your email address will not be published. Required fields are marked *

error: Content is protected !!
Scroll to Top