# Argo CD quiz questions

> 134 multiple-choice questions on GitOps, Applications, sync policies, RBAC, the CLI and the v3 migration, with answers and explanations.

Quiz page: https://k8wiz.com/argocd/difficulty

## Beginner (Easy): 36 questions

Interactive quiz: https://k8wiz.com/argocd/quiz/easy

### What is Argo CD?

Argo CD, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-argo-cd

- A. A container runtime for Kubernetes
- B. A GitOps continuous delivery tool for Kubernetes
- C. A monitoring solution for Kubernetes
- D. A package manager for Kubernetes applications

**Answer:** A GitOps continuous delivery tool for Kubernetes

**Explanation:** Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. It automates the deployment of applications to Kubernetes by using Git repositories as the source of truth for defining the desired application state.

### What is GitOps?

Argo CD, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-gitops

- A. A development methodology where code changes are automatically tested
- B. A deployment strategy where Git repositories are the source of truth for declarative infrastructure and applications
- C. A version control system specifically designed for Kubernetes manifests
- D. A tool for managing Git repositories in a Kubernetes cluster

**Answer:** A deployment strategy where Git repositories are the source of truth for declarative infrastructure and applications

**Explanation:** GitOps is a deployment strategy where Git repositories serve as the single source of truth for declarative infrastructure and applications. Changes to the desired state are made through Git commits, which trigger automated deployments to the target environment.

### Which command is used to install Argo CD using the CLI?

Argo CD, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-is-used-to-install-argo-cd-using-the-cli

- A. kubectl install argocd -n argocd
- B. kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
- C. helm install argocd argocd/argocd
- D. argocd install -n argocd

**Answer:** kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

**Explanation:** To install Argo CD using the CLI, you use the kubectl apply command with the install.yaml manifest from the Argo CD GitHub repository. The command is: kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

### How do you access the Argo CD API server externally by default?

Argo CD, Easy (Beginner), Networking. https://k8wiz.com/uquiz/how-do-you-access-the-argo-cd-api-server-externally-by-default

- A. It's automatically exposed via a LoadBalancer service
- B. You need to create an Ingress resource
- C. You can use port-forwarding with kubectl
- D. It's exposed via a NodePort service on port 30080

**Answer:** You can use port-forwarding with kubectl

**Explanation:** By default, the Argo CD API server is not exposed externally. The recommended way to access it is by using kubectl port-forwarding: kubectl port-forward svc/argocd-server -n argocd 8080:443. For production environments, you would typically set up an Ingress or use a LoadBalancer service.

### What is the default admin password for Argo CD after installation?

Argo CD, Easy (Beginner), Security. https://k8wiz.com/uquiz/what-is-the-default-admin-password-for-argo-cd-after-installation

- A. admin
- B. The name of the argocd-server pod
- C. A randomly generated string stored in a Secret
- D. argocd

**Answer:** The name of the argocd-server pod

**Explanation:** By default, the initial admin password is auto-generated and stored as the name of the argocd-server pod. You can retrieve it using the command: kubectl get pods -n argocd -l app.kubernetes.io/name=argocd-server -o name | cut -d'/' -f 2

### Which command is used to login to Argo CD using the CLI?

Argo CD, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-is-used-to-login-to-argo-cd-using-the-cli

- A. argocd login <ARGOCD_SERVER>
- B. kubectl argocd login <ARGOCD_SERVER>
- C. argo login <ARGOCD_SERVER>
- D. kubectl login argocd <ARGOCD_SERVER>

**Answer:** argocd login <ARGOCD_SERVER>

**Explanation:** The command 'argocd login <ARGOCD_SERVER>' is used to login to Argo CD using the CLI. For example: argocd login localhost:8080 --username admin --password <password>

### What is an Application in Argo CD?

Argo CD, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-an-application-in-argo-cd

- A. A Kubernetes Deployment resource
- B. A group of microservices that form a complete application
- C. A custom resource that represents a deployed application and its configuration
- D. A container image that contains application code

**Answer:** A custom resource that represents a deployed application and its configuration

**Explanation:** In Argo CD, an Application is a custom resource (CR) that represents a deployed application and its configuration. It defines the source of the application manifests, the target cluster and namespace, and synchronization policies. Applications are the core resource type in Argo CD.

### Which command creates a new application in Argo CD using the CLI?

Argo CD, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-creates-a-new-application-in-argo-cd-using-the-cli

- A. argocd app create
- B. argocd create app
- C. kubectl create argocd app
- D. argocd application new

**Answer:** argocd app create

**Explanation:** The command 'argocd app create' is used to create a new application in Argo CD using the CLI. For example: argocd app create guestbook --repo https://github.com/argoproj/argocd-example-apps.git --path guestbook --dest-server https://kubernetes.default.svc --dest-namespace default

### What is the purpose of the 'sync' operation in Argo CD?

Argo CD, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-sync-operation-in-argo-cd

- A. To synchronize user permissions between Argo CD and Kubernetes
- B. To update the Argo CD version
- C. To apply the desired state from Git to the target Kubernetes cluster
- D. To synchronize multiple Argo CD instances

**Answer:** To apply the desired state from Git to the target Kubernetes cluster

**Explanation:** The 'sync' operation in Argo CD applies the desired state defined in the Git repository to the target Kubernetes cluster. It ensures that the actual state of the application in the cluster matches the desired state defined in Git.

### Which command is used to manually sync an application in Argo CD?

Argo CD, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-is-used-to-manually-sync-an-application-in-argo-cd

- A. argocd app sync <APP_NAME>
- B. argocd sync app <APP_NAME>
- C. kubectl argocd sync <APP_NAME>
- D. argocd application sync <APP_NAME>

**Answer:** argocd app sync <APP_NAME>

**Explanation:** The command 'argocd app sync <APP_NAME>' is used to manually trigger a sync operation for an application in Argo CD. This will apply the desired state from the Git repository to the target Kubernetes cluster.

### What is the default sync policy for Argo CD applications?

Argo CD, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-the-default-sync-policy-for-argo-cd-applications

- A. Auto-sync whenever changes are detected
- B. Manual sync only
- C. Sync every 5 minutes
- D. Sync on a schedule defined in the application

**Answer:** Manual sync only

**Explanation:** By default, Argo CD applications are set to manual sync, which means they will not automatically sync when changes are detected in the Git repository. You need to explicitly enable auto-sync in the application configuration if you want automatic synchronization.

### What is the purpose of the 'argocd repo add' command?

Argo CD, Easy (Beginner), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-argocd-repo-add-command

- A. To add a new Git repository to be used as a source for applications
- B. To add a new repository of Argo CD plugins
- C. To add a repository of Helm charts
- D. To create a new Git repository for an application

**Answer:** To add a new Git repository to be used as a source for applications

**Explanation:** The 'argocd repo add' command is used to add a new Git repository to Argo CD. This repository can then be used as a source for applications. You can specify authentication details such as SSH private keys or username/password for private repositories.

### Which command is used to get detailed information about an application in Argo CD?

Argo CD, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-is-used-to-get-detailed-information-about-an-application-in-argo-cd

- A. argocd app get <APP_NAME>
- B. argocd app info <APP_NAME>
- C. argocd app describe <APP_NAME>
- D. argocd get app <APP_NAME>

**Answer:** argocd app get <APP_NAME>

**Explanation:** The 'argocd app get <APP_NAME>' command is used to get detailed information about an application in Argo CD, including its sync status, health status, source and destination configuration, and other metadata.

### Which Argo CD component is responsible for caching Git repositories and generating Kubernetes manifests?

Argo CD, Easy (Beginner), Architecture. https://k8wiz.com/uquiz/which-argo-cd-component-is-responsible-for-caching-git-repositories-and-generating-kubernetes-manifests

- A. Application Controller
- B. API Server
- C. Repository Server
- D. Redis Server

**Answer:** Repository Server

**Explanation:** argocd-repo-server clones Git repositories, keeps a local cache, and runs Helm, Kustomize or a plugin to turn them into plain manifests. The application controller asks it for those manifests when it compares desired and live state.

### Argo CD is implemented as what type of controller within a Kubernetes cluster?

Argo CD, Easy (Beginner), Architecture. https://k8wiz.com/uquiz/argo-cd-is-implemented-as-what-type-of-controller-within-a-kubernetes-cluster

- A. A Helm chart controller
- B. A Kubernetes controller
- C. A Docker daemon extension
- D. A Git webhook listener only

**Answer:** A Kubernetes controller

**Explanation:** The application controller is a Kubernetes controller that keeps comparing each Application's live state with the desired state from Git and reports differences as OutOfSync. The API server and repo server support that loop.

### Which Argo CD component is responsible for enforcing resource ordering and triggering resource hooks during sync?

Argo CD, Easy (Beginner), Architecture. https://k8wiz.com/uquiz/which-argo-cd-component-is-responsible-for-enforcing-resource-ordering-and-triggering-resource-hooks-during-sync

- A. API Server
- B. Application Controller
- C. Repository Server
- D. Argo CD CLI

**Answer:** Application Controller

**Explanation:** During a sync, the application controller applies resources in phases, PreSync, Sync and PostSync, and in sync waves within each phase, running hook resources at the right point. Each wave has to be healthy before the next one starts.

### By default, on what address does the Argo CD web UI listen when started via the CLI?

Argo CD, Easy (Beginner), CLI Usage. https://k8wiz.com/uquiz/by-default-on-what-address-does-the-argo-cd-web-ui-listen-when-started-via-the-cli

- A. 0.0.0.0
- B. localhost (127.0.0.1)
- C. 192.168.0.1
- D. argocd-server.namespace

**Answer:** localhost (127.0.0.1)

**Explanation:** argocd admin dashboard binds to localhost by default, so only your own machine can reach it. --address makes it listen elsewhere, and --port changes the default port, 8080.

### What is the default port number for the Argo CD web UI?

Argo CD, Easy (Beginner), CLI Usage. https://k8wiz.com/uquiz/what-is-the-default-port-number-for-the-argo-cd-web-ui

- A. 80
- B. 443
- C. 8080
- D. 3000

**Answer:** 8080

**Explanation:** The local UI started by argocd admin dashboard listens on port 8080 unless you pass --port. Inside the cluster, the argocd-server Service exposes the UI and API on ports 80 and 443.

### What does the `argocd logout` command do?

Argo CD, Easy (Beginner), CLI Usage. https://k8wiz.com/uquiz/what-does-the-argocd-logout-command-do

- A. Stops the Argo CD server
- B. Logs out of the current Argo CD CLI session
- C. Deletes an application
- D. Revokes the SSO token

**Answer:** Logs out of the current Argo CD CLI session

**Explanation:** 'argocd logout <context>' removes the stored token for that context from your local CLI config, so later commands need a new 'argocd login'. It doesn't stop Argo CD or revoke the token on the server.

