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 74

Question 730

During database migration, the container remains live but readiness fails appropriately until the dependency becomes usable. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Inspect Pod Ready condition, container restart count, probe event, endpoint membership and HTTP response details.
  2. Inspect pod/container name, restartCount, lastState, previous log output and log collector availability.
  3. Inspect rendered helm template output, values merge order, chart dependency versions and release status.
  4. Review kubectl describe output, warning reasons, first/last timestamps and relevant controller ownership.

Explanation

Correct Answer

A:

Inspect Pod Ready condition, container restart count, probe event, endpoint membership and HTTP response details. This is the most discriminating evidence for the described failure or requirement. Readiness-probe failure normally removes endpoint traffic without killing the container; liveness changes restart behavior. The corresponding implementation is: Distinguish readiness endpoint failures from application process exits before deciding whether to restart or change service routing. Workload context: During database migration, the container remains live but readiness fails appropriately until the dependency becomes usable.

Incorrect Answers

B:

Inspect pod/container name, restartCount, lastState, previous log output and log collector availability. These observations are more relevant to kubectl logs current versus previous instance, not this case. The distinguishing check is: Inspect Pod Ready condition, container restart count, probe event, endpoint membership and HTTP response details. Workload context: During database migration, the container remains live but readiness fails appropriately until the dependency becomes usable.

C:

Inspect rendered helm template output, values merge order, chart dependency versions and release status. These observations are more relevant to Helm charts templates and values, not this case. The distinguishing check is: Inspect Pod Ready condition, container restart count, probe event, endpoint membership and HTTP response details. Workload context: During database migration, the container remains live but readiness fails appropriately until the dependency becomes usable.

D:

Review kubectl describe output, warning reasons, first/last timestamps and relevant controller ownership. These observations are more relevant to kubectl describe and event chronology, not this case. The distinguishing check is: Inspect Pod Ready condition, container restart count, probe event, endpoint membership and HTTP response details. Workload context: During database migration, the container remains live but readiness fails appropriately until the dependency becomes usable.

Question 731

A maintenance drain refuses eviction because the only healthy replica is protected by a PodDisruptionBudget. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Check node unschedulable state, PodDisruptionBudgets, DaemonSets, local storage and eviction events.
  2. Inspect DaemonSet desired/current/ready counts, node eligibility, tolerations and per-node Pod placement.
  3. Compare desired and observed replicas, controller events, ReplicaSet ownership and controller-manager health.
  4. Inspect kubectl config current-context, cluster server, user identity and namespace field.

Explanation

Correct Answer

A:

Check node unschedulable state, PodDisruptionBudgets, DaemonSets, local storage and eviction events. This is the most discriminating evidence for the described failure or requirement. cordon prevents new scheduling while drain attempts safe evictions; existing Pods are not deleted by cordon alone. The corresponding implementation is: Cordon a node before planned maintenance, then use drain with workload safety checks and restore scheduling after validation. Workload context: A maintenance drain refuses eviction because the only healthy replica is protected by a PodDisruptionBudget.

Incorrect Answers

B:

Inspect DaemonSet desired/current/ready counts, node eligibility, tolerations and per-node Pod placement. These observations are more relevant to DaemonSet node-local workloads, not this case. The distinguishing check is: Check node unschedulable state, PodDisruptionBudgets, DaemonSets, local storage and eviction events. Workload context: A maintenance drain refuses eviction because the only healthy replica is protected by a PodDisruptionBudget.

C:

Compare desired and observed replicas, controller events, ReplicaSet ownership and controller-manager health. These observations are more relevant to Controller manager reconciliation loops, not this case. The distinguishing check is: Check node unschedulable state, PodDisruptionBudgets, DaemonSets, local storage and eviction events. Workload context: A maintenance drain refuses eviction because the only healthy replica is protected by a PodDisruptionBudget.

D:

Inspect kubectl config current-context, cluster server, user identity and namespace field. These observations are more relevant to kubectl context and cluster selection, not this case. The distinguishing check is: Check node unschedulable state, PodDisruptionBudgets, DaemonSets, local storage and eviction events. Workload context: A maintenance drain refuses eviction because the only healthy replica is protected by a PodDisruptionBudget.

Question 732

An app starts correctly but crashes after a few seconds, leaving the last failing stack trace only in the previous container logs. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Inspect restart history and previous-container logs to diagnose repeatedly exiting containers and fix startup or runtime failures.
  2. Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint.
  3. Trace requests through Service DNS, selector, EndpointSlice and targetPort before attributing all timeouts to network latency.
  4. Use ClusterIP for private service access and NodePort only when node-level external ports are intentionally needed.

