Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

Linux Foundation CKA Dumps 2026 with Free Practice Questions and Answers

14 original practice questions for the Certified Kubernetes Administrator exam, each with an answer and explanation.

Exam topics: Cluster Architecture, Installation & Configuration, Services & Networking, Troubleshooting, Storage and 1 more.

Formats: single answer, multiple answers, dropdown, order list and drag and drop. A new question is added every 15 days.

CKA Practice Set Details

Exam Code
CKA
Questions On This Page
14
Exam Topics Covered
5 of 5
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
83
Certification
Kubernetes Administrator
14 questions

Linux Foundation CKA Exam Questions and Answers by Topic

Storage

10% of the exam

2 practice questions on this topicWhat this topic covers

Question 1

Added

Single Answer

A team runs a single-instance analytics database on a node with a local SSD. The database must retain data if its Pod is deleted, but the data is intentionally tied to that node and must not be rescheduled onto another node. The administrator creates a local PersistentVolume and a matching PersistentVolumeClaim. Which additional configuration is necessary to ensure the scheduler places the consuming Pod on the node that contains the local volume?

Correct answer: A

With `WaitForFirstConsumer`, binding and provisioning are delayed until the scheduler considers the Pod's placement constraints. For a local volume, that allows scheduling to respect the node affinity associated with the volume rather than binding without considering the consumer. ReadWriteMany does not create node affinity and local volumes generally cannot provide shared multi-node access. Retain preserves a volume after claim release but does not influence Pod placement. Restart policy controls container restart behavior, not storage scheduling.

Question 2

Added

Multiple Answers

A stateful service uses a PVC backed by a dynamically provisioned block volume. The PVC requests `ReadWriteOnce`, and the application writes to a filesystem. The operations team wants to ensure that deleting the claim does not automatically delete the underlying volume data, while allowing the PVC to be mounted as a filesystem. Which two settings or behaviors meet these requirements? (Choose two.)

Correct answer: C, D

A StorageClass reclaim policy of `Retain` leaves the dynamically provisioned PersistentVolume and its data for manual recovery after the PVC is released. `Filesystem` is the appropriate volume mode when the application expects a mounted filesystem. `Block` exposes a raw block device rather than a filesystem mount. `ReadOnlyMany` changes access semantics and does not preserve data after claim deletion. Pod termination grace affects shutdown timing, not PV reclamation.

Troubleshooting

30% of the exam

3 practice questions on this topicWhat this topic covers

Question 3

Added

Single Answer

A Deployment rollout is stuck with new Pods in `CrashLoopBackOff`. The old ReplicaSet is healthy, and the new container exits shortly after starting. The Pod has no useful events beyond repeated restarts; its readiness probe never succeeds. The team must identify the process's actual failure without restarting or modifying the healthy old Pods. What should the administrator inspect first?

Correct answer: D

When a container has restarted, `kubectl logs --previous` retrieves output from the most recently terminated instance, which is often the only useful evidence of why it exited. Inspecting the new Pod preserves the healthy old ReplicaSet and does not change workload state. Ordinary `kubectl logs` may show the current instance, which might not yet have emitted the failure. API server logs do not normally contain application process output. Endpoints help diagnose traffic selection, not a crashing process.

Question 4

Added

Single Answer

A node reports `NotReady`, and workloads scheduled there are unavailable. The kubelet service is active, the container runtime responds to commands, and `kubectl describe node` shows a `NetworkPluginNotReady` condition. On the node, the CNI configuration directory is empty after an operating system image update. The cluster's CNI binaries are still present. What is the best next action?

Correct answer: D

The node condition and empty CNI configuration directory identify missing network plugin configuration as the immediate fault. Restoring the expected CNI configuration and confirming plugin initialization addresses the cause while preserving the node. Reinstalling kubelet and resetting the node are unnecessarily disruptive and do not restore CNI settings by themselves. Deleting Pods does not repair node networking, and the scheduler may not place replacements on a NotReady node. Pod capacity does not resolve plugin initialization.

Question 5

Added

Order List

After a worker-node kernel update, several Pods on that node cannot reach Services, but Pods on other nodes work. The kube-proxy Pod is running, the Services have correct endpoints, and cluster-wide DNS resolution succeeds. You have shell access to the affected node and must isolate whether forwarding or node-local packet filtering is responsible before making changes. Arrange the diagnostic steps in the order they should be performed.

Drag the steps into the correct order, or use the arrows.

  1. Inspect host firewall rules for dropped Service or Pod traffic.
  2. Compare the node's relevant settings and rules with a healthy worker.
  3. Check the node's IP forwarding setting and routing state.
  4. Inspect the node's kube-proxy logs for sync or programming errors.
