CNCF CKA Practice Test 10
Question 90
A reviewer wants proof that this issue was corrected: A Service has healthy endpoints but its targetPort points to 9090 while Pods listen on 8080. Which observed result is the STRONGEST evidence?
- The API server static Pod starts and kubectl connectivity returns.
- The static Pod reappears and the component starts successfully.
- Connections through the Service reach the application on the correct port.
- New Pods obtain unique Pod IPs without collision after capacity remediation.
Explanation
Correct Answer
C:Connections through the Service reach the application on the correct port. The corresponding action is: Correct targetPort or named container port mapping to the actual listener.
Incorrect Answers
A:The API server static Pod starts and kubectl connectivity returns. This is evidence for a separate case (All kubectl API calls fail following an edit to kube-apiserver static Pod YAML.), not for the target problem. An appropriate validation would be: Connections through the Service reach the application on the correct port.
B:The static Pod reappears and the component starts successfully. This is evidence for a separate case (After a malformed YAML edit, kubelet stops running kube-controller-manager.), not for the target problem. An appropriate validation would be: Connections through the Service reach the application on the correct port.
D:New Pods obtain unique Pod IPs without collision after capacity remediation. This is evidence for a separate case (A CNI plugin fails to allocate Pod addresses as a node's Pod CIDR fills.), not for the target problem. An appropriate validation would be: Connections through the Service reach the application on the correct port.
Question 91
During remediation, this failure appears: A Deployment consumes a ConfigMap through env vars and existing Pods still have old values. Which action is the LEAST defensible?
- Assume every env var inside an existing container changes instantly on ConfigMap edits.
- Use a staged rollout and observe readiness before full deployment.
- Record a rollback approach before high-impact control-plane changes.
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
Explanation
Correct Answer
A:Assume every env var inside an existing container changes instantly on ConfigMap edits. This shortcut fails to address the root cause and risks a worse outcome. Container environment variables are set at start and do not update in place. A safer course is: Update the ConfigMap and roll out fresh Pods when environment variables need refresh.
Incorrect Answers
B:Use a staged rollout and observe readiness before full deployment. Staged changes reduce simultaneous loss of healthy replicas. For the stated case, a focused correction is: Update the ConfigMap and roll out fresh Pods when environment variables need refresh.
C:Record a rollback approach before high-impact control-plane changes. Deliberate rollback improves operational recoverability. For the stated case, a focused correction is: Update the ConfigMap and roll out fresh Pods when environment variables need refresh.
D:Inspect the exact Secret or ConfigMap reference without exposing credentials. Configuration errors can be diagnosed without leaking sensitive data. For the stated case, a focused correction is: Update the ConfigMap and roll out fresh Pods when environment variables need refresh.
Question 92
Following this Kubernetes scenario, an operator validates remediation: StatefulSet peers must discover individual Pod DNS records rather than one virtual Service IP. Which measurable outcome shows success?
- Service IP allocation matches the supported IPv4/IPv6 policy and connectivity works on desired families.
- Only the intended client Pods in team-a can reach the protected API.
- The hostNetwork Pod resolves Kubernetes Service records as intended.
- DNS returns individual eligible Pod endpoint addresses and stable peer identities.
Explanation
Correct Answer
D:DNS returns individual eligible Pod endpoint addresses and stable peer identities. The corresponding action is: Use a headless Service with clusterIP None matching the StatefulSet selector.
Incorrect Answers
A:Service IP allocation matches the supported IPv4/IPv6 policy and connectivity works on desired families. This is evidence for a separate case (A dual-stack cluster Service was created with only IPv4 despite an IPv6 requirement.), not for the target problem. An appropriate validation would be: DNS returns individual eligible Pod endpoint addresses and stable peer identities.
B:Only the intended client Pods in team-a can reach the protected API. This is evidence for a separate case (An API must accept ingress only from Pods labeled role=client in namespace team-a.), not for the target problem. An appropriate validation would be: DNS returns individual eligible Pod endpoint addresses and stable peer identities.
C:The hostNetwork Pod resolves Kubernetes Service records as intended. This is evidence for a separate case (A hostNetwork Pod cannot resolve cluster Services using its inherited host resolver configuration.), not for the target problem. An appropriate validation would be: DNS returns individual eligible Pod endpoint addresses and stable peer identities.
Question 93
The team is reviewing this failure mode: A custom resource cannot be created because the API server does not recognize its kind. Which statement explains WHY the recommended control works?
- Graceful node maintenance coordinates schedulability and safe workload eviction.
- The CRI is the node-side interface for container lifecycle management.
- CRDs extend Kubernetes API schemas before custom instances can be created.
- The CA pin guards bootstrap against connecting to an unintended cluster.
Explanation
Correct Answer
C:CRDs extend Kubernetes API schemas before custom instances can be created. This principle explains the targeted result. A concrete response is: Install or correct the matching CRD, then verify the API discovery before applying the custom object.
Incorrect Answers
A:Graceful node maintenance coordinates schedulability and safe workload eviction. This principle is useful for another case (A worker requires OS maintenance while running replicated customer Pods.), but does not explain the most direct solution here. The governing consideration is: CRDs extend Kubernetes API schemas before custom instances can be created.
B:This principle is useful for another case (A node image update changes the runtime socket and kubelet can no longer create containers.), but does not explain the most direct solution here. CRDs extend Kubernetes API schemas before custom instances can be created.
D:This principle is useful for another case (A worker join fails with a discovery CA certificate hash mismatch.), but does not explain the most direct solution here. CRDs extend Kubernetes API schemas before custom instances can be created.
Question 94
An engineer reports that this problem was fixed: A Gateway API route in namespace web needs to refer to a backend Service in namespace shared. What specific result should an independent reviewer expect?
- The route resolves the backend reference without opening unrelated namespace access.
- Service IP allocation matches the supported IPv4/IPv6 policy and connectivity works on desired families.
- Disallowed outbound connections fail while approved egress stays functional.
- Cross-node Pod-to-Pod communication succeeds without using host network mode.
Explanation
Correct Answer
A:The route resolves the backend reference without opening unrelated namespace access. The corresponding action is: Create an authorized ReferenceGrant in the backend namespace allowing the specific cross-namespace reference.
Incorrect Answers
B:Service IP allocation matches the supported IPv4/IPv6 policy and connectivity works on desired families. This is evidence for a separate case (A dual-stack cluster Service was created with only IPv4 despite an IPv6 requirement.), not for the target problem. An appropriate validation would be: The route resolves the backend reference without opening unrelated namespace access.
C:Disallowed outbound connections fail while approved egress stays functional. This is evidence for a separate case (A team thinks applying an ingress-only policy prevents Pods from sending outbound traffic.), not for the target problem. An appropriate validation would be: The route resolves the backend reference without opening unrelated namespace access.
D:Cross-node Pod-to-Pod communication succeeds without using host network mode. This is evidence for a separate case (Pods on two different workers cannot reach one another but Pod traffic works within a node.), not for the target problem. An appropriate validation would be: The route resolves the backend reference without opening unrelated namespace access.
Question 95
A cluster administrator must address the following case: Three replicas should avoid sharing one host to improve failure tolerance. Select TWO appropriate statements, one corrective action and one observable outcome.
- Validation: The Job reaches Complete after desired successful executions.
- Remediation: Configure pod anti-affinity using appropriate topologyKey and workload labels.
- Remediation: Set all replicas to a single explicit nodeName and call them redundant.
- Remediation: Adjust realistic resource requests or add capacity before scheduling.
- Validation: Replicas occupy separate suitable nodes when capacity allows.
Explanation
Correct Answers
B:Remediation: Configure pod anti-affinity using appropriate topologyKey and workload labels. The remedy targets the reported failure rather than a different subsystem. Pod anti-affinity can spread replicas according to matching Pod labels.
E:Validation: Replicas occupy separate suitable nodes when capacity allows. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
A:Validation: The Job reaches Complete after desired successful executions. This evidence applies to a different condition (A batch import must succeed once and then stop rather than keep restarting forever.), and would not verify this target fix: Three replicas should avoid sharing one host to improve failure tolerance.
C:Remediation: Set all replicas to a single explicit nodeName and call them redundant. This is the unsafe shortcut for the case, not an acceptable intervention. Pod anti-affinity can spread replicas according to matching Pod labels.
D:Remediation: Adjust realistic resource requests or add capacity before scheduling. This action targets a different condition (A Pod is Pending because requested memory exceeds all node allocatable resources.), not this reported failure: Three replicas should avoid sharing one host to improve failure tolerance.
Question 96
An operations team tests its response to this finding: A PVC requests storageClassName fast but no PV is created after several minutes. Which outcome most clearly establishes that the fix worked?
- The Pod's volume mounts successfully with its namespace-local claim.
- New eligible PVCs select the intended default class.
- A new PV is dynamically created and the claim becomes Bound.
- The expected PV binds to the intended PVC without unrelated provisioning.
Explanation
Correct Answer
C:A new PV is dynamically created and the claim becomes Bound. The corresponding action is: Verify the fast StorageClass provisioner and associated CSI controller health.
Incorrect Answers
A:The Pod's volume mounts successfully with its namespace-local claim. This is evidence for a separate case (A Pod reports FailedMount because its referenced PVC exists in a different namespace.), not for the target problem. An appropriate validation would be: A new PV is dynamically created and the claim becomes Bound.
B:New eligible PVCs select the intended default class. This is evidence for a separate case (New claims omit storageClassName and use an unintended slow storage provider.), not for the target problem. An appropriate validation would be: A new PV is dynamically created and the claim becomes Bound.
D:The expected PV binds to the intended PVC without unrelated provisioning. This is evidence for a separate case (A manually created PV is available but a PVC specifying an unmatched StorageClass never binds.), not for the target problem. An appropriate validation would be: A new PV is dynamically created and the claim becomes Bound.
Question 97
An engineer needs to justify a change for this issue: ReplicaSets stop creating replacement Pods after kube-controller-manager crashes. Which technical reason is MOST relevant?
- Troubleshooting should establish an evidence-based sequence before changes.
- Pending Pod placement depends on a functioning scheduler as well as available resources.
- Kubernetes controllers implement desired-state reconciliation.
- Resource metrics API availability depends on healthy metrics-server integration.
Explanation
Correct Answer
C:Kubernetes controllers implement desired-state reconciliation. This principle explains the targeted result. A concrete response is: Recover the controller-manager static Pod and verify its health and API permissions.
Incorrect Answers
A:Troubleshooting should establish an evidence-based sequence before changes. This principle is useful for another case (An incident responder sees Pod recreation, image pull and readiness failures and needs the order of events.), but does not explain the most direct solution here. The governing consideration is: Kubernetes controllers implement desired-state reconciliation.
B:Pending Pod placement depends on a functioning scheduler as well as available resources. This principle is useful for another case (New Pods remain Pending even with free node resources and kube-scheduler is unhealthy.), but does not explain the most direct solution here. The governing consideration is: Kubernetes controllers implement desired-state reconciliation.
D:Resource metrics API availability depends on healthy metrics-server integration. This principle is useful for another case (kubectl top nodes fails with Metrics API not available.), but does not explain the most direct solution here. The governing consideration is: Kubernetes controllers implement desired-state reconciliation.
Question 98
Select TWO technically sound statements for this situation, covering remediation and validation: Two StatefulSet replicas accidentally share one manually named PVC and interfere with each other.
- Validation: Each ordinal has its own claim and retains data across Pod recreation.
- Remediation: Mount one shared emptyDir in every Pod and call it durable per-replica storage.
- Validation: Database files survive Pod recreation and remount of the persistent volume.
- Remediation: Verify the fast StorageClass provisioner and associated CSI controller health.
- Remediation: Use StatefulSet volumeClaimTemplates for per-replica persistent storage.
Explanation
Correct Answers
A:Validation: Each ordinal has its own claim and retains data across Pod recreation. This result verifies the behavior the remediation is supposed to restore.
E:Remediation: Use StatefulSet volumeClaimTemplates for per-replica persistent storage. The remedy targets the reported failure rather than a different subsystem. StatefulSet claim templates provision stable volumes associated with ordinal identities.
Incorrect Answers
B:Remediation: Mount one shared emptyDir in every Pod and call it durable per-replica storage. This is the unsafe shortcut for the case, not an acceptable intervention. StatefulSet claim templates provision stable volumes associated with ordinal identities.
C:Validation: Database files survive Pod recreation and remount of the persistent volume. This evidence applies to a different condition (A team stores a critical database file in an emptyDir volume and loses it after Pod replacement.), and would not verify this target fix: Two StatefulSet replicas accidentally share one manually named PVC and interfere with each other.
D:Remediation: Verify the fast StorageClass provisioner and associated CSI controller health. This action targets a different condition (A PVC requests storageClassName fast but no PV is created after several minutes.), not this reported failure: Two StatefulSet replicas accidentally share one manually named PVC and interfere with each other.
Question 99
During an operational review, this fact emerges: A PVC stays Pending because it asks for 20Gi while the only matching PV has 10Gi. Which Kubernetes behavior MOST directly governs the result?
- Default StorageClasses influence requests that do not explicitly select a class.
- PVC binding requires matching capacity, access mode and other volume constraints.
- emptyDir is tied to a Pod lifetime and is not durable storage.
- ReadWriteOnce generally constrains mounting read-write to one node, not universally to one Pod.
Explanation
Correct Answer
B:PVC binding requires matching capacity, access mode and other volume constraints. This principle explains the targeted result. A concrete response is: Provide a compatible PV or a suitable StorageClass provisioner with enough requested capacity.
Incorrect Answers
A:This principle is useful for another case (New claims omit storageClassName and use an unintended slow storage provider.), but does not explain the most direct solution here. PVC binding requires matching capacity, access mode and other volume constraints.
C:This principle is useful for another case (A team stores a critical database file in an emptyDir volume and loses it after Pod replacement.), but does not explain the most direct solution here. PVC binding requires matching capacity, access mode and other volume constraints.
D:This principle is useful for another case (Two Pods on different nodes try to attach the same RWO block volume and one remains Pending.), but does not explain the most direct solution here. PVC binding requires matching capacity, access mode and other volume constraints.
Question 100
A Kubernetes operations team observes the following: A custom resource cannot be created because the API server does not recognize its kind. What is the MOST appropriate corrective action?
- Correct the kubelet CRI endpoint and verify runtime socket availability.
- Initialize kubeadm with a Pod CIDR compatible with the selected CNI and deploy that CNI.
- Install or correct the matching CRD, then verify the API discovery before applying the custom object.
- Check effective permissions using impersonation rather than relying on the YAML file alone.
Explanation
Correct Answer
C:Install or correct the matching CRD, then verify the API discovery before applying the custom object. This correction targets the specific failure. CRDs extend Kubernetes API schemas before custom instances can be created. A successful result is: kubectl recognizes the new kind and the custom resource can be admitted.
Incorrect Answers
A:This procedure belongs to a different Kubernetes condition (A node image update changes the runtime socket and kubelet can no longer create containers.). Correct the kubelet CRI endpoint and verify runtime socket availability.
B:This procedure belongs to a different Kubernetes condition (A new control-plane node initializes but Pods will not receive Pod network addresses.). Initialize kubeadm with a Pod CIDR compatible with the selected CNI and deploy that CNI.
D:This procedure belongs to a different Kubernetes condition (An admin changed RoleBindings and wants proof the operator cannot create deployments.). Check effective permissions using impersonation rather than relying on the YAML file alone.