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 KCNA Dumps 2026 with Free Practice Questions and Answers

12 original practice questions for the Kubernetes and Cloud Native Associate exam, each with an answer and explanation.

Exam topics: Kubernetes Fundamentals, Container Orchestration, Cloud Native Application Delivery and Cloud Native Architecture.

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

KCNA Practice Set Details

Exam Code
KCNA
Questions On This Page
12
Exam Topics Covered
4 of 4
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
240
Certification
Kubernetes Cloud Native Associate
12 questions

Linux Foundation KCNA Exam Questions and Answers by Topic

Kubernetes Fundamentals

44% of the exam

6 practice questions on this topicWhat this topic covers

Question 1

Added

Order List

A team is investigating why a newly created Pod remains Pending in a cluster that uses the default scheduler. The Pod has no node selector or affinity rules, and the team has confirmed that its requested CPU and memory fit on at least one node. Before changing the workload, an operator must identify the scheduling failure from Kubernetes events and then verify whether the proposed fix resolves placement. Arrange the diagnostic and verification steps in the order they should be performed.

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

  1. Apply a change that addresses the reported scheduling constraint.
  2. Check the Pod's status and node assignment again.
  3. Identify the scheduling reason reported in the events.
  4. Inspect the Pod's status and recent events with kubectl describe pod.
Correct answer:
  1. Inspect the Pod's status and recent events with kubectl describe pod.
  2. Identify the scheduling reason reported in the events.
  3. Apply a change that addresses the reported scheduling constraint.
  4. Check the Pod's status and node assignment again.

Start by describing the Pod so its current status and scheduler events are available. Those events identify the constraint preventing placement, which should guide a targeted change rather than an assumption based on the Pending status alone. After applying the fix, inspect the Pod again to verify that scheduling succeeded and determine its assigned node. Changing the workload before reviewing events risks addressing the wrong cause; checking placement before making a change cannot verify that the fix worked.

Question 2

Added

Single Answer

A team runs a stateless API in a Deployment with three replicas. A release introduces a startup defect, and the new Pods repeatedly fail their readiness probes. The Deployment's rolling update has replaced the available old Pods, leaving the application unavailable. The team wants to restore the last known-good version immediately and keep the change history available for review. They do not want to edit the image manually or delete the Deployment, and they have access to the cluster through kubectl. What is the best next action?

Correct answer: D

Running kubectl rollout undo restores the prior revision recorded in the Deployment's rollout history, which directly addresses the defective release while retaining rollout history. Scaling down and up in A recreates Pods from the same faulty template. Deleting Pods in C also causes the Deployment to create replacements using that template. Pausing in D stops further rollout progress but does not restore the previous version or make the failing Pods healthy.

Question 3

Added

Order List

A developer has a local container image that is not present in the cluster registry and a single-node Kubernetes development cluster that can access images loaded into its container runtime. The developer needs to run a one-off Pod from that image without pushing it to a registry. Arrange the steps in the order they must be performed.

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

  1. Create a Pod manifest that references the tag and an appropriate pull policy.
  2. Apply the manifest and check the Pod status.
  3. Load the image into the cluster node's container runtime.
  4. Build the image with the required local tag.
Correct answer:
  1. Build the image with the required local tag.
  2. Load the image into the cluster node's container runtime.
  3. Create a Pod manifest that references the tag and an appropriate pull policy.
  4. Apply the manifest and check the Pod status.

The image must exist before it can be loaded, and it must be available to the node before the Pod is created. The Pod manifest then references that local tag; using an appropriate pull policy avoids requiring a registry pull for an image that exists only in the node runtime. Applying the manifest creates the Pod, after which its status can be checked. Reversing the build and load steps leaves no image to load, while creating the Pod before loading may leave it unable to obtain the image.

Question 4

Added

Single Answer

