Skip to main content
InterviewHubPRO
HomeTracksSection 37: GitOps & ArgoCD (50 Qs)
Section 37 of 6450 Questions (1 Per Page)

GitOps & Declarative Continuous Delivery (ArgoCD & Flux) Master Interview Bank

Declarative Continuous Delivery with GitOps, ArgoCD architecture, ApplicationSets, sync phases, health checks, rollback mechanisms, and Flux.

Curriculum Roadmap & Learning Path

3 Stages
Tip: Click any stage card above to instantly filter the question bank to that topic.3 Connected Milestones
50 of 50 Qs

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

12 Questions
1
Junior#gitops#GitOps Fundamentals

What is GitOps and what are the four OpenGitOps core principles?

GitOps is an operational framework that takes DevOps best practices (version control, collaboration, compliance, and CI/CD) and applies them to infrastructure and application deployment on Kubernetes.

2
Most AskedJuniorCode#CI/CD & DevOps

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

Dimension Traditional Push-Based (e.g. Jenkins / GitHub Actions) GitOps Pull-Based (e.g. ArgoCD).

3
Senior#System Design

Explain the internal architecture of ArgoCD.

ArgoCD is a declarative, GitOps continuous delivery tool for Kubernetes implemented as a set of Kubernetes controllers and services: API Server: gRPC/REST server that exposes the Web UI, CLI, and handles user authentication, RBAC, and credentials.

4
JuniorCode#gitops#GitOps Fundamentals

What is the ArgoCD `Application` CRD?

The Application Custom Resource Definition (CRD) is the primary resource in ArgoCD. It binds a Git repository source to a target Kubernetes cluster destination.

5
Junior#gitops#GitOps Fundamentals

What are `prune` and `selfHeal` in ArgoCD sync policies?

prune: true: When an engineer deletes a Kubernetes YAML file from the Git repository, ArgoCD will actively delete the corresponding live • selfHeal: true: If an operator manually runs kubectl edit deployment or deletes a service directly in the cluster, ArgoCD detects the.

6
Junior#Terraform & IaC

What is Configuration Drift and how does ArgoCD detect it?

Configuration Drift happens when the running state of a Kubernetes cluster diverges from the version-controlled configuration in Git (caused by manual emergency hotfixes, rogue scripts, or malicious actors).: ArgoCD continuously monitors Kubernetes API watch events.

7
Junior#Kubernetes

How do Helm and Kustomize fit into GitOps workflows?

Writing raw, static Kubernetes YAML for multiple environments (dev, staging, prod) leads to thousands of duplicate lines.: Kustomize: Uses a base directory with declarative patches (overlays/dev, overlays/prod) without templating languages • Helm: Parameterizes Kubernetes manifests using Go templates and values.yaml.

8
Junior#gitops#GitOps Fundamentals

What is the difference between Mono-Repo vs Multi-Repo in GitOps?

App Repo vs Config Repo Separation: Best practice is to keep Application Source Code (app-service/) in one repo and Kubernetes GitOps Manifests • Mono-Repo for Config: Storing all microservices manifests in one GitOps repo simplifies visibility, shared Kustomize bases, and cluster-wide.

9
Junior#gitops#GitOps Fundamentals

What are ArgoCD Application Health States?

ArgoCD assesses whether the pods and controllers underlying an Application are working properly: Healthy: All pods are running, probes passing, replicas match desired count • Progressing: Pods are currently pulling images, initializing, or undergoing a rolling update.

10
JuniorCode#gitops#GitOps Fundamentals

How do Sync Phases and Sync Waves work in ArgoCD?

By default, Kubernetes creates resources in arbitrary order. In complex architectures, database schemas must migrate before backend pods boot up, and CRDs must be created before custom resources.: Sync Waves (argocd.argoproj.io/sync-wave: "1"): Orders resource creation.

11
Junior#Hooks

What are ArgoCD Resource Hooks?

Resource Hooks run custom scripts or Kubernetes Jobs at designated milestones during the synchronization process: PreSync: Runs before applying manifests (e.g. DB backup, schema migration) • Sync: Applied alongside regular manifests.

12
Junior#Kubernetes

How do you roll back a deployment in GitOps?

In a true GitOps workflow, you never click "Rollback" in the ArgoCD UI! Because Git is the single source of truth, clicking rollback in the UI causes live state to drift from Git, which selfHeal will promptly undo. To perform a true GitOps rollback: Run git revert and push to the main branch.

Part 2: ArgoCD at Scale & Progressive Delivery (Mid-Level)

12 Questions
13
SeniorCode#gitops#ArgoCD at Scale

