Skip to content
$ lynuxpro

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 178 questions

76.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.

77.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.

78.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.

79.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.

80.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.

81.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.

82.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.

83.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.

84.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.

85.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.

86.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.

87.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.

88.An app is stuck OutOfSync. What do you do?SeniorGitOps with Argo CD

Read the app message, run argocd app diff, look at events and the repo server log, hard refresh, and add ignoreDifferences for fields that other controllers change, such as replicas set by an autoscaler.

89.How do you scale Argo CD for hundreds of apps?SeniorGitOps with Argo CD

Use the HA manifests, several repo server and API replicas, shard the application controller across clusters, use webhooks instead of frequent polling, and watch queue and reconcile metrics.

90.How do you recover from losing a cluster?SeniorGitOps with Argo CD

Create a new cluster, install the same Argo CD version, restore keys that are not in Git, apply the root app so everything syncs, restore data from backups such as Velero, and switch traffic. Practice it.