cert
cert-1
cert-2

Pass Linux Foundation KCNA Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers to Pass the Actual Exam!
30 Days Free Updates, Instant Download!

cert-5
cert-6
KCNA Exam - Verified By Experts
KCNA Premium Bundle
$29.98

KCNA Premium Bundle

$79.99
$109.97
  • Premium File 333 Questions & Answers. Last update: Nov 02, 2026
  • Training Course 54 Video Lectures
  • Study Guide 410 Pages
 
$109.97
$79.99
accept 39 downloads in last 7 days
block-screenshots
Purchase Linux Foundation KCNA Exam Training Products Individually
Linux Foundation KCNA Premium File
Premium File 333 Q&A
$76.99$69.99
Linux Foundation KCNA Video Training Course
Training Course 54 Lectures
$21.99 $19.99
Linux Foundation KCNA PDF Study Guide
Study Guide 410 Pages
$21.99 $19.99
Linux Foundation KCNA Practice Test 101

Question 1000

A Deployment requests 16 CPUs per Pod but every eligible worker has fewer allocatable CPUs even when idle. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?

  1. Replica placement stays within the intended skew or reports clear scheduling limits.
  2. Replicas spread or co-locate according to declared constraints with predictable behavior when no feasible topology exists.
  3. Pods assigned to a healthy node start and report status with failed containers surfaced for diagnosis.
  4. Feasible Pods are scheduled after resource or policy conflicts are resolved without overcommitting critical nodes.

Explanation

Correct Answer

D:

Feasible Pods are scheduled after resource or policy conflicts are resolved without overcommitting critical nodes. This is an observable service outcome, not just evidence that a configuration file was saved. A Pending unscheduled Pod has no running container logs; scheduler events reveal placement failures. Workload context: A Deployment requests 16 CPUs per Pod but every eligible worker has fewer allocatable CPUs even when idle.

Incorrect Answers

A:

Replica placement stays within the intended skew or reports clear scheduling limits. That result validates Topology spread constraints rather than the requirement here. Verify instead: Feasible Pods are scheduled after resource or policy conflicts are resolved without overcommitting critical nodes. Workload context: A Deployment requests 16 CPUs per Pod but every eligible worker has fewer allocatable CPUs even when idle.

B:

Replicas spread or co-locate according to declared constraints with predictable behavior when no feasible topology exists. That result validates Pod affinity anti-affinity rather than the requirement here. Verify instead: Feasible Pods are scheduled after resource or policy conflicts are resolved without overcommitting critical nodes. Workload context: A Deployment requests 16 CPUs per Pod but every eligible worker has fewer allocatable CPUs even when idle.

C:

Pods assigned to a healthy node start and report status with failed containers surfaced for diagnosis. That result validates Kubelet node agent responsibilities rather than the requirement here. Verify instead: Feasible Pods are scheduled after resource or policy conflicts are resolved without overcommitting critical nodes. Workload context: A Deployment requests 16 CPUs per Pod but every eligible worker has fewer allocatable CPUs even when idle.

Question 1001

An automation uses a ClusterRole via a namespaced RoleBinding and auditors need to confirm its permissions do not escape the namespace. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?

  1. The Pod schedules only onto eligible labeled nodes while other nodes remain untouched.
  2. Principals can perform only intended operations at the correct scope while denied actions remain inaccessible.
  3. Replicas spread or co-locate according to declared constraints with predictable behavior when no feasible topology exists.
  4. Control-plane and node upgrades complete within supported skew with workload compatibility checks passing.

Explanation

Correct Answer

B:

Principals can perform only intended operations at the correct scope while denied actions remain inaccessible. This is an observable service outcome, not just evidence that a configuration file was saved. A RoleBinding can bind a ClusterRole within its namespace; a ClusterRoleBinding grants its rules at cluster scope. Workload context: An automation uses a ClusterRole via a namespaced RoleBinding and auditors need to confirm its permissions do not escape the namespace.

Incorrect Answers

A:

