CNCF CKA Practice Test 69
Question 680
A review finds this Kubernetes issue: An application fails because its database initialization must happen before the main process. Which suggestion would make troubleshooting or security worse?
- Record a rollback approach before high-impact control-plane changes.
- Check applicable component version compatibility before upgrading.
- Use a staged rollout and observe readiness before full deployment.
- Put initialization into an always-running sidecar and call it guaranteed prestart.
Explanation
Correct Answer
D:Put initialization into an always-running sidecar and call it guaranteed prestart. Init containers sequence prerequisite work before ordinary containers. A safer course is: Use an initContainer for prerequisite checks or initialization steps.
Incorrect Answers
A:Record a rollback approach before high-impact control-plane changes. Deliberate rollback improves operational recoverability. For the stated case, a focused correction is: Use an initContainer for prerequisite checks or initialization steps.
B:Check applicable component version compatibility before upgrading. Supported version relationships prevent avoidable upgrade failures. For the stated case, a focused correction is: Use an initContainer for prerequisite checks or initialization steps.
C: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: Use an initContainer for prerequisite checks or initialization steps.
Question 681
Following this Kubernetes scenario, an operator validates remediation: A CPU-bound deployment needs to grow replica count during sustained load. Which measurable outcome shows success?
- A collector runs on each eligible node including newly joined nodes.
- Replica count rises under load within min/max settings and scales down when demand drops.
- Replicas occupy separate suitable nodes when capacity allows.
- The Job reaches Complete after desired successful executions.
Explanation
Correct Answer
B:Replica count rises under load within min/max settings and scales down when demand drops. The corresponding action is: Configure a HorizontalPodAutoscaler with CPU utilization targets and appropriate limits.
Incorrect Answers
A:A collector runs on each eligible node including newly joined nodes. This is evidence for a separate case (Each worker needs exactly one log-collector Pod when nodes are added.), not for the target problem. An appropriate validation would be: Replica count rises under load within min/max settings and scales down when demand drops.
C:Replicas occupy separate suitable nodes when capacity allows. This is evidence for a separate case (Three replicas should avoid sharing one host to improve failure tolerance.), not for the target problem. An appropriate validation would be: Replica count rises under load within min/max settings and scales down when demand drops.
D:The Job reaches Complete after desired successful executions. This is evidence for a separate case (A batch import must succeed once and then stop rather than keep restarting forever.), not for the target problem. An appropriate validation would be: Replica count rises under load within min/max settings and scales down when demand drops.
Question 682
A Kubernetes operations team observes the following: The kube-scheduler static Pod disappeared after someone edited its manifest incorrectly. What is the MOST appropriate corrective action?
- Install and configure a CNI compatible with the cluster Pod CIDR.
- Repair the scheduler static Pod YAML in the kubelet watched manifest directory.
- Inspect a pinned chart with helm template or helm diff style review before installation.
- Use Kustomize bases and overlays rather than maintaining divergent full copies.
Explanation
Correct Answer
B:Repair the scheduler static Pod YAML in the kubelet watched manifest directory. This correction targets the specific failure. Kubelet automatically manages static Pods from its configured manifest path. A successful result is: Kubelet recreates kube-scheduler and scheduler health recovers.
Incorrect Answers
A:Install and configure a CNI compatible with the cluster Pod CIDR. This procedure belongs to a different Kubernetes condition (Newly initialized cluster has a healthy API server but all workers remain NotReady with network plugin not initialized.). It does not directly resolve the observed failure. The targeted action is: Repair the scheduler static Pod YAML in the kubelet watched manifest directory.
C:Inspect a pinned chart with helm template or helm diff style review before installation. This procedure belongs to a different Kubernetes condition (A Helm chart update is proposed but its rendered RBAC is unknown.). It does not directly resolve the observed failure. The targeted action is: Repair the scheduler static Pod YAML in the kubelet watched manifest directory.
D:Use Kustomize bases and overlays rather than maintaining divergent full copies. This procedure belongs to a different Kubernetes condition (Two clusters need the same base manifest but different replica counts and labels.). It does not directly resolve the observed failure. The targeted action is: Repair the scheduler static Pod YAML in the kubelet watched manifest directory.
Question 683
In a Kubernetes cluster, the following condition is observed: A Pod in payments namespace cannot resolve the short name api for a Service in catalog namespace. Which remediation MOST directly addresses it?
- Confirm the installed CNI implements policy enforcement and configure a supported policy-capable plugin.
- Use the Service's namespace-qualified name such as api.catalog.svc.cluster.local.
- Create an ingress policy selecting the API Pods with combined namespaceSelector and podSelector peer criteria.
- Configure a NodePort Service with the appropriate servicePort, targetPort and allowed nodePort.
Explanation
Correct Answer
B:Use the Service's namespace-qualified name such as api.catalog.svc.cluster.local. This correction targets the specific failure. Unqualified Service names resolve relative to the client's namespace search path. A successful result is: DNS resolves the desired Service from other namespaces.
Incorrect Answers
A:This procedure belongs to a different Kubernetes condition (NetworkPolicy objects are accepted but all supposedly blocked traffic is still allowed.). It does not directly resolve the observed failure.
C:This procedure belongs to a different Kubernetes condition (An API must accept ingress only from Pods labeled role=client in namespace team-a.). It does not directly resolve the observed failure.
D:This procedure belongs to a different Kubernetes condition (A development Service must be reachable on each eligible node at a defined node port.). It does not directly resolve the observed failure.
Question 684
Select TWO technically sound statements for this situation, covering remediation and validation: A hostNetwork Pod cannot resolve cluster Services using its inherited host resolver configuration.
- Remediation: Set dnsPolicy Default and assume it always selects cluster DNS.
- Validation: The Service obtains an external address and routes to ready backend Pods.
- Remediation: Set dnsPolicy ClusterFirstWithHostNet for the hostNetwork workload.
- Remediation: Set a valid ingressClassName for an installed and healthy Ingress controller.
- Validation: The hostNetwork Pod resolves Kubernetes Service records as intended.
Explanation
Correct Answers
C:Remediation: Set dnsPolicy ClusterFirstWithHostNet for the hostNetwork workload. The remedy targets the reported failure rather than a different subsystem. Host-networked Pods may need an explicit cluster-aware DNS policy.
E:Validation: The hostNetwork Pod resolves Kubernetes Service records as intended. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
A:Remediation: Set dnsPolicy Default and assume it always selects cluster DNS. This is the unsafe shortcut for the case, not an acceptable intervention. Host-networked Pods may need an explicit cluster-aware DNS policy.
B:Validation: The Service obtains an external address and routes to ready backend Pods. This evidence applies to a different condition (An external HTTP service needs an infrastructure-managed public listener.), and would not verify this target fix: A hostNetwork Pod cannot resolve cluster Services using its inherited host resolver configuration.
D:Remediation: Set a valid ingressClassName for an installed and healthy Ingress controller. This action targets a different condition (An Ingress resource has an address but no controller is processing its rules.), not this reported failure: A hostNetwork Pod cannot resolve cluster Services using its inherited host resolver configuration.
Question 685
An operations team tests its response to this finding: Two StatefulSet replicas accidentally share one manually named PVC and interfere with each other. Which outcome most clearly establishes that the fix worked?
- The PVC becomes Bound to a compatible volume and its Pod can mount it.
- The Pod's volume mounts successfully with its namespace-local claim.
- Each ordinal has its own claim and retains data across Pod recreation.
- Pods on different nodes mount the RWX volume successfully.
Explanation
Correct Answer
C:Each ordinal has its own claim and retains data across Pod recreation. The corresponding action is: Use StatefulSet volumeClaimTemplates for per-replica persistent storage.
Incorrect Answers
A:The PVC becomes Bound to a compatible volume and its Pod can mount it. This is evidence for a separate case (A PVC stays Pending because it asks for 20Gi while the only matching PV has 10Gi.), not for the target problem. An appropriate validation would be: Each ordinal has its own claim and retains data across Pod recreation.
B: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: Each ordinal has its own claim and retains data across Pod recreation.
D:Pods on different nodes mount the RWX volume successfully. This is evidence for a separate case (A shared file workload requires concurrent writes from multiple nodes.), not for the target problem. An appropriate validation would be: Each ordinal has its own claim and retains data across Pod recreation.
Question 686
An administrator is investigating this situation: A team stores a critical database file in an emptyDir volume and loses it after Pod replacement. Which action BEST resolves the underlying issue?
- Inspect CSI controller, node plugin and VolumeAttachment state then restore the failing attachment path.
- Configure the intended default StorageClass annotation while checking existing defaults.
- Enable supported volume expansion and increase PVC requested storage safely.
- Use persistent storage backed by a PVC for data that must survive Pod deletion.
Explanation
Correct Answer
D:Use persistent storage backed by a PVC for data that must survive Pod deletion. This correction targets the specific failure. emptyDir is tied to a Pod lifetime and is not durable storage. A successful result is: Database files survive Pod recreation and remount of the persistent volume.
Incorrect Answers
A:Inspect CSI controller, node plugin and VolumeAttachment state then restore the failing attachment path. This procedure belongs to a different Kubernetes condition (A Pod is stuck ContainerCreating due to an attach timeout from a cloud block volume.). It does not directly resolve the observed failure. The targeted action is: Use persistent storage backed by a PVC for data that must survive Pod deletion.
B:Configure the intended default StorageClass annotation while checking existing defaults. This procedure belongs to a different Kubernetes condition (New claims omit storageClassName and use an unintended slow storage provider.). It does not directly resolve the observed failure. The targeted action is: Use persistent storage backed by a PVC for data that must survive Pod deletion.
C: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: Use persistent storage backed by a PVC for data that must survive Pod deletion.
Question 687
In a Kubernetes cluster, the following condition is observed: A new worker cannot join because its bootstrap token has expired. Which remediation MOST directly addresses it?
- Correct the kubelet CRI endpoint and verify runtime socket availability.
- Ensure the affected component reloads renewed credentials through an approved restart or manifest-triggered recreation.
- Take an authenticated etcdctl snapshot with correct endpoints and required TLS credentials.
- Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details.
Explanation
Correct Answer
D:Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details. This correction targets the specific failure. kubeadm join uses bootstrap discovery and credentials that can expire. A successful result is: The worker joins the intended cluster and its node appears without relaxing certificate trust.
Incorrect Answers
A:Correct the kubelet CRI endpoint and verify runtime socket availability. This procedure belongs to a different Kubernetes condition (A node image update changes the runtime socket and kubelet can no longer create containers.). It does not directly resolve the observed failure. The targeted action is: Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details.
B:Ensure the affected component reloads renewed credentials through an approved restart or manifest-triggered recreation.
C:Take an authenticated etcdctl snapshot with correct endpoints and required TLS credentials. This procedure belongs to a different Kubernetes condition (A stacked-etcd control plane needs a recoverable snapshot before upgrade.). It does not directly resolve the observed failure. The targeted action is: Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details.
Question 688
During remediation, this failure appears: A Deployment must update without taking all replicas offline during rollout. Which action is the LEAST defensible?
- Apply scoped access rather than granting universal administration.
- Use a staged rollout and observe readiness before full deployment.
- Use Recreate strategy and assume it prevents downtime.
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
Explanation
Correct Answer
C:Use Recreate strategy and assume it prevents downtime. This shortcut fails to address the root cause and risks a worse outcome. RollingUpdate availability and surge settings govern the rate of replica replacement. A safer course is: Tune maxUnavailable and maxSurge in the RollingUpdate strategy with adequate capacity.
Incorrect Answers
A:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Tune maxUnavailable and maxSurge in the RollingUpdate strategy with adequate capacity.
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: Tune maxUnavailable and maxSurge in the RollingUpdate strategy with adequate capacity.
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: Tune maxUnavailable and maxSurge in the RollingUpdate strategy with adequate capacity.
Question 689
During an operational review, this fact emerges: A special node has NoSchedule taint and a permitted Pod remains Pending. Which Kubernetes behavior MOST directly governs the result?
- PDBs govern voluntary disruptions and require enough workload capacity to permit safe evictions.
- Taints repel Pods and tolerations allow consideration but do not force placement.
- Deployment controllers reconcile ReplicaSets to achieve a declared desired state.
- Liveness probes trigger container recovery when the application cannot progress.
Explanation
Correct Answer
B:Taints repel Pods and tolerations allow consideration but do not force placement. This principle explains the targeted result. A concrete response is: Add only the needed matching toleration to the workload or adjust node policy intentionally.
Incorrect Answers
A:This principle is useful for another case (A maintenance drain would evict too many healthy replicas of a critical application.), but does not explain the most direct solution here. Taints repel Pods and tolerations allow consideration but do not force placement.
C:This principle is useful for another case (A Deployment is using image v1 but needs a controlled update to image v2.), but does not explain the most direct solution here. Taints repel Pods and tolerations allow consideration but do not force placement.
D:This principle is useful for another case (An HTTP server occasionally deadlocks while its process remains running.), but does not explain the most direct solution here.
Question 690
A cluster administrator must address the following case: A controller ServiceAccount needs to read ConfigMaps only in team-a. Select TWO appropriate statements, one corrective action and one observable outcome.
- Validation: The new node trusts and joins the expected API server without accepting an arbitrary endpoint.
- Remediation: Bind the cluster-admin ClusterRole to the controller for convenience.
- Validation: The controller can get its intended ConfigMaps but cannot modify Secrets or read other namespaces.
- Remediation: Create a namespaced Role and RoleBinding in prod granting only required pod verbs to the user or group.
- Remediation: Bind a narrowly scoped Role to the controller ServiceAccount in team-a.
Explanation
Correct Answers
C:Validation: The controller can get its intended ConfigMaps but cannot modify Secrets or read other namespaces. This result verifies the behavior the remediation is supposed to restore.
E:Remediation: Bind a narrowly scoped Role to the controller ServiceAccount in team-a. The remedy targets the reported failure rather than a different subsystem. ServiceAccount identity does not automatically confer application-specific API permissions.
Incorrect Answers
A:Validation: The new node trusts and joins the expected API server without accepting an arbitrary endpoint. This evidence applies to a different condition (A worker join fails with a discovery CA certificate hash mismatch.), and would not verify this target fix: A controller ServiceAccount needs to read ConfigMaps only in team-a.
B:Remediation: Bind the cluster-admin ClusterRole to the controller for convenience. This is the unsafe shortcut for the case, not an acceptable intervention. ServiceAccount identity does not automatically confer application-specific API permissions.
D:This action targets a different condition (A namespace user can list Pods in dev but receives Forbidden in prod.), not this reported failure: A controller ServiceAccount needs to read ConfigMaps only in team-a.