Explanation

Correct Answer

A:

Inspect restart history and previous-container logs to diagnose repeatedly exiting containers and fix startup or runtime failures. This response implements the controlling Kubernetes or cloud native principle. CrashLoopBackOff indicates repeated container exits and restart delays, not a scheduler placement failure. Check its effect by: Review container lastState, exit code, restart count, previous logs and application configuration. Workload context: An app starts correctly but crashes after a few seconds, leaving the last failing stack trace only in the previous container logs.

Incorrect Answers

B:

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: Inspect restart history and previous-container logs to diagnose repeatedly exiting containers and fix startup or runtime failures. Workload context: An app starts correctly but crashes after a few seconds, leaving the last failing stack trace only in the previous container logs.

C:

Trace requests through Service DNS, selector, EndpointSlice and targetPort before attributing all timeouts to network latency. This action addresses Service selector and port mismatch diagnostics instead of the controlling requirement. A Service can resolve in DNS yet have zero endpoints or forward to an incorrect port. For this scenario prefer: Inspect restart history and previous-container logs to diagnose repeatedly exiting containers and fix startup or runtime failures. Workload context: An app starts correctly but crashes after a few seconds, leaving the last failing stack trace only in the previous container logs.

D:

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: Inspect restart history and previous-container logs to diagnose repeatedly exiting containers and fix startup or runtime failures. Workload context: An app starts correctly but crashes after a few seconds, leaving the last failing stack trace only in the previous container logs.

Question 733

A namespace is labeled enforce=restricted and a Pod requesting privileged host networking fails to create. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Apply RBAC and encryption-at-rest controls to Kubernetes Secrets and avoid exposing decoded values in logs or public manifests.
  2. Trace requests through Service DNS, selector, EndpointSlice and targetPort before attributing all timeouts to network latency.
  3. Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint.
  4. Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions.

Explanation

Correct Answer

D:

Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions. This response implements the controlling Kubernetes or cloud native principle. Pod Security Admission evaluates security standards at admission; it does not continuously sandbox existing containers after admission. Check its effect by: Review namespace pod-security labels, admission warnings, violations and workload securityContext. Workload context: A namespace is labeled enforce=restricted and a Pod requesting privileged host networking fails to create.

Incorrect Answers

A:

Apply RBAC and encryption-at-rest controls to Kubernetes Secrets and avoid exposing decoded values in logs or public manifests. This action addresses Secret base64 encoding versus encryption instead of the controlling requirement. Base64 is a reversible encoding, not encryption; Secret storage and access policies require separate protection. For this scenario prefer: Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions. Workload context: A namespace is labeled enforce=restricted and a Pod requesting privileged host networking fails to create.

B:

Trace requests through Service DNS, selector, EndpointSlice and targetPort before attributing all timeouts to network latency. This action addresses Service selector and port mismatch diagnostics instead of the controlling requirement. A Service can resolve in DNS yet have zero endpoints or forward to an incorrect port. For this scenario prefer: Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions. Workload context: A namespace is labeled enforce=restricted and a Pod requesting privileged host networking fails to create.

C:

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: Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions. Workload context: A namespace is labeled enforce=restricted and a Pod requesting privileged host networking fails to create.

Question 734

A Pending workload requires GPU resources but the autoscaler is allowed to expand only CPU-only nodes. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  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. Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads.
  3. Confirm the active kubeconfig context and namespace before using kubectl on production clusters.
  4. Configure PodDisruptionBudgets for voluntary disruptions while distinguishing eviction safety from normal scheduling decisions.

Explanation

Correct Answer

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. Workload context: A Pending workload requires GPU resources but the autoscaler is allowed to expand only CPU-only nodes.

Incorrect Answers

B:

Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads. This action addresses PriorityClass and preemption instead of the controlling requirement. Priority influences scheduling and potential preemption but does not bypass hard affinity or lack of suitable hardware. For this scenario prefer: Use the scheduler to select feasible nodes and the cluster autoscaler to adjust node capacity when unschedulable Pods can fit a supported node group. Workload context: A Pending workload requires GPU resources but the autoscaler is allowed to expand only CPU-only nodes.

C:

Confirm the active kubeconfig context and namespace before using kubectl on production clusters. This action addresses kubectl context and cluster selection instead of the controlling requirement. A context combines cluster, user and namespace settings; the current shell directory alone does not select a cluster. For this scenario prefer: Use the scheduler to select feasible nodes and the cluster autoscaler to adjust node capacity when unschedulable Pods can fit a supported node group. Workload context: A Pending workload requires GPU resources but the autoscaler is allowed to expand only CPU-only nodes.

