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 18

Question 170

An application release includes an unreviewed base image with known critical vulnerabilities and unnecessary root privileges.

What operational hazard is most important in the described case?

  1. Promoting unknown or mutable artifacts can introduce vulnerable or malicious components even when the Kubernetes scheduler is healthy
  2. Embedding a human admin credential in a Pod allows its compromise to expose excessive cluster control privileges
  3. Overly broad cluster permissions give a compromised automation credential access far beyond its operational task
  4. Without enforced admission policy, workloads may obtain host capabilities or filesystem exposure outside their intended trust boundary

Explanation

Correct Answer

A:

Promoting unknown or mutable artifacts can introduce vulnerable or malicious components even when the Kubernetes scheduler is healthy. This failure path follows the case as described: An application release includes an unreviewed base image with known critical vulnerabilities and unnecessary root privileges. The appropriate corrective decision is to scan and pin approved images, reduce runtime privilege, and enforce image provenance or admission requirements where supported. Image scanning identifies known vulnerable components, while trusted provenance and runtime controls address supply-chain and execution risks. The control should be accepted only when only an approved scanned image digest reaches the cluster and security policy prevents an untrusted release from running. 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:

Embedding a human admin credential in a Pod allows its compromise to expose excessive cluster control privileges. This is a plausible risk for the different ServiceAccount identity for workloads scenario, for example: An in-cluster controller requires permission to read a limited group of Kubernetes resources using its own identity. However, the presented case concerns: An application release includes an unreviewed base image with known critical vulnerabilities and unnecessary root privileges. The more direct risk is that promoting unknown or mutable artifacts can introduce vulnerable or malicious components even when the Kubernetes scheduler is healthy. The relevant mitigation is to scan and pin approved images, reduce runtime privilege, and enforce image provenance or admission requirements where supported. 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:

Overly broad cluster permissions give a compromised automation credential access far beyond its operational task. This is a plausible risk for the different RBAC least privilege for namespace users scenario, for example: A CI service account needs to read Deployments in staging but must not delete Secrets or touch production Namespaces. However, the presented case concerns: An application release includes an unreviewed base image with known critical vulnerabilities and unnecessary root privileges. The more direct risk is that promoting unknown or mutable artifacts can introduce vulnerable or malicious components even when the Kubernetes scheduler is healthy. The relevant mitigation is to scan and pin approved images, reduce runtime privilege, and enforce image provenance or admission requirements where supported. 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:

Without enforced admission policy, workloads may obtain host capabilities or filesystem exposure outside their intended trust boundary. This is a plausible risk for the different Pod Security Standards enforce restricted workloads scenario, for example: Developers submit Pods that request privileged execution and host mounts in a shared team Namespace. However, the presented case concerns: An application release includes an unreviewed base image with known critical vulnerabilities and unnecessary root privileges. The more direct risk is that promoting unknown or mutable artifacts can introduce vulnerable or malicious components even when the Kubernetes scheduler is healthy. The relevant mitigation is to scan and pin approved images, reduce runtime privilege, and enforce image provenance or admission requirements where supported. 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 171

An administrator plans to reboot a Kubernetes node without accounting for evictable Pods and disruption budgets.

Which operational observation most convincingly validates the fix?

  1. The node is unschedulable and evictable workloads become healthy on alternate nodes before maintenance begins
  2. Kubectl config current-context and a read-only namespace query identify the approved cluster before the change
  3. New requests beyond the chosen quota are rejected with clear admission events while existing permitted workloads continue
  4. Only authorized service accounts and workloads can retrieve the required value and the secret is not exposed in logs or source control

Explanation

Correct Answer

A:

The node is unschedulable and evictable workloads become healthy on alternate nodes before maintenance begins. This result checks the exact operational requirement in the scenario: An administrator plans to reboot a Kubernetes node without accounting for evictable Pods and disruption budgets. It should be obtained after the team takes the step to cordon the node to prevent new scheduling and drain supported workloads with disruption policies before planned maintenance. Cordon marks a node unschedulable; drain safely evicts compatible managed Pods so their controllers can place replacements elsewhere. The acceptance evidence must guard against the failure in which rebooting without workload evacuation can interrupt user traffic or violate disruption constraints. A healthy-looking dashboard for an unrelated component would not demonstrate that this particular application or control is functioning correctly.

Incorrect Answers

B:

