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 190 questions
61.How would you secure a multi-tenant cluster?SeniorKubernetes
Namespace per team with RBAC least privilege, NetworkPolicies default-deny, Pod Security Admission (restricted), ResourceQuotas and LimitRanges, admission policies (Kyverno or Gatekeeper), image signing, and secrets from an external store.
62.How does RBAC work in Kubernetes?SeniorKubernetes
A Role (or ClusterRole) lists allowed verbs on resources; a RoleBinding (or ClusterRoleBinding) gives it to users, groups or ServiceAccounts. Give least privilege, avoid cluster-admin, and test with kubectl auth can-i.
63.What happens when you run kubectl apply -f deployment.yaml?SeniorKubernetes
kubectl sends the object to the API server, which authenticates, authorizes, runs admission controllers and stores it in etcd. The Deployment controller creates a ReplicaSet, which creates Pods; the scheduler picks nodes; kubelet on each node starts the containers through the runtime.
64.How do NetworkPolicies work, and what is a good default?SeniorKubernetes
They are firewall rules for Pods, chosen by labels, enforced by the CNI (Calico, Cilium...). Start each namespace with a default deny for ingress (and ideally egress), then allow only the traffic each app needs, including DNS.
65.How do you handle secrets with Helm?SeniorHelm
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.
66.How does Argo CD deploying a chart differ from helm install?SeniorHelm
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.
67.How do you test Helm charts?SeniorHelm
helm lint, a JSON schema for values, rendering with several values files in CI, kubeconform to validate the YAML, the helm-unittest plugin for template logic, and helm test or chart-testing (ct) to install into a temporary cluster.
68.How do you publish charts?SeniorHelm
Package with helm package and push to an OCI registry (helm push chart.tgz oci://registry.example.com/charts) or a classic chart repository. Sign charts if your supply-chain policy needs it.
69.Where does Helm store release information?SeniorHelm
In Helm 3, each release revision is a Secret in the release's namespace (type helm.sh/release.v1). That is why helm history works without a server component, and why deleting those Secrets breaks the release.
70.How do you structure values for many environments?SeniorHelm
Keep safe defaults in values.yaml, then small override files per environment (values-staging.yaml, values-prod.yaml). Pass secrets from a secret manager, not values files, and keep environment differences small and visible.
71.Helm or Kustomize: how do you choose?SeniorHelm
Helm is best for packaging and sharing apps with many options and for third-party software. Kustomize patches plain YAML without templates, which is simpler for your own apps with small per-environment changes. Many teams use both, sometimes together through Argo CD.
72.How do you keep secrets safe in a GitOps repo?SeniorGitOps with Argo CD
Never commit plain secrets. Use Sealed Secrets or SOPS to commit encrypted data, or External Secrets Operator to commit only a pointer to a vault. Back up the keys and limit who can see Secrets in the UI.
73.How does Argo Rollouts differ from a Deployment?SeniorGitOps with Argo CD
A Rollout can release in steps, with canary or blue-green, check metrics with analysis and go back automatically. A Deployment only does a rolling update.
74.How do you promote a release between environments?SeniorGitOps with Argo CD
Change a file in Git, such as the image tag in the next environment's folder, through a reviewed pull request. Promote the same image, gate with tests, and roll back with git revert.
75.How does CI work with Argo CD?SeniorGitOps with Argo CD
CI builds and tests the image and pushes it with a real tag. Then a CI step or Argo CD Image Updater writes the new tag to the config repo, and Argo CD deploys it.