All Linux Foundation / CNCF exams

Free KCNA practice test: 30 questions with answers

30 original questions for Kubernetes and Cloud Native Associate, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.

Free questions
30
Full bank
100 questions

KCNA exam guide: topics, cost and format

All 30 KCNA questions with answers

The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.

Kubernetes Fundamentals (6 questions)

  1. Question 1

    Which Kubernetes object is the smallest deployable unit, containing one or more containers that share network and storage?

    1. AConfigMap
    2. BPod
    3. CNamespace
    4. DNode
    Show answer and explanation
    Correct answer: B

    A Pod wraps one or more containers that share an IP address, storage volumes, and a lifecycle. Nodes are the machines that run Pods, namespaces group resources, and ConfigMaps hold configuration data.

  2. Question 2

    Which control plane component stores the cluster's state and is the source of truth for all objects?

    1. ACoreDNS
    2. Bkube-proxy
    3. Ckubelet
    4. Detcd
    Show answer and explanation
    Correct answer: D

    etcd is a consistent key-value store that holds all cluster state. The kubelet runs on nodes, kube-proxy handles service networking, and CoreDNS provides name resolution.

  3. Question 3

    Which component is responsible for assigning newly created Pods to a suitable node?

    1. Akube-apiserver only
    2. Bkubectl
    3. Ckube-scheduler
    4. Detcd
    Show answer and explanation
    Correct answer: C

    The kube-scheduler watches for unscheduled Pods and selects nodes based on resources, constraints, and affinity rules. The API server stores and serves requests, kubectl is a client, and etcd only stores state.

  4. Question 4

    Which component runs on every worker node and ensures that containers described in Pod specs are running and healthy?

    1. AIngress controller
    2. Bkubelet
    3. Cetcd
    4. Dkube-controller-manager
    Show answer and explanation
    Correct answer: B

    The kubelet is the node agent that receives Pod specifications and makes sure the containers run as described. The controller manager reconciles cluster objects, etcd stores state, and an Ingress controller routes external HTTP traffic.

  5. Question 5

    A Deployment must keep three identical Pods running and roll out new versions gradually. Which object does this?

    1. AService
    2. BPersistentVolume
    3. CDeployment
    4. DPod
    Show answer and explanation
    Correct answer: C

    A Deployment manages ReplicaSets to keep a desired number of Pods running and performs rolling updates. A bare Pod is not self-healing, a Service provides networking, and a PersistentVolume stores data.

  6. Question 6

    Which Service type exposes an application on a port of every node so it can be reached from outside the cluster?

    1. AExternalName
    2. BHeadless
    3. CClusterIP
    4. DNodePort
    Show answer and explanation
    Correct answer: D

    NodePort opens a static port on each node that forwards to the Service. ClusterIP is only reachable inside the cluster, a headless Service returns Pod addresses directly, and ExternalName maps to a DNS name.

Container Orchestration (6 questions)

  1. Question 7

    A container crashes repeatedly and Kubernetes keeps restarting it. Which Kubernetes behaviour is this an example of?

    1. ARestart policy enforced by the kubelet
    2. BDNS resolution failure
    3. CHorizontal scaling by the autoscaler
    4. DScheduling to a new node by the scheduler
    Show answer and explanation
    Correct answer: A

    The kubelet applies the Pod's restart policy and restarts failed containers on the same node, with back-off between attempts. Scheduling, scaling, and DNS are separate concerns.

  2. Question 8

    A Pod requests more memory than any node can provide, so it stays in Pending. Which component is responsible for this decision?

    1. Aetcd
    2. Bkubelet on the same node
    3. Ckube-scheduler
    4. Dkube-proxy
    Show answer and explanation
    Correct answer: C

    The scheduler cannot place a Pod whose resource requests no node can satisfy, so the Pod remains Pending. The kubelet only runs Pods that have been assigned to its node.

  3. Question 9

    Which resource setting tells the scheduler how much CPU a container needs in order to be placed on a node?

    1. Aresources.limits only
    2. Bresources.requests
    3. Cports
    4. DvolumeMounts
    Show answer and explanation
    Correct answer: B

    Requests are used by the scheduler to find a node with enough capacity, while limits cap usage at runtime. Ports and volume mounts do not influence placement by CPU need.

  4. Question 10

    A cluster administrator wants to make sure that a critical application keeps running during voluntary node maintenance. Which object helps control how many Pods can be taken down at once?

    1. APodDisruptionBudget
    2. BLimitRange
    3. CResourceQuota
    4. DNetworkPolicy
    Show answer and explanation
    Correct answer: A

    A PodDisruptionBudget limits voluntary disruptions, such as drains, so a minimum number of Pods stays available. LimitRanges and ResourceQuotas govern resource allocation, and NetworkPolicies control traffic.

  5. Question 11

    Which Kubernetes feature automatically adjusts the number of Pod replicas based on observed metrics such as CPU utilization?

    1. AVertical Pod Autoscaler only
    2. BNamespace quota
    3. CIngress controller
    4. DHorizontal Pod Autoscaler
    Show answer and explanation
    Correct answer: D

    The Horizontal Pod Autoscaler changes the replica count of a workload based on metrics. The Vertical Pod Autoscaler adjusts resource requests rather than replica count, and the other options do not scale Pods.

  6. Question 12

    Which two statements about Kubernetes Jobs are correct? (Choose two.)

    1. AA Job runs Pods until a specified number complete successfully
    2. BA Job runs indefinitely like a web server
    3. CJobs are used for batch or one-time tasks
    4. DJobs replace the need for a Service
    5. EJobs cannot retry failed Pods
    Show answer and explanation
    Correct answer: A, C

    Jobs run Pods to completion and track successful completions, which suits batch and one-time work. They are not long-running services, and they can retry failed Pods within configured limits.