### How do you list all applications managed by Argo CD using the CLI?

Argo CD, Easy (Beginner), CLI Usage. https://k8wiz.com/uquiz/how-do-you-list-all-applications-managed-by-argo-cd-using-the-cli

- A. `argocd app get`
- B. `argocd app list`
- C. `argocd list apps`
- D. `argocd applications`

**Answer:** `argocd app list`

**Explanation:** 'argocd app list' shows every application you're allowed to see, with its sync and health status, project and destination. Add -o wide for more columns, or -l to filter by label.

### How do you list all Git repositories configured in Argo CD using the CLI?

Argo CD, Easy (Beginner), CLI Usage. https://k8wiz.com/uquiz/how-do-you-list-all-git-repositories-configured-in-argo-cd-using-the-cli

- A. `argocd repo show`
- B. `argocd repo list`
- C. `argocd repository list`
- D. `argocd list repos`

**Answer:** `argocd repo list`

**Explanation:** 'argocd repo list' shows each registered repository with its type, name and connection status. You add repositories with 'argocd repo add', or declaratively with a Secret labeled argocd.argoproj.io/secret-type: repository.

### Which command lists all Kubernetes clusters registered with Argo CD?

Argo CD, Easy (Beginner), CLI Usage. https://k8wiz.com/uquiz/which-command-lists-all-kubernetes-clusters-registered-with-argo-cd

- A. `argocd cluster get`
- B. `argocd cluster list`
- C. `argocd list clusters`
- D. `argocd applications`

**Answer:** `argocd cluster list`

**Explanation:** 'argocd cluster list' shows each registered cluster with its server URL, name, version and connection status. The cluster Argo CD runs in appears as https://kubernetes.default.svc with the name in-cluster.

### What feature does the Argo CD Web UI provide?

Argo CD, Easy (Beginner), Web UI. https://k8wiz.com/uquiz/what-feature-does-the-argo-cd-web-ui-provide

- A. Real-time view of application state and activity
- B. Automated merging of Git branches
- C. A built-in command shell for kubectl
- D. Automatic credential generation

**Answer:** Real-time view of application state and activity

**Explanation:** The Argo CD web UI provides a real-time dashboard of the application states and activities, allowing users to view status and differences graphically.

### An Argo CD Application manifest must include which two top-level spec sections?

Argo CD, Easy (Beginner), Application Management. https://k8wiz.com/uquiz/an-argo-cd-application-manifest-must-include-which-two-top-level-spec-sections

- A. spec.source and spec.destination
- B. spec.templates and spec.values
- C. spec.repo and spec.cluster
- D. spec.name and spec.namespace

**Answer:** spec.source and spec.destination

**Explanation:** spec.source says where the manifests come from, a repository URL with a path or chart and a revision, and spec.destination says which cluster and namespace receive them. spec.project names the AppProject, with an empty value meaning default, and spec.sources replaces source when an app combines several sources.

### When using a Helm chart repository as the source for an Argo CD application, which field is used instead of `path`?

Argo CD, Easy (Beginner), Application Management. https://k8wiz.com/uquiz/when-using-a-helm-chart-repository-as-the-source-for-an-argo-cd-application-which-field-is-used-instead-of-path

- A. chart
- B. template
- C. chartName
- D. helmChart

**Answer:** chart

**Explanation:** For a Helm repository source, spec.source.repoURL points at the repository, chart names the chart and targetRevision sets its version. For a chart stored in a Git repository, you use path instead.

### Can two Argo CD applications in the same Argo CD instance have the same name?

Argo CD, Easy (Beginner), Application Management. https://k8wiz.com/uquiz/can-two-argo-cd-applications-in-the-same-argo-cd-instance-have-the-same-name

- A. Yes, if they are in different clusters
- B. Yes, if they target different namespaces
- C. No, application names must be unique
- D. Yes, if they have different projects

**Answer:** No, application names must be unique

**Explanation:** Application names must be unique in the namespace that holds them, which is normally the Argo CD namespace. With the applications-in-any-namespace feature, separate namespaces can each hold an app with the same name.

### What is the 'App of Apps' pattern in Argo CD?

Argo CD, Easy (Beginner), Application Management. https://k8wiz.com/uquiz/what-is-the-app-of-apps-pattern-in-argo-cd

- A. A single app deployed across multiple clusters
- B. An Application resource that itself declares other Applications
- C. Using a single Git repository for multiple apps
- D. Deploying apps from multiple Git sources

**Answer:** An Application resource that itself declares other Applications

**Explanation:** The 'App of Apps' pattern is when a parent Application’s manifest contains child Application resources, so the parent deploys and manages a group of child apps.

### By default, will Argo CD delete resources that are missing from Git on sync?

Argo CD, Easy (Beginner), Syncing & Deployment. https://k8wiz.com/uquiz/by-default-will-argo-cd-delete-resources-that-are-missing-from-git-on-sync

- A. Yes, it prunes them automatically
- B. No, it will not delete unless auto-prune is enabled
- C. Yes, but only in blue/green deployments
- D. Only if `--force` flag is used

**Answer:** No, it will not delete unless auto-prune is enabled

**Explanation:** Pruning is off by default for both manual and automated syncs, so a resource removed from Git stays in the cluster and is shown as needing pruning. Turn it on per sync with --prune, or for automated sync with --auto-prune.

### By default, which `kubectl` operation does Argo CD use to apply resource changes?

Argo CD, Easy (Beginner), Syncing & Deployment. https://k8wiz.com/uquiz/by-default-which-kubectl-operation-does-argo-cd-use-to-apply-resource-changes

- A. kubectl create
- B. kubectl delete
- C. kubectl replace
- D. kubectl apply

**Answer:** kubectl apply

**Explanation:** Argo CD applies resources the way kubectl apply does, with client-side apply by default. The ServerSideApply=true sync option switches to server-side apply, and Replace=true uses kubectl replace instead.

### Which of the following are the two built-in roles provided by Argo CD?

Argo CD, Easy (Beginner), RBAC & Security. https://k8wiz.com/uquiz/which-of-the-following-are-the-two-built-in-roles-provided-by-argo-cd

- A. role:readwrite and role:readonly
- B. role:admin and role:readonly
- C. role:developer and role:administrator
- D. role:owner and role:viewer

**Answer:** role:admin and role:readonly

**Explanation:** role:readonly can view everything, and role:admin can do everything. Custom roles in argocd-rbac-cm can build on them, and policy.default sets the role every authenticated user gets.

### Which built-in user in Argo CD has unrestricted (admin) access by default?

Argo CD, Easy (Beginner), RBAC & Security. https://k8wiz.com/uquiz/which-built-in-user-in-argo-cd-has-unrestricted-admin-access-by-default

- A. admin
- B. readonly
- C. default
- D. administrator

**Answer:** admin

**Explanation:** The built-in admin user has full access, and its initial password is stored in the argocd-initial-admin-secret Secret. Once SSO or other accounts work, you can disable it with admin.enabled: false in argocd-cm.

### What does Argo CD treat as the 'single source of truth' for application state?

Argo CD, Easy (Beginner), GitOps Workflows. https://k8wiz.com/uquiz/what-does-argo-cd-treat-as-the-single-source-of-truth-for-application-state

- A. The live state in the cluster
- B. The Argo CD Application resource
- C. The Git repository contents
- D. A Helm chart repository

**Answer:** The Git repository contents

**Explanation:** In GitOps, the manifests in Git describe what should run, and Argo CD reports any difference in the cluster as OutOfSync. Changes go through commits, which gives you review, history and an easy rollback.

### In Argo CD 3.6, which diff strategy do Applications with the ServerSideApply=true sync option use by default?

Argo CD, Easy (Beginner), Syncing & Deployment. https://k8wiz.com/uquiz/in-argo-cd-36-which-diff-strategy-do-applications-with-the-serversideapplytrue-sync-option-use-by-default

- A. Legacy client-side diff
- B. Server-Side Diff
- C. Structured-Merge Diff
- D. Three-way merge diff

**Answer:** Server-Side Diff

**Explanation:** Argo CD 3.6 turns on Server-Side Diff for every Application that uses the ServerSideApply=true sync option. It runs a Server-Side Apply dry run against the API server and compares the result with the live object. The Structured-Merge Diff strategy those Applications used before has been removed.

### An Argo CD application has one Ingress in Progressing and every other resource Healthy. What health does the application report?

Argo CD, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/an-argo-cd-application-has-one-ingress-in-progressing-and-every-other-resource-healthy-what-health-does-the-application-report

- A. Healthy
- B. Progressing
- C. Degraded
- D. Unknown

**Answer:** Progressing

**Explanation:** Argo CD sets an application's health to the worst health among its immediate child resources, ranked Healthy, Suspended, Progressing, Missing, Degraded, Unknown. One Progressing Ingress is therefore enough to make the whole application Progressing. Degraded would need at least one resource to be Degraded.

### What exit code does argocd app diff return by default when it finds a difference?

Argo CD, Easy (Beginner), CLI Usage. https://k8wiz.com/uquiz/what-exit-code-does-argocd-app-diff-return-by-default-when-it-finds-a-difference

- A. 0
- B. 1
- C. 2
- D. 20

**Answer:** 1

**Explanation:** argocd app diff returns 0 when there is no diff, 1 when it finds a diff and 2 on general errors, which makes it usable as a check in CI. The --diff-exit-code flag lets you choose another code, for example to tell a diff apart from the generic exit code 20 that CLI commands return on failure.

### With goTemplate enabled, which Git directory generator parameter holds the right-most directory name of a matched path?

Argo CD, Easy (Beginner), Application Management. https://k8wiz.com/uquiz/with-gotemplate-enabled-which-git-directory-generator-parameter-holds-the-right-most-directory-name-of-a-matched-path

- A. {{.path.path}}
- B. {{.path.basename}}
- C. {{.path.filename}}
- D. {{index .path.segments 0}}

**Answer:** {{.path.basename}}

**Explanation:** For a matched directory such as apps/guestbook, {{.path.basename}} returns guestbook, while {{.path.path}} returns the full apps/guestbook path. {{.path.filename}} exists only for the files generator, and {{index .path.segments 0}} returns the first path element, apps.

## Advanced (Medium): 63 questions

Interactive quiz: https://k8wiz.com/argocd/quiz/medium

### Which of the following is NOT a core component of Argo CD?

Argo CD, Medium (Advanced), Architecture. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-core-component-of-argo-cd

- A. API Server
- B. Repository Server
- C. Application Controller
- D. Deployment Engine

**Answer:** Deployment Engine

**Explanation:** Argo CD consists of three core components: the API Server (REST API, web UI, gRPC/CLI), the Repository Server (maintains Git repositories), and the Application Controller (monitors applications and compares current state with desired state). There is no component called 'Deployment Engine' in Argo CD's architecture.