Kubectl config current-context and a read-only namespace query identify the approved cluster before the change. This would provide useful evidence for a different kubectl context and active cluster selection situation such as: A developer has access to a test cluster and production cluster and must confirm the target before applying a manifest. That is not the specific requirement here: An administrator plans to reboot a Kubernetes node without accounting for evictable Pods and disruption budgets. The directly matching evidence is that the node is unschedulable and evictable workloads become healthy on alternate nodes before maintenance begins. The associated implementation is to cordon the node to prevent new scheduling and drain supported workloads with disruption policies before planned maintenance. A passing test for a neighboring Kubernetes resource does not establish that the actual workload is running with the requested guarantees.

C:

New requests beyond the chosen quota are rejected with clear admission events while existing permitted workloads continue. This would provide useful evidence for a different ResourceQuota per Namespace situation such as: One team's runaway batch Pods consume a disproportionate number of objects and resources in a shared cluster. That is not the specific requirement here: An administrator plans to reboot a Kubernetes node without accounting for evictable Pods and disruption budgets. The directly matching evidence is that the node is unschedulable and evictable workloads become healthy on alternate nodes before maintenance begins. The associated implementation is to cordon the node to prevent new scheduling and drain supported workloads with disruption policies before planned maintenance. A passing test for a neighboring Kubernetes resource does not establish that the actual workload is running with the requested guarantees.

D:

Only authorized service accounts and workloads can retrieve the required value and the secret is not exposed in logs or source control. This would provide useful evidence for a different Secret as API object for sensitive application values situation such as: A workload requires a database password and operators must avoid putting the credential directly into its image or plain manifest. That is not the specific requirement here: An administrator plans to reboot a Kubernetes node without accounting for evictable Pods and disruption budgets. The directly matching evidence is that the node is unschedulable and evictable workloads become healthy on alternate nodes before maintenance begins. The associated implementation is to cordon the node to prevent new scheduling and drain supported workloads with disruption policies before planned maintenance. A passing test for a neighboring Kubernetes resource does not establish that the actual workload is running with the requested guarantees.

Question 172

A team wants to expose only a small share of requests to a new version before broad production rollout.

What component behavior is most important in this situation?

  1. Canary releases gradually expose a limited user or traffic subset to a new revision while maintaining the stable version
  2. GitOps uses version-controlled declarative desired state and automated reconciliation to detect and correct divergence from source
  3. Blue-green deployment keeps two complete environments and changes the traffic destination at cutover, unlike progressively shifting percentages
  4. Continuous delivery prepares a releasable artifact with manual approval possible; continuous deployment automatically releases qualifying changes

Explanation

Correct Answer

A:

Canary releases gradually expose a limited user or traffic subset to a new revision while maintaining the stable version. This component or control behavior explains what matters in the case: A team wants to expose only a small share of requests to a new version before broad production rollout. The corresponding operational decision is to implement a supported canary deployment and traffic split, comparing representative health and latency before increasing exposure. The expected evidence is that observed error rates and service metrics for the canary remain within thresholds before the traffic percentage increases. If the requirement is misunderstood, promoting an unobserved release to all users can magnify defects that a controlled canary would have detected. 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

B:

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: A team wants to expose only a small share of requests to a new version before broad production rollout. The relevant mechanism is that canary releases gradually expose a limited user or traffic subset to a new revision while maintaining the stable version. The matching implementation is to implement a supported canary deployment and traffic split, comparing representative health and latency before increasing exposure. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

C:

Blue-green deployment keeps two complete environments and changes the traffic destination at cutover, unlike progressively shifting percentages. This explanation belongs to the nearby blue-green release cutover topic, for example: A critical application needs a full parallel environment for a fast verified cutover and easy return to the old release. The actual scenario is: A team wants to expose only a small share of requests to a new version before broad production rollout. The relevant mechanism is that canary releases gradually expose a limited user or traffic subset to a new revision while maintaining the stable version. The matching implementation is to implement a supported canary deployment and traffic split, comparing representative health and latency before increasing exposure. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

D:

Continuous delivery prepares a releasable artifact with manual approval possible; continuous deployment automatically releases qualifying changes. This explanation belongs to the nearby continuous delivery versus continuous deployment topic, for example: A business requires a human approval gate before promoting an otherwise fully tested container image to production. The actual scenario is: A team wants to expose only a small share of requests to a new version before broad production rollout. The relevant mechanism is that canary releases gradually expose a limited user or traffic subset to a new revision while maintaining the stable version. The matching implementation is to implement a supported canary deployment and traffic split, comparing representative health and latency before increasing exposure. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