Correct answer:
  1. Inspect the node's kube-proxy logs for sync or programming errors.
  2. Check the node's IP forwarding setting and routing state.
  3. Inspect host firewall rules for dropped Service or Pod traffic.
  4. Compare the node's relevant settings and rules with a healthy worker.

Start with kube-proxy logs because they can reveal failures programming Service rules and are directly related to the observed Service connectivity. Then verify forwarding and routing, which are common host-level requirements for Pod traffic. Inspect firewall rules next for drops affecting packet paths. Comparing against a healthy worker provides a controlled reference after gathering the affected node's evidence. Changing rules before examining them would risk masking the fault or altering unrelated network policy.

Workloads & Scheduling

15% of the exam

2 practice questions on this topicWhat this topic covers

Question 6

Added

Single Answer

A batch Deployment is being rolled out to a cluster with limited memory. Each new Pod has a memory request of 3 GiB and a limit of 4 GiB, while each worker has only 2 GiB of allocatable memory remaining. The old ReplicaSet must remain available until the new version is healthy, and the team cannot add nodes before the release. The rollout is stuck with new Pods Pending. What is the best next action?

Correct answer: A

The scheduler places Pods based on requests, and 3 GiB exceeds the 2 GiB allocatable capacity remaining on the workers. A validated reduction in the request is the available way to make the new Pods schedulable without adding nodes. Lowering only the limit does not change the scheduling request. Setting `maxSurge` to zero may reduce temporary rollout capacity use but cannot make a Pod requesting 3 GiB fit where only 2 GiB is available. Increasing replicas worsens the capacity constraint.

Question 7

Added

Dropdown

A Deployment consumes a non-sensitive environment setting from a ConfigMap. The ConfigMap already exists in the same namespace, and the container should receive the key named `LOG_LEVEL` as an environment variable without embedding the value in the Pod manifest. Complete the Pod template field.

Choose the correct value for each blank.

In the container specification, use env.valueFrom.configMapKeyRef.name: and env.valueFrom.configMapKeyRef.key: .
Correct answer:

In the container specification, use env.valueFrom.configMapKeyRef.name: app-settings and env.valueFrom.configMapKeyRef.key: LOG_LEVEL.

`configMapKeyRef.name` names the ConfigMap object, here `app-settings`, and `configMapKeyRef.key` selects the specific entry, `LOG_LEVEL`. This exposes the selected non-sensitive value as an environment variable without copying it into the Pod template. Using the key name as the ConfigMap name would fail unless an object with that name existed. `value` is a literal field, not a key reference, and `secretKeyRef` reads from a Secret instead.

Cluster Architecture, Installation & Configuration

25% of the exam

4 practice questions on this topicWhat this topic covers

Question 8

Added

Single Answer

A production cluster has three control-plane nodes and an external load balancer that already provides a stable virtual IP for the Kubernetes API. The API endpoint must remain unchanged when control-plane nodes are replaced. You are preparing a kubeadm configuration for a new control-plane node, and the existing cluster was initialized with this same endpoint. Which setting should be used when joining the node?

Correct answer: D

The shared controlPlaneEndpoint is the stable address clients and joining control-plane nodes use for the API server. It belongs in the kubeadm cluster configuration and should identify the existing load balancer endpoint. The advertise address is a per-node API server address, not the shared endpoint. The kubelet address controls node communication and does not establish the API endpoint. A certificate key distributes encrypted control-plane certificates and is not an address.

Question 9

Added

Multiple Answers

A platform team needs a service account that can read Pods and Services in the namespace `reports`, but must not list Secrets or change any objects. The account will be used by an in-cluster reporting Pod, and cluster-wide access is prohibited. Which two Kubernetes RBAC resources and bindings should the administrator create? (Choose two.)

Correct answer: A, E

A namespace-scoped Role with only `get` and `list` on Pods and Services grants the required read access without exposing Secrets or permitting writes. A RoleBinding in `reports` binds that Role to the service account, and the binding can only grant access in its namespace. A broad ClusterRole exposes more resources and includes `watch`, which was not requested. A ClusterRoleBinding grants cluster-wide scope. A binding in `default` would not authorize access to resources in `reports`.

Question 10

Added

Order List

A control-plane host is being replaced, and its local etcd data directory is unavailable. The team has a verified snapshot from the same Kubernetes cluster and etcd version, plus the original kubeadm configuration. The cluster uses stacked etcd, and the replacement must rejoin without changing the API endpoint. Arrange the recovery and rejoin steps in the order they must be performed.