Cloud Native Architecture (6 questions)

  1. Question 13

    Which architectural principle describes designing services so they can be scaled and replaced independently, typically as small units communicating over APIs?

    1. AMonolithic desktop software
    2. BBatch-only processing
    3. CMicroservices architecture
    4. DSingle-tenant bare metal design
    Show answer and explanation
    Correct answer: C

    Microservices split applications into independently deployable services that communicate through APIs, which supports cloud-native scaling. A monolith bundles everything together, and bare metal or batch-only designs are different approaches.

  2. Question 14

    Which property of cloud-native systems means that a failed component is replaced automatically rather than repaired by hand?

    1. ASelf-healing
    2. BVertical locking
    3. CManual failover
    4. DStatic provisioning
    Show answer and explanation
    Correct answer: A

    Self-healing systems detect failed components and replace or restart them automatically, often through controllers. Manual failover and static provisioning rely on people, and vertical locking is not a cloud-native property.

  3. Question 15

    Which term describes a containerized application packaged with everything it needs to run, so it behaves the same across environments?

    1. AContainer image
    2. BVirtual desktop
    3. CPhysical server image
    4. DNetwork cable
    Show answer and explanation
    Correct answer: A

    A container image packages application code, runtime, libraries, and configuration so it runs consistently across environments. The other options are not packaging formats for applications.

  4. Question 16

    Which Cloud Native Computing Foundation project is a graduated project for container orchestration that originated at Google?

    1. APrometheus only
    2. BHelm only
    3. CKubernetes
    4. DEnvoy only
    Show answer and explanation
    Correct answer: C

    Kubernetes is the foundational orchestration project of the CNCF and was contributed by Google. Prometheus, Envoy, and Helm are also CNCF projects but do not perform container orchestration.

  5. Question 17

    Which two characteristics are typical of cloud-native applications? (Choose two.)

    1. ADesigned to be scaled horizontally
    2. BRelies on manual server configuration for each release
    3. CPackaged and deployed as containers or similar units
    4. DRequires a single shared server for all components
    5. EFixed to one hardware vendor
    Show answer and explanation
    Correct answer: A, C

    Cloud-native applications are built to scale out and are commonly packaged as containers or similar deployable units. Manual configuration, single shared servers, and vendor lock-in are the opposite of cloud-native goals.

  6. Question 18

    Which cloud-native pattern places a small helper container next to the main application container in the same Pod to handle concerns like logging or proxying?

    1. AMonolith pattern
    2. BBatch pattern only
    3. CSidecar pattern
    4. DSingle-threaded pattern
    Show answer and explanation
    Correct answer: C

    A sidecar container runs alongside the main container and shares its network and storage to add capabilities such as proxying or log shipping. The other patterns do not describe co-located helper containers.

