Question 29
Domain 6: Security, RBAC & ConfigurationWhich Kubernetes resource should be created to tell Argo CD what Git repository to track and which namespace to deploy the application into?
Correct answer: A
Explanation
An Argo CD Application custom resource defines the desired state for a deployment, including the Git repository to track and the destination namespace. Argo CD uses this resource to know "what Git repository to track" and "which namespace to deploy the application into."
Why each option is right or wrong
A. An Argo CD Application custom resource
Argo CD’s application controller reconciles the `Application` custom resource defined by the `argoproj.io/v1alpha1` API group, and that object includes the `spec.source.repoURL` field for the Git repository plus `spec.destination.namespace` for the target namespace. In practice, creating that CR is what gives Argo CD the exact repo-to-cluster mapping it needs; without it, there is no declarative instruction for which repository to watch or where to sync the manifests.
B. A Namespace manifest with labels for GitOps sync
C. A Deployment manifest for the Argo CD server
D. A ConfigMap containing the repository URL and target namespace