Question 173

A Service resolves in DNS but returns no application responses because its selector does not match any Ready Pods.

What is the likely impact of retaining this faulty assumption?

  1. Broad or mismatched selectors and failing readiness probes can produce no endpoints or route traffic to the wrong backend
  2. Exposing a node or external load balancer for an internal-only workload unnecessarily expands its reachable surface
  3. Hard-coding Pod IPs or overlooking CoreDNS failures can break service discovery after otherwise healthy Pod replacements
  4. A missing or broken Pod networking implementation can strand application traffic while node health and container startup appear normal

Explanation

Correct Answer

A:

Broad or mismatched selectors and failing readiness probes can produce no endpoints or route traffic to the wrong backend. This failure path follows the case as described: A Service resolves in DNS but returns no application responses because its selector does not match any Ready Pods. The appropriate corrective decision is to inspect Service selectors and EndpointSlices, correct label matches, and ensure backends satisfy readiness requirements. Service endpoint membership derives from selected Pods and readiness conditions; a valid Service name alone does not prove healthy backends. The control should be accepted only when the EndpointSlice contains expected ready addresses and client requests through the Service reach the intended application replicas. 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:

Exposing a node or external load balancer for an internal-only workload unnecessarily expands its reachable surface. This is a plausible risk for the different ClusterIP service for private east-west access scenario, for example: A backend API should accept traffic only through an internal Kubernetes virtual Service address and not via a public load balancer. However, the presented case concerns: A Service resolves in DNS but returns no application responses because its selector does not match any Ready Pods. The more direct risk is that broad or mismatched selectors and failing readiness probes can produce no endpoints or route traffic to the wrong backend. The relevant mitigation is to inspect Service selectors and EndpointSlices, correct label matches, and ensure backends satisfy readiness requirements. 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: A Service resolves in DNS but returns no application responses because its selector does not match any Ready Pods. The more direct risk is that broad or mismatched selectors and failing readiness probes can produce no endpoints or route traffic to the wrong backend. The relevant mitigation is to inspect Service selectors and EndpointSlices, correct label matches, and ensure backends satisfy readiness requirements. 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:

A missing or broken Pod networking implementation can strand application traffic while node health and container startup appear normal. This is a plausible risk for the different CNI Pod-to-Pod networking scenario, for example: Pods on separate worker nodes cannot communicate though their containers start successfully and the API is healthy. However, the presented case concerns: A Service resolves in DNS but returns no application responses because its selector does not match any Ready Pods. The more direct risk is that broad or mismatched selectors and failing readiness probes can produce no endpoints or route traffic to the wrong backend. The relevant mitigation is to inspect Service selectors and EndpointSlices, correct label matches, and ensure backends satisfy readiness requirements. 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 174

A developer has access to a test cluster and production cluster and must confirm the target before applying a manifest.

Which architectural behavior is decisive in this example?

  1. ResourceQuota limits cumulative resource consumption and object counts within a Namespace, unlike per-container execution limits
  2. A kubectl context associates cluster, user credentials, and a default namespace, so the same command can target different resources depending on context
  3. Cordon marks a node unschedulable; drain safely evicts compatible managed Pods so their controllers can place replacements elsewhere
  4. Deployment revisions preserve rollout history, and rollout status reports whether desired updated Pods reach availability

Explanation

Correct Answer

B:

A kubectl context associates cluster, user credentials, and a default namespace, so the same command can target different resources depending on context. This component or control behavior explains what matters in the case: A developer has access to a test cluster and production cluster and must confirm the target before applying a manifest. The corresponding operational decision is to inspect the current kubeconfig context and explicit namespace, selecting the intended cluster before issuing a mutating kubectl command. The expected evidence is that kubectl config current-context and a read-only namespace query identify the approved cluster before the change. If the requirement is misunderstood, using a stale context can modify a production resource while the operator believes the command targets a safe staging environment. 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:

ResourceQuota limits cumulative resource consumption and object counts within a Namespace, unlike per-container execution limits. This explanation belongs to the nearby ResourceQuota per Namespace topic, for example: One team's runaway batch Pods consume a disproportionate number of objects and resources in a shared cluster. The actual scenario is: A developer has access to a test cluster and production cluster and must confirm the target before applying a manifest. The relevant mechanism is that a kubectl context associates cluster, user credentials, and a default namespace, so the same command can target different resources depending on context. The matching implementation is to inspect the current kubeconfig context and explicit namespace, selecting the intended cluster before issuing a mutating kubectl command. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

C:

Cordon marks a node unschedulable; drain safely evicts compatible managed Pods so their controllers can place replacements elsewhere. This explanation belongs to the nearby cordon drain and node maintenance topic, for example: A worker needs a scheduled operating-system patch while running applications should move to healthy nodes. The actual scenario is: A developer has access to a test cluster and production cluster and must confirm the target before applying a manifest. The relevant mechanism is that a kubectl context associates cluster, user credentials, and a default namespace, so the same command can target different resources depending on context. The matching implementation is to inspect the current kubeconfig context and explicit namespace, selecting the intended cluster before issuing a mutating kubectl command. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

D:

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 developer has access to a test cluster and production cluster and must confirm the target before applying a manifest. The relevant mechanism is that a kubectl context associates cluster, user credentials, and a default namespace, so the same command can target different resources depending on context. The matching implementation is to inspect the current kubeconfig context and explicit namespace, selecting the intended cluster before issuing a mutating kubectl command. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

Question 175

A cluster builder must provide address assignment and network reachability to Pods rather than only configure host Ethernet interfaces.

What is the likely impact of retaining this faulty assumption?

  1. A missing or broken Pod networking implementation can strand application traffic while node health and container startup appear normal
  2. Assuming every ClusterIP is Internet reachable or every bare-metal cluster automatically provisions a cloud load balancer causes failed connectivity
  3. Exposing a node or external load balancer for an internal-only workload unnecessarily expands its reachable surface
  4. Writing an Ingress object without a controller does not create the routing implementation and can leave applications unreachable

Explanation

Correct Answer

A:

A missing or broken Pod networking implementation can strand application traffic while node health and container startup appear normal. This failure path follows the case as described: A cluster builder must provide address assignment and network reachability to Pods rather than only configure host Ethernet interfaces. The appropriate corrective decision is to install or repair a compatible Container Network Interface plugin and verify pod routes, policy configuration, and cross-node packet paths. A CNI implementation configures Pod network interfaces and addresses; it enables the cluster's chosen network connectivity model across nodes. The control should be accepted only when two authorized Pods on different workers exchange traffic successfully through their Pod IP addresses under the expected network policy. 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:

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: A cluster builder must provide address assignment and network reachability to Pods rather than only configure host Ethernet interfaces. The more direct risk is that a missing or broken Pod networking implementation can strand application traffic while node health and container startup appear normal. The relevant mitigation is to install or repair a compatible Container Network Interface plugin and verify pod routes, policy configuration, and cross-node packet paths. 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:

Exposing a node or external load balancer for an internal-only workload unnecessarily expands its reachable surface. This is a plausible risk for the different ClusterIP service for private east-west access scenario, for example: A backend API should accept traffic only through an internal Kubernetes virtual Service address and not via a public load balancer. However, the presented case concerns: A cluster builder must provide address assignment and network reachability to Pods rather than only configure host Ethernet interfaces. The more direct risk is that a missing or broken Pod networking implementation can strand application traffic while node health and container startup appear normal. The relevant mitigation is to install or repair a compatible Container Network Interface plugin and verify pod routes, policy configuration, and cross-node packet paths. 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:

Writing an Ingress object without a controller does not create the routing implementation and can leave applications unreachable. This is a plausible risk for the different Ingress or Gateway for HTTP routing scenario, for example: Several HTTPS web services share one public endpoint and need requests dispatched by hostname or path. However, the presented case concerns: A cluster builder must provide address assignment and network reachability to Pods rather than only configure host Ethernet interfaces. The more direct risk is that a missing or broken Pod networking implementation can strand application traffic while node health and container startup appear normal. The relevant mitigation is to install or repair a compatible Container Network Interface plugin and verify pod routes, policy configuration, and cross-node packet paths. 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 176

A new Deployment revision is serving errors and the team needs to return to the preceding healthy revision.

