Skip to content

Applying Policies Questions

Practice questions for Applying Policies topic in Kyverno Certified Associate. 20 questions covering this domain.

20 questions4 easy8 medium8 hard
Q1
medium

A ClusterPolicy sets `applyRules: One`. How does Kyverno process matching rules in that policy?

Q2
easy

A GitOps pipeline wants to evaluate Kubernetes manifests against Kyverno policies before they are committed and applied to a cluster. Which tool is in...

Q3
medium

A rule's `match` block specifies resource kinds but no `operations`. What admission operations are matched by default?

Q4
hard

A policy author writes `match.resources.kinds: ['*']` and wants to use that policy in background mode with a `generate` rule. Which statement is corre...

Q5
hard

A policy excludes requests from `cluster-admin` and a named user by using `clusterRoles` and `subjects`. What should the author do with the policy's `...

Q6
hard

A Kyverno validate policy has `failureAction: Audit` and `background: true`. A resource exists in the cluster that violates this policy. Where will th...

Q7
easy

A Kyverno ClusterPolicy has a rule with no `match.resources.operations` field specified. To which operations will this rule apply by default?

Q8
medium

A policy has `applyRules: One` set. A resource matches three rules in that policy. What happens?

Q9
hard

Which of the following resource kinds CANNOT be used with wildcard kinds (`'*'`) in a Kyverno rule's match block when running in background mode?

Q10
medium

Why must a policy have `background: false` when it uses `subjects` or `clusterRoles` in its `match` block?

Q11
easy

In a Kyverno `match.any` block, how are peer conditions inside a single `resources` entry evaluated?

Q12
hard

A policy wants to target only the `scale` subresource for Deployments. Why is an explicit parent-and-subresource match recommended?

Q13
medium

A team wants one rule to apply only to Pods in namespaces labeled `organization=engineering`. Which matching feature is designed for that requirement?

Q14
hard

A platform team writes a wildcard policy that matches all kinds in the cluster and wants to validate deep `spec` fields on every resource. What is the...

Q15
medium

A policy already narrows `match` to Pods in `prod-*` namespaces, and the author wants to omit only `prod-alpha`. What should be true about the `exclud...

Q16
easy

How are Kyverno `match` and `exclude` blocks combined for a rule?

Q17
hard

A rule should match the Pod status subresource explicitly. Which syntax is supported by Kyverno?

Q18
medium

A policy author tries to use `{{ request.object.kind }}` inside `match.resources.kinds`. What does the documentation say?

Q19
hard

If policy match and exclude blocks do not specify operations, what default webhook operations does Kyverno use for validating versus mutating resource...

Q20
medium

A team wants label-based matching with wildcard patterns in `matchLabels`. What is true about selector wildcard support?

Sign in to see all 20 questions

Create a free account to browse all questions — completely free during our launch phase.