What is the ArgoCD `ApplicationSet` CRD?

Managing 500 individual Application YAMLs manually is unmaintainable. ApplicationSet is a controller that automates the generation of ArgoCD Application resources using Generators: List Generator: Generates applications based on a fixed list of environments.

14
SeniorCode#gitops#ArgoCD at Scale

How do you manage Secrets in GitOps without exposing plaintext in Git?

Checking plaintext passwords, API keys, or private certificates into Git is a severe security violation.: External Secrets Operator (ESO) (Recommended): Store secrets in AWS Secrets Manager, HashiCorp Vault, or Google Secret Manager • Sealed Secrets (Bitnami): Encrypt secrets client-side using a public key.

15
Senior#Kubernetes

How does ArgoCD manage Multi-Cluster Deployments?

ArgoCD can operate from a single "control plane" Kubernetes cluster and manage hundreds of remote target clusters.: You register remote clusters via argocd cluster add • ArgoCD creates a dedicated ServiceAccount with RBAC permissions inside the remote cluster.

16
Senior#gitops#ArgoCD at Scale

What is the role of ArgoCD `AppProject`?

AppProject provides multi-tenancy and logical isolation within ArgoCD: Restricts Source Repos: Only allow applications to pull from approved Git repositories • Restricts Target Destinations: Ensure a developer team cannot deploy into the kube-system namespace or production clusters.

17
Most AskedSenior#Kubernetes

What is Argo Rollouts and how does it surpass standard Kubernetes Deployments?

Standard Kubernetes Deployment only supports basic rolling updates (which offer no traffic shaping, no automated metric validation, and no progressive canary analysis). Argo Rollouts is a drop-in replacement controller for Kubernetes Deployment that introduces: Canary Deployments (routing 5%, 20%, 50% traffic via Service Mesh).

18
SeniorCode#gitops#ArgoCD at Scale

How does Metric-Based Automated Canary Analysis work in Argo Rollouts?

During a canary release, Argo Rollouts executes AnalysisTemplate queries against your monitoring system (Prometheus, Datadog, New Relic) at each step. If the query fails, the rollout immediately aborts and restores 100% traffic to the stable version!

19
Senior#Routing#Kubernetes

How does Traffic Routing work with Service Meshes in Argo Rollouts?

Without a service mesh, routing 10% traffic requires running 1 canary pod and 9 stable pods. Argo Rollouts integrates with Istio, NGINX Ingress, Linkerd, or AWS ALB to split HTTP traffic at the network proxy layer based on exact percentages or HTTP headers, regardless of replica counts!

20
SeniorCode#gitops#ArgoCD at Scale

How do you integrate ArgoCD Notifications?

argocd-notifications monitors application events (e.g., app-sync-failed, app-health-degraded, app-deployed) and dispatches formatted webhooks, Slack messages, Microsoft Teams cards, or PagerDuty alerts using trigger annotations.

21
Senior#gitops#ArgoCD at Scale

Compare Flux v2 vs ArgoCD.

Dimension ArgoCD Flux v2.

22
Senior#gitops#ArgoCD at Scale

How do you handle Disaster Recovery (DR) in GitOps?

If an entire AWS region fails or a Kubernetes cluster is accidentally deleted: Spin up a fresh, empty Kubernetes cluster via Terraform • Install ArgoCD via Helm • Apply a single root root-app.yaml pointing to your GitOps repository.

23
Senior#Kubernetes

What are the best practices for managing Helm Values in GitOps?

Keep third-party Helm chart repositories external (e.g. Bitnami, Redis, Ingress-NGINX) • Store only your custom values-dev.yaml, values-staging.yaml, and values-prod.yaml files inside your Git repository • Avoid using helm install --set key=value which bypasses version control.

24
Senior#Databases & SQL

How do you handle database migrations safely in GitOps?

Database migrations are stateful and irreversible, while GitOps is designed for declarative, repeatable states.: Run database migrations inside an ArgoCD PreSync Kubernetes Job • Ensure all database schema changes are backward-compatible (expand before contract).

Part 3: Enterprise Scale, Security & Edge GitOps (Senior / Staff)

26 Questions
25
SeniorCode#Security & Auth

How do you prevent Infinite Reconciliation Loops in ArgoCD?

An infinite loop occurs when ArgoCD applies a manifest, an external Kubernetes mutating webhook (e.g. Istio sidecar injector, Kyverno, or HashiCorp Vault agent) mutates the live object, and ArgoCD detects this mutation as "drift" and tries to re-apply, repeating infinitely.

26
Senior#Security & Auth