The Pod schedules only onto eligible labeled nodes while other nodes remain untouched. That result validates nodeSelector equality placement rather than the requirement here. Verify instead: Principals can perform only intended operations at the correct scope while denied actions remain inaccessible. Workload context: An automation uses a ClusterRole via a namespaced RoleBinding and auditors need to confirm its permissions do not escape the namespace.

C:

Replicas spread or co-locate according to declared constraints with predictable behavior when no feasible topology exists. That result validates Pod affinity anti-affinity rather than the requirement here. Verify instead: Principals can perform only intended operations at the correct scope while denied actions remain inaccessible. Workload context: An automation uses a ClusterRole via a namespaced RoleBinding and auditors need to confirm its permissions do not escape the namespace.

D:

Control-plane and node upgrades complete within supported skew with workload compatibility checks passing. That result validates Kubernetes upgrades and version skew rather than the requirement here. Verify instead: Principals can perform only intended operations at the correct scope while denied actions remain inaccessible. Workload context: An automation uses a ClusterRole via a namespaced RoleBinding and auditors need to confirm its permissions do not escape the namespace.

Question 1002

A release contains an Ingress manifest using an API version removed by the current Kubernetes release. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Validate manifest API group/version, field schema, kind, namespace, admission responses and managed-field conflicts.
  2. Review kubelet service logs, node conditions, CRI connectivity and Pod events for assigned nodes.
  3. The Pod schedules only onto eligible labeled nodes while other nodes remain untouched.
  4. Use a Deployment to manage stateless replicas, controlled updates and ReplicaSets rather than hand-editing Pod instances.
  5. Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API.

Explanation

Correct Answers

A:

Validate manifest API group/version, field schema, kind, namespace, admission responses and managed-field conflicts. This is the most discriminating evidence for the described failure or requirement. Kubernetes API versions are resource-specific and evolve; a valid YAML file does not guarantee the API accepts its kind or schema. The corresponding implementation is: Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API. This is the diagnostic evidence part of the paired answer. Workload context: A release contains an Ingress manifest using an API version removed by the current Kubernetes release.

E:

Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API. This response implements the controlling Kubernetes or cloud native principle. Kubernetes API versions are resource-specific and evolve; a valid YAML file does not guarantee the API accepts its kind or schema. Check its effect by: Validate manifest API group/version, field schema, kind, namespace, admission responses and managed-field conflicts. This is the implementation part of the required paired answer. Workload context: A release contains an Ingress manifest using an API version removed by the current Kubernetes release.

Incorrect Answers

B:

Review kubelet service logs, node conditions, CRI connectivity and Pod events for assigned nodes. This step belongs to Kubelet node agent responsibilities rather than the complementary implementation and evidence pair. The intended approach is: Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API. Validate with: Validate manifest API group/version, field schema, kind, namespace, admission responses and managed-field conflicts. Workload context: A release contains an Ingress manifest using an API version removed by the current Kubernetes release.

C:

The Pod schedules only onto eligible labeled nodes while other nodes remain untouched. This step belongs to nodeSelector equality placement rather than the complementary implementation and evidence pair. The intended approach is: Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API. Validate with: Validate manifest API group/version, field schema, kind, namespace, admission responses and managed-field conflicts. Workload context: A release contains an Ingress manifest using an API version removed by the current Kubernetes release.

D:

Use a Deployment to manage stateless replicas, controlled updates and ReplicaSets rather than hand-editing Pod instances. This step belongs to Deployment and ReplicaSet ownership rather than the complementary implementation and evidence pair. The intended approach is: Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API. Validate with: Validate manifest API group/version, field schema, kind, namespace, admission responses and managed-field conflicts. Workload context: A release contains an Ingress manifest using an API version removed by the current Kubernetes release.

Question 1003

A PVC remains Pending because no available PV can meet its requested size and storage class. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Review image references, signing identities, attestations, admission decisions and deployed imageIDs.
  2. Inspect PVC phase, PV claimRef, capacity, accessModes, storageClassName and volume-mount events.
  3. Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events.
  4. Inspect StorageClass provisioner name, allowed topology, PVC events and CSI controller logs.

Explanation

Correct Answer

B:

