CNCF CKA Practice Test 76
Question 750
During an operational review, this fact emerges: An HTTPRoute is not serving traffic and its status reports ResolvedRefs False. Which Kubernetes behavior MOST directly governs the result?
- Service selectors must match label key/value pairs exactly.
- External egress requires network routing beyond internal Service discovery.
- Ingress controller routing matches requested host/path against explicit rules.
- Gateway API status conditions identify invalid reference wiring.
Explanation
Correct Answer
D:Gateway API status conditions identify invalid reference wiring. This principle explains the targeted result. A concrete response is: Correct the invalid backend Service reference or required cross-namespace ReferenceGrant.
Incorrect Answers
A:Service selectors must match label key/value pairs exactly. This principle is useful for another case (A newly deployed Service selector uses app=front while Pods are labeled app=frontend.), but does not explain the most direct solution here. The governing consideration is: Gateway API status conditions identify invalid reference wiring.
B:External egress requires network routing beyond internal Service discovery. This principle is useful for another case (Pods reach cluster Services but cannot contact external APIs from private node networks.), but does not explain the most direct solution here. The governing consideration is: Gateway API status conditions identify invalid reference wiring.
C:Ingress controller routing matches requested host/path against explicit rules. This principle is useful for another case (Ingress answers HTTPS but returns 404 for /api while backend Service works locally.), but does not explain the most direct solution here. The governing consideration is: Gateway API status conditions identify invalid reference wiring.
Question 751
Select TWO technically sound statements for this situation, covering remediation and validation: A PVC is nearly full and its backing CSI driver supports growth.
- Remediation: Set reclaimPolicy Retain and manage retained PV and backend data under approved procedure.
- Validation: Pods on different nodes mount the RWX volume successfully.
- Remediation: Edit only the Pod's emptyDir sizeLimit and assume persistent volume grows.
- Validation: PVC and filesystem capacity increase to the requested size once reconciliation completes.
- Remediation: Enable supported volume expansion and increase PVC requested storage safely.
Explanation
Correct Answers
D:Validation: PVC and filesystem capacity increase to the requested size once reconciliation completes. This result verifies the behavior the remediation is supposed to restore.
E:Remediation: Enable supported volume expansion and increase PVC requested storage safely. The remedy targets the reported failure rather than a different subsystem. Volume expansion requires storage class permission and driver support, sometimes filesystem growth.
Incorrect Answers
A:Remediation: Set reclaimPolicy Retain and manage retained PV and backend data under approved procedure. This action targets a different condition (A StatefulSet is decommissioned but its underlying audit volume must remain for investigation.), not this reported failure: A PVC is nearly full and its backing CSI driver supports growth.
B:Validation: Pods on different nodes mount the RWX volume successfully. This evidence applies to a different condition (A shared file workload requires concurrent writes from multiple nodes.), and would not verify this target fix: A PVC is nearly full and its backing CSI driver supports growth.
C:Remediation: Edit only the Pod's emptyDir sizeLimit and assume persistent volume grows. This is the unsafe shortcut for the case, not an acceptable intervention. Volume expansion requires storage class permission and driver support, sometimes filesystem growth.
Question 752
During an operational review, this fact emerges: kubectl suddenly reports connection refused after the team changed contexts. Which Kubernetes behavior MOST directly governs the result?
- DNS, network path and application listener failures require different diagnostics.
- Autoscaling requires available metrics and valid target configuration.
- Current container output can omit the earlier process that caused CrashLoopBackOff.
- Context misselection can masquerade as a cluster outage.
Explanation
Correct Answer
D:Context misselection can masquerade as a cluster outage. This principle explains the targeted result. A concrete response is: Inspect current context and configured cluster server address, then choose the correct target.
Incorrect Answers
A:This principle is useful for another case (An app cannot reach a database and the error is a TCP timeout, not DNS NXDOMAIN.), but does not explain the most direct solution here. Context misselection can masquerade as a cluster outage.
B:Autoscaling requires available metrics and valid target configuration. This principle is useful for another case (HPA displays <unknown> target metrics while replicas never scale.), but does not explain the most direct solution here. The governing consideration is: Context misselection can masquerade as a cluster outage.
C:This principle is useful for another case (An app container restarts so quickly that current kubectl logs show only its latest attempt.), but does not explain the most direct solution here.
Question 753
Select TWO technically sound statements for this situation, covering remediation and validation: Frontend Pods can unexpectedly connect to every Pod in a sensitive namespace.
- Remediation: Create a default-deny ingress NetworkPolicy for the sensitive namespace, then allow required traffic.
- Remediation: Create a policy with an empty podSelector and unrestricted ingress rules and call it default deny.
- Validation: Unauthorized inbound connections fail while explicitly allowed paths work.
- Validation: Traffic to a suitable node IP and nodePort reaches the intended backends.
- Remediation: Set dnsPolicy ClusterFirstWithHostNet for the hostNetwork workload.
Explanation
Correct Answers
A:Remediation: Create a default-deny ingress NetworkPolicy for the sensitive namespace, then allow required traffic. The remedy targets the reported failure rather than a different subsystem. NetworkPolicy isolation is additive and defaults to allow without selecting policies.
C:Validation: Unauthorized inbound connections fail while explicitly allowed paths work. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
B:Remediation: Create a policy with an empty podSelector and unrestricted ingress rules and call it default deny. This is the unsafe shortcut for the case, not an acceptable intervention. NetworkPolicy isolation is additive and defaults to allow without selecting policies.
D:Validation: Traffic to a suitable node IP and nodePort reaches the intended backends. This evidence applies to a different condition (A development Service must be reachable on each eligible node at a defined node port.), and would not verify this target fix: Frontend Pods can unexpectedly connect to every Pod in a sensitive namespace.
E:Remediation: Set dnsPolicy ClusterFirstWithHostNet for the hostNetwork workload. This action targets a different condition (A hostNetwork Pod cannot resolve cluster Services using its inherited host resolver configuration.), not this reported failure: Frontend Pods can unexpectedly connect to every Pod in a sensitive namespace.
Question 754
An administrator is investigating this situation: A Gateway HTTPS listener reports invalid certificate references. Which action BEST resolves the underlying issue?
- Confirm the installed CNI implements policy enforcement and configure a supported policy-capable plugin.
- Set dnsPolicy None and configure the Pod's dnsConfig nameservers and searches appropriately.
- Create an ingress policy selecting the API Pods with combined namespaceSelector and podSelector peer criteria.
- Configure listener TLS certificateRefs to an accessible matching Secret and accepted hostname.
Explanation
Correct Answer
D:Configure listener TLS certificateRefs to an accessible matching Secret and accepted hostname. This correction targets the specific failure. Gateway listeners own TLS configuration and certificate references must resolve. A successful result is: The listener becomes Programmed and serves the expected certificate.
Incorrect Answers
A:Confirm the installed CNI implements policy enforcement and configure a supported policy-capable plugin.
B:Set dnsPolicy None and configure the Pod's dnsConfig nameservers and searches appropriately.
C:Create an ingress policy selecting the API Pods with combined namespaceSelector and podSelector peer criteria. 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. The targeted action is: Configure listener TLS certificateRefs to an accessible matching Secret and accepted hostname.
Question 755
Following this Kubernetes scenario, an operator validates remediation: A Helm chart update is proposed but its rendered RBAC is unknown. Which measurable outcome shows success?
- Rendered resources and permissions match reviewed deployment expectations.
- Control-plane and node versions remain within supported relationships after rollout.
- A permitted node read succeeds and a node mutation is forbidden.
- Network add-on handles Pod routes while the runtime handles container lifecycle.
Explanation
Correct Answer
A:Rendered resources and permissions match reviewed deployment expectations. The corresponding action is: Inspect a pinned chart with helm template or helm diff style review before installation.
Incorrect Answers
B:Control-plane and node versions remain within supported relationships after rollout. This is evidence for a separate case (A proposed upgrade would run kubelet newer than kube-apiserver.), not for the target problem. An appropriate validation would be: Rendered resources and permissions match reviewed deployment expectations.
C:A permitted node read succeeds and a node mutation is forbidden. This is evidence for a separate case (A monitoring integration needs cluster-wide read-only node information.), not for the target problem. An appropriate validation would be: Rendered resources and permissions match reviewed deployment expectations.
D:Network add-on handles Pod routes while the runtime handles container lifecycle. This is evidence for a separate case (A team mistakes the container network interface for the container runtime interface.), not for the target problem. An appropriate validation would be: Rendered resources and permissions match reviewed deployment expectations.
Question 756
The team is reviewing this failure mode: A Gateway API route in namespace web needs to refer to a backend Service in namespace shared. Which statement explains WHY the recommended control works?
- Gateway API cross-namespace references require explicit grants for relevant reference types.
- Headless Services expose endpoint DNS without allocating a virtual ClusterIP.
- NetworkPolicy isolation is additive and defaults to allow without selecting policies.
- Port forwarding is a debugging tunnel, not an internet-facing production endpoint.
Explanation
Correct Answer
A:Gateway API cross-namespace references require explicit grants for relevant reference types. This principle explains the targeted result. A concrete response is: Create an authorized ReferenceGrant in the backend namespace allowing the specific cross-namespace reference.
Incorrect Answers
B:This principle is useful for another case (StatefulSet peers must discover individual Pod DNS records rather than one virtual Service IP.), but does not explain the most direct solution here. Gateway API cross-namespace references require explicit grants for relevant reference types.
C:This principle is useful for another case (Frontend Pods can unexpectedly connect to every Pod in a sensitive namespace.), but does not explain the most direct solution here. Gateway API cross-namespace references require explicit grants for relevant reference types.
D:This principle is useful for another case (An operator wants temporary access to an internal Pod without publishing a public Service.), but does not explain the most direct solution here. Gateway API cross-namespace references require explicit grants for relevant reference types.
Question 757
A cluster administrator must address the following case: A high-availability control plane needs another control-plane node joined securely. Select TWO appropriate statements, one corrective action and one observable outcome.
- Remediation: Use the supported kubeadm control-plane join workflow with a shared endpoint and valid certificate key where required.
- Remediation: Repair the scheduler static Pod YAML in the kubelet watched manifest directory.
- Validation: The additional control-plane node becomes Ready and control-plane static Pods are healthy.
- Remediation: Use a worker-only join command and manually copy private keys through chat.
- Validation: CSI objects and drivers become registered and claims can be provisioned.
Explanation
Correct Answers
A:Remediation: Use the supported kubeadm control-plane join workflow with a shared endpoint and valid certificate key where required. The remedy targets the reported failure rather than a different subsystem. Adding control-plane members requires certificates and control-plane-specific join configuration.
C:Validation: The additional control-plane node becomes Ready and control-plane static Pods are healthy. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
B:Remediation: Repair the scheduler static Pod YAML in the kubelet watched manifest directory. This action targets a different condition (The kube-scheduler static Pod disappeared after someone edited its manifest incorrectly.), not this reported failure: A high-availability control plane needs another control-plane node joined securely.
D:Remediation: Use a worker-only join command and manually copy private keys through chat. This is the unsafe shortcut for the case, not an acceptable intervention. Adding control-plane members requires certificates and control-plane-specific join configuration.
E:Validation: CSI objects and drivers become registered and claims can be provisioned. This evidence applies to a different condition (A new storage integration must provision volumes without modifying kubelet core code.), and would not verify this target fix: A high-availability control plane needs another control-plane node joined securely.
Question 758
A CKA learner must investigate the following: A batch import must succeed once and then stop rather than keep restarting forever. Which command or check supplies the MOST direct diagnostic evidence?
- Inspect StatefulSet Pod names and PVCs created by volumeClaimTemplates.
- Inspect kubectl get cronjob -o yaml schedule and concurrencyPolicy.
- Inspect kubectl get job and completion conditions along with Job Pod exit status.
- Inspect Pod topologySpreadConstraints and node topology.kubernetes.io/zone labels.
Explanation
Correct Answer
C:Inspect kubectl get job and completion conditions along with Job Pod exit status. This diagnostic examines the relevant resource or subsystem. Jobs manage finite tasks with completion semantics. The validating result would be: The Job reaches Complete after desired successful executions.
Incorrect Answers
A:This check is appropriate to the separate problem (Database replicas require stable identities and persistent storage across rescheduling.), but it is not the direct diagnostic for the described failure. Inspect kubectl get job and completion conditions along with Job Pod exit status.
B:This check is appropriate to the separate problem (A cleanup should run nightly but prevent overlapping executions.), but it is not the direct diagnostic for the described failure.
D:This check is appropriate to the separate problem (Replicas concentrate in one availability zone and violate resilience goals.), but it is not the direct diagnostic for the described failure. Inspect kubectl get job and completion conditions along with Job Pod exit status.
Question 759
An engineer needs to justify a change for this issue: A proposed upgrade would run kubelet newer than kube-apiserver. Which technical reason is MOST relevant?
- Cluster change diagnosis needs observed component evidence, not guesswork.
- Kubernetes upgrades must respect version skew and control-plane ordering.
- Labels are selectors and must reflect real intended node attributes.
- Kubelet must not be newer than its kube-apiserver under normal supported skew rules.
Explanation
Correct Answer
D:Kubelet must not be newer than its kube-apiserver under normal supported skew rules. This principle explains the targeted result. A concrete response is: Reject the unsupported skew and follow the documented Kubernetes component version-skew policy.
Incorrect Answers
A:This principle is useful for another case (A new control-plane component does not appear ready after a manifest update.), but does not explain the most direct solution here. Kubelet must not be newer than its kube-apiserver under normal supported skew rules.
B:This principle is useful for another case (A kubeadm managed cluster must move one supported minor release forward.), but does not explain the most direct solution here. Kubelet must not be newer than its kube-apiserver under normal supported skew rules.
C:This principle is useful for another case (Node role labels are inconsistent after provisioning new workers.), but does not explain the most direct solution here.
Question 760
To avoid guessing about this fault, what should be inspected first? An Ingress resource has an address but no controller is processing its rules.
- Inspect kubectl get ingressclass and controller Pod logs.
- Inspect Gateway listeners and TLS Secret in the certificate reference namespace.
- Inspect kubectl get pods -n kube-system -l k8s-app=kube-dns and CoreDNS logs.
- Inspect kubectl describe ingress and test HTTP requests with Host and path headers.
Explanation
Correct Answer
A:Inspect kubectl get ingressclass and controller Pod logs. This diagnostic examines the relevant resource or subsystem. Ingress objects need a supporting controller to implement routing. The validating result would be: Ingress controller reconciliation configures the expected backend route.
Incorrect Answers
B:Inspect Gateway listeners and TLS Secret in the certificate reference namespace. This check is appropriate to the separate problem (A Gateway HTTPS listener reports invalid certificate references.), but it is not the direct diagnostic for the described failure. The relevant check is: Inspect kubectl get ingressclass and controller Pod logs.
C:Inspect kubectl get pods -n kube-system -l k8s-app=kube-dns and CoreDNS logs. This check is appropriate to the separate problem (All Pods lose service-name resolution after the CoreDNS Deployment becomes unavailable.), but it is not the direct diagnostic for the described failure. The relevant check is: Inspect kubectl get ingressclass and controller Pod logs.
D:This check is appropriate to the separate problem (Traffic to /api is routed to the frontend Service rather than the API backend.), but it is not the direct diagnostic for the described failure. Inspect kubectl describe ingress and test HTTP requests with Host and path headers.