A batch workload must run only on nodes labeled workload=batch. The cluster also has general-purpose nodes, and the scheduler currently places the Pods on those nodes when batch capacity is temporarily unavailable. The workload is allowed to remain Pending until a matching node is available; it must never run on a general-purpose node. Operators do not want to add taints to shared nodes because other teams depend on them. Which Pod scheduling configuration best enforces the requirement?

Correct answer: D

Required node affinity makes matching the workload=batch node label a hard scheduling condition. If no matching node is available, the Pod remains Pending, which is permitted by the scenario. Preferred affinity in A is only a scheduling preference, so the scheduler may use another node. A toleration in C has no effect without a matching taint and, even with one, tolerations permit placement rather than require it. The anti-affinity rule in D does not directly require the specified node label.

Question 5

Added

Dropdown

A cluster administrator is creating a namespace-scoped service account and wants a RoleBinding that grants it permission to read Pods only in the namespace where the binding is created. Complete the kubectl command with the correct role kind and subject kind.

Choose the correct value for each blank.

kubectl create rolebinding pod-read --role=pod-reader --=Role --serviceaccount=apps:observer --=ServiceAccount -n apps
Correct answer:

kubectl create rolebinding pod-read --role=pod-reader --role-kind=Role --serviceaccount=apps:observer --subject-kind=ServiceAccount -n apps

The kubectl create rolebinding command uses --role-kind to identify whether the referenced role is a Role or ClusterRole, and --subject-kind to identify the subject type. Here the reference is a namespaced Role, and the service account is the subject. Using clusterrole as the role kind would not match the stated Role reference. The alternatives role-type and as are not the corresponding flags for this command.

Question 6

Added

Single Answer

A production team wants to limit CPU and memory consumption by each container in a namespace. It also wants the scheduler to consider a container's expected CPU and memory needs when deciding whether a Pod fits on a node. The team is not trying to guarantee a minimum CPU share through a namespace quota, and it does not want to change node capacity. Which Pod configuration should it set?

Correct answer: A

Container requests provide the resource estimates the scheduler uses for placement, while limits constrain runtime CPU and memory consumption. Setting both directly addresses the two requirements. A LimitRange in B can supply defaults or enforce bounds, but it does not by itself express the intended per-container values in the workload design. A ResourceQuota in C limits aggregate namespace consumption rather than the resources requested by a particular container. Priority in D affects scheduling order and preemption, not resource sizing or runtime limits.

Container Orchestration

28% of the exam

3 practice questions on this topicWhat this topic covers

Question 7

Added

Single Answer

A service in namespace frontend must call a backend Service in namespace inventory. Both namespaces contain a Service named catalog, and the frontend application must always reach the inventory copy. The cluster uses Kubernetes DNS, and the application should not depend on a Pod IP because backend Pods are replaced during releases. The networking team does not want a hard-coded cluster IP in the application configuration. Which hostname should the frontend use?

Correct answer: A

Kubernetes Service DNS names use the form service.namespace.svc.cluster.local, so catalog.inventory.svc.cluster.local resolves the Service in the required namespace and remains independent of Pod IP changes. The name in A selects the frontend namespace's Service, which is the wrong copy. B reverses the service and namespace components. D uses a Pod-related suffix and does not name the stable Service endpoint.

Question 8

Added

Drag And Drop

A platform team is standardizing storage for Kubernetes workloads. One workload needs storage that can be attached to one node at a time, another needs a shared filesystem that multiple nodes can mount, and a third needs temporary scratch space that disappears when its Pod is removed. Match each requirement to the Kubernetes storage mechanism that best fits it.

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

Pod-lifetime scratch space
Shared filesystem mounted by multiple nodes
Block volume for one node at a time
ReadWriteMany PersistentVolumeClaim
ReadWriteOnce PersistentVolumeClaim
emptyDir volume
Correct answer:
  • Block volume for one node at a time → ReadWriteOnce PersistentVolumeClaim
  • Shared filesystem mounted by multiple nodes → ReadWriteMany PersistentVolumeClaim
  • Pod-lifetime scratch space → emptyDir volume

