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 1–11 of 11 questions

Learn GitOps with Argo CD →
1.How do you keep secrets safe in a GitOps repo?Senior

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.

2.How does Argo Rollouts differ from a Deployment?Senior

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.

3.How do you promote a release between environments?Senior

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.

4.How does CI work with Argo CD?Senior

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.

5.An app is stuck OutOfSync. What do you do?Senior

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.

6.How do you scale Argo CD for hundreds of apps?Senior

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.

7.How do you recover from losing a cluster?Senior

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.

8.What does Git not protect in a GitOps setup?Senior

Data in databases and volumes, and private keys for secret decryption. They need separate backups.

9.How is Argo CD different from Flux?Senior

Both pull from Git and reconcile the cluster. Argo CD has a web UI, an Application object that shows sync and health, and ApplicationSets. Flux is made of smaller controllers with no UI of its own and fits well when you want everything as plain Kubernetes objects. The GitOps ideas are the same.

10.How do you stop a risky automatic deploy on Friday afternoon?Senior

Add a sync window to the AppProject that denies syncs at those times, or use manual sync for production. A person can still be allowed to sync in an emergency with manualSync.

11.What stops prune from deleting something important?Senior

Test with argocd app diff and sync --dry-run first, put the annotation argocd.argoproj.io/sync-options: Prune=false on objects that must stay, use PruneLast, and protect the config repo branch so changes are reviewed.