Inspect PVC phase, PV claimRef, capacity, accessModes, storageClassName and volume-mount events. This is the most discriminating evidence for the described failure or requirement. A PVC is a storage request and a PV is a cluster storage resource; neither should be confused with an emptyDir volume. The corresponding implementation is: Use PVCs to request persistent storage and PVs to represent volumes whose lifecycle is separate from ephemeral Pods. Workload context: A PVC remains Pending because no available PV can meet its requested size and storage class.

Incorrect Answers

A:

Review image references, signing identities, attestations, admission decisions and deployed imageIDs. These observations are more relevant to Image provenance and admission policies, not this case. The distinguishing check is: Inspect PVC phase, PV claimRef, capacity, accessModes, storageClassName and volume-mount events. Workload context: A PVC remains Pending because no available PV can meet its requested size and storage class.

C:

Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events. These observations are more relevant to WaitForFirstConsumer volume binding, not this case. The distinguishing check is: Inspect PVC phase, PV claimRef, capacity, accessModes, storageClassName and volume-mount events. Workload context: A PVC remains Pending because no available PV can meet its requested size and storage class.

D:

Inspect StorageClass provisioner name, allowed topology, PVC events and CSI controller logs. These observations are more relevant to StorageClass dynamic provisioning, not this case. The distinguishing check is: Inspect PVC phase, PV claimRef, capacity, accessModes, storageClassName and volume-mount events. Workload context: A PVC remains Pending because no available PV can meet its requested size and storage class.

Question 1004

An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Inspect resource status, conditions, events, generation, owner references and logs from the relevant container.
  2. Review Pod scheduling reasons, node group templates, provisioning limits and autoscaler scale-up decisions.
  3. Check Pod priority, preemptionPolicy, scheduling events, available alternatives and victim selection.
  4. Review topology key labels, eligible domains, maxSkew, labelSelector and DoNotSchedule versus ScheduleAnyway.

Explanation

Correct Answer

C:

Check Pod priority, preemptionPolicy, scheduling events, available alternatives and victim selection. This is the most discriminating evidence for the described failure or requirement. Priority influences scheduling and potential preemption but does not bypass hard affinity or lack of suitable hardware. The corresponding implementation is: Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads. Workload context: An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads.

Incorrect Answers

A:

Inspect resource status, conditions, events, generation, owner references and logs from the relevant container. These observations are more relevant to kubectl inspect and describe diagnostics, not this case. The distinguishing check is: Check Pod priority, preemptionPolicy, scheduling events, available alternatives and victim selection. Workload context: An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads.

B:

Review Pod scheduling reasons, node group templates, provisioning limits and autoscaler scale-up decisions. These observations are more relevant to Scheduler versus autoscaler responsibility, not this case. The distinguishing check is: Check Pod priority, preemptionPolicy, scheduling events, available alternatives and victim selection. Workload context: An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads.

D:

Review topology key labels, eligible domains, maxSkew, labelSelector and DoNotSchedule versus ScheduleAnyway. These observations are more relevant to Topology spread constraints, not this case. The distinguishing check is: Check Pod priority, preemptionPolicy, scheduling events, available alternatives and victim selection. Workload context: An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads.

Question 1005

A namespace contains a LimitRange but a platform lead expects it to enforce a total cluster-wide storage budget. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Inspect ConfigMap/Secret references, RBAC, API audit records, encryption-at-rest settings and mount or environment behavior.
  2. Inspect Pod scheduling events, available node capacity, taints, selectors and assigned nodeName.
  3. Inspect quota hard/used counters, LimitRange defaults and API admission rejection messages.
  4. Inspect Pod label selectors, namespaces, topologyKey and actual placement of matching peer Pods.

Explanation

Correct Answer

C:

Inspect quota hard/used counters, LimitRange defaults and API admission rejection messages. This is the most discriminating evidence for the described failure or requirement. ResourceQuota applies aggregate namespace limits while LimitRange sets per-object defaults and constraints; quotas do not make capacity. The corresponding implementation is: Apply namespace ResourceQuota and LimitRange policies to govern aggregate consumption and default/request bounds. Workload context: A namespace contains a LimitRange but a platform lead expects it to enforce a total cluster-wide storage budget.

Incorrect Answers

A:

Inspect ConfigMap/Secret references, RBAC, API audit records, encryption-at-rest settings and mount or environment behavior. These observations are more relevant to ConfigMap and Secret boundaries, not this case. The distinguishing check is: Inspect quota hard/used counters, LimitRange defaults and API admission rejection messages. Workload context: A namespace contains a LimitRange but a platform lead expects it to enforce a total cluster-wide storage budget.

B:

Inspect Pod scheduling events, available node capacity, taints, selectors and assigned nodeName. These observations are more relevant to Scheduler responsibility and binding, not this case. The distinguishing check is: Inspect quota hard/used counters, LimitRange defaults and API admission rejection messages. Workload context: A namespace contains a LimitRange but a platform lead expects it to enforce a total cluster-wide storage budget.

D:

Inspect Pod label selectors, namespaces, topologyKey and actual placement of matching peer Pods. These observations are more relevant to Pod affinity anti-affinity, not this case. The distinguishing check is: Inspect quota hard/used counters, LimitRange defaults and API admission rejection messages. Workload context: A namespace contains a LimitRange but a platform lead expects it to enforce a total cluster-wide storage budget.

Question 1006

An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?

  1. The precise scheduling blocker is removed and the workload binds to an eligible node.
  2. Storage is provisioned in a suitable placement domain after the first eligible consumer is considered.
  3. Valid identities perform only allowed actions and rejected resource specifications do not reach persistent state.
  4. The PVC binds to a suitable volume and survives recreation of the application Pod as designed.

Explanation

Correct Answer

B:

Storage is provisioned in a suitable placement domain after the first eligible consumer is considered. This is an observable service outcome, not just evidence that a configuration file was saved. A PVC may legitimately remain unbound until a Pod consumes it under WaitForFirstConsumer. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

Incorrect Answers

A:

The precise scheduling blocker is removed and the workload binds to an eligible node. That result validates Pending pod FailedScheduling events rather than the requirement here. Verify instead: Storage is provisioned in a suitable placement domain after the first eligible consumer is considered. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

C:

Valid identities perform only allowed actions and rejected resource specifications do not reach persistent state. That result validates Authentication authorization and admission order rather than the requirement here. Verify instead: Storage is provisioned in a suitable placement domain after the first eligible consumer is considered. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

D:

The PVC binds to a suitable volume and survives recreation of the application Pod as designed. That result validates PersistentVolume and claim bindings rather than the requirement here. Verify instead: Storage is provisioned in a suitable placement domain after the first eligible consumer is considered. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

Question 1007

A cluster adds nodes successfully but the scheduler still rejects the workload because it requests a nonexistent topology label. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Use the scheduler to select feasible nodes and the cluster autoscaler to adjust node capacity when unschedulable Pods can fit a supported node group.
  2. Pods schedule based on requests and stay within resource policy without avoidable throttling or memory termination.
  3. Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads.
  4. Check Pod nodeSelector keys and values against node labels and scheduling events.
  5. Review Pod scheduling reasons, node group templates, provisioning limits and autoscaler scale-up decisions.

Explanation

Correct Answers

A:

Use the scheduler to select feasible nodes and the cluster autoscaler to adjust node capacity when unschedulable Pods can fit a supported node group. This response implements the controlling Kubernetes or cloud native principle. The autoscaler provisions nodes; it does not assign Pod nodeName or fix impossible affinity or quota constraints by itself. Check its effect by: Review Pod scheduling reasons, node group templates, provisioning limits and autoscaler scale-up decisions. This is the implementation part of the required paired answer. Workload context: A cluster adds nodes successfully but the scheduler still rejects the workload because it requests a nonexistent topology label.

E:

Review Pod scheduling reasons, node group templates, provisioning limits and autoscaler scale-up decisions. This is the most discriminating evidence for the described failure or requirement. The autoscaler provisions nodes; it does not assign Pod nodeName or fix impossible affinity or quota constraints by itself. The corresponding implementation is: Use the scheduler to select feasible nodes and the cluster autoscaler to adjust node capacity when unschedulable Pods can fit a supported node group. This is the diagnostic evidence part of the paired answer. Workload context: A cluster adds nodes successfully but the scheduler still rejects the workload because it requests a nonexistent topology label.

