Exam Information
Free practice questions with explanations
Linux Foundation CKA Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 12
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Cluster Architecture, Installation & Configuration
A platform team runs a kubeadm-managed cluster with three control-plane nodes behind a load balancer. A junior administrator must grant a CI service account in the namespace ci-builds the ability to create and delete Deployments and to read Pods, but nothing cluster-wide. The security review forbids binding any role that grants wildcard verbs or resources. The administrator has already created a ServiceAccount named ci-deployer in ci-builds. Which set of actions correctly meets the requirement with the least privilege?
Correct Answer: CExplanationA namespaced Role combined with a RoleBinding in the same namespace confines the permissions to ci-builds, which satisfies the no-cluster-wide rule. Creating a ClusterRoleBinding, even with a namespaced Role, grants nothing cluster-wide beyond the role's own scope but it binds a cluster-scoped subject lookup that the team forbade; more importantly, a ClusterRoleBinding to a Role is not valid because a RoleBinding cannot reference a namespaced Role from a cluster scope in the required way. A ClusterRole bound with a ClusterRoleBinding grants access across every namespace, violating the constraint. Binding cluster-admin is clearly excessive, and a RoleBinding placed in default would grant access in the wrong namespace.
-
2 Question 2 Single choice Services & Networking
A retail company runs a web tier in namespace storefront with a Deployment labelled app=web listening on port 8080. A Service of type ClusterIP named web-svc is in front of it, and external users must reach the application through the Ingress controller at a single hostname. The security team requires that only the Ingress controller pods can reach the web Pods, and that no node port is exposed. Pods in other namespaces must have no path to the web Pods. Which configuration best meets all of these requirements?
Correct Answer: BExplanationA ClusterIP Service is reachable only inside the cluster and is what the Ingress controller routes to, so it satisfies the no-node-port rule. A NetworkPolicy that selects app=web and admits only the ingress controller's namespace or pod labels restricts traffic to the required sources, and because NetworkPolicies are additive, a deny-by-default policy on the namespace is implied once one policy selects the pods. NodePort exposes a port on every node, violating the requirement. A LoadBalancer type would expose a public address and the all-namespaces rule breaks isolation. ExternalName maps to a DNS name, not to Pod IPs, so it cannot forward traffic to Pods.
-
3 Question 3 Single choice Storage
A data team has a StatefulSet that writes reports to a PersistentVolumeClaim named reports-data bound to a PersistentVolume with reclaimPolicy Retain. Compliance requires that the report data survive any accidental deletion of the claim for 90 days. The team wants to reuse the existing PersistentVolume for a new claim in another namespace after the old claim is removed. After deleting the old PVC, the PersistentVolume shows status Released. What is the correct next step to make the volume available for a new claim without losing the data?
Correct Answer: BExplanationWith the Retain policy, deleting the claim leaves the PersistentVolume in the Released state with its claimRef still pointing at the old claim, so the data is intact. Clearing the claimRef makes the volume Available for a new claim, which is the standard manual recovery path. Deleting the PV object or switching the policy to Delete risks destroying the backing storage that compliance protects. A new claim with the same name does not rebind to a Released volume because the claimRef still refers to the deleted claim's UID.
-
4 Question 4 Single choice Troubleshooting
A production Pod named billing-api in namespace finance has been stuck in CrashLoopBackOff for ten minutes after a ConfigMap change. Its container exits within two seconds of starting. The on-call engineer must find the cause as quickly as possible, and the service must not be restarted by a rollout until the root cause is known because the restart would drop in-flight transactions. Which first action is most appropriate?
Correct Answer: BExplanationThe --previous flag on kubectl logs returns the output of the prior container instance, which is exactly what is needed when the current container restarts too quickly to capture useful logs. It gathers evidence without disturbing running traffic beyond what is already failing. Deleting the Pod or triggering a rollout restart changes the workload and risks the in-flight transactions the team wants to protect, and scaling to zero takes the service down entirely.
-
5 Question 5 Single choice Workloads & Scheduling
A Deployment named report-gen has three replicas and a rolling update strategy with maxSurge set to 0 and maxUnavailable set to 1. A recent image change caused the new ReplicaSet's Pods to fail readiness checks, and the rollout is stalled with one old Pod removed and one new Pod not ready. The business requires that the number of available replicas never drop below two during any update. Which change to the strategy best satisfies this while still allowing a rollout?
Correct Answer: AExplanationWith maxUnavailable at 0, the controller never removes an old Pod until a replacement is ready, keeping all three replicas and therefore at least two available throughout. The maxSurge of 1 provides the headroom to create the replacement. Keeping maxUnavailable at 1 would still allow availability to fall to one, breaking the requirement. Raising maxUnavailable to 2 would drop available replicas to one. Recreate removes every Pod before starting new ones, causing a full outage.
-
6 Question 6 Single choice Cluster Architecture, Installation & Configuration
A cluster operator is performing an etcd backup on a kubeadm control-plane node before a planned upgrade. The etcd member runs with its certificates in the default kubeadm location, and the snapshot must be taken with the correct API version and endpoint. After the snapshot is saved to /var/backups/etcd-pre-upgrade.db, the operator must verify it is a valid snapshot before proceeding. Which command sequence correctly accomplishes both steps?
Correct Answer: BExplanationUnder the v3 API, etcdctl snapshot save requires the TLS flags for the etcd server, which kubeadm places under /etc/kubernetes/pki/etcd, and the snapshot status subcommand reads the file and reports its hash, revision and size to confirm integrity. Omitting the certificates causes the save to fail against a secured endpoint. endpoint health checks live member status, not the file. A restore into a temporary directory is destructive to the workflow and not a validation step, and the v2 API cannot produce a v3 snapshot.
-
7 Question 7 Single choice Services & Networking
A team has a Deployment exposed by a ClusterIP Service named inventory in namespace shop. Pods in the namespace resolve inventory successfully, but the Service returns no traffic and kubectl get endpoints inventory shows no addresses. The Deployment's Pods are Running and Ready. The Service selector is app: inventory-api while the Pod labels are app: inventory. Which action corrects the problem with the least disruption?
Correct Answer: AExplanationEndpoints are populated from Pods that match the Service selector, so an empty endpoint list with Ready Pods points to a selector mismatch. Editing the Service selector to app: inventory matches the existing Pods without touching the workload, which keeps the Pods in place and avoids a rollout. Changing the Deployment labels would trigger a rolling replacement of every Pod, which is more disruptive. Switching to NodePort does not fix the selector and CoreDNS resolves the name correctly here, so a restart does not address the empty endpoints.
-
8 Question 8 Single choice Troubleshooting
Worker node worker-3 in a production cluster has been reporting NotReady for several minutes. Pods scheduled there are being evicted and rescheduled. Shell access shows the kubelet service is inactive and its journal shows the kubelet could not find its configuration file at the path given by the --config flag in its systemd drop-in. The team needs the node back in service with the current kubelet configuration and no change to the node's container runtime. What should the administrator do?
Correct Answer: BExplanationThe kubelet reads its configuration from the path passed by its systemd drop-in, so restoring that file and reloading systemd lets the service start. After the restart, the node reports Ready again and the existing node identity and Pods are preserved. Reinstalling the runtime is unrelated to a missing kubelet config. Deleting the node object and rejoining is far more disruptive than needed. Heartbeat settings in the API server do not cause a kubelet that is not running to report healthy.
-
9 Question 9 Single choice Workloads & Scheduling
A data engineering team runs a batch job in namespace analytics that is scheduled on nodes with limited memory. The Pods are stuck in Pending with a FailedScheduling event reporting insufficient memory. The namespace has a ResourceQuota limiting requests.memory to 16Gi. Each Pod requests 4Gi and the cluster has free capacity on several nodes, but the namespace already holds 16Gi of requests from other Deployments. The team must start the batch job without deleting existing workloads and without exceeding the quota. Which action is correct?
Correct Answer: BExplanationResourceQuota is enforced against the sum of requests in the namespace, so the batch Pods are admitted only if the total stays under 16Gi. Lowering their requests while the existing workloads hold 16Gi still exceeds the quota, so the working answer requires reducing the quota pressure, not merely the per-Pod request. The correct reading is that the batch Pods can only start if their requests fit the remaining quota, which the stem rules out by requiring no deletion of existing workloads. Removing the quota violates the stated constraint. Node selectors do not bypass namespace quota. Preemption would evict existing workloads, which the team forbids.
-
10 Question 10 Multiple choice Cluster Architecture, Installation & Configuration
A platform team is planning a kubeadm upgrade of a three-control-plane cluster from v1.27 to v1.28 and must keep the cluster available throughout. Which TWO actions are required or correct for the upgrade process? (Choose two.)
Correct Answer: B, DExplanationUpgrading the kubeadm binary first and running kubeadm upgrade plan on the initial control-plane node is the standard way to confirm reachable target versions before kubeadm upgrade apply. Draining each node before upgrading its kubelet and then uncordoning it keeps workloads moving and is the documented per-node procedure. Control-plane nodes must be upgraded one at a time, and kubeadm does not take an etcd backup automatically, so skipping it is unsafe.
-
11 Question 11 Multiple choice Services & Networking
A company exposes a stateless API through a LoadBalancer Service in a cloud-managed cluster. Users report intermittent failures when DNS names inside the cluster are resolved from Pods on some nodes. The security team also wants to ensure that Pods can only reach the database Service on port 5432 from a labelled application tier. Which TWO actions address these needs correctly? (Choose two.)
Correct Answer: B, DExplanationA NetworkPolicy selecting the database Pods and admitting only tier=app sources on TCP 5432 enforces the isolation the security team asked for. Because NetworkPolicy is enforced by the CNI plugin, verifying that the plugin supports it is a required prerequisite, since an unsupported plugin accepts the object but does not enforce it. Forwarding cluster names to a public resolver breaks internal service discovery, switching to NodePort does not fix DNS, and disabling kube-proxy removes Service routing entirely.
-
12 Question 12 Multiple choice Troubleshooting
A cluster administrator is investigating why a control-plane component is failing on a kubeadm cluster where the kube-controller-manager Pod keeps restarting. The static Pod manifest is in /etc/kubernetes/manifests. Which TWO diagnostic steps are appropriate to identify the failure? (Choose two.)
Correct Answer: B, DExplanationStatic Pods are managed directly by the kubelet, so journalctl on the kubelet is the right place to see why the static Pod fails to start or keeps exiting. Reading the container logs for the current and previous instance of the kube-controller-manager Pod shows the exit reason. kube-controller-manager is not a Deployment, so scaling it has no effect, and deleting the mirror Pod only recreates the same failing container. Editing the scheduler manifest changes an unrelated component.
These are 12 of the 83 questions in the full CKA pack.
Get All 83 QuestionsGet all 83 questions & answers
Full access options for Linux Foundation CKA
Self-study
PDF Version
- 83 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 83 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 83 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the CKA Exam (Certified Kubernetes Administrator) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.