Pass Linux Foundation KCNA Exam in First Attempt Easily
Real Linux Foundation KCNA Exam Questions, Accurate & Verified Answers As Experienced in the Actual Test!

Verified by experts
3 products

You save $69.98

KCNA Premium Bundle

  • Premium File 333 Questions & Answers
  • Last Update: Oct 30, 2026
  • Training Course 54 Lectures
  • Study Guide 410 Pages
$79.99 $149.97

Purchase Individually

  • Premium File

    333 Questions & Answers
    Last Update: Oct 30, 2026

    $76.99
    $69.99
  • Training Course

    54 Lectures

    $43.99
    $39.99
  • Study Guide

    410 Pages

    $43.99
    $39.99

Kubernetes and Cloud Native Associate KCNA Practice Test 40

Question 390

A beginner runs kubectl logs repeatedly against a Pod that has not yet started and needs a better first observation.

Which explanation best matches the observed cluster behavior?

  1. Kubernetes Secrets provide a dedicated API type for sensitive values, but base64 is encoding rather than encryption and access controls remain essential
  2. Deployment revisions preserve rollout history, and rollout status reports whether desired updated Pods reach availability
  3. A ConfigMap separates nonconfidential application configuration from images, while consuming workloads may need restart or reload to observe changes
  4. Describe and events expose Pod conditions, scheduling decisions, and admission messages even when no application container has started

Explanation

Correct Answer

D:

Describe and events expose Pod conditions, scheduling decisions, and admission messages even when no application container has started. This component or control behavior explains what matters in the case: A beginner runs kubectl logs repeatedly against a Pod that has not yet started and needs a better first observation. The corresponding operational decision is to inspect kubectl describe pod output and namespace events to identify scheduling or admission failures before looking for container logs. The expected evidence is that the event stream identifies a concrete Pending cause and subsequent remediation allows a successful node assignment. If the requirement is misunderstood, using only application logs misses failures that occur before container creation and delays basic cluster diagnosis. The distinction matters because cloud-native controls are specific to layers, resource lifecycles, and declared ownership; similar-sounding features are not always substitutes.

Incorrect Answers

A:

Kubernetes Secrets provide a dedicated API type for sensitive values, but base64 is encoding rather than encryption and access controls remain essential. This explanation belongs to the nearby Secret as API object for sensitive application values topic, for example: A workload requires a database password and operators must avoid putting the credential directly into its image or plain manifest. The actual scenario is: A beginner runs kubectl logs repeatedly against a Pod that has not yet started and needs a better first observation. The relevant mechanism is that describe and events expose Pod conditions, scheduling decisions, and admission messages even when no application container has started. The matching implementation is to inspect kubectl describe pod output and namespace events to identify scheduling or admission failures before looking for container logs. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

B:

Deployment revisions preserve rollout history, and rollout status reports whether desired updated Pods reach availability. This explanation belongs to the nearby Deployment rollout status and undo topic, for example: A new Deployment revision is serving errors and the team needs to return to the preceding healthy revision. The actual scenario is: A beginner runs kubectl logs repeatedly against a Pod that has not yet started and needs a better first observation. The relevant mechanism is that describe and events expose Pod conditions, scheduling decisions, and admission messages even when no application container has started. The matching implementation is to inspect kubectl describe pod output and namespace events to identify scheduling or admission failures before looking for container logs. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

C:

A ConfigMap separates nonconfidential application configuration from images, while consuming workloads may need restart or reload to observe changes. This explanation belongs to the nearby ConfigMap for nonsecret settings topic, for example: An application needs a configurable feature flag and display label shared among Pods, but no passwords are involved. The actual scenario is: A beginner runs kubectl logs repeatedly against a Pod that has not yet started and needs a better first observation. The relevant mechanism is that describe and events expose Pod conditions, scheduling decisions, and admission messages even when no application container has started. The matching implementation is to inspect kubectl describe pod output and namespace events to identify scheduling or admission failures before looking for container logs. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

Question 391

A Pod repeatedly restarts because its main process exits with a configuration error after startup.

Which risk belongs in the change assessment?

  1. Leaving selectors or readiness broken can make a healthy-looking Service black-hole requests and hide behind valid DNS responses
  2. Restarting kubelet blindly does not create missing capacity and can distract from the scheduler's explicit infeasibility message
  3. Ignoring termination reasons and continuously deleting Pods repeats the same faulty image or configuration without fixing the crash
  4. Investigating app logs before the image exists misses the registry or authentication cause and delays recovery

Explanation

Correct Answer

C:

Ignoring termination reasons and continuously deleting Pods repeats the same faulty image or configuration without fixing the crash. This failure path follows the case as described: A Pod repeatedly restarts because its main process exits with a configuration error after startup. The appropriate corrective decision is to inspect Pod termination status and previous container logs, correct the failing command or configuration, and retest. CrashLoopBackOff is a retry delay after repeated container failures and often reflects application exit or failed probes rather than a scheduler defect. The control should be accepted only when the corrected container remains Running through the observation interval and restart counts stop increasing unexpectedly. Risk statements should identify the affected workload or trust boundary, rather than generically claiming that every Kubernetes misconfiguration causes the same outage.

Incorrect Answers

A:

Leaving selectors or readiness broken can make a healthy-looking Service black-hole requests and hide behind valid DNS responses. This is a plausible risk for the different Service connection failure with empty endpoints scenario, for example: A Kubernetes Service exists and resolves in DNS but every request fails after a Deployment's labels changed. However, the presented case concerns: A Pod repeatedly restarts because its main process exits with a configuration error after startup. The more direct risk is that ignoring termination reasons and continuously deleting Pods repeats the same faulty image or configuration without fixing the crash. The relevant mitigation is to inspect Pod termination status and previous container logs, correct the failing command or configuration, and retest. Treating every infrastructure risk as interchangeable would obscure the concrete failure path and lead the team to protect the wrong part of the system.

B:

Restarting kubelet blindly does not create missing capacity and can distract from the scheduler's explicit infeasibility message. This is a plausible risk for the different Pending Pod scheduling diagnosis scenario, for example: A new Pod remains Pending and events show all eligible nodes have insufficient allocatable memory. However, the presented case concerns: A Pod repeatedly restarts because its main process exits with a configuration error after startup. The more direct risk is that ignoring termination reasons and continuously deleting Pods repeats the same faulty image or configuration without fixing the crash. The relevant mitigation is to inspect Pod termination status and previous container logs, correct the failing command or configuration, and retest. Treating every infrastructure risk as interchangeable would obscure the concrete failure path and lead the team to protect the wrong part of the system.

D:

Investigating app logs before the image exists misses the registry or authentication cause and delays recovery. This is a plausible risk for the different ImagePullBackOff credential or registry fault scenario, for example: A scheduled Pod cannot start because the private registry rejects its pull credentials. However, the presented case concerns: A Pod repeatedly restarts because its main process exits with a configuration error after startup. The more direct risk is that ignoring termination reasons and continuously deleting Pods repeats the same faulty image or configuration without fixing the crash. The relevant mitigation is to inspect Pod termination status and previous container logs, correct the failing command or configuration, and retest. Treating every infrastructure risk as interchangeable would obscure the concrete failure path and lead the team to protect the wrong part of the system.

Question 392

Operators have only raw application log lines and need numeric trends and alert conditions for service reliability.

What is the most appropriate operational decision here?

  1. Instrument supported services with OpenTelemetry traces and propagate context across service requests to an appropriate backend
  2. Configure authorized log shipping with a supported collector to a centralized store, retaining timestamps and workload identity
  3. Define measurable service-level indicators and objectives, then configure alerts based on customer-impacting thresholds and suitable windows
  4. Expose appropriate application metrics and configure a Prometheus-compatible scraper and recording or alerting rules

Explanation

Correct Answer

D:

Expose appropriate application metrics and configure a Prometheus-compatible scraper and recording or alerting rules. This action directly addresses the described situation: Operators have only raw application log lines and need numeric trends and alert conditions for service reliability. Prometheus collects labeled numeric time-series metrics from configured targets, supporting queries for rates, trends, and thresholds. To distinguish a correct change from an unverified configuration, check that a query shows timestamped request and error metrics for the target workload and a controlled threshold produces the intended alert. The relevant failure concern is that without metrics collection, gradual degradation can remain invisible until a user-facing incident is reported. A neighboring Kubernetes feature may be useful elsewhere, but selecting it here would leave the central requirement unfulfilled.

Incorrect Answers

A:

Instrument supported services with OpenTelemetry traces and propagate context across service requests to an appropriate backend. That action is sensible for the separate OpenTelemetry distributed traces problem, for example: A single user request crosses three microservices and the team cannot tell which hop causes most latency. This scenario instead describes: Operators have only raw application log lines and need numeric trends and alert conditions for service reliability. The more direct corrective action is to expose appropriate application metrics and configure a Prometheus-compatible scraper and recording or alerting rules. Prometheus collects labeled numeric time-series metrics from configured targets, supporting queries for rates, trends, and thresholds. Applying a solution aimed at another problem would not establish the placement, connectivity, access, or delivery behavior specifically requested in this case.

B:

Configure authorized log shipping with a supported collector to a centralized store, retaining timestamps and workload identity. That action is sensible for the separate centralized container logs problem, for example: A Pod was replaced after a crash and the team can no longer retrieve the earlier node-local application logs. This scenario instead describes: Operators have only raw application log lines and need numeric trends and alert conditions for service reliability. The more direct corrective action is to expose appropriate application metrics and configure a Prometheus-compatible scraper and recording or alerting rules. Prometheus collects labeled numeric time-series metrics from configured targets, supporting queries for rates, trends, and thresholds. Applying a solution aimed at another problem would not establish the placement, connectivity, access, or delivery behavior specifically requested in this case.

