CS FundamentalsHardProduct-company DevOps interview
In GitOps, how does a change reach a Kubernetes cluster?
- A. Developers run kubectl apply from their laptops
- 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
- C. The CI server SSHes into each node
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A team stops patching running servers in place and instead builds a new machine image for every change, replacing old servers entirely…
- How many of these statements about cyclomatic complexity are correct? 1. Adding a straight-line statement to a function never changes…
- A team applies the Open/Closed principle so aggressively that every class has an interface, a factory and plug-in points 'in case'…
- Two functions contain the same three lines of code, but one computes a GST rate and the other a delivery charge that happens to use the…
- A class Report depends on ReportFormatter, and ReportFormatter depends on Report to read its data, creating a cyclic dependency between…
- A unit test calls a service that reads the current time with datetime.now() and fails every day after 6 pm. What is the cleanest fix?