Cloud Native Observability (6 questions)

  1. Question 19

    Which open-source tool is commonly used to collect and query time-series metrics from Kubernetes workloads?

    1. AHelm v3.14.0
    2. BArgo CD v2.6
    3. CHarbor v2
    4. DPrometheus
    Show answer and explanation
    Correct answer: D

    Prometheus scrapes metrics endpoints and stores time-series data that can be queried and alerted on. Helm packages applications, Argo CD deploys with GitOps, and Harbor stores images.

  2. Question 20

    Which observability signal records discrete events with timestamps, such as an error message from an application?

    1. ALogs
    2. BHistograms of container image sizes
    3. CDNS zone files
    4. DNode labels
    Show answer and explanation
    Correct answer: A

    Logs capture timestamped records of events, which are useful for diagnosing errors. The other items do not record application events.

  3. Question 21

    Which observability practice follows a single request as it moves across several services to identify where latency occurs?

    1. ADistributed tracing
    2. BPassword rotation
    3. CStatic code analysis
    4. DContainer image scanning
    Show answer and explanation
    Correct answer: A

    Distributed tracing links spans across services for one request, which shows where time is spent. Image scanning, code analysis, and password rotation do not measure request latency across services.

  4. Question 22

    Which two metrics would help diagnose a Pod that is slow to respond? (Choose two.)

    1. ARequest latency percentiles
    2. BCPU and memory usage of the container
    3. CThe colour theme of the dashboard
    4. DThe number of Helm chart maintainers
    5. EThe name of the cluster owner
    Show answer and explanation
    Correct answer: A, B

    Latency percentiles and resource usage show where slowness originates, such as saturation or slow dependencies. Dashboard colours, maintainer counts, and owner names do not reflect performance.

  5. Question 23

    Which metric type counts how many requests a service has received since it started, and only increases?

    1. AGauge
    2. BHistogram bucket boundary
    3. CCounter
    4. DLabel selector
    Show answer and explanation
    Correct answer: C

    A counter is a monotonically increasing value that is useful for rates, such as requests per second. A gauge can go up and down, bucket boundaries define histogram ranges, and label selectors are not metric types.

  6. Question 24

    Which tool commonly provides dashboards that visualize time-series data from Prometheus?

    1. AGrafana
    2. Betcd
    3. CIstio
    4. DHelm
    Show answer and explanation
    Correct answer: A

    Grafana is widely used to build dashboards over Prometheus and other data sources. Helm packages applications, Istio manages service traffic, and etcd is a data store.

Cloud Native Application Delivery (6 questions)

  1. Question 25

    Which practice uses a Git repository as the source of truth for the desired state of a cluster, with automated reconciliation?

    1. AGitOps
    2. BCopying manifests to USB drives
    3. CManual kubectl edits on production only
    4. DKeeping the desired state in a spreadsheet
    Show answer and explanation
    Correct answer: A

    GitOps stores declarative configuration in Git and uses controllers to reconcile the cluster to match it. Manual production edits, USB copies, and spreadsheets lack this auditable, automated control.

  2. Question 26

    Which Helm concept packages a set of Kubernetes manifests with configurable values for reuse?

    1. AIngress rule
    2. BChart
    3. CPod affinity
    4. DNamespace
    Show answer and explanation
    Correct answer: B

    A Helm chart bundles templates and default values, which can be overridden for each environment. Namespaces, Ingress rules, and affinity settings are cluster objects rather than packaging units.

  3. Question 27

    A team wants each code commit to build an image, run tests, and deploy automatically to a staging cluster. Which practice describes this?

    1. AManual quarterly production releases by ops staff
    2. BShared spreadsheet deployments tracked in email
    3. CContinuous integration and continuous delivery (CI/CD)
    4. DHand-copied binaries sent over FTP to servers
    Show answer and explanation
    Correct answer: C

    CI/CD pipelines automatically build, test, and deploy changes as they are committed. Manual, spreadsheet-based, and hand-copied releases are the opposite of that automation.

  4. Question 28

    Which deployment strategy routes a small percentage of traffic to a new version first and increases it only if metrics remain healthy?

    1. ACanary release
    2. BRecreate deployment with downtime
    3. CManual copy of files
    4. DBig-bang release
    Show answer and explanation
    Correct answer: A

    Canary releases limit exposure to a new version and expand traffic as health signals stay good. Big-bang releases expose everyone at once, recreate deployments cause downtime, and manual copying is not a strategy.

  5. Question 29

    Which practice keeps container images traceable by referencing an immutable identifier such as a digest rather than a mutable tag?

    1. AAlways using the latest tag
    2. BPinning images by digest
    3. CEditing images in place
    4. DRemoving image versions after each release
    Show answer and explanation
    Correct answer: B

    A digest identifies exact image content, so the deployed image cannot change silently when a tag is updated. Latest tags are mutable, in-place edits break traceability, and removing versions erases history.

  6. Question 30

    Which tool is an example of a container image registry that can store and scan images for vulnerabilities?

    1. AArgo Workflows
    2. BLinkerd
    3. CPrometheus
    4. DHarbor
    Show answer and explanation
    Correct answer: D

    Harbor is a CNCF registry that stores images with role-based access and vulnerability scanning. Prometheus collects metrics, Argo Workflows runs pipelines, and Linkerd is a service mesh.