### What is the purpose of the Argo CD Application Controller?

Argo CD, Medium (Advanced), Architecture. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-argo-cd-application-controller

- A. To provide a user interface for managing applications
- B. To store application configurations in Git repositories
- C. To continuously monitor applications and compare their current state with the desired state
- D. To authenticate users and manage permissions

**Answer:** To continuously monitor applications and compare their current state with the desired state

**Explanation:** The Argo CD Application Controller continuously monitors deployed applications and compares their current state against the desired state defined in the Git repository. When it detects a deviation, it takes corrective actions to synchronize the application state with the desired state.

### What is a Project in Argo CD?

Argo CD, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-a-project-in-argo-cd

- A. A group of related applications
- B. A namespace in Kubernetes
- C. A logical grouping that provides RBAC and configuration constraints for applications
- D. A Git repository containing application manifests

**Answer:** A logical grouping that provides RBAC and configuration constraints for applications

**Explanation:** In Argo CD, a Project is a logical grouping of applications that provides role-based access control (RBAC) and configuration constraints. Projects allow you to restrict what resources can be deployed, which repositories can be used, and which clusters can be targeted by applications within the project.

### Which of the following is NOT a valid sync option in Argo CD?

Argo CD, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-valid-sync-option-in-argo-cd

- A. Prune
- B. Force
- C. Apply Only
- D. Dry Run

**Answer:** Apply Only

**Explanation:** Argo CD provides several sync options including Prune (delete resources that are no longer defined in Git), Force (force apply changes even if there are errors), and Dry Run (preview changes without applying them). 'Apply Only' is not a valid sync option in Argo CD.

### What is the purpose of the 'argocd app diff' command?

Argo CD, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-argocd-app-diff-command

- A. To compare two different applications
- B. To show the differences between the current state and the desired state of an application
- C. To compare different versions of an application in Git
- D. To show the difference between two Argo CD instances

**Answer:** To show the differences between the current state and the desired state of an application

**Explanation:** The 'argocd app diff' command shows the differences between the current state of an application in the Kubernetes cluster and the desired state defined in the Git repository. This is useful for understanding what changes will be applied during a sync operation.

### Which of the following tools can be used to define application manifests in Argo CD?

Argo CD, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/which-of-the-following-tools-can-be-used-to-define-application-manifests-in-argo-cd

- A. Only plain YAML files
- B. Only Kustomize
- C. Only Helm charts
- D. YAML, Kustomize, Helm, Jsonnet, and others

**Answer:** YAML, Kustomize, Helm, Jsonnet, and others

**Explanation:** Argo CD supports multiple tools for defining application manifests, including plain YAML/JSON files, Kustomize applications, Helm charts, Ksonnet applications, Jsonnet files, and directory-based configurations. This flexibility allows teams to use their preferred tools for defining Kubernetes resources.

### What is the health status of an Argo CD application?

Argo CD, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-health-status-of-an-argo-cd-application

- A. A measure of CPU and memory usage
- B. An assessment of whether the application's pods are running
- C. An indicator of whether the application is synced with Git
- D. An assessment of the overall status of the application's resources based on Kubernetes resource health

**Answer:** An assessment of the overall status of the application's resources based on Kubernetes resource health

**Explanation:** The health status in Argo CD is an assessment of the overall status of the application's resources based on Kubernetes resource health. Argo CD has built-in health checks for common resource types like Deployments, StatefulSets, and Services, and can be extended with custom health checks.

### What is the purpose of the 'argocd app rollback' command?

Argo CD, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-argocd-app-rollback-command

- A. To revert an application to its previous deployed version
- B. To roll back Argo CD to a previous version
- C. To undo changes made to the Git repository
- D. To restart all pods in an application

**Answer:** To revert an application to its previous deployed version

**Explanation:** The 'argocd app rollback' command is used to revert an application to its previous successfully deployed version. This is useful when a new deployment causes issues and you need to quickly restore the application to a known good state.

### Which of the following is NOT a valid application source type in Argo CD?

Argo CD, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-valid-application-source-type-in-argo-cd

- A. Helm
- B. Kustomize
- C. Ksonnet
- D. Terraform

**Answer:** Terraform

**Explanation:** Argo CD supports several application source types including Helm, Kustomize, Ksonnet, Jsonnet, and plain directory of YAML/JSON manifests. While there are ways to use Terraform with Argo CD through external tools or custom configurations, it is not a natively supported application source type in Argo CD.

### What is the purpose of the 'argocd app wait' command?

Argo CD, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-argocd-app-wait-command

- A. To pause the synchronization of an application
- B. To wait for an application to reach a specific health and sync status
- C. To wait for Argo CD to start up
- D. To put an application in a waiting queue

**Answer:** To wait for an application to reach a specific health and sync status

**Explanation:** The 'argocd app wait' command blocks until an application reaches a specific health and sync status, or a timeout occurs. This is useful in CI/CD pipelines to ensure an application is fully deployed and healthy before proceeding to the next step.

### What is the purpose of the 'argocd app set' command?

Argo CD, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-argocd-app-set-command

- A. To create a set of applications at once
- B. To modify an application's configuration
- C. To set up the initial Argo CD configuration
- D. To define a set of resources within an application

**Answer:** To modify an application's configuration

**Explanation:** The 'argocd app set' command is used to modify an existing application's configuration. For example, you can use it to change the target revision, path, or sync options of an application without having to delete and recreate it.

### How can you configure Argo CD to automatically sync an application when changes are detected in Git?

Argo CD, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/how-can-you-configure-argo-cd-to-automatically-sync-an-application-when-changes-are-detected-in-git

- A. Enable the 'auto-sync' option in the application
- B. Set up a webhook from your Git provider to Argo CD
- C. Use the 'argocd app set <APP_NAME> --sync-policy automated' command
- D. All of the above

**Answer:** All of the above

**Explanation:** You can configure auto-sync in Argo CD through multiple methods: by enabling the 'auto-sync' option in the application UI, by setting up a webhook from your Git provider to Argo CD for immediate updates, or by using the CLI command 'argocd app set <APP_NAME> --sync-policy automated'. All these methods achieve the same result of enabling automatic synchronization.

### What is the purpose of the 'argocd app history' command?

Argo CD, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-argocd-app-history-command

- A. To show the deployment history of an application
- B. To display the Git commit history of an application
- C. To list all historical versions of an application definition
- D. To show when the application was created and modified

**Answer:** To show the deployment history of an application

**Explanation:** The 'argocd app history' command shows the deployment history of an application, including past sync operations, their status, and the Git revisions that were deployed. This is useful for auditing changes and for identifying which version to roll back to if needed.

### What is the purpose of the 'argocd app delete' command?

Argo CD, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-argocd-app-delete-command

- A. To delete an application definition from Argo CD
- B. To delete the resources deployed by an application from the target cluster
- C. To delete the Git repository associated with an application
- D. To remove an application from the current project

**Answer:** To delete an application definition from Argo CD

**Explanation:** The 'argocd app delete' command deletes an application definition from Argo CD. By default, it does not delete the resources deployed by the application from the target cluster. To also delete the deployed resources, you need to use the '--cascade' flag.

### How does Argo CD authenticate with private Git repositories?

Argo CD, Medium (Advanced), Security. https://k8wiz.com/uquiz/how-does-argo-cd-authenticate-with-private-git-repositories

- A. It only supports public repositories
- B. It uses a built-in credential store
- C. It supports SSH keys, username/password, and other methods configured in the 'argocd-repositories' secret
- D. It always uses the Kubernetes service account credentials

**Answer:** It supports SSH keys, username/password, and other methods configured in the 'argocd-repositories' secret

**Explanation:** Argo CD supports authentication with private Git repositories using various methods including SSH keys, username/password, and OAuth tokens. These credentials are stored in the 'argocd-repositories' secret in the Argo CD namespace. You can configure them using the 'argocd repo add' command or through the UI.

### What is the purpose of the 'argocd proj create' command?

Argo CD, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-argocd-proj-create-command

- A. To create a new Argo CD project
- B. To create a new Git project
- C. To create a new Kubernetes project
- D. To create a project plan for Argo CD installation

**Answer:** To create a new Argo CD project

**Explanation:** The 'argocd proj create' command is used to create a new Argo CD project. Projects in Argo CD provide a logical grouping of applications with RBAC and configuration constraints. For example: argocd proj create myproject --description 'My new project'

### What is the purpose of the 'Prune' option in Argo CD sync settings?

Argo CD, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-prune-option-in-argo-cd-sync-settings

- A. To remove unused resources from the Git repository
- B. To delete resources that are no longer defined in Git from the target cluster
- C. To clean up old application revisions from Argo CD's history
- D. To optimize the application's resource usage

**Answer:** To delete resources that are no longer defined in Git from the target cluster

**Explanation:** The 'Prune' option in Argo CD sync settings determines whether resources that are no longer defined in Git should be deleted from the target cluster during a sync operation. When enabled, Argo CD will remove resources that exist in the cluster but are not defined in the Git repository.

### What is the purpose of the 'Self Heal' option in Argo CD?

Argo CD, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-self-heal-option-in-argo-cd

- A. To automatically fix issues in the Git repository
- B. To automatically recover from Argo CD server failures
- C. To automatically sync applications when their actual state deviates from the desired state
- D. To repair corrupted application definitions

**Answer:** To automatically sync applications when their actual state deviates from the desired state

**Explanation:** The 'Self Heal' option in Argo CD, when enabled, causes applications to automatically sync when Argo CD detects that their actual state in the cluster deviates from the desired state defined in Git. This ensures that the application always matches the state defined in Git, even if changes are made directly to the cluster.

### Which of the following is NOT a valid health status for an Argo CD application?

Argo CD, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-valid-health-status-for-an-argo-cd-application

- A. Healthy
- B. Degraded
- C. Progressing
- D. Failed

**Answer:** Failed

**Explanation:** The valid health statuses for an Argo CD application are Healthy (all resources are healthy), Degraded (some resources have issues), Progressing (resources are being updated), Suspended (application is paused), and Missing (application has no resources). 'Failed' is not a standard health status in Argo CD.

### What is the purpose of the 'argocd cluster add' command?

Argo CD, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-argocd-cluster-add-command

- A. To add a new Kubernetes cluster to be managed by Argo CD
- B. To add a new node to the Kubernetes cluster running Argo CD
- C. To create a new Kubernetes cluster
- D. To add cluster-level resources to an application

**Answer:** To add a new Kubernetes cluster to be managed by Argo CD

**Explanation:** The 'argocd cluster add' command is used to add a new Kubernetes cluster to be managed by Argo CD. This allows Argo CD to deploy applications to multiple clusters, not just the cluster it's running in. The command adds the cluster's credentials to Argo CD's configuration.

