Bird
0
0

Consider this ArgoCD Application manifest snippet:

medium📝 Command Output Q4 of 15
Kubernetes - Advanced Deployment Patterns
Consider this ArgoCD Application manifest snippet:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: demo-app
spec:
  source:
    repoURL: 'https://github.com/example/demo.git'
    path: 'deploy'
  destination:
    server: 'https://kubernetes.default.svc'
    namespace: 'default'
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
What will ArgoCD do when syncing this application?
AAutomatically apply changes, delete resources removed from Git, and fix drift
BRequire manual approval before applying any changes
COnly monitor changes but not apply them automatically
DSync changes but never delete resources even if removed from Git
Step-by-Step Solution
Solution:
  1. Step 1: Analyze syncPolicy

    The manifest has automated sync with prune: true and selfHeal: true.
  2. Step 2: Understand effects

    Automated sync means ArgoCD applies changes automatically. Prune deletes resources removed from Git. SelfHeal fixes any drift.
  3. Final Answer:

    Automatically apply changes, delete resources removed from Git, and fix drift -> Option A
  4. Quick Check:

    Automated sync with prune and selfHeal means full auto management [OK]
Quick Trick: Automated sync with prune and selfHeal means full auto deployment [OK]
Common Mistakes:
  • Assuming manual approval is needed despite automated sync
  • Thinking prune only applies on manual sync
  • Believing selfHeal disables automatic fixes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes