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 226–240 of 490 questions

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

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

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

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

230.What does Git not protect in a GitOps setup?SeniorGitOps with Argo CD

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

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

232.How is Argo CD different from Flux?SeniorGitOps with Argo CD

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.

233.How do you stop a risky automatic deploy on Friday afternoon?SeniorGitOps with Argo CD

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.

234.What stops prune from deleting something important?SeniorGitOps with Argo CD

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.

235.What is infrastructure as code, and why use it?BeginnerTerraform

It means describing servers, networks and other cloud things in files instead of clicking in a console. The files live in Git, so changes are reviewed, repeatable and have history. You can build the same setup again for dev, prod or disaster recovery.

236.What do terraform init, plan and apply each do?BeginnerTerraform

init downloads providers and sets up the backend. plan compares your code with the state and shows what would change, without changing anything. apply makes those changes. Saving the plan with -out and applying that file makes sure you apply exactly what was reviewed.

237.What is a provider?BeginnerTerraform

A plugin that knows how to talk to one platform's API, such as AWS, Azure, GitLab or Kubernetes. You choose it and its version in required_providers, and init downloads it.

238.What is the difference between a variable, a local and an output?BeginnerTerraform

A variable is an input from outside. A local is a named value worked out inside the code. An output is a result shown to you or read by other code.

239.What is the state file, and why does it matter?BeginnerTerraform

State records which real resource each block in your code manages, plus its settings. Terraform compares it with your code and the real cloud to decide what to change. Losing it means Terraform no longer knows what it owns.

240.Why use a remote backend with locking?MidTerraform

A shared backend such as S3 gives the whole team one copy of state. Locking stops two people applying at the same time, which could corrupt state. Turn on versioning and encryption for the bucket as well, because state can contain secrets.