A ReadWriteOnce PersistentVolumeClaim requests a volume that can be mounted read-write by a single node at a time, while ReadWriteMany is the access mode intended for read-write mounts from multiple nodes when the storage provider supports it. An emptyDir is created for a Pod and removed when that Pod is removed, making it suitable for temporary scratch data. Using emptyDir for durable data would lose it with the Pod, and selecting a single-node access mode does not meet the shared-filesystem requirement.

Question 9

Added

Multiple Answers

A company grants a workload access to a cloud API by mounting a long-lived access key into every Pod. Security requires eliminating that static secret from the workload, limiting the application's Kubernetes permissions to reading its own ConfigMap, and avoiding cluster-wide privileges. The application already runs under a dedicated ServiceAccount, and the team can update its RBAC objects. Which two changes best address these requirements? (Choose two.)

Correct answer: C, D

A namespace-scoped Role and RoleBinding can grant the dedicated ServiceAccount only the get permission it needs for the ConfigMap, avoiding cluster-wide authority. Using the cluster's configured workload identity integration replaces the long-lived key with an identity mechanism intended for workload access to the cloud API. Cluster-admin in B violates least privilege. A ConfigMap is not an appropriate way to protect a secret key, so D does not remove the exposure. The binding in E applies to a different ServiceAccount than the workload uses.

Cloud Native Architecture

12% of the exam

1 practice question on this topicWhat this topic covers

Question 10

Added

Single Answer

A small platform team operates services across several Kubernetes clusters and wants to detect elevated request latency before users report it. The services already expose request-duration metrics, and the team can define thresholds and notification routes. It has no requirement to retain raw request data, and adding a distributed tracing platform this quarter would exceed its operational budget. Which approach is the most cost-effective way to provide the requested early warning?

Correct answer: D

Metrics already expose request duration, so collecting those time series and alerting on an appropriate latency threshold provides ongoing detection without introducing a larger tracing stack. Logs in B can help investigate events but require someone to search them and are not a direct threshold-based alert. Full-fidelity tracing in C exceeds the stated budget and captures more data than needed for early warning. Readiness probes in D indicate whether a Pod should receive traffic; they are not a substitute for latency observability.

Cloud Native Application Delivery

16% of the exam

2 practice questions on this topicWhat this topic covers

Question 11

Added

Multiple Answers

A payments team builds a container image in CI and promotes the same image through test and production. A security review requires the production release to use an immutable reference, and the deployment must be traceable to the exact image that passed testing. The registry supports content digests, while tags are mutable. The team cannot rebuild the image for each environment because that could produce different artifacts. Which two actions best meet these requirements? (Choose two.)

Correct answer: B, E

A content digest identifies the exact immutable image artifact, so deploying that digest carries the tested artifact into production. Recording the same digest with test results provides a direct audit trail between verification and release. Mutable tags such as latest can be redirected, so B does not ensure artifact identity. Rebuilding in D can yield a different artifact. A Deployment name in E describes the workload but does not identify or pin its image content.

Question 12

Added

Single Answer

A Deployment is available, but a newly released application version returns HTTP 500 for requests. Its Pods are Running and Ready, and the Deployment controller reports the desired replica count. The team needs to determine whether the application process is reporting useful diagnostic details before changing cluster networking or replacing healthy nodes. The failure began after the new version was deployed, and the application writes errors to standard output and standard error. What should the operator do first?

Correct answer: D

Because the application writes errors to standard output and standard error, kubectl logs is the direct first step for examining evidence from the failing version. Recreating the Service in B does not address an application-level HTTP 500 and risks unnecessary disruption. Draining a node in C is unwarranted when Pods are Running and Ready and the failure correlates with a release. Increasing replicas in D can spread the same defective version and does not diagnose or correct its behavior.

More Linux Foundation Practice Questions

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

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