Skip to content
$ lynuxpro

INTERVIEW PREP

Interview questions

570 questions from real DevOps, SRE, platform engineering and MLOps interviews, with the answer an interviewer wants to hear. Try answering out loud first, then open the model answer.

Showing 46–60 of 108 questions

46.What does -p 8080:80 mean?BeginnerDocker

Publish port 80 inside the container on port 8080 of the host, so http://localhost:8080 reaches the app.

47.What is the difference between a Deployment, a ReplicaSet and a Pod?BeginnerKubernetes

A Pod runs one or more containers. A ReplicaSet keeps a number of identical Pods running. A Deployment manages ReplicaSets to give rolling updates and rollbacks; you normally only create Deployments.

48.How does a Service find its Pods?BeginnerKubernetes

Through its label selector. The endpoints controller lists ready Pods whose labels match, and kube-proxy (or the CNI) routes the Service's virtual IP to them.

49.What are the main parts of a Kubernetes cluster?BeginnerKubernetes

The control plane runs the API server, etcd (the database), the scheduler and the controller manager. Each worker node runs kubelet, a container runtime and kube-proxy (or a CNI that replaces it). You talk to the API server with kubectl.

50.What is a namespace used for?BeginnerKubernetes

It groups resources inside one cluster, for example per team or environment, and is the unit for RBAC, resource quotas and network policies. It is not a hard security boundary on its own.

51.What is the difference between a ConfigMap and a Secret?BeginnerKubernetes

Both hold configuration for Pods. Secrets are meant for sensitive data and are base64-encoded, not encrypted by default; turn on encryption at rest and limit access with RBAC, or use an external secret manager.

52.What are the Service types?BeginnerKubernetes

ClusterIP (internal only, the default), NodePort (a port on every node), LoadBalancer (a cloud load balancer) and ExternalName (a DNS alias). Ingress or Gateway API sit on top to route HTTP by host and path.

53.What is the difference between a chart and a release?BeginnerHelm

A chart is a package of templates and default values. A release is one installed instance of a chart in a namespace, with its own name and revision history.

54.How do values get merged?BeginnerHelm

Chart defaults first, then each -f file in order, then --set flags; later sources win. Maps merge key by key, lists are replaced whole.

55.What is Helm, and why use it instead of plain YAML?BeginnerHelm

Helm is a package manager for Kubernetes. A chart is a set of templates plus default values, so one chart can deploy to many environments with different values, and Helm tracks each install as a release you can upgrade or roll back.

56.What files are in a Helm chart?BeginnerHelm

Chart.yaml (name, version, dependencies), values.yaml (defaults), templates/ (Kubernetes YAML with Go templates), and optionally charts/ for dependencies, values.schema.json and templates/NOTES.txt.

57.How do you see the YAML a chart will create before installing?BeginnerHelm

helm template myrel ./chart -f values-prod.yaml renders it locally. helm install --dry-run --debug renders it against the cluster, and the helm-diff plugin shows what an upgrade will change.

58.What is GitOps?BeginnerGitOps with Argo CD

A way to run systems where Git says what should run and a tool in the cluster keeps the cluster the same as Git. You change things by changing Git.

59.What is the difference between push and pull deploys?BeginnerGitOps with Argo CD

In push, a CI job changes the cluster and needs its credentials. In pull, a tool inside the cluster reads Git and applies it, so nothing outside needs cluster access.

60.What is an Argo CD Application?BeginnerGitOps with Argo CD

An object with a source (where the config is), a destination (which cluster and namespace) and a sync policy. Argo CD keeps the destination equal to the source.