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 61–75 of 129 questions
61.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.
62.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.
63.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.
64.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.
65.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.
66.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.
67.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.
68.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.
69.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.
70.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.
71.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.
72.What is the difference between sync status and health status?BeginnerGitOps with Argo CD
Sync status says whether the cluster matches Git. Health status says whether the app is working. An app can be Synced and still Degraded.
73.What do prune and self-heal do?BeginnerGitOps with Argo CD
Prune deletes cluster objects that were removed from Git. Self-heal undoes manual changes in the cluster so it matches Git again.
74.What is infrastructure as code, and why use it?BeginnerTerraform
It means describing servers, networks and other cloud things in files instead of clicking in a console. The files live in Git, so changes are reviewed, repeatable and have history. You can build the same setup again for dev, prod or disaster recovery.
75.What do terraform init, plan and apply each do?BeginnerTerraform
init downloads providers and sets up the backend. plan compares your code with the state and shows what would change, without changing anything. apply makes those changes. Saving the plan with -out and applying that file makes sure you apply exactly what was reviewed.