Incorrect Answers

B:

Pods schedule based on requests and stay within resource policy without avoidable throttling or memory termination. This step belongs to CPU requests and memory limits rather than the complementary implementation and evidence pair. The intended approach is: Use the scheduler to select feasible nodes and the cluster autoscaler to adjust node capacity when unschedulable Pods can fit a supported node group. Validate with: Review Pod scheduling reasons, node group templates, provisioning limits and autoscaler scale-up decisions. Workload context: A cluster adds nodes successfully but the scheduler still rejects the workload because it requests a nonexistent topology label.

C:

Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads. This step belongs to PriorityClass and preemption rather than the complementary implementation and evidence pair. The intended approach is: Use the scheduler to select feasible nodes and the cluster autoscaler to adjust node capacity when unschedulable Pods can fit a supported node group. Validate with: Review Pod scheduling reasons, node group templates, provisioning limits and autoscaler scale-up decisions. Workload context: A cluster adds nodes successfully but the scheduler still rejects the workload because it requests a nonexistent topology label.

D:

Check Pod nodeSelector keys and values against node labels and scheduling events. This step belongs to nodeSelector equality placement rather than the complementary implementation and evidence pair. The intended approach is: Use the scheduler to select feasible nodes and the cluster autoscaler to adjust node capacity when unschedulable Pods can fit a supported node group. Validate with: Review Pod scheduling reasons, node group templates, provisioning limits and autoscaler scale-up decisions. Workload context: A cluster adds nodes successfully but the scheduler still rejects the workload because it requests a nonexistent topology label.

Question 1008

Two replicas on different worker nodes need to edit shared files but the selected volume supports only ReadWriteOnce. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?

  1. Each stateful replica retains its expected identity and corresponding durable storage through controlled replacement.
  2. Deleted claims follow the intended deletion or retention policy without unexpectedly destroying important data.
  3. Applications mount volumes with the requested access pattern without unsupported simultaneous access assumptions.
  4. External HTTP clients reach the correct application by hostname and route rules while unrelated paths stay rejected.

Explanation

Correct Answer

C:

Applications mount volumes with the requested access pattern without unsupported simultaneous access assumptions. This is an observable service outcome, not just evidence that a configuration file was saved. ReadWriteOnce normally limits read-write mounting to one node, not necessarily exactly one Pod; driver behavior matters. Workload context: Two replicas on different worker nodes need to edit shared files but the selected volume supports only ReadWriteOnce.

Incorrect Answers

A:

Each stateful replica retains its expected identity and corresponding durable storage through controlled replacement. That result validates StatefulSet identity and volume templates rather than the requirement here. Verify instead: Applications mount volumes with the requested access pattern without unsupported simultaneous access assumptions. Workload context: Two replicas on different worker nodes need to edit shared files but the selected volume supports only ReadWriteOnce.

B:

Deleted claims follow the intended deletion or retention policy without unexpectedly destroying important data. That result validates PV reclaim policy Retain versus Delete rather than the requirement here. Verify instead: Applications mount volumes with the requested access pattern without unsupported simultaneous access assumptions. Workload context: Two replicas on different worker nodes need to edit shared files but the selected volume supports only ReadWriteOnce.

D:

External HTTP clients reach the correct application by hostname and route rules while unrelated paths stay rejected. That result validates Ingress and Gateway API routing rather than the requirement here. Verify instead: Applications mount volumes with the requested access pattern without unsupported simultaneous access assumptions. Workload context: Two replicas on different worker nodes need to edit shared files but the selected volume supports only ReadWriteOnce.

Question 1009

A capacity spreadsheet uses physical RAM instead of node allocatable and overestimates room for application Pods. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Check API endpoint connectivity, request audit records, resource authorization and response status.
  2. Review node labels, conditions, capacity versus allocatable, topology zones and node allocatable metrics.
  3. Compare image digest, registry manifest, Pod imageID, rollout timestamp and supply-chain approval.
  4. Inspect ConfigMap/Secret references, RBAC, API audit records, encryption-at-rest settings and mount or environment behavior.