### What is the purpose of the 'argocd app unset' command?

Argo CD, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-argocd-app-unset-command

- A. To remove an application from Argo CD
- B. To remove specific configuration settings from an application
- C. To uninstall an application from the target cluster
- D. To disable an application temporarily

**Answer:** To remove specific configuration settings from an application

**Explanation:** The 'argocd app unset' command is used to remove specific configuration settings from an application. For example, you can use it to remove a parameter, sync policy, or other setting that was previously configured for the application without having to redefine the entire application.

### What is the purpose of the 'Sync Options' in Argo CD?

Argo CD, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-sync-options-in-argo-cd

- A. To configure how often automatic syncs occur
- B. To specify additional parameters for the sync operation
- C. To choose which resources to sync
- D. To select which Git branch to sync from

**Answer:** To specify additional parameters for the sync operation

**Explanation:** Sync Options in Argo CD allow you to specify additional parameters for the sync operation, such as whether to prune resources, skip schema validation, apply server-side apply, or respect ignore differences. These options can be set at the application level or for individual resources using annotations.

### What is the purpose of the 'argocd app resources' command?

Argo CD, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-argocd-app-resources-command

- A. To show the resource usage of an application
- B. To list the Kubernetes resources that are part of an application
- C. To allocate resources to an application
- D. To compare resource usage between applications

**Answer:** To list the Kubernetes resources that are part of an application

**Explanation:** The 'argocd app resources' command lists the Kubernetes resources that are part of an application, including their kind, name, API version, namespace, and status. This is useful for understanding what resources make up an application and their current state in the cluster.

### What authentication methods does Argo CD support for users?

Argo CD, Medium (Advanced), Security. https://k8wiz.com/uquiz/what-authentication-methods-does-argo-cd-support-for-users

- A. Only local users defined in Argo CD
- B. Only external SSO providers
- C. Local users, LDAP, OIDC, GitHub, GitLab, Microsoft, and other SSO providers
- D. Only Kubernetes service accounts

**Answer:** Local users, LDAP, OIDC, GitHub, GitLab, Microsoft, and other SSO providers

**Explanation:** Argo CD supports multiple authentication methods for users, including local users defined in Argo CD, LDAP, OIDC (OpenID Connect), and various SSO providers like GitHub, GitLab, and Microsoft. This flexibility allows organizations to integrate Argo CD with their existing identity management systems.

### What is the purpose of the 'argocd account' command group?

Argo CD, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-argocd-account-command-group

- A. To manage Argo CD user accounts
- B. To configure billing accounts for Argo CD
- C. To link Argo CD to cloud provider accounts
- D. To manage service accounts for applications

**Answer:** To manage Argo CD user accounts

**Explanation:** The 'argocd account' command group is used to manage Argo CD user accounts, including updating passwords, generating access tokens, and managing account settings. For example, 'argocd account update-password' allows users to change their password.

### What is the purpose of the 'argocd app terminate-op' command?

Argo CD, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-argocd-app-terminate-op-command

- A. To terminate an application and remove it from Argo CD
- B. To terminate a running sync operation
- C. To shut down an application's pods
- D. To terminate the connection to a Git repository

**Answer:** To terminate a running sync operation

**Explanation:** The 'argocd app terminate-op' command is used to terminate a running sync operation. This is useful when a sync operation is taking too long, is stuck, or needs to be cancelled for any reason. It stops the ongoing sync process without affecting the application's current state.

### Which Argo CD component enforces RBAC policies and handles user authentication?

Argo CD, Medium (Advanced), Architecture. https://k8wiz.com/uquiz/which-argo-cd-component-enforces-rbac-policies-and-handles-user-authentication

- A. Application Controller
- B. API Server
- C. Repository Server
- D. Redis Server

**Answer:** API Server

**Explanation:** argocd-server serves the API used by the web UI and the CLI. It handles login through local users or SSO and checks every request against the RBAC policy in argocd-rbac-cm.

### Which Argo CD component continuously monitors the live cluster state and triggers synchronization and hook events?

Argo CD, Medium (Advanced), Architecture. https://k8wiz.com/uquiz/which-argo-cd-component-continuously-monitors-the-live-cluster-state-and-triggers-synchronization-and-hook-events

- A. API Server
- B. Repository Server
- C. Application Controller
- D. Argo CD CLI

**Answer:** Application Controller

**Explanation:** The Application Controller continuously monitors each application’s live state and desired state, and it triggers sync operations and resource hooks when they differ.

### What is the primary role of the Argo CD API Server?

Argo CD, Medium (Advanced), Architecture. https://k8wiz.com/uquiz/what-is-the-primary-role-of-the-argo-cd-api-server

- A. Exposing a gRPC/REST API endpoint for the CLI/UI clients
- B. Generating Kubernetes manifests from Git repos
- C. Triggering automated synchronization of applications
- D. Providing a web-based dashboard

**Answer:** Exposing a gRPC/REST API endpoint for the CLI/UI clients

**Explanation:** argocd-server exposes the gRPC and REST API that the CLI, the web UI and CI systems use, and it serves the UI itself. It handles authentication, RBAC and Git webhooks, while the application controller does the reconciling.

### Where does Argo CD store repository and cluster credentials when configured?

Argo CD, Medium (Advanced), Architecture. https://k8wiz.com/uquiz/where-does-argo-cd-store-repository-and-cluster-credentials-when-configured

- A. In Kubernetes ConfigMaps
- B. As files on disk
- C. As Kubernetes Secrets
- D. In environment variables

**Answer:** As Kubernetes Secrets

**Explanation:** Repository credentials and cluster connection details are Kubernetes Secrets in the Argo CD namespace, labeled argocd.argoproj.io/secret-type with repository, repo-creds or cluster. That lets you manage them declaratively, for example with an external secrets operator.

### Which Argo CD component listens for incoming Git webhook events to trigger refreshes?

Argo CD, Medium (Advanced), Architecture. https://k8wiz.com/uquiz/which-argo-cd-component-listens-for-incoming-git-webhook-events-to-trigger-refreshes

- A. Application Controller
- B. Repository Server
- C. API Server
- D. Redis Server

**Answer:** API Server

**Explanation:** Git providers send push events to the /api/webhook endpoint that argocd-server serves. Argo CD then refreshes the affected applications right away instead of waiting for the next poll, which comes every 3 minutes by default.

### Which `argocd` CLI command starts the Argo CD web UI locally?

Argo CD, Medium (Advanced), CLI Usage. https://k8wiz.com/uquiz/which-argocd-cli-command-starts-the-argo-cd-web-ui-locally

- A. `argocd admin dashboard`
- B. `argocd login`
- C. `argocd app list`
- D. `argocd app sync`

**Answer:** `argocd admin dashboard`

**Explanation:** 'argocd admin dashboard' starts a local copy of the UI that reaches Argo CD with your kubeconfig credentials, so argocd-server doesn't need to be exposed. It listens on localhost:8080 by default.

### Which flag can be used with `argocd login` to skip TLS certificate verification?

Argo CD, Medium (Advanced), CLI Usage. https://k8wiz.com/uquiz/which-flag-can-be-used-with-argocd-login-to-skip-tls-certificate-verification

- A. --no-verify
- B. --skip-test-tls
- C. --insecure
- D. --disable-tls

**Answer:** --insecure

**Explanation:** --insecure skips verification of the server's certificate and host name, which is only reasonable for local tests with a self-signed certificate. --skip-test-tls is different: it skips checking whether the server uses TLS at all, which helps when login hangs.

### When running `argocd app create`, which flag specifies the target cluster API server URL?

Argo CD, Medium (Advanced), CLI Usage. https://k8wiz.com/uquiz/when-running-argocd-app-create-which-flag-specifies-the-target-cluster-api-server-url

- A. --dest-server
- B. --dest-host
- C. --cluster
- D. --target-server

**Answer:** --dest-server

**Explanation:** --dest-server takes the API server URL of the target cluster, such as https://kubernetes.default.svc for the cluster Argo CD runs in. --dest-name selects a registered cluster by name instead, and --dest-namespace sets the target namespace.

### Which flag allows automatic pruning of unmanaged resources during sync when set via CLI?

Argo CD, Medium (Advanced), CLI Usage. https://k8wiz.com/uquiz/which-flag-allows-automatic-pruning-of-unmanaged-resources-during-sync-when-set-via-cli

- A. --prune
- B. --auto-prune
- C. --delete-extra
- D. --enable-prune

**Answer:** --auto-prune

**Explanation:** With automated sync, --auto-prune lets Argo CD delete resources that were removed from Git. It's off by default, so removed manifests leave their objects running until someone prunes them.

### Which flag enables automatic self-healing (sync on drift) for an Argo CD application?

Argo CD, Medium (Advanced), CLI Usage. https://k8wiz.com/uquiz/which-flag-enables-automatic-self-healing-sync-on-drift-for-an-argo-cd-application

- A. --auto-heal
- B. --self-heal
- C. --heal-on-drift
- D. --ensure-sync

**Answer:** --self-heal

**Explanation:** --self-heal makes automated sync also run when the live state drifts from Git, for example after a kubectl edit. Without it, automated sync only reacts to new commits.

### Which `argocd repo list` option forces a refresh of the repository connection status?

Argo CD, Medium (Advanced), CLI Usage. https://k8wiz.com/uquiz/which-argocd-repo-list-option-forces-a-refresh-of-the-repository-connection-status

- A. --refresh true
- B. --refresh hard
- C. --force-refresh
- D. --update

**Answer:** --refresh hard

**Explanation:** Argo CD caches the connection status of each repository. --refresh hard makes 'argocd repo list' test every connection again, which helps after you change credentials.

### By default, what happens to an application’s resources when you delete it with `argocd app delete`?

Argo CD, Medium (Advanced), CLI Usage. https://k8wiz.com/uquiz/by-default-what-happens-to-an-applications-resources-when-you-delete-it-with-argocd-app-delete

- A. Only the Application record is removed, resources remain
- B. The application’s resources are also deleted (cascade delete)
- C. All resources are archived in a ConfigMap
- D. The application is disabled but resources stay running

**Answer:** The application’s resources are also deleted (cascade delete)

**Explanation:** --cascade defaults to true, so deleting an application also deletes the resources it deployed. Use --cascade=false, or remove the resources-finalizer.argocd.argoproj.io finalizer first, to keep them running.

### True or False: The Argo CD Web UI allows users to manually synchronize applications.

Argo CD, Medium (Advanced), Web UI. https://k8wiz.com/uquiz/true-or-false-the-argo-cd-web-ui-allows-users-to-manually-synchronize-applications

- A. True
- B. False
- C. Only with special permissions
- D. Only on weekends

**Answer:** True

