100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 130
During an incident review, an operator must choose an accurate diagnosis. A team wants to apply a shared base with a staging-specific replica setting and labels without editing the reusable base manifests Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose THREE statements.
- Apply the selected overlay using `kubectl apply -k`.
- Add a NodePort Service to enable YAML patch rendering.
- Edit each live Pod directly to emulate a reusable Kustomize overlay.
- Use `kubectl apply -f` on the base and assume overlay patches are included.
- Inspect output using `kubectl kustomize` before applying the overlay.
- Keep common resources in a base and define an environment overlay with Kustomize.
Explanation
Correct Answers
A:the -k flag processes a kustomization directory and applies its generated objects.
E:the command renders the transformed resource definitions for review.
F:Kustomize composes patches and generators without modifying upstream YAML bases.
Incorrect Answers
B:Service type does not control Kustomize rendering.
C:live Pod edits do not maintain a declarative shared base/overlay source.
D:-f on only base YAML bypasses the overlay transformations.
Question 131
Before applying a change, the cluster team checks what the configuration actually permits. A team wants to apply a shared base with a staging-specific replica setting and labels without editing the reusable base manifests Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- Add a NodePort Service to enable YAML patch rendering.
- Edit each live Pod directly to emulate a reusable Kustomize overlay.
- Inspect output using `kubectl kustomize` before applying the overlay.
- Use `kubectl apply -f` on the base and assume overlay patches are included.
Explanation
Correct Answer
C:The command renders the transformed resource definitions for review. Before changing live state, distinguish this from 'Use `kubectl apply -f` on the base and assume overlay patches are included': -f on only base YAML bypasses the overlay transformations.
Incorrect Answers
A:Service type does not control Kustomize rendering. The prerequisite check or operation is 'Inspect output using `kubectl kustomize` before applying the overlay': The command renders the transformed resource definitions for review.
B:Live Pod edits do not maintain a declarative shared base/overlay source. The prerequisite check or operation is 'Inspect output using `kubectl kustomize` before applying the overlay': The command renders the transformed resource definitions for review.
D:-f on only base YAML bypasses the overlay transformations. The prerequisite check or operation is 'Inspect output using `kubectl kustomize` before applying the overlay': The command renders the transformed resource definitions for review.
Question 132
During a remediation drill, the team evaluates the safe next steps and their consequences. A team wants to apply a shared base with a staging-specific replica setting and labels without editing the reusable base manifests Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- Use `kubectl apply -f` on the base and assume overlay patches are included.
- Apply the selected overlay using `kubectl apply -k`.
- Add a NodePort Service to enable YAML patch rendering.
- Edit each live Pod directly to emulate a reusable Kustomize overlay.
Explanation
Correct Answer
B:The -k flag processes a kustomization directory and applies its generated objects. 'Use `kubectl apply -f` on the base and assume overlay patches are included' would not achieve the required recovery because -f on only base YAML bypasses the overlay transformations.
Incorrect Answers
A:-f on only base YAML bypasses the overlay transformations. Instead, 'Apply the selected overlay using `kubectl apply -k`' addresses the failure directly: The -k flag processes a kustomization directory and applies its generated objects.
C:Service type does not control Kustomize rendering. Instead, 'Apply the selected overlay using `kubectl apply -k`' addresses the failure directly: The -k flag processes a kustomization directory and applies its generated objects.
D:Live Pod edits do not maintain a declarative shared base/overlay source. Instead, 'Apply the selected overlay using `kubectl apply -k`' addresses the failure directly: The -k flag processes a kustomization directory and applies its generated objects.
Question 133
During an incident review, an operator must choose an accurate diagnosis. A platform team manages a chart release whose values need a controlled upgrade with a path back to an earlier revision Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose ONE statement.
- Use `kubectl drain` to roll back a Helm chart.
- Delete the namespace to preserve Helm revision history.
- Use the chart and release values to perform `helm upgrade`.
- Edit CoreDNS directly to change application chart values.
Explanation
Correct Answer
C:Helm upgrades release-managed Kubernetes resources from the specified chart and values.
Incorrect Answers
A:drain evicts workloads from a node and does not restore Helm release values.
B:namespace deletion destroys namespace-scoped resources instead of safely reverting a release.
D:CoreDNS is unrelated to the application Helm release values.
Question 134
Before applying a change, the cluster team checks what the configuration actually permits. A platform team manages a chart release whose values need a controlled upgrade with a path back to an earlier revision Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- Use `kubectl drain` to roll back a Helm chart.
- Delete the namespace to preserve Helm revision history.
- Edit CoreDNS directly to change application chart values.
- Review release history before choosing a rollback revision.
Explanation
Correct Answer
D:Helm records release revisions that can be used for controlled recovery.
Incorrect Answers
A:Drain evicts workloads from a node and does not restore Helm release values. The prerequisite check or operation is 'Review release history before choosing a rollback revision': Helm records release revisions that can be used for controlled recovery.
B:Namespace deletion destroys namespace-scoped resources instead of safely reverting a release. The prerequisite check or operation is 'Review release history before choosing a rollback revision': Helm records release revisions that can be used for controlled recovery.
C:CoreDNS is unrelated to the application Helm release values. The prerequisite check or operation is 'Review release history before choosing a rollback revision': Helm records release revisions that can be used for controlled recovery.
Question 135
During a remediation drill, the team evaluates the safe next steps and their consequences. A platform team manages a chart release whose values need a controlled upgrade with a path back to an earlier revision Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- Edit CoreDNS directly to change application chart values.
- Use `helm rollback` to return to an earlier release revision if required.
- Use `kubectl drain` to roll back a Helm chart.
- Delete the namespace to preserve Helm revision history.
Explanation
Correct Answer
B:rollback targets Helm release history rather than rolling back an unrelated Pod by name.
Incorrect Answers
A:CoreDNS is unrelated to the application Helm release values. Instead, 'Use `helm rollback` to return to an earlier release revision if required' addresses the failure directly: Rollback targets Helm release history rather than rolling back an unrelated Pod by name.
C:Drain evicts workloads from a node and does not restore Helm release values. Instead, 'Use `helm rollback` to return to an earlier release revision if required' addresses the failure directly: Rollback targets Helm release history rather than rolling back an unrelated Pod by name.
D:Namespace deletion destroys namespace-scoped resources instead of safely reverting a release. Instead, 'Use `helm rollback` to return to an earlier release revision if required' addresses the failure directly: Rollback targets Helm release history rather than rolling back an unrelated Pod by name.
Question 136
A platform team applies `kind: Widget` with apiVersion widgets.example.io/v1 but the API returns `no matches for kind Widget`. The operator container is healthy; the Widget CRD was not registered. What should happen first? Choose ONE answer.
- Install and establish the matching Widget CustomResourceDefinition.
- Add a Service exposing the operator on port 443.
- Restart the workload Deployment repeatedly.
- Change the user namespace without checking the CRD.
Explanation
Correct Answer
A:The API must register the custom group/version/kind before accepting objects of that custom kind.
Incorrect Answers
B:A Service endpoint does not create the missing CRD type.
C:Workload restart cannot register an absent custom API type.
D:A different namespace does not make an unregistered API kind known.
Question 137
Before applying a change, the cluster team checks what the configuration actually permits. An Operator installation includes a CustomResourceDefinition, but an operator-specific resource kind is not recognized before the CRD exists Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- Create a ClusterIP Service to register arbitrary Kubernetes kinds.
- Verify the custom resource API is discoverable after CRD registration.
- Edit kube-proxy flags to register the operator custom kind.
- Rely on a custom Pod label to create new REST API endpoints.
Explanation
Correct Answer
B:API discovery confirms the server now serves the declared custom resource endpoint.
Incorrect Answers
A:Services expose Pods; they do not extend the API server type system.
C:kube-proxy manages service traffic, not CustomResourceDefinition discovery.
D:labels are metadata used for selection and do not define new API kinds.
Question 138
During a remediation drill, the team evaluates the safe next steps and their consequences. An Operator installation includes a CustomResourceDefinition, but an operator-specific resource kind is not recognized before the CRD exists Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- Create a ClusterIP Service to register arbitrary Kubernetes kinds.
- Edit kube-proxy flags to register the operator custom kind.
- Rely on a custom Pod label to create new REST API endpoints.
- Apply custom resource instances only after the CRD is established.
Explanation
Correct Answer
D:creating an unknown Kind before its resource definition is registered fails.
Incorrect Answers
A:Services expose Pods; they do not extend the API server type system. Instead, 'Apply custom resource instances only after the CRD is established' addresses the failure directly: Creating an unknown Kind before its resource definition is registered fails.
B:Kube-proxy manages service traffic, not CustomResourceDefinition discovery. Instead, 'Apply custom resource instances only after the CRD is established' addresses the failure directly: Creating an unknown Kind before its resource definition is registered fails.
C:Labels are metadata used for selection and do not define new API kinds. Instead, 'Apply custom resource instances only after the CRD is established' addresses the failure directly: Creating an unknown Kind before its resource definition is registered fails.
Question 139
During an incident review, an operator must choose an accurate diagnosis. A controller watches a custom resource and is expected to converge actual workloads toward the desired specification after drift Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose TWO statements.
- Inspect the controller logs and custom resource status when reconciliation stops.
- Ensure the custom controller has watch and write RBAC permissions for the objects it reconciles.
- Delete every ownerReference so the operator can find its child objects.
- Restart CoreDNS as the universal repair for an RBAC-denied operator.
- Change service type to LoadBalancer to grant custom controller write permissions.
Explanation
Correct Answers
A:reconcile failures are often visible in controller diagnostics and status conditions.
B:an Operator needs API authorization to observe desired state and repair managed resources.
Incorrect Answers
C:ownership and watches support object lifecycle; indiscriminate deletion damages reconciliation.
D:DNS is unrelated to authorization failures on API writes.
E:Service exposure does not grant RBAC verbs to controllers.
Question 140
Before applying a change, the cluster team checks what the configuration actually permits. A controller watches a custom resource and is expected to converge actual workloads toward the desired specification after drift Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose THREE statements.
- Restart CoreDNS as the universal repair for an RBAC-denied operator.
- Ensure the custom controller has watch and write RBAC permissions for the objects it reconciles.
- Delete every ownerReference so the operator can find its child objects.
- Inspect the controller logs and custom resource status when reconciliation stops.
- Change service type to LoadBalancer to grant custom controller write permissions.
- Keep desired state in the custom resource rather than treating child Pod edits as durable.
Explanation
Correct Answers
B:An Operator needs API authorization to observe desired state and repair managed resources. Before changing live state, distinguish this from 'Restart CoreDNS as the universal repair for an RBAC-denied operator': DNS is unrelated to authorization failures on API writes.
D:Reconcile failures are often visible in controller diagnostics and status conditions. Before changing live state, distinguish this from 'Restart CoreDNS as the universal repair for an RBAC-denied operator': DNS is unrelated to authorization failures on API writes.
F:reconciliation will typically overwrite manual child-object drift to match the custom specification.
Incorrect Answers
A:DNS is unrelated to authorization failures on API writes. The prerequisite check or operation is 'Keep desired state in the custom resource rather than treating child Pod edits as durable': Reconciliation will typically overwrite manual child-object drift to match the custom specification.
C:Ownership and watches support object lifecycle; indiscriminate deletion damages reconciliation. The prerequisite check or operation is 'Keep desired state in the custom resource rather than treating child Pod edits as durable': Reconciliation will typically overwrite manual child-object drift to match the custom specification.
E:Service exposure does not grant RBAC verbs to controllers. The prerequisite check or operation is 'Inspect the controller logs and custom resource status when reconciliation stops': Reconcile failures are often visible in controller diagnostics and status conditions.
Certified Kubernetes Administrator (CKA) Practice Tests