D:

Configure PodDisruptionBudgets for voluntary disruptions while distinguishing eviction safety from normal scheduling decisions. This action addresses PodDisruptionBudget during voluntary eviction instead of the controlling requirement. A PodDisruptionBudget governs voluntary eviction; it does not guarantee protection against hardware failure or create new replicas. For this scenario prefer: Use the scheduler to select feasible nodes and the cluster autoscaler to adjust node capacity when unschedulable Pods can fit a supported node group. Workload context: A Pending workload requires GPU resources but the autoscaler is allowed to expand only CPU-only nodes.

Question 735

A client receives 401 after presenting an expired token, and the operator attempts to fix it by granting cluster-admin rights. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?

  1. Each workload can invoke only required API verbs without accessing unrelated namespaces or cluster secrets.
  2. Client connections reach healthy backing Pods and troubleshooters isolate selection from routing problems.
  3. Only authorized artifacts enter the cluster and each workload is traceable to a reviewed build.
  4. Valid identities perform only allowed actions and rejected resource specifications do not reach persistent state.

Explanation

Correct Answer

D:

Valid identities perform only allowed actions and rejected resource specifications do not reach persistent state. This is an observable service outcome, not just evidence that a configuration file was saved. Authentication answers who called, authorization answers what may be done, and admission can apply policy to allowed requests. Workload context: A client receives 401 after presenting an expired token, and the operator attempts to fix it by granting cluster-admin rights.

Incorrect Answers

A:

Each workload can invoke only required API verbs without accessing unrelated namespaces or cluster secrets. That result validates ServiceAccount and workload RBAC boundaries rather than the requirement here. Verify instead: Valid identities perform only allowed actions and rejected resource specifications do not reach persistent state. Workload context: A client receives 401 after presenting an expired token, and the operator attempts to fix it by granting cluster-admin rights.

B:

Client connections reach healthy backing Pods and troubleshooters isolate selection from routing problems. That result validates Service endpoint routing and kube-proxy rather than the requirement here. Verify instead: Valid identities perform only allowed actions and rejected resource specifications do not reach persistent state. Workload context: A client receives 401 after presenting an expired token, and the operator attempts to fix it by granting cluster-admin rights.

C:

Only authorized artifacts enter the cluster and each workload is traceable to a reviewed build. That result validates Image provenance and admission policies rather than the requirement here. Verify instead: Valid identities perform only allowed actions and rejected resource specifications do not reach persistent state. Workload context: A client receives 401 after presenting an expired token, and the operator attempts to fix it by granting cluster-admin rights.

Question 736

A security review finds unencrypted etcd peer traffic and stale snapshots on a shared administrative workstation. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API.
  2. Match Pod CPU/memory requests to node allocatable resources and scheduling constraints before blaming a container image.
  3. Model tightly coupled containers inside a Pod when they must share a network namespace and lifecycle, not as unrelated separate Pods.
  4. Keep etcd highly available and maintain secure, tested snapshots of Kubernetes API state rather than treating it as ordinary container storage.

Explanation

Correct Answer

D:

Keep etcd highly available and maintain secure, tested snapshots of Kubernetes API state rather than treating it as ordinary container storage. This response implements the controlling Kubernetes or cloud native principle. etcd is a consistent key-value store for API state; it is not where persistent application volume data lives. Check its effect by: Inspect etcd quorum health, member status, snapshot freshness, certificate validity and restore procedure. Workload context: A security review finds unencrypted etcd peer traffic and stale snapshots on a shared administrative workstation.

Incorrect Answers

A:

Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API. This action addresses Declarative resource manifests and API versions instead of the controlling requirement. Kubernetes API versions are resource-specific and evolve; a valid YAML file does not guarantee the API accepts its kind or schema. For this scenario prefer: Keep etcd highly available and maintain secure, tested snapshots of Kubernetes API state rather than treating it as ordinary container storage. Workload context: A security review finds unencrypted etcd peer traffic and stale snapshots on a shared administrative workstation.

B:

Match Pod CPU/memory requests to node allocatable resources and scheduling constraints before blaming a container image. This action addresses Pending Pods and resource-fit checks instead of the controlling requirement. A Pending unscheduled Pod has no running container logs; scheduler events reveal placement failures. For this scenario prefer: Keep etcd highly available and maintain secure, tested snapshots of Kubernetes API state rather than treating it as ordinary container storage. Workload context: A security review finds unencrypted etcd peer traffic and stale snapshots on a shared administrative workstation.

