CNCF CKA Practice Test 74
Question 730
During cluster maintenance, an engineer finds this problem: A PVC stays Pending because it asks for 20Gi while the only matching PV has 10Gi. Which next action is technically justified?
- Provide a compatible PV or a suitable StorageClass provisioner with enough requested capacity.
- Enable supported volume expansion and increase PVC requested storage safely.
- Use ReadWriteOncePod with a compatible CSI environment when strict single-Pod ownership is required.
- Use StatefulSet volumeClaimTemplates for per-replica persistent storage.
Explanation
Correct Answer
A:Provide a compatible PV or a suitable StorageClass provisioner with enough requested capacity. This correction targets the specific failure. PVC binding requires matching capacity, access mode and other volume constraints. A successful result is: The PVC becomes Bound to a compatible volume and its Pod can mount it.
Incorrect Answers
B:Enable supported volume expansion and increase PVC requested storage safely. This procedure belongs to a different Kubernetes condition (A PVC is nearly full and its backing CSI driver supports growth.). It does not directly resolve the observed failure. The targeted action is: Provide a compatible PV or a suitable StorageClass provisioner with enough requested capacity.
C:Use ReadWriteOncePod with a compatible CSI environment when strict single-Pod ownership is required.
D:Use StatefulSet volumeClaimTemplates for per-replica persistent storage. This procedure belongs to a different Kubernetes condition (Two StatefulSet replicas accidentally share one manually named PVC and interfere with each other.). It does not directly resolve the observed failure. The targeted action is: Provide a compatible PV or a suitable StorageClass provisioner with enough requested capacity.
Question 731
During cluster maintenance, an engineer finds this problem: A newly deployed Service selector uses app=front while Pods are labeled app=frontend. Which next action is technically justified?
- Inspect kube-proxy or the installed replacement dataplane on the affected node.
- Read the prior container instance logs using the --previous option.
- Correct the Service selector to match actual intended backend labels.
- Correct targetPort or named container port mapping to the actual listener.
Explanation
Correct Answer
C:Correct the Service selector to match actual intended backend labels. This correction targets the specific failure. Service selectors must match label key/value pairs exactly. A successful result is: EndpointSlices contain the expected ready frontend Pods and requests succeed.
Incorrect Answers
A:Inspect kube-proxy or the installed replacement dataplane on the affected node. This procedure belongs to a different Kubernetes condition (Service ClusterIP connections fail on one node even though direct Pod IP connections work.). It does not directly resolve the observed failure. The targeted action is: Correct the Service selector to match actual intended backend labels.
B:Read the prior container instance logs using the --previous option. This procedure belongs to a different Kubernetes condition (An app container restarts so quickly that current kubectl logs show only its latest attempt.). It does not directly resolve the observed failure. The targeted action is: Correct the Service selector to match actual intended backend labels.
D:Correct targetPort or named container port mapping to the actual listener. This procedure belongs to a different Kubernetes condition (A Service has healthy endpoints but its targetPort points to 9090 while Pods listen on 8080.). It does not directly resolve the observed failure. The targeted action is: Correct the Service selector to match actual intended backend labels.
Question 732
A platform engineer receives this incident: A Deployment's Pods report CreateContainerConfigError due to a missing Secret. Which change should be made first after validating the facts?
- Create the intended Secret securely or correct secretKeyRef and namespace.
- Inspect aggregated container stdout/stderr using kubectl logs or the configured logging pipeline.
- Find and correct backend readiness or selector mismatch before changing external routing.
- Correct the Service selector to match actual intended backend labels.
Explanation
Correct Answer
A:Create the intended Secret securely or correct secretKeyRef and namespace. This correction targets the specific failure. Kubernetes Secret references are namespaced and need valid names and keys. A successful result is: Pods start with the authorized Secret and no sensitive value is printed in logs.
Incorrect Answers
B:Inspect aggregated container stdout/stderr using kubectl logs or the configured logging pipeline. This procedure belongs to a different Kubernetes condition (An app writes errors to stderr but a team searches only a file in the container image.). It does not directly resolve the observed failure. The targeted action is: Create the intended Secret securely or correct secretKeyRef and namespace.
C:Find and correct backend readiness or selector mismatch before changing external routing. This procedure belongs to a different Kubernetes condition (A Service DNS resolves but connections fail and EndpointSlices contain zero ready endpoints.). It does not directly resolve the observed failure. The targeted action is: Create the intended Secret securely or correct secretKeyRef and namespace.
D:Correct the Service selector to match actual intended backend labels. This procedure belongs to a different Kubernetes condition (A newly deployed Service selector uses app=front while Pods are labeled app=frontend.). It does not directly resolve the observed failure. The targeted action is: Create the intended Secret securely or correct secretKeyRef and namespace.
Question 733
Consider the following Kubernetes administration case: Ingress answers HTTPS but returns 404 for /api while backend Service works locally. Which principle BEST explains the intended solution?
- Control-plane API responsiveness depends on healthy etcd persistence and quorum.
- Node readiness is driven by kubelet heartbeats and node health signals.
- Ingress controller routing matches requested host/path against explicit rules.
- Expired credentials can interrupt API clients while the server remains healthy.
Explanation
Correct Answer
C:Ingress controller routing matches requested host/path against explicit rules. This principle explains the targeted result. A concrete response is: Correct the Ingress host, path and ingressClass routing configuration.
Incorrect Answers
A:Control-plane API responsiveness depends on healthy etcd persistence and quorum. This principle is useful for another case (The API server is slow and logs show etcd request timeouts.), but does not explain the most direct solution here. The governing consideration is: Ingress controller routing matches requested host/path against explicit rules.
B:Node readiness is driven by kubelet heartbeats and node health signals. This principle is useful for another case (A worker unexpectedly becomes NotReady following a network maintenance event.), but does not explain the most direct solution here. The governing consideration is: Ingress controller routing matches requested host/path against explicit rules.
D:Expired credentials can interrupt API clients while the server remains healthy. This principle is useful for another case (kubectl reports x509 certificate expired after months of successful access.), but does not explain the most direct solution here. The governing consideration is: Ingress controller routing matches requested host/path against explicit rules.
Question 734
During remediation, this failure appears: Two StatefulSet replicas accidentally share one manually named PVC and interfere with each other. Which action is the LEAST defensible?
- Mount one shared emptyDir in every Pod and call it durable per-replica storage.
- Keep backups or change history for potentially destructive maintenance.
- Validate a change with a repeatable positive and negative test.
- Check applicable component version compatibility before upgrading.
Explanation
Correct Answer
A:Mount one shared emptyDir in every Pod and call it durable per-replica storage. StatefulSet claim templates provision stable volumes associated with ordinal identities. A safer course is: Use StatefulSet volumeClaimTemplates for per-replica persistent storage.
Incorrect Answers
B:Keep backups or change history for potentially destructive maintenance. Recovery planning reduces the impact of a faulty change. For the stated case, a focused correction is: Use StatefulSet volumeClaimTemplates for per-replica persistent storage.
C:Validate a change with a repeatable positive and negative test. A testable outcome provides stronger evidence than intent alone. For the stated case, a focused correction is: Use StatefulSet volumeClaimTemplates for per-replica persistent storage.
D:Check applicable component version compatibility before upgrading. Supported version relationships prevent avoidable upgrade failures. For the stated case, a focused correction is: Use StatefulSet volumeClaimTemplates for per-replica persistent storage.
Question 735
The team is reviewing this failure mode: Two API servers run but workloads use one control-plane node IP as the endpoint. Which statement explains WHY the recommended control works?
- A highly available control plane needs a stable reachable API endpoint.
- kubectl uses current-context, user and cluster mappings that must be validated.
- ServiceAccount identity does not automatically confer application-specific API permissions.
- Kubelet automatically manages static Pods from its configured manifest path.
Explanation
Correct Answer
A:A highly available control plane needs a stable reachable API endpoint. This principle explains the targeted result. A concrete response is: Configure a stable shared controlPlaneEndpoint behind a correctly configured API server load balancer.
Incorrect Answers
B:This principle is useful for another case (A kubectl command is applying objects in the wrong environment after a context switch.), but does not explain the most direct solution here. A highly available control plane needs a stable reachable API endpoint.
C:ServiceAccount identity does not automatically confer application-specific API permissions. This principle is useful for another case (A controller ServiceAccount needs to read ConfigMaps only in team-a.), but does not explain the most direct solution here. The governing consideration is: A highly available control plane needs a stable reachable API endpoint.
D:This principle is useful for another case (The kube-scheduler static Pod disappeared after someone edited its manifest incorrectly.), but does not explain the most direct solution here.
Question 736
An administrator is investigating this situation: An operator receives HTTP 403 Forbidden from the API server when listing Secrets. Which action BEST resolves the underlying issue?
- Add a specific policy allowing the expected source and destination labels and port.
- Inspect kubeconfig client credentials and renew valid certificates through the approved procedure.
- Recover the supported metrics-server installation and its APIService registration.
- Diagnose RBAC authorization and effective identity rather than treating it as a network outage.
Explanation
Correct Answer
D:Diagnose RBAC authorization and effective identity rather than treating it as a network outage. This correction targets the specific failure. An API 403 indicates authorization failure after reaching the API endpoint. A successful result is: Permitted operations succeed while unauthorized Secret access remains forbidden.
Incorrect Answers
A:Add a specific policy allowing the expected source and destination labels and port. This procedure belongs to a different Kubernetes condition (After a default-deny NetworkPolicy, a required API-to-database connection times out.). It does not directly resolve the observed failure. The targeted action is: Diagnose RBAC authorization and effective identity rather than treating it as a network outage.
B:Inspect kubeconfig client credentials and renew valid certificates through the approved procedure.
C:Recover the supported metrics-server installation and its APIService registration. This procedure belongs to a different Kubernetes condition (kubectl top nodes fails with Metrics API not available.). It does not directly resolve the observed failure. The targeted action is: Diagnose RBAC authorization and effective identity rather than treating it as a network outage.
Question 737
Following this Kubernetes scenario, an operator validates remediation: etcd returns a no-space alarm after excessive database growth. Which measurable outcome shows success?
- ClusterIP routing recovers without changing application code or Pod IPs.
- etcd accepts writes after storage alarms are correctly cleared.
- CoreDNS becomes Ready and service DNS lookups succeed.
- The filesystem mounts and the Pod transitions to Running.
Explanation
Correct Answer
B:Etcd accepts writes after storage alarms are correctly cleared. The corresponding action is: Inspect alarms and backend size, compact and defragment safely as documented, and restore capacity.
Incorrect Answers
A:ClusterIP routing recovers without changing application code or Pod IPs. This is evidence for a separate case (Service ClusterIP connections fail on one node even though direct Pod IP connections work.), not for the target problem. An appropriate validation would be: etcd accepts writes after storage alarms are correctly cleared.
C:CoreDNS becomes Ready and service DNS lookups succeed. This is evidence for a separate case (Pods cannot resolve cluster Service names and CoreDNS Pods are CrashLoopBackOff.), not for the target problem. An appropriate validation would be: etcd accepts writes after storage alarms are correctly cleared.
D:The filesystem mounts and the Pod transitions to Running. This is evidence for a separate case (A Pod remains ContainerCreating with MountVolume.SetUp failed errors.), not for the target problem. An appropriate validation would be: etcd accepts writes after storage alarms are correctly cleared.
Question 738
A platform engineer receives this incident: A node image update changes the runtime socket and kubelet can no longer create containers. Which change should be made first after validating the facts?
- Check effective permissions using impersonation rather than relying on the YAML file alone.
- 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.
- Use drain when eviction is needed; cordon alone only prevents new scheduling.
Explanation
Correct Answer
B:Correct the kubelet CRI endpoint and verify runtime socket availability. This correction targets the specific failure. The CRI is the node-side interface for container lifecycle management. A successful result is: Kubelet connects successfully to the runtime and new Pods start.
Incorrect Answers
A:Check effective permissions using impersonation rather than relying on the YAML file alone. This procedure belongs to a different Kubernetes condition (An admin changed RoleBindings and wants proof the operator cannot create deployments.). It does not directly resolve the observed failure. The targeted action is: Correct the kubelet CRI endpoint and verify runtime socket availability.
C:Initialize kubeadm with a Pod CIDR compatible with the selected CNI and deploy that CNI. This procedure belongs to a different Kubernetes condition (A new control-plane node initializes but Pods will not receive Pod network addresses.). It does not directly resolve the observed failure. The targeted action is: Correct the kubelet CRI endpoint and verify runtime socket availability.
D:Use drain when eviction is needed; cordon alone only prevents new scheduling. This procedure belongs to a different Kubernetes condition (An administrator cordoned a node but existing Pods are still running on it.). It does not directly resolve the observed failure. The targeted action is: Correct the kubelet CRI endpoint and verify runtime socket availability.
Question 739
An engineer reports that this problem was fixed: Frontend Pods can unexpectedly connect to every Pod in a sensitive namespace. What specific result should an independent reviewer expect?
- Service IP allocation matches the supported IPv4/IPv6 policy and connectivity works on desired families.
- Unauthorized inbound connections fail while explicitly allowed paths work.
- Cross-node Pod-to-Pod communication succeeds without using host network mode.
- The Pod resolves the test hostname through the specified nameserver.
Explanation
Correct Answer
B:Unauthorized inbound connections fail while explicitly allowed paths work. The corresponding action is: Create a default-deny ingress NetworkPolicy for the sensitive namespace, then allow required traffic.
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: Unauthorized inbound connections fail while explicitly allowed paths work.
C: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: Unauthorized inbound connections fail while explicitly allowed paths work.
D:The Pod resolves the test hostname through the specified nameserver. This is evidence for a separate case (A Pod must resolve a private test hostname using a custom resolver without changing cluster-wide DNS.), not for the target problem. An appropriate validation would be: Unauthorized inbound connections fail while explicitly allowed paths work.
Question 740
A review finds this Kubernetes issue: A newly deployed Service selector uses app=front while Pods are labeled app=frontend. Which suggestion would make troubleshooting or security worse?
- Review controller logs and resource status to understand reconciliation failures.
- Use a staged rollout and observe readiness before full deployment.
- Keep backups or change history for potentially destructive maintenance.
- Add more frontend replicas without correcting the label mismatch.
Explanation
Correct Answer
D:Add more frontend replicas without correcting the label mismatch. Service selectors must match label key/value pairs exactly. A safer course is: Correct the Service selector to match actual intended backend labels.
Incorrect Answers
A:Review controller logs and resource status to understand reconciliation failures. Controller evidence can distinguish desired state from observed failure. For the stated case, a focused correction is: Correct the Service selector to match actual intended backend labels.
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: Correct the Service selector to match actual intended backend labels.
C:Keep backups or change history for potentially destructive maintenance. Recovery planning reduces the impact of a faulty change. For the stated case, a focused correction is: Correct the Service selector to match actual intended backend labels.