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 76–90 of 192 questions
76.How do you make deploys roll back automatically?MidHelm
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.
77.Why must selector labels never change?MidHelm
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.
78.What is the difference between chart version and app version?MidHelm
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.
79.What are Helm hooks?MidHelm
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.
80.How do you manage chart dependencies?MidHelm
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.
81.What does helm upgrade --install --atomic do?MidHelm
--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.
82.What are _helpers.tpl and named templates for?MidHelm
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.
83.Name the main parts of Argo CD.MidGitOps with Argo CD
The API server (UI, CLI, API), the repo server (reads Git and renders Helm or Kustomize), the application controller (compares and syncs), and Redis (cache). Dex optionally handles single sign-on.
84.How do you handle Helm in Argo CD?MidGitOps with Argo CD
Point the source at a chart repo or a chart folder in Git, pin the chart version, and give values through valueFiles or valuesObject. Argo CD renders the chart itself, so it does not create a Helm release.
85.What is an AppProject for?MidGitOps with Argo CD
It limits which repos, clusters, namespaces and object kinds apps in it may use. It stops one team from deploying into another team's area or into kube-system.
86.When do you use sync waves and hooks?MidGitOps with Argo CD
Waves put objects in order, such as database before app. Hooks run a Job at a point in the sync, such as a PreSync migration or a PostSync smoke test.
87.What is an ApplicationSet?MidGitOps with Argo CD
A template plus a generator. It creates one Application for each item the generator finds, such as every folder, cluster or pull request.
88.What is the app-of-apps pattern?MidGitOps with Argo CD
A root Application points to a folder of Application files. Syncing the root creates every child, so one apply can set up a whole cluster.
89.How do you manage several clusters?MidGitOps with Argo CD
Add each with argocd cluster add and give it labels. Applications choose a destination by name, and a cluster generator can pick clusters by label.
90.How does Argo CD read a private Git repo?MidGitOps with Argo CD
You add credentials once with argocd repo add, using an HTTPS token or an SSH deploy key. Use a read-only key for that repo only. Every Application that uses the repo then works.