**Explanation:** The UI's Sync button runs the same operation as 'argocd app sync', with options such as prune, dry run and syncing only selected resources. RBAC decides who may sync which applications.

### What can you configure in an Argo CD AppProject?

Argo CD, Medium (Advanced), Application Management. https://k8wiz.com/uquiz/what-can-you-configure-in-an-argo-cd-appproject

- A. Allowed Git repo URLs, destination clusters/namespaces, and user roles
- B. Deployment strategy and sync waves
- C. Resource quotas and node pools
- D. Helm values and Kustomize overlays

**Answer:** Allowed Git repo URLs, destination clusters/namespaces, and user roles

**Explanation:** An AppProject limits which source repositories, destination clusters and namespaces, and resource kinds its applications may use, and defines project roles with their own policies and tokens. Every application belongs to one project, default unless you pick another.

### In which Kubernetes namespace must you apply an Argo CD Application resource manifest?

Argo CD, Medium (Advanced), Application Management. https://k8wiz.com/uquiz/in-which-kubernetes-namespace-must-you-apply-an-argo-cd-application-resource-manifest

- A. The namespace of the Application's target cluster
- B. The `argocd` namespace where Argo CD is installed
- C. Any namespace, Argo CD will propagate it
- D. A namespace named `gitops`

**Answer:** The `argocd` namespace where Argo CD is installed

**Explanation:** By default, Argo CD only watches Application resources in its own namespace, usually argocd. The applications-in-any-namespace feature allows other namespaces once they're listed in --application-namespaces on the application controller and API server.

### Which command enables automated synchronization (auto-deploy) for an Argo CD application?

Argo CD, Medium (Advanced), Syncing & Deployment. https://k8wiz.com/uquiz/which-command-enables-automated-synchronization-auto-deploy-for-an-argo-cd-application

- A. `argocd app set <appName> --sync-policy automated`
- B. `argocd app auto-sync enable <appName>`
- C. `argocd app enable-autosync <appName>`
- D. `argocd auto-sync set <appName> true`

**Answer:** `argocd app set <appName> --sync-policy automated`

**Explanation:** Setting `--sync-policy automated` on an application (e.g. `argocd app set guestbook --sync-policy automated`) enables automated syncing for that application.

### Which sync option would use `kubectl replace` instead of apply for resources?

Argo CD, Medium (Advanced), Syncing & Deployment. https://k8wiz.com/uquiz/which-sync-option-would-use-kubectl-replace-instead-of-apply-for-resources

- A. Validate=false
- B. ServerSideApply=true
- C. Replace=true
- D. Prune=true

**Answer:** Replace=true

**Explanation:** Replace=true makes Argo CD use kubectl replace, or create when the object doesn't exist, instead of apply. It helps with objects too large for the last-applied-configuration annotation, but it overwrites changes made by other tools.

### If you enable anonymous access in Argo CD (`users.anonymous.enabled`), what permissions do anonymous users have by default?

Argo CD, Medium (Advanced), RBAC & Security. https://k8wiz.com/uquiz/if-you-enable-anonymous-access-in-argo-cd-usersanonymousenabled-what-permissions-do-anonymous-users-have-by-default

- A. They have full admin access
- B. They inherit `role:readonly` permissions
- C. They are denied everything by default
- D. They get the permissions defined in `policy.default`

**Answer:** They get the permissions defined in `policy.default`

**Explanation:** Anonymous users get whatever role policy.default names, without logging in. policy.default also applies to every logged-in user, so the docs suggest creating a narrow default role before you set users.anonymous.enabled.

### Which identity provider is NOT listed as supported out-of-the-box by Argo CD for SSO integration?

Argo CD, Medium (Advanced), RBAC & Security. https://k8wiz.com/uquiz/which-identity-provider-is-not-listed-as-supported-out-of-the-box-by-argo-cd-for-sso-integration

- A. GitHub
- B. GitLab
- C. Microsoft
- D. Facebook

**Answer:** Facebook

**Explanation:** Argo CD's bundled Dex has connectors for GitHub, GitLab, Microsoft, LinkedIn, Google, LDAP, SAML and generic OIDC, among others, but none for Facebook. Any provider that speaks OIDC can also be configured without Dex.

### In Argo CD RBAC policy CSV, which prefix is used to assign a user or group to a role?

Argo CD, Medium (Advanced), RBAC & Security. https://k8wiz.com/uquiz/in-argo-cd-rbac-policy-csv-which-prefix-is-used-to-assign-a-user-or-group-to-a-role

- A. `p,`
- B. `g,`
- C. `role,`
- D. `group,`

**Answer:** `g,`

**Explanation:** In policy.csv in argocd-rbac-cm, a line such as g, my-org:platform, role:admin assigns a user or SSO group to a role. Lines starting with p define what a role may do.

### In Argo CD RBAC policy CSV, which prefix is used to define a permission rule (policy)?

Argo CD, Medium (Advanced), RBAC & Security. https://k8wiz.com/uquiz/in-argo-cd-rbac-policy-csv-which-prefix-is-used-to-define-a-permission-rule-policy

- A. `p,`
- B. `g,`
- C. `role,`
- D. `policy,`

**Answer:** `p,`

