# What is the purpose of resource hooks in Argo CD?

Argo CD, Hard (Expert), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-resource-hooks-in-argo-cd

- A. To attach additional resources to an application
- B. To intercept and modify Kubernetes API requests
- C. To run custom actions during specific phases of the sync operation
- D. To hook into external CI systems

**Answer:** To run custom actions during specific phases of the sync operation

**Explanation:** Resource hooks in Argo CD allow you to run custom actions during specific phases of the sync operation, such as PreSync, Sync, PostSync, and SyncFail. Hooks are implemented as Kubernetes resources annotated with 'argocd.argoproj.io/hook' and are useful for tasks like database migrations, sending notifications, or running tests.