C:

Define measurable service-level indicators and objectives, then configure alerts based on customer-impacting thresholds and suitable windows. That action is sensible for the separate SLIs SLOs and symptom-based alerts problem, for example: A service owner wants meaningful availability objectives instead of paging on every brief CPU utilization spike. This scenario instead describes: Operators have only raw application log lines and need numeric trends and alert conditions for service reliability. The more direct corrective action is to expose appropriate application metrics and configure a Prometheus-compatible scraper and recording or alerting rules. Prometheus collects labeled numeric time-series metrics from configured targets, supporting queries for rates, trends, and thresholds. Applying a solution aimed at another problem would not establish the placement, connectivity, access, or delivery behavior specifically requested in this case.

Question 393

A monolithic application is being split into independently released services and must account for network calls and failure isolation.

Which Kubernetes principle explains the appropriate solution?

  1. A service mesh manages selected service-to-service traffic policies, telemetry, and identities, while Ingress or Gateway resources primarily expose routed entry traffic
  2. Cloud-native systems emphasize automation, elasticity, portability, and resilient reconciliation rather than fixed manually administered hosts
  3. CNCF cloud-native projects span orchestration, networking, observability, service proxies, and more; sharing an ecosystem does not make them interchangeable
  4. Microservices permit independent delivery and scaling but introduce distributed network dependencies that need resilience and operations discipline

Explanation

Correct Answer

D:

Microservices permit independent delivery and scaling but introduce distributed network dependencies that need resilience and operations discipline. This component or control behavior explains what matters in the case: A monolithic application is being split into independently released services and must account for network calls and failure isolation. The corresponding operational decision is to define coherent service boundaries, explicit APIs, retry/timeouts, and observability that match business ownership and failure tolerance. The expected evidence is that each service can be deployed independently while a controlled dependency failure follows documented timeout and fallback behavior. If the requirement is misunderstood, unbounded synchronous dependencies and unclear ownership can turn a small service fault into a larger cascading outage. The distinction matters because cloud-native controls are specific to layers, resource lifecycles, and declared ownership; similar-sounding features are not always substitutes.

Incorrect Answers

A:

A service mesh manages selected service-to-service traffic policies, telemetry, and identities, while Ingress or Gateway resources primarily expose routed entry traffic. This explanation belongs to the nearby service mesh versus north-south ingress topic, for example: Teams need consistent service-to-service authentication and traffic policies across microservices, not just external HTTP routing. The actual scenario is: A monolithic application is being split into independently released services and must account for network calls and failure isolation. The relevant mechanism is that microservices permit independent delivery and scaling but introduce distributed network dependencies that need resilience and operations discipline. The matching implementation is to define coherent service boundaries, explicit APIs, retry/timeouts, and observability that match business ownership and failure tolerance. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

B:

Cloud-native systems emphasize automation, elasticity, portability, and resilient reconciliation rather than fixed manually administered hosts. This explanation belongs to the nearby cloud-native elasticity and declarative infrastructure topic, for example: A startup's application traffic changes rapidly and teams need to scale replicas without manually configuring each VM. The actual scenario is: A monolithic application is being split into independently released services and must account for network calls and failure isolation. The relevant mechanism is that microservices permit independent delivery and scaling but introduce distributed network dependencies that need resilience and operations discipline. The matching implementation is to define coherent service boundaries, explicit APIs, retry/timeouts, and observability that match business ownership and failure tolerance. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

C:

CNCF cloud-native projects span orchestration, networking, observability, service proxies, and more; sharing an ecosystem does not make them interchangeable. This explanation belongs to the nearby CNCF landscape and projects by function topic, for example: An engineer must choose an observability component and confuses metrics projects with tools for service routing or image packaging. The actual scenario is: A monolithic application is being split into independently released services and must account for network calls and failure isolation. The relevant mechanism is that microservices permit independent delivery and scaling but introduce distributed network dependencies that need resilience and operations discipline. The matching implementation is to define coherent service boundaries, explicit APIs, retry/timeouts, and observability that match business ownership and failure tolerance. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

Question 394

An application update needs a controlled overlap between old and new Pods to avoid downtime caused by replacing every replica simultaneously.

Which operational observation most convincingly validates the fix?

  1. The new image becomes available incrementally while user requests continue meeting the accepted availability target
  2. Production deployment follows the documented approval policy while build and test automation still produce a verified artifact
  3. Rendered manifests show each environment's intended replica and resource settings and the Helm release matches the approved version
  4. Observed error rates and service metrics for the canary remain within thresholds before the traffic percentage increases

Explanation

Correct Answer

A:

