# An app has a PreSync migration Job. You run argocd app sync shop --resource apps:Deployment:web. What happens to the migration Job?

Argo CD, Hard (Expert), Syncing & Deployment. https://k8wiz.com/uquiz/an-app-has-a-presync-migration-job-you-run-argocd-app-sync-shop-resource-appsdeploymentweb-what-happens-to-the-migration-job

- A. It runs first, then the Deployment is applied
- B. It runs after the Deployment becomes Healthy
- C. It runs, but only if the Deployment is OutOfSync
- D. It does not run, since selective syncs skip hooks

**Answer:** It does not run, since selective syncs skip hooks

**Explanation:** Passing --resource makes the operation a selective sync, and Argo CD does not run hooks during a selective sync. Only the named Deployment is applied, so new pods can start against the old schema. Run a full sync for releases that carry schema changes.
