Certified Argo Project Associate (CAPA) Practice Questions

Certified Argo Project Associate (CAPA) exam preparation

Certified Argo Project Associate (CAPA) practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 90 minutes.

Certified Argo Project Associate (CAPA) free question 6 / 10 · Domain 2: Argo CD

An operator wants the Application object to disappear right away when it is deleted, while Kubernetes removes the managed resources afterward. Which finalizer should the Application carry?

  1. resources-finalizer.argocd.argoproj.io/orphan, which makes Argo CD keep the resources and remove the Application object
  2. No finalizer, as the Application is removed first and the resources are deleted by Kubernetes in the background
  3. resources-finalizer.argocd.argoproj.io/background, which makes Argo CD use background cascading deletion for the app
  4. resources-finalizer.argocd.argoproj.io, which makes Argo CD wait until the managed resources are gone before it removes the Application
Show the answer and explanation

Answer: C

Why this is correct
The App Deletion page says the finalizer enables cascading deletes: when an Application with the finalizer is deleted, the application controller performs a cascading delete of its resources. The default propagation policy for cascading deletion is foreground, and Argo CD performs background cascading deletion when resources-finalizer.argocd.argoproj.io/background is set. With argocd app delete you can also choose with --propagation-policy foreground or background.

Why the other options are wrong
"resources-finalizer.argocd.argoproj.io, which makes Argo CD wait until the managed resources are gone before it removes the Application" … That finalizer without a suffix gives the default foreground cascading deletion, in which the Application is removed after its resources.
"resources-finalizer.argocd.argoproj.io/orphan, which makes Argo CD keep the resources and remove the Application object" … The page names the plain finalizer for foreground and the background suffix for background deletion. It does not define an orphan suffix.
"No finalizer, as the Application is removed first and the resources are deleted by Kubernetes in the background" … Without the finalizer the delete does not cascade at all, so the managed resources stay in the cluster.

Key points
Plain finalizer is foreground, the /background suffix is background. Both cascade.

Go to the Certified Argo Project Associate (CAPA) practice app (10 free questions; purchase unlocks all questions)

See the full practice set