The new image becomes available incrementally while user requests continue meeting the accepted availability target. This result checks the exact operational requirement in the scenario: An application update needs a controlled overlap between old and new Pods to avoid downtime caused by replacing every replica simultaneously. It should be obtained after the team takes the step to configure a Deployment rolling-update strategy with suitable maxSurge and maxUnavailable, then observe readiness and rollout status. Rolling updates replace Deployment replicas in controlled batches and respect configured limits on surge capacity and unavailable instances. The acceptance evidence must guard against the failure in which an overly aggressive rollout without readiness control can temporarily remove all usable backend Pods. A healthy-looking dashboard for an unrelated component would not demonstrate that this particular application or control is functioning correctly.

Incorrect Answers

B:

Production deployment follows the documented approval policy while build and test automation still produce a verified artifact. This would provide useful evidence for a different continuous delivery versus continuous deployment situation such as: A business requires a human approval gate before promoting an otherwise fully tested container image to production. That is not the specific requirement here: An application update needs a controlled overlap between old and new Pods to avoid downtime caused by replacing every replica simultaneously. The directly matching evidence is that the new image becomes available incrementally while user requests continue meeting the accepted availability target. The associated implementation is to configure a Deployment rolling-update strategy with suitable maxSurge and maxUnavailable, then observe readiness and rollout status. A passing test for a neighboring Kubernetes resource does not establish that the actual workload is running with the requested guarantees.

C:

Rendered manifests show each environment's intended replica and resource settings and the Helm release matches the approved version. This would provide useful evidence for a different Helm templating and values situation such as: The same Kubernetes application chart must be installed in development and production with different replica counts and resources. That is not the specific requirement here: An application update needs a controlled overlap between old and new Pods to avoid downtime caused by replacing every replica simultaneously. The directly matching evidence is that the new image becomes available incrementally while user requests continue meeting the accepted availability target. The associated implementation is to configure a Deployment rolling-update strategy with suitable maxSurge and maxUnavailable, then observe readiness and rollout status. A passing test for a neighboring Kubernetes resource does not establish that the actual workload is running with the requested guarantees.

D:

Observed error rates and service metrics for the canary remain within thresholds before the traffic percentage increases. This would provide useful evidence for a different canary release with measured traffic situation such as: A team wants to expose only a small share of requests to a new version before broad production rollout. That is not the specific requirement here: An application update needs a controlled overlap between old and new Pods to avoid downtime caused by replacing every replica simultaneously. The directly matching evidence is that the new image becomes available incrementally while user requests continue meeting the accepted availability target. The associated implementation is to configure a Deployment rolling-update strategy with suitable maxSurge and maxUnavailable, then observe readiness and rollout status. A passing test for a neighboring Kubernetes resource does not establish that the actual workload is running with the requested guarantees.

Question 395

An HTTP Deployment must move gradually to a new image while limiting unavailable replicas during the transition.

Which architectural behavior is decisive in this example?

  1. GitOps uses version-controlled declarative desired state and automated reconciliation to detect and correct divergence from source
  2. Canary releases gradually expose a limited user or traffic subset to a new revision while maintaining the stable version
  3. Rolling updates replace Deployment replicas in controlled batches and respect configured limits on surge capacity and unavailable instances
  4. Helm charts render Kubernetes manifests from templates and values, reducing repetition while retaining explicit release configuration

Explanation

Correct Answer

C:

Rolling updates replace Deployment replicas in controlled batches and respect configured limits on surge capacity and unavailable instances. This component or control behavior explains what matters in the case: An HTTP Deployment must move gradually to a new image while limiting unavailable replicas during the transition. The corresponding operational decision is to configure a Deployment rolling-update strategy with suitable maxSurge and maxUnavailable, then observe readiness and rollout status. The expected evidence is that the new image becomes available incrementally while user requests continue meeting the accepted availability target. If the requirement is misunderstood, an overly aggressive rollout without readiness control can temporarily remove all usable backend Pods. The distinction matters because cloud-native controls are specific to layers, resource lifecycles, and declared ownership; similar-sounding features are not always substitutes.

Incorrect Answers

A:

GitOps uses version-controlled declarative desired state and automated reconciliation to detect and correct divergence from source. This explanation belongs to the nearby GitOps desired-state reconciliation topic, for example: Operators want Kubernetes production configuration changes to be audited through reviewed Git commits instead of manual kubectl edits. The actual scenario is: An HTTP Deployment must move gradually to a new image while limiting unavailable replicas during the transition. The relevant mechanism is that rolling updates replace Deployment replicas in controlled batches and respect configured limits on surge capacity and unavailable instances. The matching implementation is to configure a Deployment rolling-update strategy with suitable maxSurge and maxUnavailable, then observe readiness and rollout status. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

B:

Canary releases gradually expose a limited user or traffic subset to a new revision while maintaining the stable version. This explanation belongs to the nearby canary release with measured traffic topic, for example: A team wants to expose only a small share of requests to a new version before broad production rollout. The actual scenario is: An HTTP Deployment must move gradually to a new image while limiting unavailable replicas during the transition. The relevant mechanism is that rolling updates replace Deployment replicas in controlled batches and respect configured limits on surge capacity and unavailable instances. The matching implementation is to configure a Deployment rolling-update strategy with suitable maxSurge and maxUnavailable, then observe readiness and rollout status. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

D:

Helm charts render Kubernetes manifests from templates and values, reducing repetition while retaining explicit release configuration. This explanation belongs to the nearby Helm templating and values topic, for example: The same Kubernetes application chart must be installed in development and production with different replica counts and resources. The actual scenario is: An HTTP Deployment must move gradually to a new image while limiting unavailable replicas during the transition. The relevant mechanism is that rolling updates replace Deployment replicas in controlled batches and respect configured limits on surge capacity and unavailable instances. The matching implementation is to configure a Deployment rolling-update strategy with suitable maxSurge and maxUnavailable, then observe readiness and rollout status. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

Question 396

A container's lengthy schema setup is expected, but fixed liveness thresholds are causing repeated early termination.

What is the most specific risk if the team leaves this situation unresolved?

  1. Overly aggressive liveness checks can create a restart loop and compound a transient dependency outage
  2. Using short liveness timing during a valid slow startup can force endless restarts of an otherwise healthy workload
  3. Deleting only faulty Pods recreates the same revision and can prolong regression instead of restoring a known-good template
  4. Restarting and redeploying without collecting previous logs can erase useful context for the original failure

Explanation

Correct Answer

B:

Using short liveness timing during a valid slow startup can force endless restarts of an otherwise healthy workload. This failure path follows the case as described: A container's lengthy schema setup is expected, but fixed liveness thresholds are causing repeated early termination. The appropriate corrective decision is to add a startup probe with a realistic failure window so liveness and readiness behavior begins after startup succeeds. Startup probes give slow-starting applications time to initialize before liveness and readiness probes become active. The control should be accepted only when the application completes a representative cold start once and then transitions to normal readiness and liveness monitoring. Risk statements should identify the affected workload or trust boundary, rather than generically claiming that every Kubernetes misconfiguration causes the same outage.

Incorrect Answers

A:

Overly aggressive liveness checks can create a restart loop and compound a transient dependency outage. This is a plausible risk for the different liveness probe restarts stuck containers scenario, for example: A web process stays alive but becomes permanently unresponsive after a deadlock and needs recovery. However, the presented case concerns: A container's lengthy schema setup is expected, but fixed liveness thresholds are causing repeated early termination. The more direct risk is that using short liveness timing during a valid slow startup can force endless restarts of an otherwise healthy workload. The relevant mitigation is to add a startup probe with a realistic failure window so liveness and readiness behavior begins after startup succeeds. Treating every infrastructure risk as interchangeable would obscure the concrete failure path and lead the team to protect the wrong part of the system.

C:

Deleting only faulty Pods recreates the same revision and can prolong regression instead of restoring a known-good template. This is a plausible risk for the different rollout revision history for regression recovery scenario, for example: An application regression begins immediately after a Deployment revision and a prior version has passed smoke tests. However, the presented case concerns: A container's lengthy schema setup is expected, but fixed liveness thresholds are causing repeated early termination. The more direct risk is that using short liveness timing during a valid slow startup can force endless restarts of an otherwise healthy workload. The relevant mitigation is to add a startup probe with a realistic failure window so liveness and readiness behavior begins after startup succeeds. Treating every infrastructure risk as interchangeable would obscure the concrete failure path and lead the team to protect the wrong part of the system.

D:

Restarting and redeploying without collecting previous logs can erase useful context for the original failure. This is a plausible risk for the different kubectl logs and previous container output scenario, for example: A container fails immediately after launch and the current log stream omits the message from the preceding failed instance. However, the presented case concerns: A container's lengthy schema setup is expected, but fixed liveness thresholds are causing repeated early termination. The more direct risk is that using short liveness timing during a valid slow startup can force endless restarts of an otherwise healthy workload. The relevant mitigation is to add a startup probe with a realistic failure window so liveness and readiness behavior begins after startup succeeds. Treating every infrastructure risk as interchangeable would obscure the concrete failure path and lead the team to protect the wrong part of the system.

Question 397

A team's sensitive backend accepts traffic from unrelated namespaces on a shared cluster despite strong RBAC settings.

Which underlying mechanism best explains why the right approach works?

  1. ServiceAccounts provide workload identities for authenticating to the Kubernetes API, subject to configured token mounting and authorizations
  2. Image scanning identifies known vulnerable components, while trusted provenance and runtime controls address supply-chain and execution risks
  3. NetworkPolicy defines permitted Pod ingress and egress traffic for selected Pods, but enforcement requires a network implementation supporting policies
  4. Secret data can be base64 encoded in API representations; real confidentiality requires encryption, controlled API access, and careful key management