What technical distinction should guide the decision?

  1. A ConfigMap separates nonconfidential application configuration from images, while consuming workloads may need restart or reload to observe changes
  2. Describe and events expose Pod conditions, scheduling decisions, and admission messages even when no application container has started
  3. Deployment revisions preserve rollout history, and rollout status reports whether desired updated Pods reach availability
  4. Cordon marks a node unschedulable; drain safely evicts compatible managed Pods so their controllers can place replacements elsewhere

Explanation

Correct Answer

C:

Deployment revisions preserve rollout history, and rollout status reports whether desired updated Pods reach availability. This component or control behavior explains what matters in the case: A new Deployment revision is serving errors and the team needs to return to the preceding healthy revision. The corresponding operational decision is to check Deployment rollout history and status, then invoke a supported rollback to the prior verified revision if needed. The expected evidence is that the prior known-good image becomes active through the Deployment controller and application smoke tests pass. If the requirement is misunderstood, deleting replacement Pods individually does not reliably restore the previous Deployment template and can perpetuate a faulty rollout. 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 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 new Deployment revision is serving errors and the team needs to return to the preceding healthy revision. The relevant mechanism is that deployment revisions preserve rollout history, and rollout status reports whether desired updated Pods reach availability. The matching implementation is to check Deployment rollout history and status, then invoke a supported rollback to the prior verified revision if needed. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

B:

Describe and events expose Pod conditions, scheduling decisions, and admission messages even when no application container has started. This explanation belongs to the nearby kubectl describe and event inspection topic, for example: A Pod remains Pending with no container logs because it was never assigned to a worker node. The actual scenario is: A new Deployment revision is serving errors and the team needs to return to the preceding healthy revision. The relevant mechanism is that deployment revisions preserve rollout history, and rollout status reports whether desired updated Pods reach availability. The matching implementation is to check Deployment rollout history and status, then invoke a supported rollback to the prior verified revision if needed. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

D:

Cordon marks a node unschedulable; drain safely evicts compatible managed Pods so their controllers can place replacements elsewhere. This explanation belongs to the nearby cordon drain and node maintenance topic, for example: A worker needs a scheduled operating-system patch while running applications should move to healthy nodes. The actual scenario is: A new Deployment revision is serving errors and the team needs to return to the preceding healthy revision. The relevant mechanism is that deployment revisions preserve rollout history, and rollout status reports whether desired updated Pods reach availability. The matching implementation is to check Deployment rollout history and status, then invoke a supported rollback to the prior verified revision if needed. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

Question 177

Several HTTPS web services share one public endpoint and need requests dispatched by hostname or path.

Which choice best meets the requirement without addressing an unrelated issue?

  1. Create a ClusterIP Service with a correct selector and port mapping, then test connectivity from another authorized Pod
  2. Select NodePort only for suitable node-address access, or a supported LoadBalancer Service when managed external load balancing is required
  3. Configure a supported Ingress or Gateway API route with a working controller and appropriate TLS and backend Service references
  4. Check CoreDNS and the Pod DNS configuration, then validate Service and Namespace DNS resolution before editing application endpoints

Explanation

Correct Answer

C:

Configure a supported Ingress or Gateway API route with a working controller and appropriate TLS and backend Service references. This action directly addresses the described situation: Several HTTPS web services share one public endpoint and need requests dispatched by hostname or path. Ingress or Gateway resources express Layer 7 routing intent; a compatible controller or implementation is required to program real traffic. To distinguish a correct change from an unverified configuration, check that requests for each approved host and path reach the correct Service over the intended TLS termination and return expected responses. The relevant failure concern is that writing an Ingress object without a controller does not create the routing implementation and can leave applications unreachable. A neighboring Kubernetes feature may be useful elsewhere, but selecting it here would leave the central requirement unfulfilled.

Incorrect Answers

A:

Create a ClusterIP Service with a correct selector and port mapping, then test connectivity from another authorized Pod. That action is sensible for the separate ClusterIP service for private east-west access problem, for example: A backend API should accept traffic only through an internal Kubernetes virtual Service address and not via a public load balancer. This scenario instead describes: Several HTTPS web services share one public endpoint and need requests dispatched by hostname or path. The more direct corrective action is to configure a supported Ingress or Gateway API route with a working controller and appropriate TLS and backend Service references. Ingress or Gateway resources express Layer 7 routing intent; a compatible controller or implementation is required to program real traffic. Applying a solution aimed at another problem would not establish the placement, connectivity, access, or delivery behavior specifically requested in this case.