**Explanation:** A p line has the form p, <role>, <resource>, <action>, <object>, <effect>, for example p, role:deployer, applications, sync, default/*, allow. g lines then assign users and groups to those roles.

### Is Argo CD a 'push-based' or 'pull-based' GitOps tool?

Argo CD, Medium (Advanced), GitOps Workflows. https://k8wiz.com/uquiz/is-argo-cd-a-push-based-or-pull-based-gitops-tool

- A. Push-based (CI/CD pushes to the cluster)
- B. Pull-based (Argo CD continuously polls Git)
- C. Hybrid push-pull
- D. Neither

**Answer:** Pull-based (Argo CD continuously polls Git)

**Explanation:** Argo CD is a pull-based tool: it continuously polls the Git repository and applies changes, eliminating the need for CI pipelines to push to the cluster.

### In a GitOps workflow using Argo CD, what typically triggers a deployment to a cluster?

Argo CD, Medium (Advanced), GitOps Workflows. https://k8wiz.com/uquiz/in-a-gitops-workflow-using-argo-cd-what-typically-triggers-a-deployment-to-a-cluster

- A. A push or merge of updated manifests to the Git repository
- B. A cron job running on the Argo CD server
- C. A manual API call via kubectl
- D. Deployment is automatic every 24 hours

**Answer:** A push or merge of updated manifests to the Git repository

**Explanation:** A change merged to the watched branch is what deploys. Argo CD notices it on its next poll, every 3 minutes by default, or right away through a webhook, and then syncs if automated sync is on or waits for someone to sync.

### What is a distinctive feature of Argo CD compared to many other GitOps tools?

Argo CD, Medium (Advanced), GitOps Workflows. https://k8wiz.com/uquiz/what-is-a-distinctive-feature-of-argo-cd-compared-to-many-other-gitops-tools

- A. It supports only one Kubernetes cluster
- B. It has a built-in web-based graphical user interface
- C. It requires cluster credentials in CI pipelines
- D. It can only be run on-premises

**Answer:** It has a built-in web-based graphical user interface

**Explanation:** Argo CD is well-known for its built-in web UI that allows users to visualize app status and perform operations via a browser, which many GitOps tools lack.

### What does setting the Sync Policy to 'Automatic' in Argo CD do?

Argo CD, Medium (Advanced), GitOps Workflows. https://k8wiz.com/uquiz/what-does-setting-the-sync-policy-to-automatic-in-argo-cd-do

- A. Only syncs on weekends
- B. Automatically applies Git changes to the cluster
- C. Disables manual sync
- D. Deletes all resources before syncing

**Answer:** Automatically applies Git changes to the cluster

**Explanation:** With automated sync, Argo CD syncs the application whenever the desired state in Git changes, without anyone clicking Sync. Pruning and self-healing are separate settings, and both are off by default.

### Which configuration management tool is NOT natively supported by Argo CD for generating manifests?

Argo CD, Medium (Advanced), GitOps Workflows. https://k8wiz.com/uquiz/which-configuration-management-tool-is-not-natively-supported-by-argo-cd-for-generating-manifests

- A. Kustomize
- B. Helm
- C. Jsonnet
- D. Pulumi

**Answer:** Pulumi

**Explanation:** Argo CD renders plain YAML, Kustomize, Helm and Jsonnet out of the box, and other tools through Config Management Plugins. Pulumi is an infrastructure-as-code tool with its own engine, so it isn't one of them.

### What does Argo CD consider an application to be 'OutOfSync'?

Argo CD, Medium (Advanced), GitOps Workflows. https://k8wiz.com/uquiz/what-does-argo-cd-consider-an-application-to-be-outofsync

- A. The application has a manifest syntax error
- B. The live state in the cluster differs from the Git-defined desired state
- C. The Application resource is not in the Argo CD namespace
- D. The application was created manually

**Answer:** The live state in the cluster differs from the Git-defined desired state

**Explanation:** OutOfSync means at least one resource in the cluster differs from what Git describes, or is missing, after Argo CD's normalization and any ignoreDifferences rules. Health is tracked separately, so an application can be Synced and still Degraded.

### By default, how often does Argo CD poll Git repositories for changes?

Argo CD, Medium (Advanced), Performance & Scaling. https://k8wiz.com/uquiz/by-default-how-often-does-argo-cd-poll-git-repositories-for-changes

- A. Every 30 seconds
- B. Every 1 minute
- C. Every 3 minutes
- D. Every 10 minutes

**Answer:** Every 3 minutes

**Explanation:** The default reconciliation timeout is 120 seconds plus up to 60 seconds of jitter, so Argo CD checks each repository roughly every 3 minutes. Change timeout.reconciliation in argocd-cm, or set up Git webhooks to react to pushes right away.

### What is the default behavior of the `argocd-application-controller` with regards to Kubernetes resource caching?

Argo CD, Medium (Advanced), Performance & Scaling. https://k8wiz.com/uquiz/what-is-the-default-behavior-of-the-argocd-application-controller-with-regards-to-kubernetes-resource-caching

- A. It continuously polls the Kubernetes API for each resource
- B. It uses Kubernetes Watch APIs and a cache to track resources
- C. It only checks resources on manual request
- D. It uses `kubectl get` for all resources

**Answer:** It uses Kubernetes Watch APIs and a cache to track resources

**Explanation:** The application controller watches the resources of every managed cluster and keeps them in an in-memory cache, so comparisons don't query the API servers each time. Large clusters therefore need enough memory for the controller.

### How many Redis servers does Argo CD assume by default for HA setup?

Argo CD, Medium (Advanced), Performance & Scaling. https://k8wiz.com/uquiz/how-many-redis-servers-does-argo-cd-assume-by-default-for-ha-setup

- A. 1
- B. 2
- C. 3
- D. 5

**Answer:** 3

**Explanation:** The HA manifests run Redis with Sentinel and are configured for exactly three Redis servers and sentinels. Redis is only a cache, so Argo CD can rebuild its contents if it's lost.

### Which Argo CD component cannot be horizontally scaled because it uses an in-memory database?

Argo CD, Medium (Advanced), Performance & Scaling. https://k8wiz.com/uquiz/which-argo-cd-component-cannot-be-horizontally-scaled-because-it-uses-an-in-memory-database

- A. argocd-repo-server
- B. argocd-server
- C. argocd-application-controller
- D. argocd-dex-server

**Answer:** argocd-dex-server

**Explanation:** argocd-dex-server keeps its data in memory, so two or more instances could disagree. Run a single replica, which is fine because Dex is only involved during login.

### What is the recommended number of `argocd-server` replicas for high availability?

Argo CD, Medium (Advanced), Performance & Scaling. https://k8wiz.com/uquiz/what-is-the-recommended-number-of-argocd-server-replicas-for-high-availability

- A. 1
- B. 2
- C. 3
- D. 5

**Answer:** 3

**Explanation:** argocd-server is stateless, and the HA docs suggest 3 or more replicas to avoid downtime during upgrades. Set ARGOCD_API_SERVER_REPLICAS to the same number.

### Which environment variable can be increased to handle larger gRPC payloads (e.g. for clusters with many apps)?

Argo CD, Medium (Advanced), Performance & Scaling. https://k8wiz.com/uquiz/which-environment-variable-can-be-increased-to-handle-larger-grpc-payloads-eg-for-clusters-with-many-apps

- A. ARGOCD_GIT_OPTS
- B. ARGOCD_APP_CACHE_TTL
- C. ARGOCD_GRPC_MAX_SIZE_MB
- D. ARGOCD_CLUSTER_TIMEOUT

**Answer:** ARGOCD_GRPC_MAX_SIZE_MB

**Explanation:** The `ARGOCD_GRPC_MAX_SIZE_MB` environment variable controls the max gRPC message size. You can increase it (default 200MB) if you have many apps/clusters.

### Which annotation sends an Argo CD 3.6 Application that uses ServerSideApply=true back to the legacy client-side diff?

Argo CD, Medium (Advanced), Syncing & Deployment. https://k8wiz.com/uquiz/which-annotation-sends-an-argo-cd-36-application-that-uses-serversideapplytrue-back-to-the-legacy-client-side-diff

- A. argocd.argoproj.io/sync-options: ServerSideApply=false
- B. argocd.argoproj.io/compare-options: IgnoreExtraneous
- C. argocd.argoproj.io/compare-options: LegacyDiff=true
- D. argocd.argoproj.io/compare-options: ServerSideDiff=false

**Answer:** argocd.argoproj.io/compare-options: ServerSideDiff=false

**Explanation:** An explicit ServerSideDiff=false in the compare-options annotation always takes precedence and falls back to the legacy client-side diff, while the sync still uses Server-Side Apply. Turning off ServerSideApply would change how Argo CD syncs, not only how it diffs. IgnoreExtraneous only stops resources that are not in Git from marking the Application OutOfSync.

### Which annotation stops an immediate child resource's health from counting toward its Argo CD application's health?

Argo CD, Medium (Advanced), Application Management. https://k8wiz.com/uquiz/which-annotation-stops-an-immediate-child-resources-health-from-counting-toward-its-argo-cd-applications-health

- A. argocd.argoproj.io/skip-health-check: "true"
- B. argocd.argoproj.io/compare-options: IgnoreHealth
- C. argocd.argoproj.io/ignore-healthcheck: "true"
- D. argocd.argoproj.io/sync-options: SkipHealth=true

**Answer:** argocd.argoproj.io/ignore-healthcheck: "true"

**Explanation:** Setting argocd.argoproj.io/ignore-healthcheck to "true" on an immediate child resource removes its health from the application's aggregated health. The resource still has its own health status, it just no longer counts. Use it sparingly, since an ignored Deployment that crashes will no longer turn the application Degraded.

### Which sync option makes Argo CD leave the fields listed in ignoreDifferences out of what it applies during a sync?

Argo CD, Medium (Advanced), Syncing & Deployment. https://k8wiz.com/uquiz/which-sync-option-makes-argo-cd-leave-the-fields-listed-in-ignoredifferences-out-of-what-it-applies-during-a-sync

- A. ApplyOutOfSyncOnly=true
- B. ServerSideApply=true
- C. Validate=false
- D. RespectIgnoreDifferences=true

**Answer:** RespectIgnoreDifferences=true

**Explanation:** By default, ignoreDifferences only affects how Argo CD computes the sync status, and the sync still applies the full desired state. RespectIgnoreDifferences=true pre-patches the desired state to remove the ignored fields before applying it. It only works for resources that already exist; on creation the manifest is applied as written.

### What does setting spec.syncPolicy.preserveResourcesOnDeletion to true change in an ApplicationSet?

Argo CD, Medium (Advanced), Application Management. https://k8wiz.com/uquiz/what-does-setting-specsyncpolicypreserveresourcesondeletion-to-true-change-in-an-applicationset

- A. Generated Applications are kept when their directory leaves Git
- B. Automated syncs stop pruning resources that were removed from Git
- C. The ApplicationSet can't be deleted while it still owns Applications
- D. Applications get no resources finalizer, so their workloads stay

**Answer:** Applications get no resources finalizer, so their workloads stay

**Explanation:** Without this setting, the ApplicationSet controller adds resources-finalizer.argocd.argoproj.io to each generated Application, so deleting the Application also deletes what it deployed. With it set to true the finalizer isn't added: Applications can still be deleted, but their resources stay in the cluster. Keeping the Applications themselves is the job of applicationsSync: create-update.

## Expert (Hard): 35 questions

Interactive quiz: https://k8wiz.com/argocd/quiz/hard

### What is a Sync Wave in Argo CD?

Argo CD, Hard (Expert), Concepts. https://k8wiz.com/uquiz/what-is-a-sync-wave-in-argo-cd

- A. A visualization of sync history over time
- B. A way to control the order in which resources are applied during a sync operation
- C. A type of sync that applies changes in waves of increasing impact
- D. A sync operation that affects multiple applications at once

**Answer:** A way to control the order in which resources are applied during a sync operation

**Explanation:** Sync Waves in Argo CD provide a way to control the order in which resources are applied during a sync operation. By annotating resources with 'argocd.argoproj.io/sync-wave', you can specify the order of application, with lower numbered waves being applied first.

### How does Argo CD handle Kubernetes secrets?

Argo CD, Hard (Expert), Security. https://k8wiz.com/uquiz/how-does-argo-cd-handle-kubernetes-secrets

- A. It automatically encrypts all secrets before storing them in Git
- B. It doesn't support deploying secrets from Git
- C. It stores secrets in plain text in Git like any other resource
- D. It supports various ways to manage secrets, including integration with external secret management tools

**Answer:** It supports various ways to manage secrets, including integration with external secret management tools

**Explanation:** Argo CD doesn't have built-in secret encryption, but it supports various approaches for managing secrets, including integration with external secret management tools like Bitnami Sealed Secrets, Vault, and AWS Secrets Manager. These integrations allow for secure management of secrets in a GitOps workflow.

### Which of the following is NOT a valid sync strategy in Argo CD?

Argo CD, Hard (Expert), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-valid-sync-strategy-in-argo-cd

- A. Apply
- B. Hook
- C. Replace
- D. Create

**Answer:** Create

**Explanation:** Argo CD supports several sync strategies including Apply (using kubectl apply), Hook (for resource hooks), and Replace (using kubectl replace). 'Create' is not a valid sync strategy in Argo CD.

### What is the purpose of resource hooks in Argo CD?

Argo CD, Hard (Expert), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-resource-hooks-in-argo-cd

- A. To attach additional resources to an application
- B. To intercept and modify Kubernetes API requests
- C. To run custom actions during specific phases of the sync operation
- D. To hook into external CI systems

**Answer:** To run custom actions during specific phases of the sync operation

**Explanation:** Resource hooks in Argo CD allow you to run custom actions during specific phases of the sync operation, such as PreSync, Sync, PostSync, and SyncFail. Hooks are implemented as Kubernetes resources annotated with 'argocd.argoproj.io/hook' and are useful for tasks like database migrations, sending notifications, or running tests.

### What is the purpose of the ApplicationSet controller in Argo CD?

Argo CD, Hard (Expert), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-applicationset-controller-in-argo-cd

- A. To manage sets of related applications as a single unit
- B. To automatically generate and manage multiple similar applications from a single template
- C. To set application parameters during deployment
- D. To control the set of resources within an application

**Answer:** To automatically generate and manage multiple similar applications from a single template

**Explanation:** The ApplicationSet controller in Argo CD is used to automatically generate and manage multiple similar Argo CD Applications from a single template. It's particularly useful for multi-cluster or multi-namespace deployments, allowing you to define an application template once and deploy it across multiple targets.

### Which of the following is NOT a valid generator in ApplicationSet?

Argo CD, Hard (Expert), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-valid-generator-in-applicationset

- A. List
- B. Cluster
- C. Git
- D. Namespace

**Answer:** Namespace

**Explanation:** ApplicationSet supports several generators including List (static list of targets), Cluster (generate applications for each cluster), and Git (generate from files in a Git repository). 'Namespace' is not a valid built-in generator in ApplicationSet, although you can achieve namespace-based generation using other generators.

### What is the purpose of the 'app-of-apps' pattern in Argo CD?

Argo CD, Hard (Expert), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-app-of-apps-pattern-in-argo-cd

- A. To create applications that deploy other applications
- B. To organize applications in a hierarchical structure
- C. To deploy multiple copies of the same application
- D. To create applications that span multiple clusters

**Answer:** To create applications that deploy other applications

**Explanation:** The 'app-of-apps' pattern in Argo CD involves creating an Argo CD Application that deploys other Argo CD Applications. This pattern is useful for managing a large number of applications, bootstrapping new clusters, or organizing applications into logical groups. It leverages Argo CD's ability to deploy custom resources, including its own Application resources.

### What is the purpose of the 'argocd app patch' command?

Argo CD, Hard (Expert), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-argocd-app-patch-command

- A. To apply a patch to the application's source code
- B. To modify specific fields of an application using JSON patch or strategic merge patch
- C. To fix issues in an application's deployment
- D. To update the Argo CD version used by an application

**Answer:** To modify specific fields of an application using JSON patch or strategic merge patch

**Explanation:** The 'argocd app patch' command is used to modify specific fields of an application using JSON patch or strategic merge patch formats. This allows for precise modifications to the application configuration without having to specify the entire application definition.

### What is the purpose of the 'argocd admin' command group?

Argo CD, Hard (Expert), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-argocd-admin-command-group

- A. To perform administrative tasks on applications
- B. To manage Argo CD administrator users
- C. To perform cluster-level administrative tasks
- D. To perform Argo CD instance administrative tasks like upgrades and diagnostics

**Answer:** To perform Argo CD instance administrative tasks like upgrades and diagnostics

**Explanation:** The 'argocd admin' command group provides access to administrative functions for managing the Argo CD instance itself, such as upgrading Argo CD, generating diagnostics, managing certificates, and other maintenance tasks. These commands are typically used by Argo CD administrators rather than regular users.

### How can you configure Argo CD to skip resource updates during a sync?

Argo CD, Hard (Expert), Concepts. https://k8wiz.com/uquiz/how-can-you-configure-argo-cd-to-skip-resource-updates-during-a-sync

- A. Use the '--skip-resource' flag with argocd app sync
- B. Add the resource to the 'ignoredResources' list in the project
- C. Annotate the resource with 'argocd.argoproj.io/sync-options: Prune=false'
- D. Annotate the resource with 'argocd.argoproj.io/sync-options: Skip=true'

**Answer:** Annotate the resource with 'argocd.argoproj.io/sync-options: Skip=true'

**Explanation:** To configure Argo CD to skip a specific resource during a sync operation, you can annotate the resource with 'argocd.argoproj.io/sync-options: Skip=true'. This tells Argo CD to ignore this resource during sync operations, which is useful for resources that are managed outside of Argo CD or that require manual updates.

### What is the purpose of the 'ignoreDifferences' field in an Argo CD Application?

Argo CD, Hard (Expert), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-ignoredifferences-field-in-an-argo-cd-application

- A. To ignore certain applications in a project
- B. To specify fields or resources that should be ignored when comparing the desired state with the actual state
- C. To disable difference detection for an application
- D. To ignore differences between Git branches

**Answer:** To specify fields or resources that should be ignored when comparing the desired state with the actual state

**Explanation:** The 'ignoreDifferences' field in an Argo CD Application allows you to specify fields or resources that should be ignored when Argo CD compares the desired state from Git with the actual state in the cluster. This is useful for fields that are managed outside of Git or that change frequently, such as status fields, timestamps, or fields managed by operators.

### What special finalizer must be added to an Argo CD Application to allow it to delete resources on deletion?

Argo CD, Hard (Expert), Application Management. https://k8wiz.com/uquiz/what-special-finalizer-must-be-added-to-an-argo-cd-application-to-allow-it-to-delete-resources-on-deletion

- A. resources-cleanup.argocd.argoproj.io
- B. resources-finalizer.argocd.argoproj.io
- C. argocd-delete-propagation
- D. app.finalizer.argoproj.io

**Answer:** resources-finalizer.argocd.argoproj.io

**Explanation:** The `resources-finalizer.argocd.argoproj.io` finalizer is required on an Application so that deleting the Application will cascade and delete its resources.

### If an AppProject's destinations include the Argo CD namespace, what is the effect on applications in that project?

Argo CD, Hard (Expert), Application Management. https://k8wiz.com/uquiz/if-an-appprojects-destinations-include-the-argo-cd-namespace-what-is-the-effect-on-applications-in-that-project

- A. They can only deploy to the Argo CD namespace
- B. They will run with cluster-admin (admin-level) privileges
- C. They will be read-only
- D. The project is disabled by default

**Answer:** They will run with cluster-admin (admin-level) privileges

**Explanation:** If an AppProject allows the Argo CD namespace (where the controller runs) as a destination, apps in that project will have administrative (cluster-admin) privileges.

### Which option allows an application to have zero resources and still synchronize successfully?

Argo CD, Hard (Expert), Syncing & Deployment. https://k8wiz.com/uquiz/which-option-allows-an-application-to-have-zero-resources-and-still-synchronize-successfully

- A. --allow-empty
- B. --allow-zero
- C. --empty-ok
- D. --no-resources

**Answer:** --allow-empty

**Explanation:** The `--allow-empty` (or `allowEmpty` in the manifest) option allows an application with zero resources (e.g. empty Git directory) to sync successfully.

### What does the `ApplyOutOfSyncOnly=true` sync option do?

Argo CD, Hard (Expert), Syncing & Deployment. https://k8wiz.com/uquiz/what-does-the-applyoutofsynconlytrue-sync-option-do

- A. Applies only resources that are currently out of sync
- B. Prevents any resources from syncing
- C. Applies all resources even if already in sync
- D. Only applies resources in a dry-run mode

**Answer:** Applies only resources that are currently out of sync

**Explanation:** Normally a sync applies every resource in the application. With ApplyOutOfSyncOnly=true, Argo CD applies only the resources that differ from Git, which speeds up syncs of large applications and reduces load on the API server.

### Which sync option requires manual confirmation before deleting resources during sync?

Argo CD, Hard (Expert), Syncing & Deployment. https://k8wiz.com/uquiz/which-sync-option-requires-manual-confirmation-before-deleting-resources-during-sync

- A. Prune=false
- B. Prune=confirm
- C. Delete=confirm
- D. AutoSync=false

**Answer:** Prune=confirm

**Explanation:** With the annotation argocd.argoproj.io/sync-options: Prune=confirm on a resource, Argo CD won't prune it until someone confirms in the UI or CLI. It suits critical objects such as Namespaces.

### What must be configured for Argo CD to enable RBAC authorization?

Argo CD, Hard (Expert), RBAC & Security. https://k8wiz.com/uquiz/what-must-be-configured-for-argo-cd-to-enable-rbac-authorization

- A. Enable anonymous=true in argocd-cm
- B. Configure an SSO identity provider or local user accounts
- C. Install Helm and Argo CD plugin
- D. Nothing, RBAC is always enabled

**Answer:** Configure an SSO identity provider or local user accounts

**Explanation:** RBAC needs identities to apply to, so you configure SSO, through the bundled Dex or another OIDC provider, or local users in argocd-cm. Policies in argocd-rbac-cm then map those users and groups to roles.

### Which `argocd admin` command checks the validity of the Argo CD configuration?

Argo CD, Hard (Expert), Troubleshooting & Debugging. https://k8wiz.com/uquiz/which-argocd-admin-command-checks-the-validity-of-the-argo-cd-configuration

- A. `argocd admin config check`
- B. `argocd admin settings validate`
- C. `argocd admin health check`
- D. `argocd admin lint`

**Answer:** `argocd admin settings validate`

**Explanation:** 'argocd admin settings validate' loads argocd-cm and the related settings and reports problems in areas such as accounts, repositories, resource overrides and SSO. Run it against the live configuration or local files before rolling out a change.

### How can you retrieve the Kubernetes kubeconfig for a cluster that Argo CD is managing?

Argo CD, Hard (Expert), Troubleshooting & Debugging. https://k8wiz.com/uquiz/how-can-you-retrieve-the-kubernetes-kubeconfig-for-a-cluster-that-argo-cd-is-managing

- A. `kubectl get secret <cluster-name>`
- B. `argocd admin cluster kubeconfig <cluster-url> <output-path>`
- C. `argocd cluster get <cluster-name>`
- D. `argocd admin export cluster <cluster-name>`

**Answer:** `argocd admin cluster kubeconfig <cluster-url> <output-path>`

**Explanation:** 'argocd admin cluster kubeconfig <cluster-url> <output-path>' writes a kubeconfig built from the credentials Argo CD stores for that cluster. It's handy for checking whether Argo CD's own credentials can reach the cluster.

### What language is used to write custom health checks in Argo CD?

Argo CD, Hard (Expert), Troubleshooting & Debugging. https://k8wiz.com/uquiz/what-language-is-used-to-write-custom-health-checks-in-argo-cd

- A. Python
- B. Lua
- C. JavaScript
- D. Go

**Answer:** Lua

**Explanation:** Custom health checks are Lua scripts, set in argocd-cm under resource.customizations.health.<group_kind> or contributed upstream. The script reads the object's status and returns Healthy, Progressing, Degraded or another status with a message.

### Which environment variable can be set to enable detailed gRPC timing histograms (metrics) in Argo CD?

Argo CD, Hard (Expert), Performance & Scaling. https://k8wiz.com/uquiz/which-environment-variable-can-be-set-to-enable-detailed-grpc-timing-histograms-metrics-in-argo-cd

- A. ARGOCD_ENABLE_GRPC_TIME_HISTOGRAM
- B. ARGOCD_ENABLE_METRICS
- C. ARGOCD_DEBUG_TIMING
- D. ARGOCD_GIT_POLL_INTERVAL

**Answer:** ARGOCD_ENABLE_GRPC_TIME_HISTOGRAM

**Explanation:** The gRPC duration histograms are off by default because they add many metric series. Set ARGOCD_ENABLE_GRPC_TIME_HISTOGRAM=true on the component to expose them to Prometheus.

### What flag on the `argocd-repo-server` controls how many manifest generation processes can run concurrently?

Argo CD, Hard (Expert), Performance & Scaling. https://k8wiz.com/uquiz/what-flag-on-the-argocd-repo-server-controls-how-many-manifest-generation-processes-can-run-concurrently

- A. --forks-limit
- B. --manifest-limit
- C. --parallelism-limit
- D. --concurrency-limit

**Answer:** --parallelism-limit

**Explanation:** The `--parallelism-limit` flag on `argocd-repo-server` sets the maximum number of concurrent manifest generation (kubectl exec) processes, to avoid out-of-memory issues.

### How can you improve Argo CD performance when managing a very large number of applications or clusters?

Argo CD, Hard (Expert), Performance & Scaling. https://k8wiz.com/uquiz/how-can-you-improve-argo-cd-performance-when-managing-a-very-large-number-of-applications-or-clusters

- A. Increase the polling frequency to every 1 second
- B. Shard applications across multiple controllers (use ARGOCD_CONTROLLER_REPLICAS)
- C. Disable health checks
- D. Use a single Argo CD instance only

**Answer:** Shard applications across multiple controllers (use ARGOCD_CONTROLLER_REPLICAS)

**Explanation:** For large deployments, you can shard apps/clusters by running multiple app-controller instances and setting the ARGOCD_CONTROLLER_REPLICAS environment variable.

### After an upgrade to Argo CD 3.6, the repo-server stops sending custom OTLP headers to the trace collector. What is the likely cause?

Argo CD, Hard (Expert), Troubleshooting & Debugging. https://k8wiz.com/uquiz/after-an-upgrade-to-argo-cd-36-the-repo-server-stops-sending-custom-otlp-headers-to-the-trace-collector-what-is-the-likely-cause

- A. It now reads ARGOCD_REPO_SERVER_OTLP_HEADERS, not ARGOCD_REPO_OTLP_HEADERS
- B. It now reads headers only from the --otlp-headers command-line flag
- C. It now rejects every header value that contains an = character
- D. It now sends headers only when otlp.insecure is set to "false"

**Answer:** It now reads ARGOCD_REPO_SERVER_OTLP_HEADERS, not ARGOCD_REPO_OTLP_HEADERS

**Explanation:** Argo CD 3.6 renamed the repo-server variable to match the ARGOCD_<COMPONENT>_OTLP_HEADERS pattern used by the other components, and the old name is no longer read. The default manifests already set the new name, so only custom patches or Helm values break. Values containing = actually work better in 3.6, since each pair is split on its first =.

### In Argo CD 3.6, you run argocd app diff --local --server-side-generate with a single --local-include "*.yaml". Which files are sent?

Argo CD, Hard (Expert), CLI Usage. https://k8wiz.com/uquiz/in-argo-cd-36-you-run-argocd-app-diff-local-server-side-generate-with-a-single-local-include-yaml-which-files-are-sent

- A. *.yaml plus the defaults *.yml, *.json, *.tpl and Chart.lock
- B. *.yaml plus only the new defaults *.tpl and Chart.lock
- C. Only the files that match the *.yaml pattern
- D. Every file in the directory, since the flag is ignored

**Answer:** Only the files that match the *.yaml pattern

**Explanation:** Passing --local-include replaces the default list instead of adding to it. Argo CD 3.6 added *.tpl and Chart.lock to the defaults so Helm helpers and pinned dependencies render correctly, but you lose them as soon as you pass your own list. Repeat every pattern you need, defaults included.

### A proxy in front of argocd-server sends a traceparent header marked not sampled. With --otlp-sample-ratio=1.0 in Argo CD 3.6, what happens to that request's trace?

Argo CD, Hard (Expert), Concepts. https://k8wiz.com/uquiz/a-proxy-in-front-of-argocd-server-sends-a-traceparent-header-marked-not-sampled-with-otlp-sample-ratio10-in-argo-cd-36-what-happ

- A. It is recorded, since a ratio of 1.0 samples everything
- B. It is not recorded, because the sampler is parent-based
- C. It is recorded by the repo-server but not by argocd-server
- D. It is recorded with an extra sampled=false span attribute

**Answer:** It is not recorded, because the sampler is parent-based

**Explanation:** Argo CD 3.6 replaced always-on sampling with a parent-based sampler, so an inbound not-sampled decision is honored even at a ratio of 1.0. The ratio only applies to traces that start in Argo CD. Downstream services such as the repo-server follow the same decision, which keeps traces whole.

### A PVC in sync wave 0 uses a StorageClass with volumeBindingMode WaitForFirstConsumer, and the Deployment that mounts it is in wave 1. What happens when Argo CD syncs?

Argo CD, Hard (Expert), Syncing & Deployment. https://k8wiz.com/uquiz/a-pvc-in-sync-wave-0-uses-a-storageclass-with-volumebindingmode-waitforfirstconsumer-and-the-deployment-that-mounts-it-is-in-wav

- A. Wave 1 starts after the 2 second wave delay, so the sync succeeds
- B. Argo CD binds the claim itself, so wave 1 starts once it is Bound
- C. Argo CD skips the health check for PVCs, so both waves apply at once
- D. The sync stalls, since the claim stays Pending until a Pod uses it

**Answer:** The sync stalls, since the claim stays Pending until a Pod uses it

**Explanation:** Argo CD waits for every resource in a wave to be healthy before it applies the next wave, and a PVC is Progressing while its phase is Pending. With WaitForFirstConsumer the claim only binds once a Pod using it is scheduled, but that Pod comes from the Deployment in wave 1. The 2 second ARGOCD_SYNC_WAVE_DELAY only spaces waves out and doesn't skip the health wait.

### A Deployment managed by Argo CD rolls out an image tag that doesn't exist, and progressDeadlineSeconds is left at its default. When does Argo CD report the Deployment as Degraded?

Argo CD, Hard (Expert), Troubleshooting & Debugging. https://k8wiz.com/uquiz/a-deployment-managed-by-argo-cd-rolls-out-an-image-tag-that-doesnt-exist-and-progressdeadlineseconds-is-left-at-its-default-when

- A. After 600 seconds, once Kubernetes reports ProgressDeadlineExceeded
- B. At once, as soon as the new Pods show ImagePullBackOff in their status
- C. After the next hard refresh, once the repo-server regenerates manifests
- D. Never, since Argo CD only reports Deployments Progressing or Healthy

**Answer:** After 600 seconds, once Kubernetes reports ProgressDeadlineExceeded

**Explanation:** Argo CD's Deployment check follows kubectl rollout status and judges the Deployment from its own status, not from its Pods. It reports Progressing while updated replicas aren't available, and Degraded only when the Progressing condition has the reason ProgressDeadlineExceeded. Kubernetes sets that after progressDeadlineSeconds, which defaults to 600, so lower it if you want failed rollouts to show up sooner.

### On a default Argo CD 3.x install, kubectl shows no health under an Application's status.resources even though the UI shows resource health. Why?

Argo CD, Hard (Expert), Troubleshooting & Debugging. https://k8wiz.com/uquiz/on-a-default-argo-cd-3x-install-kubectl-shows-no-health-under-an-applications-statusresources-even-though-the-ui-shows-resource

- A. Health is only written there after the first successful sync
- B. Resource health is held in argocd-server memory instead
- C. Resource health is kept outside the Application CR by default
- D. Health is only written there when the application is Degraded

**Answer:** Resource health is kept outside the Application CR by default

**Explanation:** Since Argo CD 3.0 the application controller no longer persists each resource's health in the Application CR, because health churn put load on the controller. The status.resourceHealthSource field shows where health lives. Setting controller.resource.health.persist to "true" in argocd-cmd-params-cm restores the old behavior. argocd-server only reads health, it doesn't compute or hold it.

### Automated sync without selfHeal succeeded on commit abc123, then a controller changed a field and the app went OutOfSync. What does Argo CD do next?

Argo CD, Hard (Expert), GitOps Workflows. https://k8wiz.com/uquiz/automated-sync-without-selfheal-succeeded-on-commit-abc123-then-a-controller-changed-a-field-and-the-app-went-outofsync-what-doe

- A. It does not sync until a new commit or parameter change
- B. It syncs again after the five-second self-heal timeout
- C. It retries the sync with backoff until the app is Synced
- D. It syncs again at the next three-minute reconciliation

**Answer:** It does not sync until a new commit or parameter change

**Explanation:** Automated sync attempts one sync per unique combination of commit SHA and application parameters. If the last successful sync already used that commit and those parameters, Argo CD does not sync again. Only with selfHeal: true does it sync again after the self-heal timeout, which defaults to five seconds.

### In Argo CD 3.6, which ignore rules can the argocd.argoproj.io/ignore-differences annotation on a resource contain?

Argo CD, Hard (Expert), Application Management. https://k8wiz.com/uquiz/in-argo-cd-36-which-ignore-rules-can-the-argocdargoprojioignore-differences-annotation-on-a-resource-contain

- A. jqPathExpressions only
- B. managedFieldsManagers only
- C. jsonPointers only
- D. All three rule types

**Answer:** jsonPointers only

**Explanation:** The resource-level annotation, added in Argo CD 3.6, accepts YAML with a jsonPointers key, and its rules are merged with matching entries in spec.ignoreDifferences. JQ path expressions and managedFieldsManagers are not supported there and must be configured in the Application's spec.ignoreDifferences.

### An extra resource carries argocd.argoproj.io/compare-options: IgnoreExtraneous and turns Degraded. Everything else matches Git. What does the app report?

Argo CD, Hard (Expert), Troubleshooting & Debugging. https://k8wiz.com/uquiz/an-extra-resource-carries-argocdargoprojiocompare-options-ignoreextraneous-and-turns-degraded-everything-else-matches-git-what-d

- A. Synced and Healthy, since the resource is ignored
- B. Synced, with Degraded health
- C. OutOfSync, with Degraded health
- D. OutOfSync, with Healthy health

**Answer:** Synced, with Degraded health

**Explanation:** IgnoreExtraneous only removes the resource from the application's sync status, so the app can stay Synced even though the resource is not in Git. Health is not affected: a Degraded resource still makes the application Degraded.

### A Git directory generator lists path apps/web, then path apps/* with exclude: true. Which directories under apps/ produce Applications?

Argo CD, Hard (Expert), GitOps Workflows. https://k8wiz.com/uquiz/a-git-directory-generator-lists-path-appsweb-then-path-apps-with-exclude-true-which-directories-under-apps-produce-applications

- A. None of them
- B. Only apps/web
- C. Every directory except apps/web
- D. All of them, since apps/web comes first

**Answer:** None of them

**Explanation:** Exclude rules always take precedence over include rules, and the order of entries in the directories list doesn't matter. apps/web matches the apps/* exclude pattern, so it is dropped along with everything else. To deploy only some directories, include the wide pattern and exclude the specific paths instead.

### An ApplicationSet sets applicationsSync: create-update, but the controller runs with --policy sync and no policy override flag. A directory is removed from Git. What happens?

Argo CD, Hard (Expert), Syncing & Deployment. https://k8wiz.com/uquiz/an-applicationset-sets-applicationssync-create-update-but-the-controller-runs-with-policy-sync-and-no-policy-override-flag-a-dir

- A. The Application is kept, since the AppSet field wins
- B. The controller reports a policy conflict and stops
- C. The Application is deleted, since the flag wins
- D. The Application is kept but shown as OutOfSync

**Answer:** The Application is deleted, since the flag wins

**Explanation:** When the controller's --policy flag is set explicitly, it takes precedence over the per-ApplicationSet applicationsSync field unless --enable-policy-override is also enabled. With sync in effect, the controller deletes Applications that are no longer generated. Override is allowed by default only when --policy is left empty.

### A Git directory generator matches apps/*/* and names Applications '{{.path.basename}}'. Both apps/team-a/web and apps/team-b/web exist. What does the ApplicationSet controller do?

Argo CD, Hard (Expert), Troubleshooting & Debugging. https://k8wiz.com/uquiz/a-git-directory-generator-matches-apps-and-names-applications-pathbasename-both-appsteam-aweb-and-appsteam-bweb-exist-what-does

- A. Creates web from the first match and skips the other
- B. Creates neither and reports a duplicate name error
- C. Creates both, adding a hash suffix to the second name
- D. Creates web and lets the second match overwrite it

**Answer:** Creates neither and reports a duplicate name error

**Explanation:** The controller validates generated Applications before applying them and flags names that appear more than once, setting an ErrorOccurred condition with a message that the ApplicationSet contains applications with duplicate name: web. Because both entries share the same name, neither passes validation. Building the name from more than one segment, such as the team and the basename, avoids the collision.