Explanation

Correct Answer

C:

NetworkPolicy defines permitted Pod ingress and egress traffic for selected Pods, but enforcement requires a network implementation supporting policies. This component or control behavior explains what matters in the case: A team's sensitive backend accepts traffic from unrelated namespaces on a shared cluster despite strong RBAC settings. The corresponding operational decision is to apply an appropriate NetworkPolicy with correct Pod and Namespace selectors and verify that the selected CNI enforces it. The expected evidence is that connectivity tests succeed from explicitly allowed clients and fail from unrelated Pods while DNS and required egress continue. If the requirement is misunderstood, assuming RBAC alone filters network packets or defining an unenforced policy leaves lateral network paths open. The distinction matters because cloud-native controls are specific to layers, resource lifecycles, and declared ownership; similar-sounding features are not always substitutes.

Incorrect Answers

A:

ServiceAccounts provide workload identities for authenticating to the Kubernetes API, subject to configured token mounting and authorizations. This explanation belongs to the nearby ServiceAccount identity for workloads topic, for example: An in-cluster controller requires permission to read a limited group of Kubernetes resources using its own identity. The actual scenario is: A team's sensitive backend accepts traffic from unrelated namespaces on a shared cluster despite strong RBAC settings. The relevant mechanism is that networkPolicy defines permitted Pod ingress and egress traffic for selected Pods, but enforcement requires a network implementation supporting policies. The matching implementation is to apply an appropriate NetworkPolicy with correct Pod and Namespace selectors and verify that the selected CNI enforces it. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

B:

Image scanning identifies known vulnerable components, while trusted provenance and runtime controls address supply-chain and execution risks. This explanation belongs to the nearby container image trust and vulnerability remediation topic, for example: An application release includes an unreviewed base image with known critical vulnerabilities and unnecessary root privileges. The actual scenario is: A team's sensitive backend accepts traffic from unrelated namespaces on a shared cluster despite strong RBAC settings. The relevant mechanism is that networkPolicy defines permitted Pod ingress and egress traffic for selected Pods, but enforcement requires a network implementation supporting policies. The matching implementation is to apply an appropriate NetworkPolicy with correct Pod and Namespace selectors and verify that the selected CNI enforces it. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

D:

Secret data can be base64 encoded in API representations; real confidentiality requires encryption, controlled API access, and careful key management. This explanation belongs to the nearby secret encryption and API access controls topic, for example: An operator believes Kubernetes Secret values are encrypted at rest solely because YAML displays them in base64. The actual scenario is: A team's sensitive backend accepts traffic from unrelated namespaces on a shared cluster despite strong RBAC settings. The relevant mechanism is that networkPolicy defines permitted Pod ingress and egress traffic for selected Pods, but enforcement requires a network implementation supporting policies. The matching implementation is to apply an appropriate NetworkPolicy with correct Pod and Namespace selectors and verify that the selected CNI enforces it. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

Question 398

A platform operator expects PVCs with a particular storageClassName to bind even though no matching class or CSI driver is available.

Which next step most directly solves this Kubernetes or cloud-native requirement?

  1. Choose emptyDir for Pod-lifetime scratch data and a persistent claim for information that must outlive a Pod's replacement
  2. Configure a supported StorageClass and compatible CSI provisioner and create claims referencing the intended storage class
  3. Use a StatefulSet with a suitable headless Service and volumeClaimTemplates for identity-sensitive stateful replicas
  4. Create a compatible PersistentVolumeClaim and configure suitable provisioned or existing PersistentVolume capacity before starting the stateful app

Explanation

Correct Answer

B:

Configure a supported StorageClass and compatible CSI provisioner and create claims referencing the intended storage class. This action directly addresses the described situation: A platform operator expects PVCs with a particular storageClassName to bind even though no matching class or CSI driver is available. StorageClass describes provisioning behavior and parameters; a CSI driver can dynamically provision PVs for matching PVCs. To distinguish a correct change from an unverified configuration, check that a new PVC reaches Bound and its dynamically created backing volume appears with the expected capacity and access semantics. The relevant failure concern is that an absent or incorrect provisioner leaves claims Pending or creates storage with incompatible performance and durability properties. A neighboring Kubernetes feature may be useful elsewhere, but selecting it here would leave the central requirement unfulfilled.

Incorrect Answers

A:

Choose emptyDir for Pod-lifetime scratch data and a persistent claim for information that must outlive a Pod's replacement. That action is sensible for the separate ephemeral emptyDir versus persistent PVC problem, for example: A Pod uses an emptyDir scratch volume but an application owner expects its files to survive complete Pod replacement. This scenario instead describes: A platform operator expects PVCs with a particular storageClassName to bind even though no matching class or CSI driver is available. The more direct corrective action is to configure a supported StorageClass and compatible CSI provisioner and create claims referencing the intended storage class. StorageClass describes provisioning behavior and parameters; a CSI driver can dynamically provision PVs for matching PVCs. Applying a solution aimed at another problem would not establish the placement, connectivity, access, or delivery behavior specifically requested in this case.

C:

Use a StatefulSet with a suitable headless Service and volumeClaimTemplates for identity-sensitive stateful replicas. That action is sensible for the separate StatefulSet stable identity and claims problem, for example: A clustered database requires stable Pod identities and a separate durable volume for every ordered replica. This scenario instead describes: A platform operator expects PVCs with a particular storageClassName to bind even though no matching class or CSI driver is available. The more direct corrective action is to configure a supported StorageClass and compatible CSI provisioner and create claims referencing the intended storage class. StorageClass describes provisioning behavior and parameters; a CSI driver can dynamically provision PVs for matching PVCs. Applying a solution aimed at another problem would not establish the placement, connectivity, access, or delivery behavior specifically requested in this case.

D:

Create a compatible PersistentVolumeClaim and configure suitable provisioned or existing PersistentVolume capacity before starting the stateful app. That action is sensible for the separate PersistentVolumeClaim and PersistentVolume binding problem, for example: A database Pod needs durable disk data and its PersistentVolumeClaim stays Pending while no compatible volume exists. This scenario instead describes: A platform operator expects PVCs with a particular storageClassName to bind even though no matching class or CSI driver is available. The more direct corrective action is to configure a supported StorageClass and compatible CSI provisioner and create claims referencing the intended storage class. StorageClass describes provisioning behavior and parameters; a CSI driver can dynamically provision PVs for matching PVCs. Applying a solution aimed at another problem would not establish the placement, connectivity, access, or delivery behavior specifically requested in this case.

Question 399

Developers have several changing backend Pods and want an internal cluster endpoint for other Pods to call.

What is the most specific risk if the team leaves this situation unresolved?

  1. Exposing a node or external load balancer for an internal-only workload unnecessarily expands its reachable surface
  2. Broad or mismatched selectors and failing readiness probes can produce no endpoints or route traffic to the wrong backend
  3. Hard-coding Pod IPs or overlooking CoreDNS failures can break service discovery after otherwise healthy Pod replacements
  4. Assuming every ClusterIP is Internet reachable or every bare-metal cluster automatically provisions a cloud load balancer causes failed connectivity

Explanation

Correct Answer

A:

Exposing a node or external load balancer for an internal-only workload unnecessarily expands its reachable surface. This failure path follows the case as described: Developers have several changing backend Pods and want an internal cluster endpoint for other Pods to call. The appropriate corrective decision is to create a ClusterIP Service with a correct selector and port mapping, then test connectivity from another authorized Pod. ClusterIP provides a stable cluster-internal virtual Service address that routes to eligible backend Pods without directly exposing a node port. The control should be accepted only when a test Pod inside the cluster reaches the backend by Service DNS name while no external ingress endpoint is created. Risk statements should identify the affected workload or trust boundary, rather than generically claiming that every Kubernetes misconfiguration causes the same outage.

Incorrect Answers

B:

Broad or mismatched selectors and failing readiness probes can produce no endpoints or route traffic to the wrong backend. This is a plausible risk for the different Service endpoints reflect matching Ready Pods scenario, for example: A Service resolves in DNS but returns no application responses because its selector does not match any Ready Pods. However, the presented case concerns: Developers have several changing backend Pods and want an internal cluster endpoint for other Pods to call. The more direct risk is that exposing a node or external load balancer for an internal-only workload unnecessarily expands its reachable surface. The relevant mitigation is to create a ClusterIP Service with a correct selector and port mapping, then test connectivity from another authorized Pod. Treating every infrastructure risk as interchangeable would obscure the concrete failure path and lead the team to protect the wrong part of the system.

C:

Hard-coding Pod IPs or overlooking CoreDNS failures can break service discovery after otherwise healthy Pod replacements. This is a plausible risk for the different Cluster DNS service discovery scenario, for example: A Pod can connect to a backend by IP but fails when using the Service name after a DNS configuration mistake. However, the presented case concerns: Developers have several changing backend Pods and want an internal cluster endpoint for other Pods to call. The more direct risk is that exposing a node or external load balancer for an internal-only workload unnecessarily expands its reachable surface. The relevant mitigation is to create a ClusterIP Service with a correct selector and port mapping, then test connectivity from another authorized Pod. Treating every infrastructure risk as interchangeable would obscure the concrete failure path and lead the team to protect the wrong part of the system.

D:

Assuming every ClusterIP is Internet reachable or every bare-metal cluster automatically provisions a cloud load balancer causes failed connectivity. This is a plausible risk for the different NodePort versus LoadBalancer external access scenario, for example: A test environment must expose a simple TCP application through an explicitly allowed port on Kubernetes nodes. However, the presented case concerns: Developers have several changing backend Pods and want an internal cluster endpoint for other Pods to call. The more direct risk is that exposing a node or external load balancer for an internal-only workload unnecessarily expands its reachable surface. The relevant mitigation is to create a ClusterIP Service with a correct selector and port mapping, then test connectivity from another authorized Pod. Treating every infrastructure risk as interchangeable would obscure the concrete failure path and lead the team to protect the wrong part of the system.

Question 400

Operators need to distinguish application exceptions from scheduler faults when a restarting Pod has already been assigned a worker.

What acceptance test result provides the strongest evidence of success?

  1. The application completes a representative cold start once and then transitions to normal readiness and liveness monitoring
  2. The retrieved previous log explains the failing process and a corrected rollout runs without repeated restarts
  3. A deliberately wedged test process is restarted by kubelet and later resumes service without repeated false-positive restarts
  4. After rollback, the expected prior image is serving and user-path tests recover with reduced error rates

Explanation

Correct Answer

B:

The retrieved previous log explains the failing process and a corrected rollout runs without repeated restarts. This result checks the exact operational requirement in the scenario: Operators need to distinguish application exceptions from scheduler faults when a restarting Pod has already been assigned a worker. It should be obtained after the team takes the step to inspect kubectl logs with the previous-container option alongside Pod termination reasons and application configuration. Container log retrieval can show stdout and stderr from current or preceding instances, making application startup failures visible. The acceptance evidence must guard against the failure in which restarting and redeploying without collecting previous logs can erase useful context for the original failure. A healthy-looking dashboard for an unrelated component would not demonstrate that this particular application or control is functioning correctly.

Incorrect Answers

A:

The application completes a representative cold start once and then transitions to normal readiness and liveness monitoring. This would provide useful evidence for a different startup probe protects slow initialization situation such as: A Java application legitimately takes several minutes to initialize and liveness checks restart it before startup completes. That is not the specific requirement here: Operators need to distinguish application exceptions from scheduler faults when a restarting Pod has already been assigned a worker. The directly matching evidence is that the retrieved previous log explains the failing process and a corrected rollout runs without repeated restarts. The associated implementation is to inspect kubectl logs with the previous-container option alongside Pod termination reasons and application configuration. A passing test for a neighboring Kubernetes resource does not establish that the actual workload is running with the requested guarantees.

C:

A deliberately wedged test process is restarted by kubelet and later resumes service without repeated false-positive restarts. This would provide useful evidence for a different liveness probe restarts stuck containers situation such as: A web process stays alive but becomes permanently unresponsive after a deadlock and needs recovery. That is not the specific requirement here: Operators need to distinguish application exceptions from scheduler faults when a restarting Pod has already been assigned a worker. The directly matching evidence is that the retrieved previous log explains the failing process and a corrected rollout runs without repeated restarts. The associated implementation is to inspect kubectl logs with the previous-container option alongside Pod termination reasons and application configuration. A passing test for a neighboring Kubernetes resource does not establish that the actual workload is running with the requested guarantees.

D:

After rollback, the expected prior image is serving and user-path tests recover with reduced error rates. This would provide useful evidence for a different rollout revision history for regression recovery situation such as: An application regression begins immediately after a Deployment revision and a prior version has passed smoke tests. That is not the specific requirement here: Operators need to distinguish application exceptions from scheduler faults when a restarting Pod has already been assigned a worker. The directly matching evidence is that the retrieved previous log explains the failing process and a corrected rollout runs without repeated restarts. The associated implementation is to inspect kubectl logs with the previous-container option alongside Pod termination reasons and application configuration. A passing test for a neighboring Kubernetes resource does not establish that the actual workload is running with the requested guarantees.

Kubernetes and Cloud Native Associate (KCNA) Practice Tests

Purchase Individually

  • Premium File

    333 Questions & Answers
    Last Update: Oct 30, 2026

    $76.99
    $69.99
  • Training Course

    54 Lectures

    $43.99
    $39.99
  • Study Guide

    410 Pages

    $43.99
    $39.99

SPECIAL OFFER: GET 10% OFF
This is ONE TIME OFFER

You save
10%

Enter Your Email Address to Receive Your 10% Off Discount Code

SPECIAL OFFER: GET 10% OFF

You save
10%

Use Discount Code:

A confirmation link was sent to your e-mail.

Please check your mailbox for a message from support@examlabs.com and follow the directions.

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your email address below to get started with our interactive software demo of your free trial.

  • Realistic exam simulation and exam editor with preview functions
  • Whole exam in a single file with several different question types
  • Customizable exam-taking mode & detailed score reports