B:

Select NodePort only for suitable node-address access, or a supported LoadBalancer Service when managed external load balancing is required. That action is sensible for the separate NodePort versus LoadBalancer external access problem, for example: A test environment must expose a simple TCP application through an explicitly allowed port on Kubernetes nodes. This scenario instead describes: Several HTTPS web services share one public endpoint and need requests dispatched by hostname or path. The more direct corrective action is to configure a supported Ingress or Gateway API route with a working controller and appropriate TLS and backend Service references. Ingress or Gateway resources express Layer 7 routing intent; a compatible controller or implementation is required to program real traffic. Applying a solution aimed at another problem would not establish the placement, connectivity, access, or delivery behavior specifically requested in this case.

D:

Check CoreDNS and the Pod DNS configuration, then validate Service and Namespace DNS resolution before editing application endpoints. That action is sensible for the separate Cluster DNS service discovery problem, for example: A Pod can connect to a backend by IP but fails when using the Service name after a DNS configuration mistake. This scenario instead describes: Several HTTPS web services share one public endpoint and need requests dispatched by hostname or path. The more direct corrective action is to configure a supported Ingress or Gateway API route with a working controller and appropriate TLS and backend Service references. Ingress or Gateway resources express Layer 7 routing intent; a compatible controller or implementation is required to program real traffic. Applying a solution aimed at another problem would not establish the placement, connectivity, access, or delivery behavior specifically requested in this case.

Question 178

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

Which engineering change is most justified by these facts?

  1. Create a ConfigMap for nonsecret key-value configuration and reference it from Pod environment variables or mounted files
  2. Inspect kubectl describe pod output and namespace events to identify scheduling or admission failures before looking for container logs
  3. Check Deployment rollout history and status, then invoke a supported rollback to the prior verified revision if needed
  4. Cordon the node to prevent new scheduling and drain supported workloads with disruption policies before planned maintenance

Explanation

Correct Answer

B:

Inspect kubectl describe pod output and namespace events to identify scheduling or admission failures before looking for container logs. This action directly addresses the described situation: A beginner runs kubectl logs repeatedly against a Pod that has not yet started and needs a better first observation. Describe and events expose Pod conditions, scheduling decisions, and admission messages even when no application container has started. To distinguish a correct change from an unverified configuration, check that the event stream identifies a concrete Pending cause and subsequent remediation allows a successful node assignment. The relevant failure concern is that using only application logs misses failures that occur before container creation and delays basic cluster diagnosis. A neighboring Kubernetes feature may be useful elsewhere, but selecting it here would leave the central requirement unfulfilled.

Incorrect Answers

A:

Create a ConfigMap for nonsecret key-value configuration and reference it from Pod environment variables or mounted files. That action is sensible for the separate ConfigMap for nonsecret settings problem, for example: An application needs a configurable feature flag and display label shared among Pods, but no passwords are involved. This scenario instead describes: A beginner runs kubectl logs repeatedly against a Pod that has not yet started and needs a better first observation. The more direct corrective action is to inspect kubectl describe pod output and namespace events to identify scheduling or admission failures before looking for container logs. Describe and events expose Pod conditions, scheduling decisions, and admission messages even when no application container has started. Applying a solution aimed at another problem would not establish the placement, connectivity, access, or delivery behavior specifically requested in this case.

C:

Check Deployment rollout history and status, then invoke a supported rollback to the prior verified revision if needed. That action is sensible for the separate Deployment rollout status and undo problem, for example: A new Deployment revision is serving errors and the team needs to return to the preceding healthy revision. This scenario instead describes: A beginner runs kubectl logs repeatedly against a Pod that has not yet started and needs a better first observation. The more direct corrective action is to inspect kubectl describe pod output and namespace events to identify scheduling or admission failures before looking for container logs. Describe and events expose Pod conditions, scheduling decisions, and admission messages even when no application container has started. Applying a solution aimed at another problem would not establish the placement, connectivity, access, or delivery behavior specifically requested in this case.

D:

