Bird
0
0

Which configuration should you use in your ArgoCD Application YAML?

hard📝 Best Practice Q15 of 15
Kubernetes - Advanced Deployment Patterns
You want to ensure that ArgoCD only deploys changes to your Kubernetes cluster after manual approval, but still track changes in Git automatically. Which configuration should you use in your ArgoCD Application YAML?
ASet <code>syncPolicy: automated: {}</code> to enable auto deploy
BOmit <code>syncPolicy</code> and use manual sync to approve changes
CSet <code>syncPolicy: automated: null</code> to disable auto deploy
DSet <code>syncPolicy: automated: { prune: true, selfHeal: true }</code> for auto deploy with cleanup
Step-by-Step Solution
Solution:
  1. Step 1: Understand manual approval need

    To require manual approval before deployment, auto sync must be disabled.
  2. Step 2: Configure syncPolicy accordingly

    Omitting syncPolicy disables auto sync, so ArgoCD tracks Git but waits for manual sync.
  3. Final Answer:

    Omit syncPolicy and use manual sync to approve changes -> Option B
  4. Quick Check:

    No syncPolicy = manual approval required [OK]
Quick Trick: No syncPolicy means manual sync only [OK]
Common Mistakes:
  • Using automated sync disables manual approval
  • Setting automated with prune/selfHeal still auto deploys
  • Setting automated: null is invalid syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes