Skip to main content
InterviewHubPRO
Section Overview
Q2

Question 2 of 50

Part 1: GitOps Fundamentals & Core Principles (Junior / Entry-Level)

4%
GitOps & ArgoCD (50 Qs)•Part 1: GitOps Fundamentals & Core Principles (Junior / Entry-Level)

Compare Pull-Based (GitOps) vs Push-Based (Traditional CI/CD).

junior LevelMost AskedCode ExampleCI/CD & DevOps

In Simple Words:

DimensionTraditional Push-Based (e.g. Jenkins / GitHub Actions)GitOps Pull-Based (e.g. ArgoCD)
Execution VectorCI pipeline runs kubectl apply from outside the clusterAn agent inside the cluster polls Git and reconciles
Cluster CredentialsSensitive cluster admin credentials must be given to external CICluster credentials never leave the cluster
Firewall PortsInbound network port (Kubernetes API 6443) must be open to CIOnly outbound HTTPS access to GitHub is required
Drift CorrectionIf an engineer modifies a pod with kubectl, CI doesn't knowArgoCD detects drift instantly and automatically overwrites it
Security RiskHigh (compromised CI pipeline compromises the entire cluster)Minimal (external systems cannot push code to the cluster)
scss
── Push Model (Legacy) ──
[ GitHub Actions ] ──(Needs Cluster Admin Kubeconfig)──► [ Kubernetes API ]

── Pull Model (GitOps) ──
[ Git Repo (Source of Truth) ]
         ▲
         │ (Outbound Poll via HTTPS / SSH)
[ ArgoCD inside Kubernetes ] ──(Local Internal Apply)──► [ Cluster Resources ]