# In a kyverno-test.yaml file, which expected result do you write for a resource the policy should block?

Kyverno, Easy (Beginner), Testing. https://k8wiz.com/uquiz/in-a-kyverno-testyaml-file-which-expected-result-do-you-write-for-a-resource-the-policy-should-block

- A. deny
- B. block
- C. reject
- D. fail

**Answer:** fail

**Explanation:** Expected results use the policy report values pass, fail, warn, error and skip. A resource that violates a validation is reported as fail, even when the policy would deny it at admission. skip is the expected result for a resource covered by a policy exception.