C:

Model tightly coupled containers inside a Pod when they must share a network namespace and lifecycle, not as unrelated separate Pods. This action addresses Pod shared network namespace and lifecycle instead of the controlling requirement. Containers in one Pod share networking and selected volumes; Kubernetes schedules Pods rather than independent containers. For this scenario prefer: Keep etcd highly available and maintain secure, tested snapshots of Kubernetes API state rather than treating it as ordinary container storage. Workload context: A security review finds unencrypted etcd peer traffic and stale snapshots on a shared administrative workstation.

Question 737

A disconnected cluster repeatedly tries imagePullPolicy Always and cannot launch workloads despite a cached prior digest. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Plan component upgrades using the currently supported version-skew policy and validated addon compatibility rather than upgrading arbitrarily.
  2. Match Pod CPU/memory requests to node allocatable resources and scheduling constraints before blaming a container image.
  3. Choose imagePullPolicy based on tag immutability and cluster delivery needs, checking runtime cache and registry accessibility.
  4. Build minimal images with reproducible layers and protect against secrets embedded in historical image layers.

Explanation

Correct Answer

C:

Choose imagePullPolicy based on tag immutability and cluster delivery needs, checking runtime cache and registry accessibility. This response implements the controlling Kubernetes or cloud native principle. Always pulls or checks the registry when needed, while IfNotPresent may use cache; pull policy is not image provenance. Check its effect by: Compare imagePullPolicy, local image cache, registry digest, pull events and Pod imageID. Workload context: A disconnected cluster repeatedly tries imagePullPolicy Always and cannot launch workloads despite a cached prior digest.

Incorrect Answers

A:

Plan component upgrades using the currently supported version-skew policy and validated addon compatibility rather than upgrading arbitrarily. This action addresses Kubernetes upgrades and version skew instead of the controlling requirement. API compatibility and supported component skew determine upgrade sequencing; not every Kubernetes version jump is supported. For this scenario prefer: Choose imagePullPolicy based on tag immutability and cluster delivery needs, checking runtime cache and registry accessibility. Workload context: A disconnected cluster repeatedly tries imagePullPolicy Always and cannot launch workloads despite a cached prior digest.

B:

Match Pod CPU/memory requests to node allocatable resources and scheduling constraints before blaming a container image. This action addresses Pending Pods and resource-fit checks instead of the controlling requirement. A Pending unscheduled Pod has no running container logs; scheduler events reveal placement failures. For this scenario prefer: Choose imagePullPolicy based on tag immutability and cluster delivery needs, checking runtime cache and registry accessibility. Workload context: A disconnected cluster repeatedly tries imagePullPolicy Always and cannot launch workloads despite a cached prior digest.

D:

Build minimal images with reproducible layers and protect against secrets embedded in historical image layers. This action addresses Image layers and build cache instead of the controlling requirement. Deleting a file in a later image layer does not erase secrets committed into an earlier layer. For this scenario prefer: Choose imagePullPolicy based on tag immutability and cluster delivery needs, checking runtime cache and registry accessibility. Workload context: A disconnected cluster repeatedly tries imagePullPolicy Always and cannot launch workloads despite a cached prior digest.

Question 738

An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?

  1. Control-plane and node upgrades complete within supported skew with workload compatibility checks passing.
  2. Only reviewed images with accepted risk enter production and later findings can be traced to deployed digests.
  3. Pods with persistent volumes schedule to nodes capable of mounting the selected storage without zone conflicts.
  4. Critical workloads gain capacity when eligible without uncontrolled eviction of unrelated protected services.

Explanation

Correct Answer

D:

Critical workloads gain capacity when eligible without uncontrolled eviction of unrelated protected services. This is an observable service outcome, not just evidence that a configuration file was saved. Priority influences scheduling and potential preemption but does not bypass hard affinity or lack of suitable hardware. 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:

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: Critical workloads gain capacity when eligible without uncontrolled eviction of unrelated protected services. Workload context: An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads.

B:

Only reviewed images with accepted risk enter production and later findings can be traced to deployed digests. That result validates Image scanning and software bills of materials rather than the requirement here. Verify instead: Critical workloads gain capacity when eligible without uncontrolled eviction of unrelated protected services. Workload context: An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads.

C:

Pods with persistent volumes schedule to nodes capable of mounting the selected storage without zone conflicts. That result validates PersistentVolume zone binding and placement rather than the requirement here. Verify instead: Critical workloads gain capacity when eligible without uncontrolled eviction of unrelated protected services. Workload context: An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads.