How do you scale ArgoCD to 10,000+ Applications?

Sharding Application Controller: Run multiple replicas of argocd-application-controller using statefulset sharding (ARGOCDCONTROLLERREPLICAS=5) • Tune Repo Server: Scale argocd-repo-server horizontally, increase Git clone timeout, and configure local Git repository disk caches.

27
Senior#Security & Auth

How do you enforce Policy as Code with Kyverno or Gatekeeper in GitOps?

GitOps ensures what is in Git gets deployed, but does not prevent a developer from committing an insecure manifest (e.g. running containers as root or missing CPU limits).: Shift-Left in CI: Run conftest or kyverno-cli test inside GitHub Actions to fail PRs that violate security policies before they are merged.

28
Senior#Security & Auth

How do you implement Dynamic Ephemeral Preview Environments with ArgoCD?

When a developer opens a pull request, you can automatically spin up a dedicated test environment: Use the ApplicationSet Pull Request Generator targeting your GitHub organization • For every open PR, it dynamically instantiates an isolated namespace pr-1234 running the branch's preview container.

29
Senior#Security & Auth

How do you achieve Zero-Trust GitOps with GPG and Cosign?

GPG Commit Verification: Configure the ArgoCD Repo Server with the public GPG keys of authorized engineers • Container Image Attestation: Integrate Cosign with in-cluster admission webhooks so that only container images signed by your enterprise CI.

30
Senior#Security & Auth

How do you manage Infrastructure with GitOps using Crossplane?

While ArgoCD natively deploys Kubernetes manifests, Crossplane extends Kubernetes with Custom Resource Definitions that represent cloud infrastructure (AWS S3, RDS, DynamoDB, VPC).

31
Senior#Security & Auth

How do you prevent and audit manual `kubectl` backdoor overrides?

In strict GitOps environments, remove cluster-admin write access for all human developers • All changes must go through a Git Pull Request with peer approvals • Enable ArgoCD selfHeal: true so that even if a developer with elevated emergency access edits a deployment, it is reverted back to the Git state.

32
Senior#Security & Auth

What is Edge GitOps and how do you handle intermittent connectivity?

Deploying Kubernetes to 1,000 retail stores or 5G cell towers with erratic internet connections: Run a standalone, lightweight ArgoCD or Flux controller locally inside each edge cluster (K3s) • The edge controller polls Git when internet is available.

33
Senior#Security & Auth#System Design

How do you configure High Availability (HA) for ArgoCD?

Deploy ArgoCD using its official HA manifests: Redis HA with Sentinel: 3 Redis nodes managed by Sentinel for automatic failover • Replicated Controllers: 2+ replicas of argocd-server, argocd-repo-server, and argocd-dex-server behind a Kubernetes Service • Application Controller: Active-active sharding partitioned across clusters.

34
SeniorCode#Security & Auth

How do you handle Stateful Applications and PVCs in GitOps?

When an Application containing a PersistentVolumeClaim is pruned, deleting the PVC can cause catastrophic data loss! Add the retention annotation to sensitive stateful manifests.

35
Senior#Forms#Security & Auth

What is the role of GitOps in modern Internal Developer Platforms (IDPs)?

Modern platform engineering teams integrate GitOps with developer portals like Spotify Backstage: A developer clicks "Create New Go Microservice" in Backstage • Backstage scaffolds the repository and opens a GitOps PR adding the new service to the cluster's ApplicationSet.

36
SeniorCode#Components#Security & Auth

Progressive Delivery with Argo Rollouts: Blue-Green vs Canary strategy and AnalysisTemplate metrics.

Standard Kubernetes Deployment only supports basic RollingUpdate without traffic splitting or metric analysis. Argo Rollouts replaces Deployment with a custom controller supporting fine-grained Canary releases integrated with Prometheus metrics.

37
SeniorCode#Security & Auth#Kubernetes

Sync Windows in ArgoCD: Scheduling deployment freeze periods and maintenance windows.

Sync Windows enforce calendar guardrails that block automated deployments during high-traffic business hours, Black Friday sales, or weekends, preventing accidental outages when core teams are offline.

38
Senior#Security & Auth#Docker & Containers

Automated Image Updates with Argo CD Image Updater vs Flux Image Automation Controller.

Instead of having CI pipelines manually commit new image tags back into Git, automated image controllers watch container registries (Docker Hub, ECR, GCR) for new image versions and automatically push a Git commit to update the target manifest.: Argo CD Image Updater: An add-on that tracks image registries using semver strategies...

39
SeniorCode#Security & Auth#System Design