Cordon the node to prevent new scheduling and drain supported workloads with disruption policies before planned maintenance. That action is sensible for the separate cordon drain and node maintenance problem, for example: A worker needs a scheduled operating-system patch while running applications should move to healthy nodes. This scenario instead describes: A beginner runs kubectl logs repeatedly against a Pod that has not yet started and needs a better first observation. The more direct corrective action is to inspect kubectl describe pod output and namespace events to identify scheduling or admission failures before looking for container logs. Describe and events expose Pod conditions, scheduling decisions, and admission messages even when no application container has started. Applying a solution aimed at another problem would not establish the placement, connectivity, access, or delivery behavior specifically requested in this case.

Question 179

A backend API should accept traffic only through an internal Kubernetes virtual Service address and not via a public load balancer.

Which explanation best matches the observed cluster behavior?

  1. A CNI implementation configures Pod network interfaces and addresses; it enables the cluster's chosen network connectivity model across nodes
  2. Kubernetes DNS commonly resolves Service names into Service addresses; names may require a namespace-qualified form when crossing namespaces
  3. ClusterIP provides a stable cluster-internal virtual Service address that routes to eligible backend Pods without directly exposing a node port
  4. A NodePort exposes a chosen port on eligible node addresses, while LoadBalancer asks a supported infrastructure integration for an external load balancer

Explanation

Correct Answer

C:

ClusterIP provides a stable cluster-internal virtual Service address that routes to eligible backend Pods without directly exposing a node port. This component or control behavior explains what matters in the case: A backend API should accept traffic only through an internal Kubernetes virtual Service address and not via a public load balancer. The corresponding operational decision is to create a ClusterIP Service with a correct selector and port mapping, then test connectivity from another authorized Pod. The expected evidence is that a test Pod inside the cluster reaches the backend by Service DNS name while no external ingress endpoint is created. If the requirement is misunderstood, exposing a node or external load balancer for an internal-only workload unnecessarily expands its reachable surface. 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 CNI implementation configures Pod network interfaces and addresses; it enables the cluster's chosen network connectivity model across nodes. This explanation belongs to the nearby CNI Pod-to-Pod networking topic, for example: Pods on separate worker nodes cannot communicate though their containers start successfully and the API is healthy. The actual scenario is: A backend API should accept traffic only through an internal Kubernetes virtual Service address and not via a public load balancer. The relevant mechanism is that clusterIP provides a stable cluster-internal virtual Service address that routes to eligible backend Pods without directly exposing a node port. The matching implementation is to create a ClusterIP Service with a correct selector and port mapping, then test connectivity from another authorized Pod. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

B:

Kubernetes DNS commonly resolves Service names into Service addresses; names may require a namespace-qualified form when crossing namespaces. This explanation belongs to the nearby Cluster DNS service discovery topic, for example: A Pod can connect to a backend by IP but fails when using the Service name after a DNS configuration mistake. The actual scenario is: A backend API should accept traffic only through an internal Kubernetes virtual Service address and not via a public load balancer. The relevant mechanism is that clusterIP provides a stable cluster-internal virtual Service address that routes to eligible backend Pods without directly exposing a node port. The matching implementation is to create a ClusterIP Service with a correct selector and port mapping, then test connectivity from another authorized Pod. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

D:

A NodePort exposes a chosen port on eligible node addresses, while LoadBalancer asks a supported infrastructure integration for an external load balancer. This explanation belongs to the nearby NodePort versus LoadBalancer external access topic, for example: A test environment must expose a simple TCP application through an explicitly allowed port on Kubernetes nodes. The actual scenario is: A backend API should accept traffic only through an internal Kubernetes virtual Service address and not via a public load balancer. The relevant mechanism is that clusterIP provides a stable cluster-internal virtual Service address that routes to eligible backend Pods without directly exposing a node port. The matching implementation is to create a ClusterIP Service with a correct selector and port mapping, then test connectivity from another authorized Pod. The alternative can be technically true in isolation but does not identify the component responsibility or constraint needed for this particular workload.

Question 180

A container fails immediately after launch and the current log stream omits the message from the preceding failed instance.

Which result most specifically confirms the intended Kubernetes behavior?

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

Explanation

Correct Answer

A:

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: A container fails immediately after launch and the current log stream omits the message from the preceding failed instance. 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

B:

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: A container fails immediately after launch and the current log stream omits the message from the preceding failed instance. 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:

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: A container fails immediately after launch and the current log stream omits the message from the preceding failed instance. 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:

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: A container fails immediately after launch and the current log stream omits the message from the preceding failed instance. 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