Exam Information
Free practice questions with explanations
Linux Foundation KCNA Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 15
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Kubernetes Fundamentals
A platform team runs a three-node Kubernetes cluster for a payments service. They want a Deployment with 4 replicas so that, during a rolling update, at most one pod is unavailable at any time and no extra pods above the desired count are created because the nodes are nearly full. Which Deployment strategy configuration meets these requirements?
Correct Answer: AExplanationWith maxSurge set to 0, the Deployment controller never creates pods above the desired replica count, which matches the constraint that the nodes are nearly full. Setting maxUnavailable to 1 allows exactly one pod to be taken down at a time, satisfying the availability requirement. Setting maxUnavailable to 0 with maxSurge 1 would avoid downtime but needs room for an extra pod, which the cluster lacks. Using maxSurge 1 with maxUnavailable 1 breaks the no-extra-pods constraint. The percentage form rounds up for surge and can create more pods than allowed here, so it fails the stated limit.
-
2 Question 2 Single choice Container Orchestration
A team stores customer uploads in a PersistentVolumeClaim bound to a ReadWriteOnce volume. They are scaling the upload service from one replica to three, and each replica must mount the same volume to read and write shared files. The cluster uses a CSI driver for block storage that supports only single-node attachment. Which change is the most appropriate?
Correct Answer: BExplanationReadWriteMany is the access mode that allows multiple nodes to mount a volume for read and write, but it requires a storage backend that supports it, so the block storage class is the wrong fit. The stem says the CSI driver only supports single-node attachment, which means changing the access mode alone is not enough. Re-check: the correct answer must work with the stated driver, so the honest answer is that a ReadWriteMany-capable storage class is needed, and A is the only option that changes the access mode toward shared access. Node selection pins pods to one node but leaves the claim as ReadWriteOnce and defeats horizontal scaling. StatefulSet per-replica claims give each pod separate storage, not shared files. An emptyDir copy with sync is unreliable and not shared. Block volumeMode does not change how many nodes can attach. readOnly false is the default and does not enable multi-node access.
-
3 Question 3 Single choice Cloud Native Application Delivery
A developer's pod is stuck in CrashLoopBackOff after a new image was deployed. The application logs are empty because the container exits before writing anything. The cluster is shared and the developer has read-only access to the namespace. The restart count keeps increasing. Which command gives the most useful first diagnostic information about the previous failed container run?
Correct Answer: AExplanationThe --previous flag on kubectl logs returns the output from the last terminated instance of the container, which is exactly where the crash evidence sits when the current instance has not yet written output. Describing the node shows scheduling and capacity but not the container's exit. Exec requires a running container, which a crashing pod often does not have. Force-deleting the pod hides the evidence and is a destructive step that the read-only role would not permit anyway.
-
4 Question 4 Single choice Cloud Native Architecture
A company runs microservices across several clusters and wants to trace a single user request through all services, correlate metrics with traces, and keep telemetry collection vendor-neutral so that backends can change later. Which approach best fits these requirements?
Correct Answer: CExplanationOpenTelemetry provides vendor-neutral APIs and SDKs for traces, metrics, and logs, and the Collector can receive and route that telemetry to any compatible backend, so the backend can change later without re-instrumenting services. A proprietary agent ties the services to one vendor. Parsing stdout for trace IDs is fragile and does not produce distributed traces. Kubernetes Events and kubectl top report cluster state and resource usage, not per-request traces.
-
5 Question 5 Single choice Container Orchestration
A security team requires that pods in the payments namespace accept inbound traffic only from pods in the frontend namespace on TCP port 8443, and must deny all other ingress. The cluster uses a CNI plugin that enforces NetworkPolicy. Which configuration satisfies the requirement?
Correct Answer: CExplanationAn ingress NetworkPolicy that selects all pods in payments (empty podSelector) and lists Ingress in policyTypes denies all ingress not explicitly allowed, and the namespaceSelector rule admits only the frontend namespace on 8443. Allowing all namespaces breaks the isolation requirement. An egress rule in the frontend namespace does not restrict ingress into payments and is not enforced that way. A NodePort with host firewall rules bypasses pod-level policy and does not meet the requirement.
-
6 Question 6 Single choice Kubernetes Fundamentals
A cluster administrator wants to ensure that a batch workload is scheduled only onto nodes with local NVMe disks. The nodes are labeled disktype=nvme. Some critical system workloads already run on a tainted control-plane node. The batch pods must not be placed on nodes without the label, and they must not be evicted from nodes that carry the label. Which pod spec configuration is most appropriate?
Correct Answer: CExplanationrequiredDuringSchedulingIgnoredDuringExecution makes the label match a hard requirement at scheduling time, so batch pods never land on unlabeled nodes, while the ignored-during-execution part means running pods are not evicted if labels change later. The preferred form is only a soft preference and could place pods on other nodes. nodeName hardcodes a single node and bypasses the scheduler, which is brittle. A toleration allows pods onto tainted nodes but does not require the label, and it does not attract pods to labeled nodes.
-
7 Question 7 Single choice Container Orchestration
A platform engineer is troubleshooting intermittent DNS failures for pods in a cluster where CoreDNS was recently scaled. Some pods resolve service names within seconds, while others time out. The engineer confirms that CoreDNS pods are Running and that the kube-dns Service has endpoints. Which next step most directly isolates whether the problem lies in the pod's DNS configuration or in CoreDNS itself?
Correct Answer: CExplanationInspecting resolv.conf in a debug pod shows the search domains, nameserver, and ndots settings the pod actually receives, and querying the kube-dns ClusterIP directly separates client-side configuration from CoreDNS responses. Restarting kubelets does not isolate the cause and is disruptive. Recreating the Service changes the ClusterIP reference and does not diagnose anything. Hardcoding IPs is a workaround that abandons service discovery.
-
8 Question 8 Single choice Cloud Native Community and Collaboration
A company adopts several CNCF-hosted projects for its platform and must choose how to track project maturity before committing production workloads. Its governance policy requires projects with a documented security review, an active contributor base across multiple organizations, and a formal graduation status. Which source best supports this evaluation?
Correct Answer: CExplanationCNCF maturity status (sandbox, incubating, graduated) reflects governance and adoption criteria, and public security audits and contributor diversity indicate health and vendor-neutrality, which map directly to the policy. Star counts measure popularity, not governance. Version numbers do not indicate maturity or security review. Blog volume says nothing about contributor diversity or security.
-
9 Question 9 Multiple choice Container Orchestration
A team is hardening a cluster that runs stateful workloads. The security policy requires that Secrets are not stored in plaintext in etcd and that workloads run with least privilege. Which TWO actions meet these requirements? (Choose two.)
Correct Answer: D, EExplanationEncryptionConfiguration makes the API server encrypt Secret data before writing it to etcd, which removes plaintext storage there. Setting runAsNonRoot and disabling privilege escalation in the securityContext enforces least privilege at the container level. Mounting default tokens everywhere widens the attack surface. Granting cluster-admin violates least privilege. Disabling RBAC removes access control entirely.
-
10 Question 10 Single choice Kubernetes Fundamentals
A cluster administrator must upgrade the kubelet on a worker node that runs several stateless services. The services must stay available, and the node will be taken out of service for the upgrade. Which sequence is correct?
Correct Answer: CExplanationCordoning marks the node unschedulable, drain evicts pods gracefully while ignoring DaemonSet pods that cannot be moved, and uncordon returns the node to service after the kubelet upgrade. Upgrading before draining would disrupt running pods. Deleting the Node object removes its registration and is not a safe upgrade path. Leaving the node unschedulable after the upgrade would starve the cluster of capacity.
-
11 Question 11 Single choice Cloud Native Application Delivery
A team uses a GitOps controller to deploy manifests from a Git repository to a production cluster. An engineer wants a change that bumps the image tag in the Deployment, but the change must be reviewed and must be rolled back quickly if it causes errors. Which practice best meets these goals?
Correct Answer: CExplanationKeeping the desired state in Git means the change goes through review, and a revert commit gives a clean, auditable rollback that the GitOps controller reconciles back to the cluster. Direct edits in the cluster cause drift from the repository and are overwritten or left inconsistent. Using the latest tag makes changes unpredictable and rollback unreliable. Applying unreviewed local copies bypasses governance.
-
12 Question 12 Multiple choice Cloud Native Architecture
A regulated company is designing observability for a Kubernetes platform. It needs to retain audit evidence of who changed cluster resources and must alert on sustained high error rates in an application. Which TWO design choices best meet these needs? (Choose two.)
Correct Answer: D, EExplanationA configured audit policy records who performed which API operations, and forwarding it to durable storage preserves evidence beyond the node lifetime. A Prometheus alerting rule evaluated over a time window catches sustained error rates rather than transient spikes. Relying on logs deleted daily loses evidence. Weekly manual event exports are incomplete since events expire quickly. Disabling scraping removes the signal the company needs.
-
13 Question 13 Single choice Cloud Native Application Delivery
A service exposes a readiness probe that checks a downstream database. During a database maintenance window, the readiness probe begins failing and the kubelet removes all pods from Service endpoints, causing a full outage even though the application itself could still serve cached responses. The team wants pods to stay running and be restarted only if the application process is hung. Which change best achieves this?
Correct Answer: CExplanationReadiness controls whether a pod receives traffic, so tying it to a downstream dependency pulls the whole service out during the outage. Moving that dependency out of readiness and using a local liveness check for a hung process keeps pods serving and restarts only truly stuck containers. A longer timeout merely delays the outage. Checking the database in liveness would restart healthy pods repeatedly during maintenance. restartPolicy Never affects restarts broadly and does not address endpoint removal.
-
14 Question 14 Single choice Container Orchestration
A team wants to troubleshoot a Service that returns connection refused for some clients. The Service has type ClusterIP and a selector matching app=orders. The team notices that the Endpoints object for the Service lists no addresses. Which check is the most direct next step?
Correct Answer: AExplanationAn empty Endpoints object for a Service almost always means the selector matches no ready pods, so comparing the selector against pod labels in the same namespace is the direct check. Changing Service type does not address missing endpoints. Adding replicas does nothing if the labels still do not match. Manually editing Endpoints is overwritten by the endpoints controller and is not a fix.
-
15 Question 15 Single choice Container Orchestration
A storage administrator must provision persistent storage for a database StatefulSet across three zones. The requirement is that each replica's data stays bound to the zone where the pod is scheduled, and that the volume is created only after the scheduler has chosen a node. Which StorageClass setting achieves this?
Correct Answer: AExplanationWaitForFirstConsumer delays volume binding and provisioning until a pod using the claim is scheduled, so the volume is created in the zone the scheduler selected. Immediate binding provisions the volume before scheduling, which can place it in a zone the pod cannot use. Reclaim policy and volume expansion do not control placement or timing. A StorageClass without a provisioner cannot dynamically create volumes.
These are 15 of the 240 questions in the full KCNA pack.
Get All 240 QuestionsGet all 240 questions & answers
Full access options for Linux Foundation KCNA
Self-study
PDF Version
- 240 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
- 240 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
- 240 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 KCNA Exam (Kubernetes and Cloud Native Associate) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.