Multi-Tenant ArgoCD Architecture: Projects (`AppProject`), RBAC policies, and namespace isolation.

In shared enterprise clusters, multiple engineering teams share one ArgoCD instance without interfering with each other's applications or secrets.: AppProject: Enforces strict boundaries restricting which Git repositories, target cluster URLs, and destination namespaces a team's applications.

40
Senior#Security & Auth

Handling Cluster-Scoped Resources vs Namespace-Scoped Resources in GitOps.

Namespace-Scoped Resources (Deployments, Services, ConfigMaps): Managed safely by product teams in application repositories • Cluster-Scoped Resources (CustomResourceDefinitions, ClusterRoles, StorageClasses): Can break the entire cluster if misconfigured or deleted.

41
SeniorCode#Security & Auth#Terraform & IaC

Managing GitOps Drift: Self-Heal vs Automated Notifications (Slack, PagerDuty).

When someone runs manual kubectl edit or an operator modifies live resources: selfHeal: true: ArgoCD automatically overwrites the live state within minutes to match Git, instantly neutralizing manual modifications.

42
Most AskedSenior#Security & Auth#Kubernetes

Disaster Recovery for Kubernetes with GitOps: Rebuilding entire production clusters from scratch.

Because Git is the single source of truth, recovering from a catastrophic total cluster loss (e.g., cloud region outage) is rapid and deterministic: Spin up a fresh, empty EKS/GKE Kubernetes cluster via Terraform • Install ArgoCD via Helm • Apply the root "App of Apps" manifest pointing to the infrastructure Git repository.

43
Senior#Security & Auth#Kubernetes

Flux v2 Source Controller, Kustomize Controller, and Helm Controller architecture compared to ArgoCD.

Architecture Dimension ArgoCD Flux v2.

44
SeniorCode#Security & Auth

Argo CD Extensions and Resource Customizations: Custom health checks and action definitions.

Out of the box, ArgoCD knows the health status of standard Kubernetes resources (Deployment, Service). For third-party CRDs (e.g. Cert-Manager Certificate, Kafka KafkaTopic), ArgoCD might display them as indefinitely "Progressing".

45
Senior#Security & Auth

Secret Decryption in Flux v2 using SOPS and age vs ArgoCD HashiCorp Vault Plugin.

Never commit plaintext secrets into Git.: Flux v2 + SOPS (age): Secrets are encrypted in Git repositories using SOPS • ArgoCD HashiCorp Vault Plugin (AVP): Manifests in Git contain placeholders (e.g. `).

46
SeniorCode#Security & Auth#Kubernetes

ApplicationSet Matrix Generator and Git Generator for enterprise multi-cluster deployments.

Instead of manually creating hundreds of Application manifests for 20 microservices across 10 global clusters, the ApplicationSet Matrix Generator multiplies generators together (Clusters × Services) to automatically synthesize hundreds of apps.

47
Most AskedSenior#Security & Auth

Preventing Cascading Failures during GitOps Sync: Resource Quotas, Rate Limiting, and Wave-ordered rollouts.

When deploying major updates across hundreds of services, syncing all manifests concurrently can overload the Kubernetes API server, exhaust cloud IP addresses, or trigger database connection storms.: Sync Waves (argocd.argoproj.io/sync-wave: "1"): Orders resource deployments in stages (Wave 0: Namespaces & CRDs; Wave...

48
Senior#Security & Auth

Validating GitOps Manifests pre-commit and pre-merge with Conftest, OPA Gatekeeper, and Kyverno.

Shift-left security validates that YAML manifests meet enterprise compliance rules before they are merged into the GitOps repository.: Conftest (OPA / Rego): Runs in pull request CI to verify that containers have CPU/Memory resource limits, images come strictly from internal.

49
Senior#Security & Auth

GitOps Auditability and Compliance: Achieving SOC 2 and ISO 27001 traceability with Git audit trails.

GitOps provides out-of-the-box compliance compliance evidence: Cryptographic Proof: Every change is tied to a signed Git commit (git commit -S -m ...) verified by GPG or SSH signature • Four-Eyes Principle: Branch protection rules require mandatory PR peer reviews and automated security scans before changes reach the main branch.

50
Senior#Security & Auth

Zero-Trust GitOps: Eliminating direct kubectl access and establishing secure RBAC boundaries.

In a true Zero-Trust GitOps model, no human developer possesses direct write access (kubectl apply / kubectl delete) to production Kubernetes clusters.: All changes must pass through Git commits and pull request workflows • Engineers are granted read-only access for observability and debugging (kubectl logs, kubectl get).