# A patch target sets kind: Deployment and labelSelector: tier=backend. Which resources does the patch change?

Kustomize, Medium (Advanced), Mutation. https://k8wiz.com/uquiz/a-patch-target-sets-kind-deployment-and-labelselector-tierbackend-which-resources-does-the-patch-change

- A. Every resource with tier=backend, of any kind
- B. Only the first Deployment that matches
- C. Only Deployments whose name is backend
- D. Every Deployment that has the label tier=backend

**Answer:** Every Deployment that has the label tier=backend

**Explanation:** A patch target selects by group, version, kind, name, namespace, labelSelector and annotationSelector, and a resource has to match every field you set. Leaving out the name lets one patch change many objects.
