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 46

Question 450

A Java client caches a removed Pod address indefinitely despite a stable Kubernetes Service record being available. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records.
  2. Inspect Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references.
  3. Inspect external IP status, controller events, security groups, health checks and upstream target availability.
  4. Inspect Service metadata, selected Pod labels, EndpointSlice readiness, containerPort and actual listening sockets.

Explanation

Correct Answer

A:

Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records. This is the most discriminating evidence for the described failure or requirement. Kubernetes DNS uses namespace-aware search paths; a fully qualified Service name avoids ambiguity across namespaces. The corresponding implementation is: Use CoreDNS or the configured cluster DNS service to resolve Service and Pod naming in their correct namespaces. Workload context: A Java client caches a removed Pod address indefinitely despite a stable Kubernetes Service record being available.

Incorrect Answers

B:

Inspect Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references. These observations are more relevant to ImagePullBackOff registry and auth errors, not this case. The distinguishing check is: Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records. Workload context: A Java client caches a removed Pod address indefinitely despite a stable Kubernetes Service record being available.

C:

Inspect external IP status, controller events, security groups, health checks and upstream target availability. These observations are more relevant to LoadBalancer Service provisioning, not this case. The distinguishing check is: Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records. Workload context: A Java client caches a removed Pod address indefinitely despite a stable Kubernetes Service record being available.

D:

Inspect Service metadata, selected Pod labels, EndpointSlice readiness, containerPort and actual listening sockets. These observations are more relevant to Service selector and port mismatch diagnostics, not this case. The distinguishing check is: Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records. Workload context: A Java client caches a removed Pod address indefinitely despite a stable Kubernetes Service record being available.

Question 451

A helper process must keep running while the main app serves requests but a regular init container exits and never provides the service. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Review initContainers/sidecar restart behavior, shared volumes, localhost traffic and termination events.
  2. Inspect Service type, selector, EndpointSlices, DNS name and backend Pod readiness.
  3. Inspect kubelet runtime endpoint, CRI protocol support, containerd service status and runtime errors.
  4. Inspect local-versus-server manifest diff, field ownership, admission rejection and resulting resource generation.

Explanation

Correct Answer

A:

Review initContainers/sidecar restart behavior, shared volumes, localhost traffic and termination events. This is the most discriminating evidence for the described failure or requirement. Sidecars share a Pod network context; careless start or termination ordering can block a workload. The corresponding implementation is: Use supported sidecar containers for tightly coupled helper functions and verify lifecycle coordination within the Pod. Workload context: A helper process must keep running while the main app serves requests but a regular init container exits and never provides the service.

Incorrect Answers

B:

Inspect Service type, selector, EndpointSlices, DNS name and backend Pod readiness. These observations are more relevant to Service stable virtual endpoint, not this case. The distinguishing check is: Review initContainers/sidecar restart behavior, shared volumes, localhost traffic and termination events. Workload context: A helper process must keep running while the main app serves requests but a regular init container exits and never provides the service.

C:

Inspect kubelet runtime endpoint, CRI protocol support, containerd service status and runtime errors. These observations are more relevant to Container runtime and CRI, not this case. The distinguishing check is: Review initContainers/sidecar restart behavior, shared volumes, localhost traffic and termination events. Workload context: A helper process must keep running while the main app serves requests but a regular init container exits and never provides the service.

D:

Inspect local-versus-server manifest diff, field ownership, admission rejection and resulting resource generation. These observations are more relevant to kubectl apply and declarative updates, not this case. The distinguishing check is: Review initContainers/sidecar restart behavior, shared volumes, localhost traffic and termination events. Workload context: A helper process must keep running while the main app serves requests but a regular init container exits and never provides the service.

Question 452

A team installs Prometheus but does not expose application counters and assumes it can derive request errors from Pod status alone. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Review CNCF landscape category, project governance, release cadence, support ecosystem and security disclosures.
  2. Inspect tracer/provider setup, context propagation, collector pipeline, resource attributes and exporter endpoint health.
  3. Check upstream issue templates, duplicate reports, version matrix, clear reproduction and contributor communication.
  4. Inspect ServiceMonitor or scrape config, /metrics endpoint, target health, scrape interval and sample labels.

Explanation

Correct Answer

D:

Inspect ServiceMonitor or scrape config, /metrics endpoint, target health, scrape interval and sample labels. This is the most discriminating evidence for the described failure or requirement. Prometheus primarily scrapes targets on an interval; instrumentation must expose values and high-cardinality labels can overload storage. The corresponding implementation is: Expose application metrics in supported Prometheus format and configure authorized scrape targets and label cardinality. Workload context: A team installs Prometheus but does not expose application counters and assumes it can derive request errors from Pod status alone.

Incorrect Answers

A:

Review CNCF landscape category, project governance, release cadence, support ecosystem and security disclosures. These observations are more relevant to CNCF project maturity and adoption decisions, not this case. The distinguishing check is: Inspect ServiceMonitor or scrape config, /metrics endpoint, target health, scrape interval and sample labels. Workload context: A team installs Prometheus but does not expose application counters and assumes it can derive request errors from Pod status alone.

B:

Inspect tracer/provider setup, context propagation, collector pipeline, resource attributes and exporter endpoint health. These observations are more relevant to OpenTelemetry instrumentation and exporters, not this case. The distinguishing check is: Inspect ServiceMonitor or scrape config, /metrics endpoint, target health, scrape interval and sample labels. Workload context: A team installs Prometheus but does not expose application counters and assumes it can derive request errors from Pod status alone.

C:

Check upstream issue templates, duplicate reports, version matrix, clear reproduction and contributor communication. These observations are more relevant to Upstream issue reporting and review collaboration, not this case. The distinguishing check is: Inspect ServiceMonitor or scrape config, /metrics endpoint, target health, scrape interval and sample labels. Workload context: A team installs Prometheus but does not expose application counters and assumes it can derive request errors from Pod status alone.

Question 453

An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Inspect Secret read permissions, encryption configuration, encoded manifest values and audit trails.
  2. Inspect Service metadata, selected Pod labels, EndpointSlice readiness, containerPort and actual listening sockets.
  3. Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events.
  4. Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy.

Explanation

Correct Answer

C:

Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events. This is the most discriminating evidence for the described failure or requirement. A PVC may legitimately remain unbound until a Pod consumes it under WaitForFirstConsumer. The corresponding implementation is: Configure StorageClass WaitForFirstConsumer when scheduling topology must influence dynamic volume provisioning. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

Incorrect Answers

A:

Inspect Secret read permissions, encryption configuration, encoded manifest values and audit trails. These observations are more relevant to Secret base64 encoding versus encryption, not this case. The distinguishing check is: Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

B:

Inspect Service metadata, selected Pod labels, EndpointSlice readiness, containerPort and actual listening sockets. These observations are more relevant to Service selector and port mismatch diagnostics, not this case. The distinguishing check is: Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

D:

Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy. These observations are more relevant to StatefulSet identity and volume templates, not this case. The distinguishing check is: Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

Question 454

A service enters CrashLoopBackOff because an override points at a binary absent from the container image. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Inspect Pod label selectors, namespaces, topologyKey and actual placement of matching peer Pods.
  2. Inspect image metadata, Pod command/args, process exit code and startup logs.
  3. Choose imagePullPolicy based on tag immutability and cluster delivery needs, checking runtime cache and registry accessibility.
  4. Reapplying unchanged configuration is safe and the resulting cluster state matches the reviewed manifest.
  5. Set container command and args with awareness of how Kubernetes overrides image ENTRYPOINT and CMD defaults.

Explanation

Correct Answers

B:

Inspect image metadata, Pod command/args, process exit code and startup logs. This is the most discriminating evidence for the described failure or requirement. Kubernetes command maps to the image ENTRYPOINT override and args maps to CMD arguments; a process exit can restart a Pod. The corresponding implementation is: Set container command and args with awareness of how Kubernetes overrides image ENTRYPOINT and CMD defaults. This is the diagnostic evidence part of the paired answer. Workload context: A service enters CrashLoopBackOff because an override points at a binary absent from the container image.

E:

Set container command and args with awareness of how Kubernetes overrides image ENTRYPOINT and CMD defaults. This response implements the controlling Kubernetes or cloud native principle. Kubernetes command maps to the image ENTRYPOINT override and args maps to CMD arguments; a process exit can restart a Pod. Check its effect by: Inspect image metadata, Pod command/args, process exit code and startup logs. This is the implementation part of the required paired answer. Workload context: A service enters CrashLoopBackOff because an override points at a binary absent from the container image.

Incorrect Answers

A:

Inspect Pod label selectors, namespaces, topologyKey and actual placement of matching peer Pods. This step belongs to Pod affinity anti-affinity rather than the complementary implementation and evidence pair. The intended approach is: Set container command and args with awareness of how Kubernetes overrides image ENTRYPOINT and CMD defaults. Validate with: Inspect image metadata, Pod command/args, process exit code and startup logs. Workload context: A service enters CrashLoopBackOff because an override points at a binary absent from the container image.

C:

Choose imagePullPolicy based on tag immutability and cluster delivery needs, checking runtime cache and registry accessibility. This step belongs to Image pull policy and cached images rather than the complementary implementation and evidence pair. The intended approach is: Set container command and args with awareness of how Kubernetes overrides image ENTRYPOINT and CMD defaults. Validate with: Inspect image metadata, Pod command/args, process exit code and startup logs. Workload context: A service enters CrashLoopBackOff because an override points at a binary absent from the container image.

D:

Reapplying unchanged configuration is safe and the resulting cluster state matches the reviewed manifest. This step belongs to kubectl apply and declarative updates rather than the complementary implementation and evidence pair. The intended approach is: Set container command and args with awareness of how Kubernetes overrides image ENTRYPOINT and CMD defaults. Validate with: Inspect image metadata, Pod command/args, process exit code and startup logs. Workload context: A service enters CrashLoopBackOff because an override points at a binary absent from the container image.

Question 455

An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events.
  2. Configure StorageClass WaitForFirstConsumer when scheduling topology must influence dynamic volume provisioning.
  3. Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy.
  4. Use emptyDir for temporary Pod-scoped data and PVC-backed volumes when data must survive Pod replacement.
  5. Resource pressure is resolved without sustained involuntary eviction or unsafe removal of application persistent data.

Explanation

Correct Answers

A:

Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events. This is the most discriminating evidence for the described failure or requirement. A PVC may legitimately remain unbound until a Pod consumes it under WaitForFirstConsumer. The corresponding implementation is: Configure StorageClass WaitForFirstConsumer when scheduling topology must influence dynamic volume provisioning. This is the diagnostic evidence part of the paired answer. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

B:

Configure StorageClass WaitForFirstConsumer when scheduling topology must influence dynamic volume provisioning. This response implements the controlling Kubernetes or cloud native principle. A PVC may legitimately remain unbound until a Pod consumes it under WaitForFirstConsumer. Check its effect by: Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events. This is the implementation part of the required paired answer. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

Incorrect Answers

C:

Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy. This step belongs to StatefulSet identity and volume templates rather than the complementary implementation and evidence pair. The intended approach is: Configure StorageClass WaitForFirstConsumer when scheduling topology must influence dynamic volume provisioning. Validate with: Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

D:

Use emptyDir for temporary Pod-scoped data and PVC-backed volumes when data must survive Pod replacement. This step belongs to Ephemeral emptyDir versus persistent volumes rather than the complementary implementation and evidence pair. The intended approach is: Configure StorageClass WaitForFirstConsumer when scheduling topology must influence dynamic volume provisioning. Validate with: Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

E:

Resource pressure is resolved without sustained involuntary eviction or unsafe removal of application persistent data. This step belongs to Node pressure and Pod eviction analysis rather than the complementary implementation and evidence pair. The intended approach is: Configure StorageClass WaitForFirstConsumer when scheduling topology must influence dynamic volume provisioning. Validate with: Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

Question 456

A distroless TLS gateway Pod has no curl binary and engineers want to publish a new image merely to diagnose routing. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. New replicas become Ready before old capacity is removed and a failed rollout can return to a known revision.
  2. Use ephemeral containers to inspect a running Pod when its application image lacks debug tools, with approved access to sensitive process namespaces.
  3. Review ephemeralContainers spec, target container namespace, attach status and host-level privileges requested.
  4. Examine object conditions and timestamped Events to understand image, scheduling, mount and admission failures before applying speculative fixes.
  5. Check registry digest, image signatures, deployment Pod imageID and provenance attestations across stages.

Explanation

Correct Answers

B:

Use ephemeral containers to inspect a running Pod when its application image lacks debug tools, with approved access to sensitive process namespaces. This response implements the controlling Kubernetes or cloud native principle. Ephemeral containers are for diagnostics and cannot be treated as permanent workload replicas or restarted like ordinary containers. Check its effect by: Review ephemeralContainers spec, target container namespace, attach status and host-level privileges requested. This is the implementation part of the required paired answer. Workload context: A distroless TLS gateway Pod has no curl binary and engineers want to publish a new image merely to diagnose routing.

C:

Review ephemeralContainers spec, target container namespace, attach status and host-level privileges requested. This is the most discriminating evidence for the described failure or requirement. Ephemeral containers are for diagnostics and cannot be treated as permanent workload replicas or restarted like ordinary containers. The corresponding implementation is: Use ephemeral containers to inspect a running Pod when its application image lacks debug tools, with approved access to sensitive process namespaces. This is the diagnostic evidence part of the paired answer. Workload context: A distroless TLS gateway Pod has no curl binary and engineers want to publish a new image merely to diagnose routing.

Incorrect Answers

A:

New replicas become Ready before old capacity is removed and a failed rollout can return to a known revision. This step belongs to Deployment rolling updates and rollback rather than the complementary implementation and evidence pair. The intended approach is: Use ephemeral containers to inspect a running Pod when its application image lacks debug tools, with approved access to sensitive process namespaces. Validate with: Review ephemeralContainers spec, target container namespace, attach status and host-level privileges requested. Workload context: A distroless TLS gateway Pod has no curl binary and engineers want to publish a new image merely to diagnose routing.

D:

Examine object conditions and timestamped Events to understand image, scheduling, mount and admission failures before applying speculative fixes. This step belongs to kubectl describe and event chronology rather than the complementary implementation and evidence pair. The intended approach is: Use ephemeral containers to inspect a running Pod when its application image lacks debug tools, with approved access to sensitive process namespaces. Validate with: Review ephemeralContainers spec, target container namespace, attach status and host-level privileges requested. Workload context: A distroless TLS gateway Pod has no curl binary and engineers want to publish a new image merely to diagnose routing.

E:

Check registry digest, image signatures, deployment Pod imageID and provenance attestations across stages. This step belongs to Artifact promotion by digest rather than the complementary implementation and evidence pair. The intended approach is: Use ephemeral containers to inspect a running Pod when its application image lacks debug tools, with approved access to sensitive process namespaces. Validate with: Review ephemeralContainers spec, target container namespace, attach status and host-level privileges requested. Workload context: A distroless TLS gateway Pod has no curl binary and engineers want to publish a new image merely to diagnose routing.

Question 457

A monitoring query groups Pods by team label and accidentally includes an unrelated workload after a copy-pasted metadata block. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Compare object metadata labels, Service/Deployment selectors and selected object lists.
  2. Assign stable labels for matching workload membership, and use annotations for nonselecting descriptive metadata.
  3. Inspect Pod scheduling events, available node capacity, taints, selectors and assigned nodeName.
  4. Pods with persistent volumes schedule to nodes capable of mounting the selected storage without zone conflicts.
  5. Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API.

Explanation

Correct Answers

A:

Compare object metadata labels, Service/Deployment selectors and selected object lists. This is the most discriminating evidence for the described failure or requirement. Labels support equality and set-based selectors; annotations do not become Service selectors automatically. The corresponding implementation is: Assign stable labels for matching workload membership, and use annotations for nonselecting descriptive metadata. This is the diagnostic evidence part of the paired answer. Workload context: A monitoring query groups Pods by team label and accidentally includes an unrelated workload after a copy-pasted metadata block.

B:

Assign stable labels for matching workload membership, and use annotations for nonselecting descriptive metadata. This response implements the controlling Kubernetes or cloud native principle. Labels support equality and set-based selectors; annotations do not become Service selectors automatically. Check its effect by: Compare object metadata labels, Service/Deployment selectors and selected object lists. This is the implementation part of the required paired answer. Workload context: A monitoring query groups Pods by team label and accidentally includes an unrelated workload after a copy-pasted metadata block.

Incorrect Answers

C:

Inspect Pod scheduling events, available node capacity, taints, selectors and assigned nodeName. This step belongs to Scheduler responsibility and binding rather than the complementary implementation and evidence pair. The intended approach is: Assign stable labels for matching workload membership, and use annotations for nonselecting descriptive metadata. Validate with: Compare object metadata labels, Service/Deployment selectors and selected object lists. Workload context: A monitoring query groups Pods by team label and accidentally includes an unrelated workload after a copy-pasted metadata block.

D:

Pods with persistent volumes schedule to nodes capable of mounting the selected storage without zone conflicts. This step belongs to PersistentVolume zone binding and placement rather than the complementary implementation and evidence pair. The intended approach is: Assign stable labels for matching workload membership, and use annotations for nonselecting descriptive metadata. Validate with: Compare object metadata labels, Service/Deployment selectors and selected object lists. Workload context: A monitoring query groups Pods by team label and accidentally includes an unrelated workload after a copy-pasted metadata block.

E:

Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API. This step belongs to Declarative resource manifests and API versions rather than the complementary implementation and evidence pair. The intended approach is: Assign stable labels for matching workload membership, and use annotations for nonselecting descriptive metadata. Validate with: Compare object metadata labels, Service/Deployment selectors and selected object lists. Workload context: A monitoring query groups Pods by team label and accidentally includes an unrelated workload after a copy-pasted metadata block.

Question 458

A cluster upgrade changes workload securityContext defaults and the team ignores admission warning logs during staging. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?

  1. Noncompliant Pod specifications are rejected under enforcement without unexpectedly blocking approved workloads.
  2. Only approved Pod flows pass and disallowed lateral or outbound connections fail reproducibly.
  3. External clients reach only the intended healthy Service backends and the allocated endpoint matches network policy.
  4. Only authorized artifacts enter the cluster and each workload is traceable to a reviewed build.

Explanation

Correct Answer

A:

Noncompliant Pod specifications are rejected under enforcement without unexpectedly blocking approved workloads. This is an observable service outcome, not just evidence that a configuration file was saved. Pod Security Admission evaluates security standards at admission; it does not continuously sandbox existing containers after admission. Workload context: A cluster upgrade changes workload securityContext defaults and the team ignores admission warning logs during staging.

Incorrect Answers

B:

Only approved Pod flows pass and disallowed lateral or outbound connections fail reproducibly. That result validates NetworkPolicy ingress egress isolation rather than the requirement here. Verify instead: Noncompliant Pod specifications are rejected under enforcement without unexpectedly blocking approved workloads. Workload context: A cluster upgrade changes workload securityContext defaults and the team ignores admission warning logs during staging.

C:

External clients reach only the intended healthy Service backends and the allocated endpoint matches network policy. That result validates LoadBalancer Service provisioning rather than the requirement here. Verify instead: Noncompliant Pod specifications are rejected under enforcement without unexpectedly blocking approved workloads. Workload context: A cluster upgrade changes workload securityContext defaults and the team ignores admission warning logs during staging.

D:

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: Noncompliant Pod specifications are rejected under enforcement without unexpectedly blocking approved workloads. Workload context: A cluster upgrade changes workload securityContext defaults and the team ignores admission warning logs during staging.

Question 459

A log forwarder in a separate Pod tries to reach localhost:9000 on the application Pod and fails. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Use a Deployment to manage stateless replicas, controlled updates and ReplicaSets rather than hand-editing Pod instances.
  2. Assign stable labels for matching workload membership, and use annotations for nonselecting descriptive metadata.
  3. Choose imagePullPolicy based on tag immutability and cluster delivery needs, checking runtime cache and registry accessibility.
  4. Use supported sidecar containers for tightly coupled helper functions and verify lifecycle coordination within the Pod.

Explanation

Correct Answer

D:

Use supported sidecar containers for tightly coupled helper functions and verify lifecycle coordination within the Pod. This response implements the controlling Kubernetes or cloud native principle. Sidecars share a Pod network context; careless start or termination ordering can block a workload. Check its effect by: Review initContainers/sidecar restart behavior, shared volumes, localhost traffic and termination events. Workload context: A log forwarder in a separate Pod tries to reach localhost:9000 on the application Pod and fails.