Explanation

Correct Answer

B:

Review node labels, conditions, capacity versus allocatable, topology zones and node allocatable metrics. This is the most discriminating evidence for the described failure or requirement. Node allocatable excludes reservations from raw capacity; labels must reflect real node capabilities and administration. The corresponding implementation is: Maintain accurate node labels, allocatable resources and topology information to support workload placement and capacity analysis. Workload context: A capacity spreadsheet uses physical RAM instead of node allocatable and overestimates room for application Pods.

Incorrect Answers

A:

Check API endpoint connectivity, request audit records, resource authorization and response status. These observations are more relevant to Kubernetes API server and API requests, not this case. The distinguishing check is: Review node labels, conditions, capacity versus allocatable, topology zones and node allocatable metrics. Workload context: A capacity spreadsheet uses physical RAM instead of node allocatable and overestimates room for application Pods.

C:

Compare image digest, registry manifest, Pod imageID, rollout timestamp and supply-chain approval. These observations are more relevant to Immutable container images and digests, not this case. The distinguishing check is: Review node labels, conditions, capacity versus allocatable, topology zones and node allocatable metrics. Workload context: A capacity spreadsheet uses physical RAM instead of node allocatable and overestimates room for application Pods.

D:

Inspect ConfigMap/Secret references, RBAC, API audit records, encryption-at-rest settings and mount or environment behavior. These observations are more relevant to ConfigMap and Secret boundaries, not this case. The distinguishing check is: Review node labels, conditions, capacity versus allocatable, topology zones and node allocatable metrics. Workload context: A capacity spreadsheet uses physical RAM instead of node allocatable and overestimates room for application Pods.

Question 1010

A worker has available RAM but a Pod with a 128Mi limit repeatedly exits OOMKilled during image processing. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint.
  2. Assign readiness for traffic acceptance, liveness for unhealthy restarts and startup for slow initialization when appropriate.
  3. Use ClusterIP for private service access and NodePort only when node-level external ports are intentionally needed.
  4. Diagnose memory limit terminations using lastState and observed working-set growth rather than assuming every restart is application logic.

Explanation

Correct Answer

D:

Diagnose memory limit terminations using lastState and observed working-set growth rather than assuming every restart is application logic. This response implements the controlling Kubernetes or cloud native principle. Container memory exceeding its cgroup limit can trigger OOMKilled even when node aggregate memory seems available. Check its effect by: Inspect OOMKilled exit reason, memory limit, heap behavior, node pressure and container metrics. Workload context: A worker has available RAM but a Pod with a 128Mi limit repeatedly exits OOMKilled during image processing.

Incorrect Answers

A:

Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint. This action addresses LoadBalancer Service provisioning instead of the controlling requirement. A LoadBalancer Service depends on an implementation or provider controller; creating it does not guarantee an external address. For this scenario prefer: Diagnose memory limit terminations using lastState and observed working-set growth rather than assuming every restart is application logic. Workload context: A worker has available RAM but a Pod with a 128Mi limit repeatedly exits OOMKilled during image processing.

B:

Assign readiness for traffic acceptance, liveness for unhealthy restarts and startup for slow initialization when appropriate. This action addresses Readiness liveness and startup probe behavior instead of the controlling requirement. Readiness failure removes a Pod from ready endpoints; liveness failure may restart a container. For this scenario prefer: Diagnose memory limit terminations using lastState and observed working-set growth rather than assuming every restart is application logic. Workload context: A worker has available RAM but a Pod with a 128Mi limit repeatedly exits OOMKilled during image processing.

C:

Use ClusterIP for private service access and NodePort only when node-level external ports are intentionally needed. This action addresses ClusterIP and NodePort Service exposure instead of the controlling requirement. ClusterIP does not automatically provide an external endpoint; NodePort opens a port on eligible nodes with network policy constraints. For this scenario prefer: Diagnose memory limit terminations using lastState and observed working-set growth rather than assuming every restart is application logic. Workload context: A worker has available RAM but a Pod with a 128Mi limit repeatedly exits OOMKilled during image processing.

Kubernetes and Cloud Native Associate (KCNA) Practice Tests