Kubernetes Operator Pattern for Integration: CNPA practice questions
An operator is a way of packaging operational knowledge as software that runs inside Kubernetes. The Kubernetes documentation defines operators as software extensions that use custom resources to manage applications and their components while following Kubernetes principles, notably the control loop.
By Ibrahim Yesilay · Published · Updated
Independent community practice, not affiliated with or endorsed by CNCF or The Linux Foundation.
What Kubernetes Operator Pattern for Integration covers in CNPA
An operator is a way of packaging operational knowledge as software that runs inside Kubernetes. The Kubernetes documentation defines operators as software extensions that use custom resources to manage applications and their components while following Kubernetes principles, notably the control loop. The CNCF Operator White Paper calls an operator a synthesis of human behavior, codified into software, to facilitate the full lifecycle management of an application. What an experienced administrator knows about deploying, upgrading, backing up and repairing a system is written into a controller.
The documentation's example makes the structure concrete. A custom resource named SampleDB describes a database. The operator's controller runs from a Deployment and queries the control plane for SampleDB objects. When one is added, it sets up PersistentVolumeClaims for durable storage, a StatefulSet to run the database and a Job for initial configuration. When one is deleted, it takes a snapshot and makes sure the StatefulSet and volumes are removed as well. It also manages regular backups and, if it finds an old database version, creates Jobs that upgrade it. Users only work with the custom resource, using kubectl get SampleDB to list databases or kubectl edit to change settings, and the operator applies the change.
The list of tasks operators commonly automate is a useful study aid: deploying an application on demand, taking and restoring backups of its state, handling upgrades together with related changes such as database schemas or extra configuration, publishing a Service for applications that do not support Kubernetes APIs to discover them, simulating failures to test resilience, and choosing a leader for a distributed application without its own election process. The white paper adds scaling and other day-2 operations, and stresses that the control loop must manage the transition between states correctly, for example migrating a schema during an upgrade.
The most common way to deploy an operator is to add its Custom Resource Definitions and its controller to the cluster, with the controller usually running outside the control plane like any other containerized application. If no existing operator fits, you can write one in any language that can act as a client of the Kubernetes API; the documentation lists tools such as kubebuilder, the Operator Framework, Kopf, the Java Operator SDK and kube-rs. The white paper explains that kubebuilder builds on the controller-runtime library and that the Operator SDK can also create Helm-based operators for simpler cases.
For integration, operators are how platforms bring stateful and third-party systems such as databases, message brokers and certificate managers under the same declarative API as everything else. The white paper also raises a security point: many operators hold a static set of broad permissions to reconcile their resources, so their RBAC should be tuned toward least privilege.
Misconceptions include treating an operator as just an installer (installation is only the first capability), assuming every CRD comes with an operator, and believing operators must run inside the control plane.
Expect associate-level questions that ask what an operator consists of, which tasks it can automate, and how it differs from installing a Helm chart once.
Key points
- An operator combines custom resources with a controller that encodes operational knowledge.
- Typical tasks: deploy on demand, back up and restore, upgrade with schema changes, recover from failures.
- Operators are deployed as CRDs plus a controller that usually runs as an ordinary workload.
- Operator permissions should be tuned toward least privilege.
Three sample questions
8 CNPA questions on Kubernetes Operator Pattern for Integration, 8 with explanations. How practice works
Question 1
- A.A person on the platform team who reviews and approves every deployment to production
- B.Software that uses custom resources and controllers to automate a human operator's knowledge
- C.A Helm chart that installs an application once and is not involved after installation
- D.A modified build of the kube-apiserver that ships with additional built-in resource types
Correct answer: B
Sources: CNCF CNPA curriculum (CNPA_Curriculum.pdf), Kubernetes: Operator pattern
Question 2
- A.Run it only on a developer laptop that connects to the cluster with an admin kubeconfig file when needed
- B.Compile it into the kube-controller-manager binary and restart the control plane
- C.Add its CRD and its controller to the cluster, typically running the controller as a Deployment
- D.Install it as a kubelet plugin on every node so that it runs next to the workloads
Correct answer: C
Sources: CNCF CNPA curriculum (CNPA_Curriculum.pdf), Kubernetes: Operator pattern
Question 3
Select all that apply.
- A.Handling upgrades of the application code together with related changes such as database schemas
- B.Upgrading the Linux kernel of the control-plane nodes
- C.Taking and restoring backups of an application's state
- D.Replacing the API server's storage backend with a different database
Correct answers: A, C
Sources: CNCF CNPA curriculum (CNPA_Curriculum.pdf), Kubernetes: Operator pattern
Practice this topic
Focus mode keeps every question on Kubernetes Operator Pattern for Integration until you leave it. 10 free guest answers, then a free account; no credit card.
Or open CNPA practice across all topics.
Sources
The explanation above was checked against these official documents.
- Kubernetes documentation: Operator pattern (checked 2026-10-28)
- CNCF TAG App Delivery: Operator White Paper (checked 2026-10-28)
- Kubernetes documentation: Custom Resources (checked 2026-10-28)