CGOA Gitops Patterns Practice Question
In a multi-cluster GitOps environment, you are using the ApplicationSet controller with a 'Cluster Generator'. You need to add a new cluster dynamically without modifying the ApplicationSet manifest. How should you achieve this?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Add a secret with the label 'argocd.argoproj.io/secret-type: cluster' to the management cluster.
The Cluster Generator can watch for new Kubernetes Secrets with the label 'argocd.argoproj.io/secret-type: cluster'. Once a new secret is added with this label, the controller automatically detects it and deploys the applications.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Update the ApplicationSet manifest via a manual Git commit.
Why it's wrong here
The goal is to avoid manual modification of the ApplicationSet manifest.
- ✓
Add a secret with the label 'argocd.argoproj.io/secret-type: cluster' to the management cluster.
Why this is correct
Argo CD automatically discovers clusters defined by these secrets.
- ✗
Execute 'argocd cluster add' via the CLI.
Why it's wrong here
While this works for the Argo CD UI, it does not integrate with the ApplicationSet controller's dynamic discovery.
- ✗
Modify the 'clusters.yaml' file in the root Git repository.
Why it's wrong here
This is a static approach, not a dynamic discovery method.
About these practice questions
One of 325 original CGOA practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official CNCF / Linux Foundation exam blueprint
This CGOA practice question is part of Courseiva's free CNCF / Linux Foundation certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CGOA exam.