Free Kyverno Certified Associate (KCA) Practice Questions
100 free questions · Answer explanations · No signup required
View examination details, outline and sourcesLoading selected examination banks…
Sample Practice Questions
Try these 10 sample questions from the Kyverno Certified Associate (KCA) practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.
1How many action declarations may a single Kyverno ClusterPolicy rule contain?
- A. One action declaration
- B. Two action declarations
- C. Three action declarations
- D. Four action declarations
2Which installation method does Kyverno recommend for production environments needing convenient configuration and customization?
- A. Editing running controller Pods
- B. Installing only the controller image
- C. Using the Kyverno Helm chart
- D. Copying an existing webhook object
Answer: C
Explanation: The installation guide states, "When installing in a production environment, Helm is the recommended and most flexible method as it offers convenient configuration options to satisfy a wide range of customizations." Installing an image or webhook alone omits the full resource set.
Reference: Kyverno Installation — Installation, introduction
3Which Kyverno CLI command performs a dry run of a policy against a local resource manifest before deployment?
- A. kyverno test policy.yaml --cluster
- B. kyverno jp query -i resource.yaml
- C. kyverno create values policy.yaml
- D. kyverno apply policy.yaml --resource resource.yaml
4Which command creates a Kyverno policy resource in a Kubernetes cluster from a manifest supplied on standard input?
- A. kyverno apply - --resource resource.yaml
- B. kyverno test .
- C. kubectl create -f -
- D. kyverno jp query -i policy.yaml
Answer: C
Explanation: The in-cluster quick start uses "kubectl create -f- << EOF" followed by the policy manifest. kubectl sends that manifest to the cluster; the Kyverno CLI apply and test commands evaluate policies without installing them.
Reference: Kyverno Quick Start — Validate Resources, create policy command
5A new resource violates a Kyverno validate rule. Which failureAction allows its creation while recording the violation in a policy report?
- A. Fail
- B. Ignore
- C. Enforce
- D. Audit
Answer: D
Explanation: The guide states, "When the value is set to Audit, a policy violation is logged in a PolicyReport or ClusterPolicyReport but the resource creation or update is allowed." Fail and Ignore concern webhook failure handling; Enforce blocks noncompliant new resources.
6A ClusterPolicy evaluates a namespaced Pod. Which report type records that Pod's results?
- A. ClusterPolicyReport because the policy is cluster-scoped
- B. ClusterPolicyReport because Pods run on cluster nodes
- C. PolicyReport because the evaluated resource is namespaced
- D. PolicyReport only if the policy itself is namespaced
Answer: C
Explanation: The guide states, "Every namespaced resource will (eventually) have an associated PolicyReport and every clustered resource will (eventually) have an associated ClusterPolicyReport." Report scope follows the evaluated resource, not the policy's scope.
Reference: Kyverno Policy Reports — Overview, per-resource report scope
7A Kyverno Policy is created in the namespace team-a. Which scope does this namespaced policy have?
- A. Matching resources on every node
- B. Matching resources in team-a
- C. Matching resources in all namespaces
- D. Matching cluster-scoped resources
8Where should the Kyverno Helm release's controller workloads be installed?
- A. In a dedicated Kyverno namespace
- B. In the existing kube-system namespace
- C. In each application's existing namespace
- D. In an existing shared tools namespace
Answer: A
Explanation: The installation guide states, "Kyverno must always be installed in a dedicated Namespace; it must not be co-located with other applications in existing Namespaces including system Namespaces such as kube-system." Use a dedicated namespace for Kyverno.
Reference: Kyverno Installation — Installation, namespace requirement
9Which argument saves the resource produced by a Kyverno CLI mutation dry run to newresource.yaml?
- A. --set newresource.yaml
- B. -o newresource.yaml
- C. --resource newresource.yaml
- D. --userinfo newresource.yaml
Answer: B
Explanation: The guide gives "kyverno apply /path/to/policy.yaml --resource /path/to/resource.yaml -o newresource.yaml" under saving the mutated resource. -o selects the output destination; --resource supplies an input.
Reference: Kyverno CLI — Apply Command, Save the mutated resource to a file
10After Kyverno rejects a resource admission request, where does the quick-start documentation identify an additional Event containing the rejection information?
- A. In the namespace of the attempted resource
- B. Only in the namespace hosting Kyverno
- C. Only in kube-system for all resources
- D. As a copy in every existing namespace
Topics in this practice bank
These topics describe the available practice for Kyverno Certified Associate (KCA). Review the examination outline and its sources for scope and allocation details.
Fundamentals of Kyverno
- Kyverno Policies & Rules
- YAML Manifests
- Admission Controllers
- OCI Images
Installation, Configuration, and Upgrades
- Helm-based Installation and Configuration
- Kyverno Custom Resource Definitions (CRDs)
- Controller Configuration with Flags
- Configuring Kyverno RBAC, roles, and permissions
- High Availability Installations
- Upgrading Kyverno
Kyverno CLI
- apply
- test
- jp
- Installing Kyverno CLI
Applying Policies
- Applying Policy in Cluster
- Resource Selection
- Common Policy Settings for Kyverno Rules
Writing Policies
- Validation Rules
- Preconditions
- Background Scans
- Mutation Rules
- Generation Rules
- VerifyImage Rules
- Variables & API Calls in Policies
- JSON Patches
- Autogen Rules
- Cleanup Policies
- Common Expression Language (CEL)
Policy Management
- Policy Reports
- PolicyExceptions
- Kyverno Metrics
How to use these free practice questions
Choose an answer, check the explanation, and review your progress by chapter. Practice questions and explanations are free to access without signing up.
These are independent study questions, not actual examination items. For examination requirements and official information, view Kyverno Certified Associate (KCA) details.