---Advertisement---
Kubernetes: Seasoned Guide Microservices

Kubernetes: Seasoned Guide Interview Question-Answer

By smart_answer13

Published on:

---Advertisement---

Q.1 The Phase of the pod when a container inside the pod is exited with non-zero exit code is____.

       A. Pending

       B. Failed

       C. Running

       D. Succeeded

Ans : Failed


Q.2 It stores current state of the cluster.

       A. kubelet

       B. Master Node

       C. etcd

       D. Worker Node

Ans : etcd


Q.3 Node in kubernetes is a

       A. Virtual machine

       B. Physical machine

       C. both physical and virtual machine

       D. None of the options

Ans : both physical and virtual machine


Q.4 Containers share the pod can communicate using.

       A. localhost

       B. IPC

       C. Semaphores

       D. All the options

Ans : All the options


Q.5 This is not a valid Container Lifecycle hook.

       A. PreStop

       B. PreStart

       C. PostStart

       D. None of the options

Ans : PreStart


Q.6 Containers inside the same pod can access each other through localhost.

       A. True

       B. False

Ans : True


Q.7 Kubernetes has to contain a master node.

       A. True

       B. False

Ans : True


Q.8 It is recommended to use :latest tag with your deployment images.

       A. True

       B. False

Ans : False


Q.9 One service can expose multiple ports.

       A. True

       B. False

Ans : True


Q.10 “Pod is ready to be deployed but container images are being downloaded” this pod phase is called.

       A. Pending

       B. Failed

       C. Succeeded

       D. Running

Ans : Pending


Q.11 Pod definition must contain this info.

       A. Image name

       B. Labels

       C. name

       D. All the options

Ans : name


Q.12 What is kubernetes?

       A. Container Management Tool

       B. Container Runtime

       C. Container Orchestration

Ans : Container Runtime


Q.13 This is not a valid imagePullPolicy.

       A. Anytime

       B. IfNotPresent

       C. Never

       D. Always

Ans : Anytime


Q.14 Smallest Deployable unit in kubernetes is?

       A. Container

       B. Image

       C. Pod

       D. Node

Ans : Pod


Q.15 Selection of a pod is facilitated by this field.

       A. labels

       B. name

       C. both name and labels

       D. None of the options

Ans : labels


Q.16 How many containers a Pod can run?

       A. 2

       B. 1

       C. 3

       D. any number

Ans : any number


Q.17 This command is used get all running pods of default namespace.

       A. kubectl get default

       B. kubectl get pods

       C. kubectl get ns

       D. none of the mentioned

Ans : kubectl get pods


Q.18 Kubernetes uses this technique to divide clusters logically.

       A. Controllers

       B. nodes

       C. namespaces

       D. pods

Ans : namespaces


Q.19 Which field in Pod Definition is used to pass environmental variables?

       A. environment

       B. args

       C. env

       D. environ

Ans : env


Q.20 One service can expose multiple ports.

       A. True

       B. False

Ans : True


Q.21 Jobs Implicitly creates pods.

       A. True

       B. False

Ans : True


Q.22 When using Deployments it is recommended to manage Replicasets by yourself.

       A. True

       B. False

Ans : False


Q.23 StatefulSet uses headless Service.

       A. True

       B. False

Ans : True


Q.24 Node Level logging can be achieved using this controller.

       A. StatefulSets

       B. ReplicaSets

       C. Deployments

       D. DaemonSet

Ans : DaemonSet


Q.25 Deployment provides _______ way of maintaining pods.

       A. declarative

       B. both declarative and imperative

       C. imperative

       D. None of the options

Ans : declarative


Q.26 The command kubectl appy -f deploy.yaml deploys pods to _________ namespace.

       A. default

       B. Kube-system

       C. Kube-ns

       D. deployments

Ans : Kube-ns


Q.27 Which controller can be used to run a pod per node?

       A. StatefulSets

       B. Deployments

       C. daemonSet

       D. ReplicaSets

Ans : daemonSet


Q.28 This is an example to imperative commands.

       A. kubectl apply -f some-depl.yaml

       B. kubectl run nginx –image nginx

       C. kubectl delete -f some-depl.yaml

       D. kubectl create -f nginx-depl.yaml

Ans : kubectl run nginx –image nginx


Q.29 A Deployment is considered to be failed because of

       A. Error with image pull

       B. Insufficient quota

       C. Readiness probe failures

       D. All the options

Ans : All the options


Q.30 Which field in Replication Controller Object is used to specify number to pods to be created?

       A. podCount

       B. Pods

       C. Copies

       D. replicas

Ans : replicas


Q.31 Whenever a service is created, a new DNS entry is also created.

       A. True

       B. False

Ans : True


smart_answer13

---Advertisement---

Related Post

Zipkin-Jaeger Interview Question-Answer

Q.1 Which is responsible for sending spans to storage?        A. Transport        B. Collector        C. Component        D. ...

Weaveworks Interview Question-Answer

Q.1 Which of the following features offered by WeaveClouds?        A. Observability        B. VCS integration        C. none of the mentioned ...

Vaadin Unplugged Interview Question-Answer

Q.1 Which of the Programming Model is not supported by Vaadin?        A. Browser        B. Client Side        C. Server Side ...

Spring Boot Framework Interview Question-Answer Part – 2

Q.1 The annotation used to import additional configuration classes is ___________.        A. @Import        B. @Include        C. @EnableImport     ...

Leave a Comment