# What happens when a resource violates a Kyverno validation policy with 'validationFailureAction' set to 'enforce'?

Kyverno, Medium (Advanced), Validation. https://k8wiz.com/uquiz/what-happens-when-a-resource-violates-a-kyverno-validation-policy-with-validationfailureaction-set-to-enforce

- A. The resource is automatically fixed to comply with the policy
- B. The resource is rejected and not admitted to the cluster
- C. The resource is admitted but marked as non-compliant
- D. The resource is admitted and a warning event is generated

**Answer:** The resource is rejected and not admitted to the cluster

**Explanation:** When 'validationFailureAction' is set to 'enforce', resources that violate the policy are rejected and not admitted to the cluster. This is the strictest enforcement level.
