# Which apiVersion does a Kyverno CLI kyverno-test.yaml file use?

Kyverno, Easy (Beginner), Testing. https://k8wiz.com/uquiz/which-apiversion-does-a-kyverno-cli-kyverno-testyaml-file-use

- A. kyverno.io/v1
- B. cli.kyverno.io/v1alpha1
- C. policies.kyverno.io/v1
- D. test.kyverno.io/v1beta1

**Answer:** cli.kyverno.io/v1alpha1

**Explanation:** Test files are manifests of kind Test with apiVersion cli.kyverno.io/v1alpha1 and a metadata.name. The CLI rejects files that leave out apiVersion and kind, or that still use the old top-level name field, as a deprecated schema. kyverno.io/v1 and policies.kyverno.io/v1 are the API groups of the policies themselves.
