JOBSEEKER?

Kubernetes Interview Questions

Practice for Kubernetes interviews by solving TestDome questions. Our interview questions are used by more than 7,000 companies and 450,000 individual test takers.

Jobseekers: Certify Your Knowledge

Take a Certification Test

Companies: Use Our Tests for Screening

Buy a Pack Of Candidates

Need to practice your Kubernetes skills for an upcoming job interview? Try solving these Kubernetes interview questions that test knowledge of Kubernetes concepts such as services, deployments, and ingress. We’ll provide feedback on your answers, and you can use a hint if you get stuck.

These Kubernetes questions are examples of real tasks used by employers to screen job candidates such as DevOps developers, engineers, and others that require knowledge of Kubernetes.

1. File Ingress

Easy  
Kubernetes Ingress New Public

Consider the following Ingress controller:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: main-ingress
spec:
  rules:
  - http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          serviceName: main-app
          servicePort: 80
      - path: /files/
        pathType: Prefix
        backend:
          serviceName: file-app
          servicePort: 80
      - path: /files/default.png
        pathType: Exact
        backend:
          serviceName: default-app
          servicePort: 8080

Select all the true statements.

(Select all acceptable answers.)

Solve Question

2. Nginx Deployment

Easy  
Kubernetes Deployment Services New Public

The team responsible for Kubernetes wants to add a Deployment that will deploy 4 nginx Pods which should have port 443 open. Finish the following YAML configuration so that it implements those requirements:

apiVersion: apps/v1
kind: ________________
metadata:
  name: deployment-nginx
  labels:
    web: public
spec:
  replicas: __________
  selector:
    matchLabels:
      web: public
  template:
    metadata:
      labels:
        _______: __________
    spec:
      containers:
      - name: nginx
        image: nginx:1.14.2
        ports:
        - ____________: 443
Solve Question

If you feel ready, take one of our timed public Kubernetes Interview Questions tests:
Kubernetes

Kubernetes Online Test (Easy)

DevOps

Kubernetes and DevOps Online Test (Easy)

Not exactly what you are looking for? Go to our For Jobseekers section.
Dashboard Start Trial Sign In Home Tour Tests Questions Pricing For Jobseekers