Kubernetes interview questions

What you will learn here about kubernetes

  • Kubernetes interview questions

Kubernetes interview questions

Here we are going to see most commonly asked kubernetes interview questions.

1)Static token file used for authentication should contain these details

  1. token,password,uid,”group1,group2,group3″
  2. token,user,uid,”group1,group2,group3″
  3. id,user,uid,”group1,group2,group3″
  4. None of the options

2)You can create secrets from these/this sources(s)

  1. files
  2. Directories
  3. both files and directories
  4. None of the options

3)Pods provide volumes to containers

  1. True
  2. false

4)”stringData” field in secret definition is used to _ _ _ _ _

  1. encrypt strngs
  2. encode secret automatically
  3. pass strings to kubernetes master
  4. None of the options

5)Prometheus uses this endpoint to collect data from pods.

  1. /
  2. /data
  3. /metric
  4. /metrics

6)We can use this volume to store sensitive data in kubernetes.

  1. ASW S3
  2. Secrets
  3. Pod-Locker
  4. ConfigMaps

7)This method is used for Authentication in kubernetes

  1. Username-password
  2. Oauth2
  3. client certificates
  4. None of the options

8)Volume Provisioning types are?

  1. static and dynamic
  2. structual and dynamic
  3. static and structual
  4. static and constant

9)It is mandatory to create ConfigMaps before using them in pod definition.

  1. False
  2. True

10)ConfigMaps help to couple data tightly into application logic

  1. False
  2. True

11)Which of these can be used as volumes?

  1. azureDisk
  2. Secrets
  3. awsElasticBlockStore
  4. All the options

12)Secrets can be created from yaml definition as well

  1. True
  2. False

13)Persistent volumes are provide by _ _ _ _ _

  1. admin
  2. nodes
  3. pods
  4. Kubernetes master

14)Cluster Role is namespace scoped

  1. True
  2. False

15)Which of these can not be used as volumes?

  1. azureDisk
  2. Secrets
  3. awsElasticBlockStore
  4. None of the options

16)Which of these abstractions is used directly by pods and defined as a part of pod definition

  1. Both persistent volume and volume claim
  2. Persistent Volume chain
  3. Persistent Volume
  4. None of the options

17)”configMapKeyRef” in pod definition takes following arguments

  1. name and key
  2. name and labels
  3. key and value
  4. None of the options

18)Prometheus is a _ _ _ _ _

  1. kubernetes node
  2. Kubernetes native metric tool
  3. Monitoring tool
  4. None of the options

19)PVCs consume Pvs

  1. True
  2. False

20)Which command is used to start minikube with “RBAC” enabled?

  1. minikube start -extra-config=Authorization.Mode=RBAC
  2. minikube start RBAC=true
  3. minikube start -Authorization.Mode=RBAC
  4. minikube start -extra-config=apiserver.Authorization.Mode=RBAC

21)Mounting ConfigMaps as a volume will delete existing data in that directory

  1. True
  2. False

22)Is it possible to mount secrets to pods?

  1. Yes
  2. No

23)Process of verifying the user is known as _ _ _ _ _

  1. Access Control
  2. Authentication
  3. Authorization
  4. Admin management

24)Which file system do secrets use?

  1. NFS
  2. HDFS
  3. TMPFS
  4. NTFS

25)This is a Valid “subject”

  1. Kube API
  2. Nodes
  3. User
  4. Processes

26)Which command is used to start kubernetes web-UI?

  1. minikube proxy
  2. minikube start UI
  3. kubectl proxy
  4. kubectl get UI

You may also like...