Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Kubernetes Interview Questions and Answer Part – 5

Which of the following describes the fundamentals of Kubernetes Pod networks?

  • Each Pod gets a unique routable IP on the Pod network (Ans)
  • All Pods share a common IP and are accessed on the Pod network via TCP ports
  • Each container gets a unique routable IP on the Pod network

How do two containers in the same Pod communicate?

  • Via the shared localhost adapter inside the Pod (Ans)
  • Via the Pod overlay network
  • Via a local bridged network inside the Pod

Which of the following commands will lauch a Minikube environment using the xhyve Virtual Machine driver on an Apple Mac?

  • kubectl start minikube –vm-driver=xhyve
  • minikube start –vm-driver=xhyve (Ans)
  • kubeadm start minikube –vm-driver=xhyve

Which infrastructure platforms does Kubernetes run on?

  • Kubernetes only runs on virtual machines and cloud platforms as long as they are running Linux.
  • Kubernetes only runs on bare metal Linux installations.
  • Kubernetes is platform agnostic. All it requires is a Linux host. (Ans)
  • Kubernetes only runs on bare metal servers and virtual machines as long as they are running Linux.

Where does the Kubernetes Operations tool kops store its configuration?

  • And environment variable called KOPS
  • A distributed K/V store running in a system Pod
  • An environment variable called KOPS_STATE_STORE (Ans)

You are planning an update to an existing deployment and want to wait 15 seconds in between each pod update. Which option in the deployment manifest file lets you specify this?

  • rollingUpdateWait: 15
  • maxSurge: 15
  • podUptime: 15
  • minReadySeconds: 15 (Ans)

How do Services know which Pods to load-balance requests to?

  • Label selectors (Ans)
  • A static list held in the Service’s Endpoint object
  • Environment variables
  • DNS

You are working with Kubernetes deployments and want to log updates to the deployment each time to issue an update related command. Which command option does this for you?

  • –log
  • –record (Ans)
  • –history
  • –audit

Which Service type (ServiceType) will create a common cluster-wide port on all nodes?

  • CkusterPort
  • NodePort (Ans)
  • ClusterIP
  • NodeIP

Which of the following describes how to scale-up aspects of an application running on Kubernetes?

  • Add more containers to the Pod that needs scaling
  • Add more memory to the machines hosting the Pods
  • Add more replicas of the Pod that needs scaling (Ans)

Which of the following is true about Kubernetes Pods?

  • High level abstraction object for deploying virtual machines
  • Atomic unit of scheduling that contain exactly one container
  • Atomic unit of scheduling that contain one or more containers (Ans)

Which of the following tells Kubernetes that the object you are deploying is a Pod?

  • The value of the kind flag on the kubectl command line
  • The value of the kind field in the YAML or JSON manifest file (Ans)

What are the two major infrastructure components of a Kubernetes cluster?

  • Managers and Workers
  • Masters and Nodes (Ans)
  • Controllers and Minions
  • Masters and Workers

What objects to Deployments manage?

  • Ingress Lists (IngressList)
  • Replica Sets (ReplicaSet) (Ans)
  • Daemon Sets (DaemonSet)
  • Replication Controllers (ReplicationController)

Which of the following commands deploys a new Deployment using a declarative style?

  • kubectl run my-deployment –image=
  • kubectl create deployment -f (Ans)

Which of the following best describes a Kubernetes Service?

  • They allow you to break you monolithic apps into smaller micro-services
  • They provide a stable and reliable networ endpoint for your application containers
  • They provide a stable and reliable networ endpoint for your application Pods (Ans)

Which of the following Kubernetes commands creates a new service object (the iterative way)?

  • kubectl service
  • kubectl expose (Ans)
  • kubectl create -f
  • kubectl endpoint

You are working with a deployment that has 12 revisions and you are currently at revision 12. You want to rollback to revision 10. Which of the following commands will do this for you

  • kubectl rollout undo deployment –to-revision=10 (Ans)
  • kubectl rollout rewind deployment –to-revision=10
  • kubectl rollout reverse deployment –to-revision=10

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Kubernetes Job & CronJob Explained: API Resource, YAML Example, and Use Cases

Kubernetes Jobs and CronJobs Explained with Examples: Complete Hands-on Guide for DevOps Engineer Keywords 1. Introduction In Kubernetes, not every workload is a long-running application like a…

Read More

Kubernetes Secret Explained: Secret API Resource, YAML Example, and Use Cases

What is Kubernetes SecretsA Secret is an object that contains a small amount of sensitive data such as a password, a token, or a key. Objects of…

Read More

Kubernetes ConfigMap Explained: API Resource, YAML Example, and Use Cases

Content of reverseproxy.conf Commands to execute to create configmap Example pod using configmap Validating configmap inside a pod Rajesh Kumar I’m Rajesh Kumar, a DevOps, SRE, DevSecOps,…

Read More

Kubernetes Service Explained: API Resource, YAML Example, and Use Cases

In Kubernetes, a Service is an abstraction that defines a logical set of pods and a policy by which to access them. It provides a stable network…

Read More

Kubernetes Deployment Explained: API Resource, YAML Example, and Use Cases

Fearture of Kubernetes Deployment Note:ReplicaSets = Replication+Controller in the Deployment Kubernetes Deployement Strategy Type of deployment .spec.strategy specifies the strategy used to replace old Pods by new…

Read More

Kubernetes ReplicaSet Explained: API Resource, YAML Example, and Use Cases

Rajesh Kumar I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have…

Read More