Kubernetes Interview Questions and Answer Part – 6

Which of the following is correct about Kubernetes Pods?

  • Pods can only contain a single VM
  • Pods can only contain a single container
  • Pods can contain one or more containers (Ans)
  • Pods must contain at least two containers

What is the smallest deployable object in Kubernetes?

  • Pod (Ans)
  • Replication Controller
  • Deployment
  • Container

How can you filter the output of a kubectl command to only show a Pod called “mypod”

  • kubectl get pods –filter mypod
  • kubctl get pods/mypod (Ans)
  • kubectl get mypod

Which of the following tools is good for installed Kubernetes in the AWS cloud?

  • kops (Ans)
  • docker-machine
  • kubeaws
  • kubectl

Which of the following is a best practice for running workloads on a Kubernetes cluster?

  • User workloads should only run on Nodes. (Ans)
  • User workloads should only run on Masters.
  • User workloads should be evenly balanced across Masters and Nodes.

Which of the following Master components are the front-end to the Kubernetes control plane?

  • The Controller Manager
  • The apiserver (Ans)
  • The Cluster Store
  • The Scheduler

Which of the following is the only stateful component on a Kubernetes Master?

  • The Cluster Store (Ans)
  • The Controller Manager
  • The Scheduler
  • The apiserver

Which of the following is the most common container runtime on Kubernetes Nodes?

  • rkt
  • Docker (Ans)
  • systemd
  • Parallels

Which component of the Kubernetes worker stack implements networking?

  • Container runtime
  • Kubelet
  • kube-proxy (Ans)

Which of the following is the preferred method of issuing work to Kubernetes?

  • Via manifest files in a declarative fashion (Ans)
  • Via individual commands in an imperative fashion

Which of the following best describes a Pod?

  • An isolated instance of Linux like aVirtual Machine
  • A unikernel
  • A Docker container
  • A ring-fenced environment (Ans)

Which of the following is the best option for two containers that need to share memory and access to a common volume?

  • Put each container in its own Pod and couple them over the network
  • Package them as a deployment
  • Rewrite the code so that both services run inside a single container
  • Put both container sinde the same Pod (Ans)

Which of the following is a major reason for Kubernetes Services?

  • K8s Services allow Pods to scale
  • Services are highly available
  • Services allow for simple rollbacks
  • We cannot rely on Pod IPs (Ans)

How are Services linked to Pods?

  • TCP port bindings
  • Docker Links
  • Label Selectors (Ans)

Which of the following best describes the benefits of Kubernetes Deployment objects?

  • Declarative formatting, rolling updates, and simple rollback capabilty (Ans)
  • They provide High Availability to the Kubernetes control plane
  • Imperative formatting, rolling updates, and simple rollback capabilty
  • They hugely simplify the deployment and management of Masters and Nodes

Which component of the Kubernetes Master is responsible for issuing work to Nodes?

  • The Scheduler (Ans)
  • The controller Manager
  • The apiserver
  • The Cluster Store
Rajesh Kumar
Follow me