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–8 of 8 questions
Learn Helm →1.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.
2.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.
3.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.
4.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.
5.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.
6.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.
7.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.
8.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.