Question 739

An application team scales a Deployment but some replicas remain Pending due to a dedicated-node taint. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Inspect kubectl describe Pod events, requests, node taints, PVC claims and node affinity.
  2. Examine authentication identity, RBAC decision, admission webhook result and API response status.
  3. Inspect node conditions, eviction events, kubelet logs, disk usage and QoS/resource request settings.
  4. Inspect OOMKilled exit reason, memory limit, heap behavior, node pressure and container metrics.

Explanation

Correct Answer

A:

Inspect kubectl describe Pod events, requests, node taints, PVC claims and node affinity. This is the most discriminating evidence for the described failure or requirement. Pending may mean unschedulable or image preparation; distinguish whether node assignment occurred before choosing next checks. The corresponding implementation is: Use Pod events and scheduler reasons to diagnose Pending workloads before changing application images or reading nonexistent logs. Workload context: An application team scales a Deployment but some replicas remain Pending due to a dedicated-node taint.

Incorrect Answers

B:

Examine authentication identity, RBAC decision, admission webhook result and API response status. These observations are more relevant to Authentication authorization and admission order, not this case. The distinguishing check is: Inspect kubectl describe Pod events, requests, node taints, PVC claims and node affinity. Workload context: An application team scales a Deployment but some replicas remain Pending due to a dedicated-node taint.

C:

Inspect node conditions, eviction events, kubelet logs, disk usage and QoS/resource request settings. These observations are more relevant to Node pressure and Pod eviction analysis, not this case. The distinguishing check is: Inspect kubectl describe Pod events, requests, node taints, PVC claims and node affinity. Workload context: An application team scales a Deployment but some replicas remain Pending due to a dedicated-node taint.

D:

Inspect OOMKilled exit reason, memory limit, heap behavior, node pressure and container metrics. These observations are more relevant to Container OOMKilled and resource pressure, not this case. The distinguishing check is: Inspect kubectl describe Pod events, requests, node taints, PVC claims and node affinity. Workload context: An application team scales a Deployment but some replicas remain Pending due to a dedicated-node taint.

Question 740

An engineer disables scheduling constraints and assumes this is the only way to trigger a scale-up for large jobs. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Use supported sidecar containers for tightly coupled helper functions and verify lifecycle coordination within the Pod.
  2. Cordon a node before planned maintenance, then use drain with workload safety checks and restore scheduling after validation.
  3. Use the scheduler to select feasible nodes and the cluster autoscaler to adjust node capacity when unschedulable Pods can fit a supported node group.
  4. Use nodeSelector for straightforward required label equality and confirm matching nodes exist in the cluster.

Explanation

Correct Answer

C:

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. Workload context: An engineer disables scheduling constraints and assumes this is the only way to trigger a scale-up for large jobs.

Incorrect Answers

A:

Use supported sidecar containers for tightly coupled helper functions and verify lifecycle coordination within the Pod. This action addresses Sidecar containers and shared Pod lifecycle instead of the controlling requirement. Sidecars share a Pod network context; careless start or termination ordering can block a workload. For this scenario prefer: Use the scheduler to select feasible nodes and the cluster autoscaler to adjust node capacity when unschedulable Pods can fit a supported node group. Workload context: An engineer disables scheduling constraints and assumes this is the only way to trigger a scale-up for large jobs.

B:

Cordon a node before planned maintenance, then use drain with workload safety checks and restore scheduling after validation. This action addresses Node cordon drain maintenance instead of the controlling requirement. cordon prevents new scheduling while drain attempts safe evictions; existing Pods are not deleted by cordon alone. For this scenario prefer: Use the scheduler to select feasible nodes and the cluster autoscaler to adjust node capacity when unschedulable Pods can fit a supported node group. Workload context: An engineer disables scheduling constraints and assumes this is the only way to trigger a scale-up for large jobs.

D:

Use nodeSelector for straightforward required label equality and confirm matching nodes exist in the cluster. This action addresses nodeSelector equality placement instead of the controlling requirement. nodeSelector requires matching labels; it does not create labels or express weighted preferences by itself. For this scenario prefer: Use the scheduler to select feasible nodes and the cluster autoscaler to adjust node capacity when unschedulable Pods can fit a supported node group. Workload context: An engineer disables scheduling constraints and assumes this is the only way to trigger a scale-up for large jobs.

Kubernetes and Cloud Native Associate (KCNA) Practice Tests