Drag the steps into the correct order, or use the arrows.

  1. Verify etcd membership and the API server health.
  2. Join the host as a control-plane node using the stable control-plane endpoint.
  3. Restore the snapshot into a clean etcd data directory on the replacement host.
  4. Start the replacement etcd member using the restored data and cluster configuration.
Correct answer:
  1. Restore the snapshot into a clean etcd data directory on the replacement host.
  2. Start the replacement etcd member using the restored data and cluster configuration.
  3. Join the host as a control-plane node using the stable control-plane endpoint.
  4. Verify etcd membership and the API server health.

Restoring the snapshot before starting etcd ensures the replacement member starts from the recovered data rather than an empty database. The member must be running with the cluster's etcd configuration before kubeadm can complete control-plane joining. The stable control-plane endpoint preserves the client address as required. Final membership and API health checks confirm that the recovered member has joined and is serving. Joining first would attempt to configure a control plane without the recovered local etcd state.

Question 11

Added

Multiple Answers

A cluster administrator must upgrade a kubeadm-managed cluster from one minor release to the next supported minor release. The control plane has one node, and the maintenance window requires minimizing the chance of an unrecoverable control-plane outage. An etcd snapshot and application backup have already been verified. Which two actions are appropriate before upgrading the control plane? (Choose two.)

Correct answer: A, B

A kubeadm upgrade should proceed one minor version at a time, and `kubeadm upgrade plan` reports available target versions and planned changes before the administrator applies an upgrade. Checking that the target is the next minor release prevents an unsupported version jump. Worker kubelets are upgraded after the control plane, not before it. Draining the control-plane node is not a required precondition for `kubeadm upgrade apply` and can unnecessarily affect control-plane workloads. Removing etcd data would destroy cluster state rather than protect it.

Services & Networking

20% of the exam

3 practice questions on this topicWhat this topic covers

Question 12

Added

Single Answer

An application in namespace `shop` is exposed by a ClusterIP Service, but connections from Pods in other namespaces fail. The Service selector matches the application Pods, and its Endpoints object contains ready Pod IPs. Network policy is not enabled, and the cluster uses standard Kubernetes DNS behavior. Which address should a client Pod in namespace `analytics` use to reach the Service on port 8080?

Correct answer: A

A fully qualified Service DNS name includes the Service, namespace, and cluster domain, so it resolves from a Pod in any namespace. The Service's ready endpoints show that selector and backend registration are already working. The slash form is not a DNS hostname. The short namespace-qualified name omits the conventional `svc.cluster.local` suffix and is not the complete name requested here. Pod DNS names do not use a Service namespace path in this form.

Question 13

Added

Drag And Drop

A cluster hosts three applications with different exposure requirements. One must be reachable only inside the cluster, one must use a fixed port on every node for a legacy client, and one must receive an externally provisioned address from the infrastructure provider. Match each requirement to the Service type that meets it.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Provider-managed external address
Cluster-internal access only
Fixed port exposed on each node
NodePort
ClusterIP
LoadBalancer
Correct answer:
  • Cluster-internal access only → ClusterIP
  • Fixed port exposed on each node → NodePort
  • Provider-managed external address → LoadBalancer

ClusterIP provides a virtual address reachable within the cluster and is the appropriate internal-only option. NodePort exposes the Service through a port allocated from the node port range on each node, matching the legacy client's fixed node-level access pattern. LoadBalancer requests an external load balancer integration and address from the infrastructure provider. Using NodePort for internal-only access exposes more than required, while ClusterIP does not provide the node-level or provider-managed external exposure.

Question 14

Added

Dropdown

A company is adding an Ingress resource for an HTTPS application. The cluster already has a functioning Ingress controller, and TLS termination should use a Secret in the same namespace as the Ingress. Complete the relevant fields with the correct Kubernetes values.

Choose the correct value for each blank.

In the Ingress spec, set to the Secret name and set the HTTP backend's to the application's Service port.
Correct answer:

In the Ingress spec, set tls.secretName to the Secret name and set the HTTP backend's service.port.number to the application's Service port.

The Ingress TLS stanza uses `secretName` to reference the TLS Secret, and the referenced Secret must be in the Ingress namespace. For the modern Ingress backend service structure, `service.port.number` identifies the Service port to which traffic is sent. `tls.host` is not the Secret reference field, while `rules.host` specifies a hostname match. `targetPort` is configured on the Service, not selected as the Ingress backend port, and `nodePort` is unrelated to an Ingress backend.

More Linux Foundation Practice Questions

Get the Full Linux Foundation CKA Dumps as PDF and Practice Test

14 questions are free on this page and the full set has 83. It comes as a PDF and an online practice test, with 90 days of free updates.