# What happens if you set both prometheus.podmonitor.enabled and prometheus.servicemonitor.enabled to true in the cert-manager Helm chart?

cert-manager, Easy (Beginner), Commands. https://k8wiz.com/uquiz/what-happens-if-you-set-both-prometheuspodmonitorenabled-and-prometheusservicemonitorenabled-to-true-in-the-cert-manager-helm-ch

- A. The chart creates both and Prometheus scrapes twice
- B. The chart fails to render and Helm reports an error
- C. The chart creates only the ServiceMonitor and skips the PodMonitor
- D. The chart creates only the PodMonitor and skips the ServiceMonitor

**Answer:** The chart fails to render and Helm reports an error

**Explanation:** The PodMonitor and ServiceMonitor options are mutually exclusive. The chart's monitor templates call Helm's fail function when both are enabled, so the install or upgrade stops with an error instead of creating duplicate scrape targets.
