CS FundamentalsHardProduct-company DevOps interview

In GitOps, how does a change reach a Kubernetes cluster?

  1. A. Developers run kubectl apply from their laptops
  2. B. An agent in the cluster continuously compares the desired state declared in a Git repository with the live state and reconciles any difference; changes are made by merging to Git
  3. C. The CI server SSHes into each node
  4. D. Operators edit live resources and later commit the changes

Correct answer: B. An agent in the cluster continuously compares the desired state declared in a Git repository with the live state and reconciles any difference; changes are made by merging to Git

Git is the single source of truth and an in-cluster operator pulls and applies it, so every change is reviewed, versioned and revertible, and manual drift is corrected automatically.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic