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 50

Question 490

A team deletes a Service after seeing a timeout without inspecting endpoints, selector or targetPort details. 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. Review kubelet service logs, node conditions, CRI connectivity and Pod events for assigned nodes.
  3. Inspect verbs, apiGroups, resources, RoleBinding/ClusterRoleBinding subjects and kubectl auth can-i results.
  4. Inspect resource status, conditions, events, generation, owner references and logs from the relevant container.

Explanation

Correct Answer

D:

Inspect resource status, conditions, events, generation, owner references and logs from the relevant container. This is the most discriminating evidence for the described failure or requirement. kubectl get summarizes objects; describe reveals events and details; logs reveals container stdout/stderr, not complete API diagnostics. The corresponding implementation is: Use kubectl get, describe and logs as complementary views of object state, events and container output before changing resources. Workload context: A team deletes a Service after seeing a timeout without inspecting endpoints, selector or targetPort details.

Incorrect Answers

A:

Check node unschedulable state, PodDisruptionBudgets, DaemonSets, local storage and eviction events. These observations are more relevant to Node cordon drain maintenance, not this case. The distinguishing check is: Inspect resource status, conditions, events, generation, owner references and logs from the relevant container. Workload context: A team deletes a Service after seeing a timeout without inspecting endpoints, selector or targetPort details.

B:

Review kubelet service logs, node conditions, CRI connectivity and Pod events for assigned nodes. These observations are more relevant to Kubelet node agent responsibilities, not this case. The distinguishing check is: Inspect resource status, conditions, events, generation, owner references and logs from the relevant container. Workload context: A team deletes a Service after seeing a timeout without inspecting endpoints, selector or targetPort details.

C:

Inspect verbs, apiGroups, resources, RoleBinding/ClusterRoleBinding subjects and kubectl auth can-i results. These observations are more relevant to Role and ClusterRole authorization, not this case. The distinguishing check is: Inspect resource status, conditions, events, generation, owner references and logs from the relevant container. Workload context: A team deletes a Service after seeing a timeout without inspecting endpoints, selector or targetPort details.

Question 491

A cluster adds nodes successfully but the scheduler still rejects the workload because it requests a nonexistent topology label. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Place a Kubernetes Service in front of ephemeral Pods when callers need stable discovery independent of individual Pod IP changes.
  2. Match Pod CPU/memory requests to node allocatable resources and scheduling constraints before blaming a container image.
  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. Apply namespace ResourceQuota and LimitRange policies to govern aggregate consumption and default/request bounds.

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: A cluster adds nodes successfully but the scheduler still rejects the workload because it requests a nonexistent topology label.

Incorrect Answers

A:

Place a Kubernetes Service in front of ephemeral Pods when callers need stable discovery independent of individual Pod IP changes. This action addresses Service stable virtual endpoint instead of the controlling requirement. A Service abstracts changing Pod endpoints; exposing a ClusterIP does not automatically create public Internet access. 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 cluster adds nodes successfully but the scheduler still rejects the workload because it requests a nonexistent topology label.

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: 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 cluster adds nodes successfully but the scheduler still rejects the workload because it requests a nonexistent topology label.

D:

Apply namespace ResourceQuota and LimitRange policies to govern aggregate consumption and default/request bounds. This action addresses ResourceQuota and LimitRange policies instead of the controlling requirement. ResourceQuota applies aggregate namespace limits while LimitRange sets per-object defaults and constraints; quotas do not make capacity. 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 cluster adds nodes successfully but the scheduler still rejects the workload because it requests a nonexistent topology label.

Question 492

A service packages OCI-compatible images but its persistent volume depends on a provider-only disk implementation unavailable in a second cloud. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Expose application metrics in supported Prometheus format and configure authorized scrape targets and label cardinality.
  2. Prefer open APIs, OCI images and Kubernetes-compatible deployment contracts where portability matters while accounting for provider-specific extensions.
  3. Design bounded microservice interfaces with timeouts, retries and independently deployable service contracts where modularity is useful.
  4. Evaluate CNCF sandbox, incubating and graduated projects in context of maintenance, community adoption and technical fit.

Explanation

Correct Answer

B:

Prefer open APIs, OCI images and Kubernetes-compatible deployment contracts where portability matters while accounting for provider-specific extensions. This response implements the controlling Kubernetes or cloud native principle. Cloud native APIs improve portability but do not guarantee identical storage classes, load balancers or custom controllers across clouds. Check its effect by: Inspect manifests for proprietary resources, storage/network API dependencies, image compatibility and migration cost. Workload context: A service packages OCI-compatible images but its persistent volume depends on a provider-only disk implementation unavailable in a second cloud.

Incorrect Answers

A:

Expose application metrics in supported Prometheus format and configure authorized scrape targets and label cardinality. This action addresses Prometheus pull scraping and metrics endpoints instead of the controlling requirement. Prometheus primarily scrapes targets on an interval; instrumentation must expose values and high-cardinality labels can overload storage. For this scenario prefer: Prefer open APIs, OCI images and Kubernetes-compatible deployment contracts where portability matters while accounting for provider-specific extensions. Workload context: A service packages OCI-compatible images but its persistent volume depends on a provider-only disk implementation unavailable in a second cloud.

C:

Design bounded microservice interfaces with timeouts, retries and independently deployable service contracts where modularity is useful. This action addresses Microservices contracts and failure isolation instead of the controlling requirement. Microservices improve modularity but add network and operational overhead; splitting code does not automatically yield reliability. For this scenario prefer: Prefer open APIs, OCI images and Kubernetes-compatible deployment contracts where portability matters while accounting for provider-specific extensions. Workload context: A service packages OCI-compatible images but its persistent volume depends on a provider-only disk implementation unavailable in a second cloud.

D:

Evaluate CNCF sandbox, incubating and graduated projects in context of maintenance, community adoption and technical fit. This action addresses CNCF project maturity and adoption decisions instead of the controlling requirement. CNCF maturity levels indicate aspects of governance and adoption, not a guarantee of security or perfect product fit. For this scenario prefer: Prefer open APIs, OCI images and Kubernetes-compatible deployment contracts where portability matters while accounting for provider-specific extensions. Workload context: A service packages OCI-compatible images but its persistent volume depends on a provider-only disk implementation unavailable in a second cloud.

Question 493

A multi-container Pod has a proxy sidecar and teams inspect the wrong container because they omit the container name. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Examine object conditions and timestamped Events to understand image, scheduling, mount and admission failures before applying speculative fixes.
  2. Compare trace IDs, time synchronized log events, resource saturation metrics and span durations.
  3. Template rendering produces intended resources and upgrades or rollbacks remain tied to specific chart revisions.
  4. Use container logs and --previous for restarted containers while preserving central logs for evicted or moved workloads.
  5. Inspect pod/container name, restartCount, lastState, previous log output and log collector availability.

Explanation

Correct Answers

D:

Use container logs and --previous for restarted containers while preserving central logs for evicted or moved workloads. This response implements the controlling Kubernetes or cloud native principle. kubectl logs streams container stdout/stderr, and --previous selects the prior terminated instance if available. Check its effect by: Inspect pod/container name, restartCount, lastState, previous log output and log collector availability. This is the implementation part of the required paired answer. Workload context: A multi-container Pod has a proxy sidecar and teams inspect the wrong container because they omit the container name.

E:

Inspect pod/container name, restartCount, lastState, previous log output and log collector availability. This is the most discriminating evidence for the described failure or requirement. kubectl logs streams container stdout/stderr, and --previous selects the prior terminated instance if available. The corresponding implementation is: Use container logs and --previous for restarted containers while preserving central logs for evicted or moved workloads. This is the diagnostic evidence part of the paired answer. Workload context: A multi-container Pod has a proxy sidecar and teams inspect the wrong container because they omit the container name.

Incorrect Answers

A:

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 container logs and --previous for restarted containers while preserving central logs for evicted or moved workloads. Validate with: Inspect pod/container name, restartCount, lastState, previous log output and log collector availability. Workload context: A multi-container Pod has a proxy sidecar and teams inspect the wrong container because they omit the container name.

B:

Compare trace IDs, time synchronized log events, resource saturation metrics and span durations. This step belongs to Correlating metrics logs and traces rather than the complementary implementation and evidence pair. The intended approach is: Use container logs and --previous for restarted containers while preserving central logs for evicted or moved workloads. Validate with: Inspect pod/container name, restartCount, lastState, previous log output and log collector availability. Workload context: A multi-container Pod has a proxy sidecar and teams inspect the wrong container because they omit the container name.

C:

Template rendering produces intended resources and upgrades or rollbacks remain tied to specific chart revisions. This step belongs to Helm charts templates and values rather than the complementary implementation and evidence pair. The intended approach is: Use container logs and --previous for restarted containers while preserving central logs for evicted or moved workloads. Validate with: Inspect pod/container name, restartCount, lastState, previous log output and log collector availability. Workload context: A multi-container Pod has a proxy sidecar and teams inspect the wrong container because they omit the container name.

Question 494

Two full application stacks run in parallel and the team switches the primary Service selector after validating the idle green stack. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?

  1. A failing candidate build halts or rolls back before reaching full audience while healthy versions progress safely.
  2. Traffic shifts as planned with clear rollback triggers and both versions behaving under their measured loads.
  3. An incident timeline pinpoints the failing dependency rather than relying on one generic readiness or CPU signal.
  4. Diagnostics are reproducible, scoped and do not leave unreviewed configuration changes inside containers.

Explanation

Correct Answer

B:

Traffic shifts as planned with clear rollback triggers and both versions behaving under their measured loads. This is an observable service outcome, not just evidence that a configuration file was saved. Blue-green switches environments, whereas canary ramps exposure; a basic Deployment alone may not provide precise traffic percentages. Workload context: Two full application stacks run in parallel and the team switches the primary Service selector after validating the idle green stack.

Incorrect Answers

A:

A failing candidate build halts or rolls back before reaching full audience while healthy versions progress safely. That result validates Progressive delivery and release metrics rather than the requirement here. Verify instead: Traffic shifts as planned with clear rollback triggers and both versions behaving under their measured loads. Workload context: Two full application stacks run in parallel and the team switches the primary Service selector after validating the idle green stack.

C:

An incident timeline pinpoints the failing dependency rather than relying on one generic readiness or CPU signal. That result validates Correlating metrics logs and traces rather than the requirement here. Verify instead: Traffic shifts as planned with clear rollback triggers and both versions behaving under their measured loads. Workload context: Two full application stacks run in parallel and the team switches the primary Service selector after validating the idle green stack.

D:

Diagnostics are reproducible, scoped and do not leave unreviewed configuration changes inside containers. That result validates kubectl exec diagnostic boundaries rather than the requirement here. Verify instead: Traffic shifts as planned with clear rollback triggers and both versions behaving under their measured loads. Workload context: Two full application stacks run in parallel and the team switches the primary Service selector after validating the idle green stack.

Question 495

A new team dismisses every CNCF sandbox project as unusable despite a well-scoped pilot and maintained code. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Inspect manifests for proprietary resources, storage/network API dependencies, image compatibility and migration cost.
  2. Evaluate CNCF sandbox, incubating and graduated projects in context of maintenance, community adoption and technical fit.
  3. Metrics are collected from intended targets at expected intervals with bounded label series and useful alerts.
  4. Design bounded microservice interfaces with timeouts, retries and independently deployable service contracts where modularity is useful.
  5. Review CNCF landscape category, project governance, release cadence, support ecosystem and security disclosures.

Explanation

Correct Answers

B:

Evaluate CNCF sandbox, incubating and graduated projects in context of maintenance, community adoption and technical fit. This response implements the controlling Kubernetes or cloud native principle. CNCF maturity levels indicate aspects of governance and adoption, not a guarantee of security or perfect product fit. Check its effect by: Review CNCF landscape category, project governance, release cadence, support ecosystem and security disclosures. This is the implementation part of the required paired answer. Workload context: A new team dismisses every CNCF sandbox project as unusable despite a well-scoped pilot and maintained code.

E:

Review CNCF landscape category, project governance, release cadence, support ecosystem and security disclosures. This is the most discriminating evidence for the described failure or requirement. CNCF maturity levels indicate aspects of governance and adoption, not a guarantee of security or perfect product fit. The corresponding implementation is: Evaluate CNCF sandbox, incubating and graduated projects in context of maintenance, community adoption and technical fit. This is the diagnostic evidence part of the paired answer. Workload context: A new team dismisses every CNCF sandbox project as unusable despite a well-scoped pilot and maintained code.

Incorrect Answers

A:

Inspect manifests for proprietary resources, storage/network API dependencies, image compatibility and migration cost. This step belongs to Open standards vendor-neutral portability rather than the complementary implementation and evidence pair. The intended approach is: Evaluate CNCF sandbox, incubating and graduated projects in context of maintenance, community adoption and technical fit. Validate with: Review CNCF landscape category, project governance, release cadence, support ecosystem and security disclosures. Workload context: A new team dismisses every CNCF sandbox project as unusable despite a well-scoped pilot and maintained code.

C:

Metrics are collected from intended targets at expected intervals with bounded label series and useful alerts. This step belongs to Prometheus pull scraping and metrics endpoints rather than the complementary implementation and evidence pair. The intended approach is: Evaluate CNCF sandbox, incubating and graduated projects in context of maintenance, community adoption and technical fit. Validate with: Review CNCF landscape category, project governance, release cadence, support ecosystem and security disclosures. Workload context: A new team dismisses every CNCF sandbox project as unusable despite a well-scoped pilot and maintained code.

D:

Design bounded microservice interfaces with timeouts, retries and independently deployable service contracts where modularity is useful. This step belongs to Microservices contracts and failure isolation rather than the complementary implementation and evidence pair. The intended approach is: Evaluate CNCF sandbox, incubating and graduated projects in context of maintenance, community adoption and technical fit. Validate with: Review CNCF landscape category, project governance, release cadence, support ecosystem and security disclosures. Workload context: A new team dismisses every CNCF sandbox project as unusable despite a well-scoped pilot and maintained code.

Question 496

A private backend only used by Pods is exposed through NodePort and the security team finds the node port reachable outside the cluster. 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. Compare Service type, clusterIP, nodePort, targetPort, node addresses and backend EndpointSlices.
  3. Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records.
  4. Inspect PV/PVC accessModes, actual mount failures, driver support and multi-node workload placement.

Explanation

Correct Answer

B:

Compare Service type, clusterIP, nodePort, targetPort, node addresses and backend EndpointSlices. This is the most discriminating evidence for the described failure or requirement. ClusterIP does not automatically provide an external endpoint; NodePort opens a port on eligible nodes with network policy constraints. The corresponding implementation is: Use ClusterIP for private service access and NodePort only when node-level external ports are intentionally needed. Workload context: A private backend only used by Pods is exposed through NodePort and the security team finds the node port reachable outside the cluster.

Incorrect Answers

A:

Inspect kubectl describe Pod events, requests, node taints, PVC claims and node affinity. These observations are more relevant to Pending pod FailedScheduling events, not this case. The distinguishing check is: Compare Service type, clusterIP, nodePort, targetPort, node addresses and backend EndpointSlices. Workload context: A private backend only used by Pods is exposed through NodePort and the security team finds the node port reachable outside the cluster.

C:

Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records. These observations are more relevant to Cluster DNS and service discovery, not this case. The distinguishing check is: Compare Service type, clusterIP, nodePort, targetPort, node addresses and backend EndpointSlices. Workload context: A private backend only used by Pods is exposed through NodePort and the security team finds the node port reachable outside the cluster.

D:

Inspect PV/PVC accessModes, actual mount failures, driver support and multi-node workload placement. These observations are more relevant to ReadWriteOnce and ReadWriteMany semantics, not this case. The distinguishing check is: Compare Service type, clusterIP, nodePort, targetPort, node addresses and backend EndpointSlices. Workload context: A private backend only used by Pods is exposed through NodePort and the security team finds the node port reachable outside the cluster.

Question 497

A new fourth replica remains Pending after DoNotSchedule maxSkew conflicts with nodes available in only one zone. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Store non-sensitive configuration in ConfigMaps and sensitive values in Secrets with access control and encryption controls.
  2. Use supported sidecar containers for tightly coupled helper functions and verify lifecycle coordination within the Pod.
  3. Set topologySpreadConstraints to balance replicated Pods across zones or nodes with an explicit maxSkew and unsatisfiable action.
  4. Choose requiredDuringSchedulingIgnoredDuringExecution for a hard node preference and preferred rules for soft placement choices.

Explanation

Correct Answer

C:

Set topologySpreadConstraints to balance replicated Pods across zones or nodes with an explicit maxSkew and unsatisfiable action. This response implements the controlling Kubernetes or cloud native principle. Spread constraints balance matching Pods across topology domains; missing topology labels and strict maxSkew can prevent placement. Check its effect by: Review topology key labels, eligible domains, maxSkew, labelSelector and DoNotSchedule versus ScheduleAnyway. Workload context: A new fourth replica remains Pending after DoNotSchedule maxSkew conflicts with nodes available in only one zone.

Incorrect Answers

A:

Store non-sensitive configuration in ConfigMaps and sensitive values in Secrets with access control and encryption controls. This action addresses ConfigMap and Secret boundaries instead of the controlling requirement. Kubernetes Secret data is base64-encoded by default, not inherently encrypted or a substitute for managed secret governance. For this scenario prefer: Set topologySpreadConstraints to balance replicated Pods across zones or nodes with an explicit maxSkew and unsatisfiable action. Workload context: A new fourth replica remains Pending after DoNotSchedule maxSkew conflicts with nodes available in only one zone.

B:

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: Set topologySpreadConstraints to balance replicated Pods across zones or nodes with an explicit maxSkew and unsatisfiable action. Workload context: A new fourth replica remains Pending after DoNotSchedule maxSkew conflicts with nodes available in only one zone.

D:

Choose requiredDuringSchedulingIgnoredDuringExecution for a hard node preference and preferred rules for soft placement choices. This action addresses Node affinity required vs preferred instead of the controlling requirement. Preferred affinity can be ignored to schedule a Pod; required affinity must be satisfied at scheduling time. For this scenario prefer: Set topologySpreadConstraints to balance replicated Pods across zones or nodes with an explicit maxSkew and unsatisfiable action. Workload context: A new fourth replica remains Pending after DoNotSchedule maxSkew conflicts with nodes available in only one zone.

Question 498

An engineer treats a base-image CVE as automatically reachable despite a distribution backport and no vulnerable code path. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Compare desired and observed replicas, controller events, ReplicaSet ownership and controller-manager health.
  2. Use an authorized ephemeral container for live Pod diagnostics when the original image lacks troubleshooting tools.
  3. Critical workloads gain capacity when eligible without uncontrolled eviction of unrelated protected services.
  4. Evaluate image SBOMs, signed provenance and vulnerability reports before production promotion, separating detected packages from reachable risk.
  5. Inspect SBOM package inventory, CVE applicability, signature validation and approved exception decisions.

Explanation

Correct Answers

D:

Evaluate image SBOMs, signed provenance and vulnerability reports before production promotion, separating detected packages from reachable risk. This response implements the controlling Kubernetes or cloud native principle. A scanner's package detection is evidence of inventory, not automatically proof of exploitation or complete image trust. Check its effect by: Inspect SBOM package inventory, CVE applicability, signature validation and approved exception decisions. This is the implementation part of the required paired answer. Workload context: An engineer treats a base-image CVE as automatically reachable despite a distribution backport and no vulnerable code path.

E:

Inspect SBOM package inventory, CVE applicability, signature validation and approved exception decisions. This is the most discriminating evidence for the described failure or requirement. A scanner's package detection is evidence of inventory, not automatically proof of exploitation or complete image trust. The corresponding implementation is: Evaluate image SBOMs, signed provenance and vulnerability reports before production promotion, separating detected packages from reachable risk. This is the diagnostic evidence part of the paired answer. Workload context: An engineer treats a base-image CVE as automatically reachable despite a distribution backport and no vulnerable code path.

Incorrect Answers

A:

Compare desired and observed replicas, controller events, ReplicaSet ownership and controller-manager health. This step belongs to Controller manager reconciliation loops rather than the complementary implementation and evidence pair. The intended approach is: Evaluate image SBOMs, signed provenance and vulnerability reports before production promotion, separating detected packages from reachable risk. Validate with: Inspect SBOM package inventory, CVE applicability, signature validation and approved exception decisions. Workload context: An engineer treats a base-image CVE as automatically reachable despite a distribution backport and no vulnerable code path.

B:

Use an authorized ephemeral container for live Pod diagnostics when the original image lacks troubleshooting tools. This step belongs to Ephemeral debugging containers rather than the complementary implementation and evidence pair. The intended approach is: Evaluate image SBOMs, signed provenance and vulnerability reports before production promotion, separating detected packages from reachable risk. Validate with: Inspect SBOM package inventory, CVE applicability, signature validation and approved exception decisions. Workload context: An engineer treats a base-image CVE as automatically reachable despite a distribution backport and no vulnerable code path.

C:

Critical workloads gain capacity when eligible without uncontrolled eviction of unrelated protected services. This step belongs to PriorityClass and preemption rather than the complementary implementation and evidence pair. The intended approach is: Evaluate image SBOMs, signed provenance and vulnerability reports before production promotion, separating detected packages from reachable risk. Validate with: Inspect SBOM package inventory, CVE applicability, signature validation and approved exception decisions. Workload context: An engineer treats a base-image CVE as automatically reachable despite a distribution backport and no vulnerable code path.

Question 499

A client hardcodes a Pod IP and its connection fails each time the Deployment restarts a replica. 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. Check API endpoint connectivity, request audit records, resource authorization and response status.
  3. Inspect verbs, apiGroups, resources, RoleBinding/ClusterRoleBinding subjects and kubectl auth can-i results.
  4. Inspect Service type, selector, EndpointSlices, DNS name and backend Pod readiness.

Explanation

Correct Answer

D:

Inspect Service type, selector, EndpointSlices, DNS name and backend Pod readiness. This is the most discriminating evidence for the described failure or requirement. A Service abstracts changing Pod endpoints; exposing a ClusterIP does not automatically create public Internet access. The corresponding implementation is: Place a Kubernetes Service in front of ephemeral Pods when callers need stable discovery independent of individual Pod IP changes. Workload context: A client hardcodes a Pod IP and its connection fails each time the Deployment restarts a replica.

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: Inspect Service type, selector, EndpointSlices, DNS name and backend Pod readiness. Workload context: A client hardcodes a Pod IP and its connection fails each time the Deployment restarts a replica.

B:

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: Inspect Service type, selector, EndpointSlices, DNS name and backend Pod readiness. Workload context: A client hardcodes a Pod IP and its connection fails each time the Deployment restarts a replica.

C:

Inspect verbs, apiGroups, resources, RoleBinding/ClusterRoleBinding subjects and kubectl auth can-i results. These observations are more relevant to Role and ClusterRole authorization, not this case. The distinguishing check is: Inspect Service type, selector, EndpointSlices, DNS name and backend Pod readiness. Workload context: A client hardcodes a Pod IP and its connection fails each time the Deployment restarts a replica.

Question 500

A StatefulSet scales from two to three replicas and the new ordinal needs its own persistent claim. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events.
  2. Compare Service type, clusterIP, nodePort, targetPort, node addresses and backend EndpointSlices.
  3. Inspect controller readiness, class or Gateway association, route attachment status, TLS Secret and backend Service mapping.
  4. Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy.

Explanation

Correct Answer

D:

Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy. This is the most discriminating evidence for the described failure or requirement. StatefulSets manage stable identities and can provision distinct PVCs; they do not automatically provide database replication correctness. The corresponding implementation is: Use StatefulSets for workloads needing stable ordinal identity and per-replica persistent claims rather than one shared ephemeral Deployment. Workload context: A StatefulSet scales from two to three replicas and the new ordinal needs its own persistent claim.

Incorrect Answers

A:

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 StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy. Workload context: A StatefulSet scales from two to three replicas and the new ordinal needs its own persistent claim.

B:

Compare Service type, clusterIP, nodePort, targetPort, node addresses and backend EndpointSlices. These observations are more relevant to ClusterIP and NodePort Service exposure, not this case. The distinguishing check is: Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy. Workload context: A StatefulSet scales from two to three replicas and the new ordinal needs its own persistent claim.

C:

Inspect controller readiness, class or Gateway association, route attachment status, TLS Secret and backend Service mapping. These observations are more relevant to Ingress and Gateway API routing, not this case. The distinguishing check is: Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy. Workload context: A StatefulSet scales from two to three replicas and the new ordinal needs its own persistent claim.

Kubernetes and Cloud Native Associate (KCNA) Practice Tests