Incorrect Answers

A:

Use a Deployment to manage stateless replicas, controlled updates and ReplicaSets rather than hand-editing Pod instances. This action addresses Deployment and ReplicaSet ownership instead of the controlling requirement. A Deployment manages ReplicaSets and rolling changes; direct edits to controlled Pods are transient. For this scenario prefer: Use supported sidecar containers for tightly coupled helper functions and verify lifecycle coordination within the Pod. Workload context: A log forwarder in a separate Pod tries to reach localhost:9000 on the application Pod and fails.

B:

Assign stable labels for matching workload membership, and use annotations for nonselecting descriptive metadata. This action addresses Labels selectors and annotations instead of the controlling requirement. Labels support equality and set-based selectors; annotations do not become Service selectors automatically. For this scenario prefer: Use supported sidecar containers for tightly coupled helper functions and verify lifecycle coordination within the Pod. Workload context: A log forwarder in a separate Pod tries to reach localhost:9000 on the application Pod and fails.

C:

Choose imagePullPolicy based on tag immutability and cluster delivery needs, checking runtime cache and registry accessibility. This action addresses Image pull policy and cached images instead of the controlling requirement. Always pulls or checks the registry when needed, while IfNotPresent may use cache; pull policy is not image provenance. For this scenario prefer: Use supported sidecar containers for tightly coupled helper functions and verify lifecycle coordination within the Pod. Workload context: A log forwarder in a separate Pod tries to reach localhost:9000 on the application Pod and fails.

Question 460

A slow-starting Java app passes readiness only after warm-up but its liveness check kills it every ten seconds during startup. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Assign readiness for traffic acceptance, liveness for unhealthy restarts and startup for slow initialization when appropriate.
  2. Diagnose memory limit terminations using lastState and observed working-set growth rather than assuming every restart is application logic.
  3. Investigate node disk, memory and PID pressure conditions and distinguish eviction from application-probe restarts.
  4. Check Service selectors and EndpointSlices to distinguish backend discovery from kube-proxy or data-plane forwarding faults.

Explanation

Correct Answer

A:

Assign readiness for traffic acceptance, liveness for unhealthy restarts and startup for slow initialization when appropriate. This response implements the controlling Kubernetes or cloud native principle. Readiness failure removes a Pod from ready endpoints; liveness failure may restart a container. Check its effect by: Inspect probe paths, thresholds, failure conditions, Service endpoints and container restart events. Workload context: A slow-starting Java app passes readiness only after warm-up but its liveness check kills it every ten seconds during startup.

Incorrect Answers

B:

Diagnose memory limit terminations using lastState and observed working-set growth rather than assuming every restart is application logic. This action addresses Container OOMKilled and resource pressure instead of the controlling requirement. Container memory exceeding its cgroup limit can trigger OOMKilled even when node aggregate memory seems available. For this scenario prefer: Assign readiness for traffic acceptance, liveness for unhealthy restarts and startup for slow initialization when appropriate. Workload context: A slow-starting Java app passes readiness only after warm-up but its liveness check kills it every ten seconds during startup.

C:

Investigate node disk, memory and PID pressure conditions and distinguish eviction from application-probe restarts. This action addresses Node pressure and Pod eviction analysis instead of the controlling requirement. Kubelet can evict Pods under node pressure; eviction is different from a liveness probe killing one container. For this scenario prefer: Assign readiness for traffic acceptance, liveness for unhealthy restarts and startup for slow initialization when appropriate. Workload context: A slow-starting Java app passes readiness only after warm-up but its liveness check kills it every ten seconds during startup.

D:

Check Service selectors and EndpointSlices to distinguish backend discovery from kube-proxy or data-plane forwarding faults. This action addresses Service endpoint routing and kube-proxy instead of the controlling requirement. Service routing depends on endpoints and the cluster's Service dataplane; some clusters replace kube-proxy with an alternate implementation. For this scenario prefer: Assign readiness for traffic acceptance, liveness for unhealthy restarts and startup for slow initialization when appropriate. Workload context: A slow-starting Java app passes readiness only after warm-up but its liveness check kills it every ten seconds during startup.

Kubernetes and Cloud Native Associate (KCNA) Practice Tests