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 1–15 of 20 questions
Learn Helm →1.What is the difference between a chart and a release?Beginner
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.
2.How do values get merged?Beginner
Chart defaults first, then each -f file in order, then --set flags; later sources win. Maps merge key by key, lists are replaced whole.
3.What is Helm, and why use it instead of plain YAML?Beginner
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.
4.What files are in a Helm chart?Beginner
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.
5.How do you see the YAML a chart will create before installing?Beginner
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.
6.Why did my upgrade drop settings from the last release?Mid
helm upgrade starts from chart defaults plus what you pass now; it does not remember previous values. Pass the same values files every time, or use --reuse-values / --reset-then-reuse-values for a quick fix.
7.How do you make deploys roll back automatically?Mid
helm upgrade --install ... --wait --rollback-on-failure --timeout 5m (Helm 4's name for --atomic). Helm waits for readiness and rolls back if it times out or fails.
8.Why must selector labels never change?Mid
A Deployment's selector is immutable. If labels in it change (for example adding the version), the upgrade fails with 'field is immutable'. Keep selectors to name and instance only.
9.What is the difference between chart version and app version?Mid
version in Chart.yaml is the chart's own version, bumped on any chart change (SemVer). appVersion is the version of the app it deploys, often used as the default image tag.
10.What are Helm hooks?Mid
Annotated resources that run at points in a release, like pre-install or pre-upgrade, often a Job for database migrations. Set a hook delete policy so old hook Jobs are cleaned up.
11.How do you manage chart dependencies?Mid
List them under dependencies in Chart.yaml with a version range and repository, run helm dependency update, and set their values under the dependency name in your values file. Use condition to switch a dependency on or off.
12.What does helm upgrade --install --atomic do?Mid
--install installs if the release doesn't exist yet. --atomic waits for resources to be ready and rolls back automatically if the upgrade fails, which is safer in CI.
13.What are _helpers.tpl and named templates for?Mid
They hold reusable snippets, defined with define and used with include, such as standard labels or the full name. This keeps templates consistent and avoids copy-paste.
14.How do you handle secrets with Helm?Senior
Never plain values in Git. Options: SOPS-encrypted values with helm-secrets, Sealed Secrets, or best, External Secrets Operator pulling from a secret manager so the chart holds only references.
15.How does Argo CD deploying a chart differ from helm install?Senior
Argo CD renders with helm template and applies manifests itself: no Helm release exists, lookup returns nothing and hooks map to PreSync/PostSync. Rollback is a Git revert.