# Which CEL function does a Kyverno GeneratingPolicy call in a generate expression to create resources in a namespace?

Kyverno, Easy (Beginner), Generation. https://k8wiz.com/uquiz/which-cel-function-does-a-kyverno-generatingpolicy-call-in-a-generate-expression-to-create-resources-in-a-namespace

- A. generator.Apply(namespace, [resources])
- B. resource.Create(namespace, [resources])
- C. generate.Resource(namespace, [resources])
- D. kyverno.Generate(namespace, [resources])

**Answer:** generator.Apply(namespace, [resources])

**Explanation:** The GeneratingPolicy generator library provides generator.Apply, which takes a target namespace and a list of resource objects and creates them there. It returns true on success, so it also works inside CEL loops such as list.all(...). resource.Get and resource.List exist, but they only fetch source objects for cloning.
