cert
cert-1
cert-2

Pass Linux Foundation KCNA Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers to Pass the Actual Exam!
30 Days Free Updates, Instant Download!

cert-5
cert-6
KCNA Exam - Verified By Experts
KCNA Premium Bundle
$29.98

KCNA Premium Bundle

$79.99
$109.97
  • Premium File 333 Questions & Answers. Last update: Nov 02, 2026
  • Training Course 54 Video Lectures
  • Study Guide 410 Pages
 
$109.97
$79.99
accept 39 downloads in last 7 days
block-screenshots
Purchase Linux Foundation KCNA Exam Training Products Individually
Linux Foundation KCNA Premium File
Premium File 333 Q&A
$76.99$69.99
Linux Foundation KCNA Video Training Course
Training Course 54 Lectures
$21.99 $19.99
Linux Foundation KCNA PDF Study Guide
Study Guide 410 Pages
$21.99 $19.99
Linux Foundation KCNA Practice Test 54

Question 530

An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads.
  2. Inspect etcd quorum health, member status, snapshot freshness, certificate validity and restore procedure.
  3. Configure PodDisruptionBudgets for voluntary disruptions while distinguishing eviction safety from normal scheduling decisions.
  4. Check Pod priority, preemptionPolicy, scheduling events, available alternatives and victim selection.
  5. Controllers and Services select exactly the intended Pods while audit annotations retain descriptive notes.

Explanation

Correct Answers

A:

Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads. This response implements the controlling Kubernetes or cloud native principle. Priority influences scheduling and potential preemption but does not bypass hard affinity or lack of suitable hardware. Check its effect by: Check Pod priority, preemptionPolicy, scheduling events, available alternatives and victim selection. This is the implementation part of the required paired answer. Workload context: An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads.

D:

Check Pod priority, preemptionPolicy, scheduling events, available alternatives and victim selection. This is the most discriminating evidence for the described failure or requirement. Priority influences scheduling and potential preemption but does not bypass hard affinity or lack of suitable hardware. The corresponding implementation is: Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads. This is the diagnostic evidence part of the paired answer. Workload context: An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads.

Incorrect Answers

B:

Inspect etcd quorum health, member status, snapshot freshness, certificate validity and restore procedure. This step belongs to etcd consistency and cluster state rather than the complementary implementation and evidence pair. The intended approach is: Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads. Validate with: Check Pod priority, preemptionPolicy, scheduling events, available alternatives and victim selection. Workload context: An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads.

C:

Configure PodDisruptionBudgets for voluntary disruptions while distinguishing eviction safety from normal scheduling decisions. This step belongs to PodDisruptionBudget during voluntary eviction rather than the complementary implementation and evidence pair. The intended approach is: Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads. Validate with: Check Pod priority, preemptionPolicy, scheduling events, available alternatives and victim selection. Workload context: An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads.

E:

Controllers and Services select exactly the intended Pods while audit annotations retain descriptive notes. This step belongs to Labels selectors and annotations rather than the complementary implementation and evidence pair. The intended approach is: Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads. Validate with: Check Pod priority, preemptionPolicy, scheduling events, available alternatives and victim selection. Workload context: An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads.

Question 531

An app restarted twice and the current logs show only successful initialization while the failure trace is in previous logs. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?

  1. Healthy Pods enter ready endpoints only after application dependencies function, without restarting healthy processes unnecessarily.
  2. Live cluster configurations converge to reviewed Git commits and unauthorized drift is flagged or corrected.
  3. Public requests reach the intended application host and path with a valid certificate and matching backends.
  4. Engineers identify the failing process message associated with the correct container instance and time window.

Explanation

Correct Answer

D:

Engineers identify the failing process message associated with the correct container instance and time window. This is an observable service outcome, not just evidence that a configuration file was saved. kubectl logs streams container stdout/stderr, and --previous selects the prior terminated instance if available. Workload context: An app restarted twice and the current logs show only successful initialization while the failure trace is in previous logs.

Incorrect Answers

A:

Healthy Pods enter ready endpoints only after application dependencies function, without restarting healthy processes unnecessarily. That result validates Readiness-probe failure versus process crash rather than the requirement here. Verify instead: Engineers identify the failing process message associated with the correct container instance and time window. Workload context: An app restarted twice and the current logs show only successful initialization while the failure trace is in previous logs.

B:

Live cluster configurations converge to reviewed Git commits and unauthorized drift is flagged or corrected. That result validates GitOps reconciliation and source of truth rather than the requirement here. Verify instead: Engineers identify the failing process message associated with the correct container instance and time window. Workload context: An app restarted twice and the current logs show only successful initialization while the failure trace is in previous logs.

C:

Public requests reach the intended application host and path with a valid certificate and matching backends. That result validates Ingress route and TLS mismatch diagnosis rather than the requirement here. Verify instead: Engineers identify the failing process message associated with the correct container instance and time window. Workload context: An app restarted twice and the current logs show only successful initialization while the failure trace is in previous logs.

Question 532

A postrelease failure requires kubectl rollout undo but no recorded previous revision is available because changes bypassed the Deployment. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Inspect maxSurge, maxUnavailable, rollout conditions, ReplicaSets, readiness and prior image revisions.
  2. Check registry digest, image signatures, deployment Pod imageID and provenance attestations across stages.
  3. Choose blue-green for switching between full environments and canary for gradually exposing a small percentage of users to a new version.
  4. An incident timeline pinpoints the failing dependency rather than relying on one generic readiness or CPU signal.
  5. Configure Deployment rollout strategy with availability bounds and use rollout history when an update requires controlled rollback.

Explanation

Correct Answers

A:

Inspect maxSurge, maxUnavailable, rollout conditions, ReplicaSets, readiness and prior image revisions. This is the most discriminating evidence for the described failure or requirement. A rolling update controls replacement pacing but application correctness still requires probes and release validation. The corresponding implementation is: Configure Deployment rollout strategy with availability bounds and use rollout history when an update requires controlled rollback. This is the diagnostic evidence part of the paired answer. Workload context: A postrelease failure requires kubectl rollout undo but no recorded previous revision is available because changes bypassed the Deployment.

E:

Configure Deployment rollout strategy with availability bounds and use rollout history when an update requires controlled rollback. This response implements the controlling Kubernetes or cloud native principle. A rolling update controls replacement pacing but application correctness still requires probes and release validation. Check its effect by: Inspect maxSurge, maxUnavailable, rollout conditions, ReplicaSets, readiness and prior image revisions. This is the implementation part of the required paired answer. Workload context: A postrelease failure requires kubectl rollout undo but no recorded previous revision is available because changes bypassed the Deployment.

Incorrect Answers

B:

Check registry digest, image signatures, deployment Pod imageID and provenance attestations across stages. This step belongs to Artifact promotion by digest rather than the complementary implementation and evidence pair. The intended approach is: Configure Deployment rollout strategy with availability bounds and use rollout history when an update requires controlled rollback. Validate with: Inspect maxSurge, maxUnavailable, rollout conditions, ReplicaSets, readiness and prior image revisions. Workload context: A postrelease failure requires kubectl rollout undo but no recorded previous revision is available because changes bypassed the Deployment.

C:

Choose blue-green for switching between full environments and canary for gradually exposing a small percentage of users to a new version. This step belongs to Blue-green versus canary release patterns rather than the complementary implementation and evidence pair. The intended approach is: Configure Deployment rollout strategy with availability bounds and use rollout history when an update requires controlled rollback. Validate with: Inspect maxSurge, maxUnavailable, rollout conditions, ReplicaSets, readiness and prior image revisions. Workload context: A postrelease failure requires kubectl rollout undo but no recorded previous revision is available because changes bypassed the Deployment.

D:

An incident timeline pinpoints the failing dependency rather than relying on one generic readiness or CPU signal. This step belongs to Correlating metrics logs and traces rather than the complementary implementation and evidence pair. The intended approach is: Configure Deployment rollout strategy with availability bounds and use rollout history when an update requires controlled rollback. Validate with: Inspect maxSurge, maxUnavailable, rollout conditions, ReplicaSets, readiness and prior image revisions. Workload context: A postrelease failure requires kubectl rollout undo but no recorded previous revision is available because changes bypassed the Deployment.

Question 533

A private backend only used by Pods is exposed through NodePort and the security team finds the node port reachable outside the cluster. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?

  1. Valid identities perform only allowed actions and rejected resource specifications do not reach persistent state.
  2. Client connections reach healthy backing Pods and troubleshooters isolate selection from routing problems.
  3. Pods on different eligible nodes communicate according to network design and report working network addresses.
  4. In-cluster clients reach internal services and exposed node ports are limited to approved traffic.

Explanation

Correct Answer

D:

In-cluster clients reach internal services and exposed node ports are limited to approved traffic. This is an observable service outcome, not just evidence that a configuration file was saved. ClusterIP does not automatically provide an external endpoint; NodePort opens a port on eligible nodes with network policy constraints. Workload context: A private backend only used by Pods is exposed through NodePort and the security team finds the node port reachable outside the cluster.

Incorrect Answers

A:

Valid identities perform only allowed actions and rejected resource specifications do not reach persistent state. That result validates Authentication authorization and admission order rather than the requirement here. Verify instead: In-cluster clients reach internal services and exposed node ports are limited to approved traffic. Workload context: A private backend only used by Pods is exposed through NodePort and the security team finds the node port reachable outside the cluster.

B:

Client connections reach healthy backing Pods and troubleshooters isolate selection from routing problems. That result validates Service endpoint routing and kube-proxy rather than the requirement here. Verify instead: In-cluster clients reach internal services and exposed node ports are limited to approved traffic. Workload context: A private backend only used by Pods is exposed through NodePort and the security team finds the node port reachable outside the cluster.

C:

Pods on different eligible nodes communicate according to network design and report working network addresses. That result validates CNI Pod networking implementation rather than the requirement here. Verify instead: In-cluster clients reach internal services and exposed node ports are limited to approved traffic. Workload context: A private backend only used by Pods is exposed through NodePort and the security team finds the node port reachable outside the cluster.

Question 534

A service account authenticates but receives 403 when deleting Secrets; developers assume an admission webhook caused the denial. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Use PVCs to request persistent storage and PVs to represent volumes whose lifecycle is separate from ephemeral Pods.
  2. Distinguish authenticating a Kubernetes API caller from authorizing verbs and validating or mutating admission behavior.
  3. Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions.
  4. Use Pod events and scheduler reasons to diagnose Pending workloads before changing application images or reading nonexistent logs.

Explanation

Correct Answer

B:

Distinguish authenticating a Kubernetes API caller from authorizing verbs and validating or mutating admission behavior. This response implements the controlling Kubernetes or cloud native principle. Authentication answers who called, authorization answers what may be done, and admission can apply policy to allowed requests. Check its effect by: Examine authentication identity, RBAC decision, admission webhook result and API response status. Workload context: A service account authenticates but receives 403 when deleting Secrets; developers assume an admission webhook caused the denial.

Incorrect Answers

A:

Use PVCs to request persistent storage and PVs to represent volumes whose lifecycle is separate from ephemeral Pods. This action addresses PersistentVolume and claim bindings instead of the controlling requirement. A PVC is a storage request and a PV is a cluster storage resource; neither should be confused with an emptyDir volume. For this scenario prefer: Distinguish authenticating a Kubernetes API caller from authorizing verbs and validating or mutating admission behavior. Workload context: A service account authenticates but receives 403 when deleting Secrets; developers assume an admission webhook caused the denial.

C:

Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions. This action addresses Pod Security Admission and namespaces instead of the controlling requirement. Pod Security Admission evaluates security standards at admission; it does not continuously sandbox existing containers after admission. For this scenario prefer: Distinguish authenticating a Kubernetes API caller from authorizing verbs and validating or mutating admission behavior. Workload context: A service account authenticates but receives 403 when deleting Secrets; developers assume an admission webhook caused the denial.

D:

Use Pod events and scheduler reasons to diagnose Pending workloads before changing application images or reading nonexistent logs. This action addresses Pending pod FailedScheduling events instead of the controlling requirement. Pending may mean unschedulable or image preparation; distinguish whether node assignment occurred before choosing next checks. For this scenario prefer: Distinguish authenticating a Kubernetes API caller from authorizing verbs and validating or mutating admission behavior. Workload context: A service account authenticates but receives 403 when deleting Secrets; developers assume an admission webhook caused the denial.

Question 535

A bare-metal test cluster creates a LoadBalancer Service but EXTERNAL-IP remains pending because no load-balancer controller exists. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Approved workloads can access required credentials while unauthorized viewers cannot recover plaintext through the API.
  2. Inspect external IP status, controller events, security groups, health checks and upstream target availability.
  3. Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint.
  4. Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records.
  5. Apply supported Kubernetes NetworkPolicies to restrict traffic using Pod/namespace selectors and explicit ingress/egress rules.

Explanation

Correct Answers

B:

Inspect external IP status, controller events, security groups, health checks and upstream target availability. This is the most discriminating evidence for the described failure or requirement. A LoadBalancer Service depends on an implementation or provider controller; creating it does not guarantee an external address. The corresponding implementation is: Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint. This is the diagnostic evidence part of the paired answer. Workload context: A bare-metal test cluster creates a LoadBalancer Service but EXTERNAL-IP remains pending because no load-balancer controller exists.

C:

Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint. This response implements the controlling Kubernetes or cloud native principle. A LoadBalancer Service depends on an implementation or provider controller; creating it does not guarantee an external address. Check its effect by: Inspect external IP status, controller events, security groups, health checks and upstream target availability. This is the implementation part of the required paired answer. Workload context: A bare-metal test cluster creates a LoadBalancer Service but EXTERNAL-IP remains pending because no load-balancer controller exists.

Incorrect Answers

A:

Approved workloads can access required credentials while unauthorized viewers cannot recover plaintext through the API. This step belongs to Secret base64 encoding versus encryption rather than the complementary implementation and evidence pair. The intended approach is: Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint. Validate with: Inspect external IP status, controller events, security groups, health checks and upstream target availability. Workload context: A bare-metal test cluster creates a LoadBalancer Service but EXTERNAL-IP remains pending because no load-balancer controller exists.

D:

Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records. This step belongs to Cluster DNS and service discovery rather than the complementary implementation and evidence pair. The intended approach is: Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint. Validate with: Inspect external IP status, controller events, security groups, health checks and upstream target availability. Workload context: A bare-metal test cluster creates a LoadBalancer Service but EXTERNAL-IP remains pending because no load-balancer controller exists.

E:

Apply supported Kubernetes NetworkPolicies to restrict traffic using Pod/namespace selectors and explicit ingress/egress rules. This step belongs to NetworkPolicy ingress egress isolation rather than the complementary implementation and evidence pair. The intended approach is: Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint. Validate with: Inspect external IP status, controller events, security groups, health checks and upstream target availability. Workload context: A bare-metal test cluster creates a LoadBalancer Service but EXTERNAL-IP remains pending because no load-balancer controller exists.

Question 536

A cluster reports a NotReady node when kubelet cannot reach the configured runtime after a host reboot. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?

  1. Principals can perform only intended operations at the correct scope while denied actions remain inaccessible.
  2. Pending eligible Pods receive appropriate node bindings when capacity and constraints allow scheduling.
  3. Clients reach the intended healthy backends through a stable Service name despite Pod replacement.
  4. Pods assigned to a healthy node start and report status with failed containers surfaced for diagnosis.

Explanation

Correct Answer

D:

Pods assigned to a healthy node start and report status with failed containers surfaced for diagnosis. This is an observable service outcome, not just evidence that a configuration file was saved. kubelet manages Pod execution on a node; it does not serve the central Kubernetes API or select new nodes. Workload context: A cluster reports a NotReady node when kubelet cannot reach the configured runtime after a host reboot.

Incorrect Answers

A:

Principals can perform only intended operations at the correct scope while denied actions remain inaccessible. That result validates Role and ClusterRole authorization rather than the requirement here. Verify instead: Pods assigned to a healthy node start and report status with failed containers surfaced for diagnosis. Workload context: A cluster reports a NotReady node when kubelet cannot reach the configured runtime after a host reboot.

B:

Pending eligible Pods receive appropriate node bindings when capacity and constraints allow scheduling. That result validates Scheduler responsibility and binding rather than the requirement here. Verify instead: Pods assigned to a healthy node start and report status with failed containers surfaced for diagnosis. Workload context: A cluster reports a NotReady node when kubelet cannot reach the configured runtime after a host reboot.

C:

Clients reach the intended healthy backends through a stable Service name despite Pod replacement. That result validates Service stable virtual endpoint rather than the requirement here. Verify instead: Pods assigned to a healthy node start and report status with failed containers surfaced for diagnosis. Workload context: A cluster reports a NotReady node when kubelet cannot reach the configured runtime after a host reboot.

Question 537

A service fails after runAsNonRoot is applied because its image expects to write to a root-owned directory. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?

  1. Valid identities perform only allowed actions and rejected resource specifications do not reach persistent state.
  2. Workloads function under least privilege and operations needing prohibited capabilities are rejected or explicitly reviewed.
  3. The Service has healthy matching backends and forwards to the application process's actual port.
  4. Each workload can invoke only required API verbs without accessing unrelated namespaces or cluster secrets.

Explanation

Correct Answer

B:

Workloads function under least privilege and operations needing prohibited capabilities are rejected or explicitly reviewed. This is an observable service outcome, not just evidence that a configuration file was saved. Disabling privilege escalation and dropping Linux capabilities reduce risk but do not replace image or API authorization. Workload context: A service fails after runAsNonRoot is applied because its image expects to write to a root-owned directory.

Incorrect Answers

A:

Valid identities perform only allowed actions and rejected resource specifications do not reach persistent state. That result validates Authentication authorization and admission order rather than the requirement here. Verify instead: Workloads function under least privilege and operations needing prohibited capabilities are rejected or explicitly reviewed. Workload context: A service fails after runAsNonRoot is applied because its image expects to write to a root-owned directory.

C:

The Service has healthy matching backends and forwards to the application process's actual port. That result validates Service selector and port mismatch diagnostics rather than the requirement here. Verify instead: Workloads function under least privilege and operations needing prohibited capabilities are rejected or explicitly reviewed. Workload context: A service fails after runAsNonRoot is applied because its image expects to write to a root-owned directory.

D:

Each workload can invoke only required API verbs without accessing unrelated namespaces or cluster secrets. That result validates ServiceAccount and workload RBAC boundaries rather than the requirement here. Verify instead: Workloads function under least privilege and operations needing prohibited capabilities are rejected or explicitly reviewed. Workload context: A service fails after runAsNonRoot is applied because its image expects to write to a root-owned directory.

Question 538

A Pod reports intermittent 502 errors and a nearby network proxy logs upstream timeouts with matching request IDs. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Compare trace IDs, time synchronized log events, resource saturation metrics and span durations.
  2. A failing candidate build halts or rolls back before reaching full audience while healthy versions progress safely.
  3. Inspect rendered helm template output, values merge order, chart dependency versions and release status.
  4. Use time-aligned metrics, structured logs and distributed traces to isolate root causes across Kubernetes components and services.
  5. Distinguish readiness endpoint failures from application process exits before deciding whether to restart or change service routing.

Explanation

Correct Answers

A:

Compare trace IDs, time synchronized log events, resource saturation metrics and span durations. This is the most discriminating evidence for the described failure or requirement. Metrics show trends, logs show event details, and traces show request spans; reliable correlation benefits from consistent identifiers. The corresponding implementation is: Use time-aligned metrics, structured logs and distributed traces to isolate root causes across Kubernetes components and services. This is the diagnostic evidence part of the paired answer. Workload context: A Pod reports intermittent 502 errors and a nearby network proxy logs upstream timeouts with matching request IDs.

D:

Use time-aligned metrics, structured logs and distributed traces to isolate root causes across Kubernetes components and services. This response implements the controlling Kubernetes or cloud native principle. Metrics show trends, logs show event details, and traces show request spans; reliable correlation benefits from consistent identifiers. Check its effect by: Compare trace IDs, time synchronized log events, resource saturation metrics and span durations. This is the implementation part of the required paired answer. Workload context: A Pod reports intermittent 502 errors and a nearby network proxy logs upstream timeouts with matching request IDs.

Incorrect Answers

B:

A failing candidate build halts or rolls back before reaching full audience while healthy versions progress safely. This step belongs to Progressive delivery and release metrics rather than the complementary implementation and evidence pair. The intended approach is: Use time-aligned metrics, structured logs and distributed traces to isolate root causes across Kubernetes components and services. Validate with: Compare trace IDs, time synchronized log events, resource saturation metrics and span durations. Workload context: A Pod reports intermittent 502 errors and a nearby network proxy logs upstream timeouts with matching request IDs.

C:

Inspect rendered helm template output, values merge order, chart dependency versions and release status. This step belongs to Helm charts templates and values rather than the complementary implementation and evidence pair. The intended approach is: Use time-aligned metrics, structured logs and distributed traces to isolate root causes across Kubernetes components and services. Validate with: Compare trace IDs, time synchronized log events, resource saturation metrics and span durations. Workload context: A Pod reports intermittent 502 errors and a nearby network proxy logs upstream timeouts with matching request IDs.

E:

Distinguish readiness endpoint failures from application process exits before deciding whether to restart or change service routing. This step belongs to Readiness-probe failure versus process crash rather than the complementary implementation and evidence pair. The intended approach is: Use time-aligned metrics, structured logs and distributed traces to isolate root causes across Kubernetes components and services. Validate with: Compare trace IDs, time synchronized log events, resource saturation metrics and span durations. Workload context: A Pod reports intermittent 502 errors and a nearby network proxy logs upstream timeouts with matching request IDs.

Question 539

A developer receives forbidden for pods/exec although able to get and list Pods, revealing separate RBAC verbs. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Inspect selected Pod/container, executed command, RBAC exec permission and audit records.
  2. Review kubectl describe output, warning reasons, first/last timestamps and relevant controller ownership.
  3. Inspect host/path rules, route attachment, listener TLS, backend port and controller access logs.
  4. Inspect maxSurge, maxUnavailable, rollout conditions, ReplicaSets, readiness and prior image revisions.

Explanation

Correct Answer

A:

Inspect selected Pod/container, executed command, RBAC exec permission and audit records. This is the most discriminating evidence for the described failure or requirement. kubectl exec runs a process in an existing container; it does not persist edits across new image-based replacements. The corresponding implementation is: Use kubectl exec with least privilege for approved diagnostics in running containers, avoiding permanent production mutations. Workload context: A developer receives forbidden for pods/exec although able to get and list Pods, revealing separate RBAC verbs.

Incorrect Answers

B:

Review kubectl describe output, warning reasons, first/last timestamps and relevant controller ownership. These observations are more relevant to kubectl describe and event chronology, not this case. The distinguishing check is: Inspect selected Pod/container, executed command, RBAC exec permission and audit records. Workload context: A developer receives forbidden for pods/exec although able to get and list Pods, revealing separate RBAC verbs.

C:

Inspect host/path rules, route attachment, listener TLS, backend port and controller access logs. These observations are more relevant to Ingress route and TLS mismatch diagnosis, not this case. The distinguishing check is: Inspect selected Pod/container, executed command, RBAC exec permission and audit records. Workload context: A developer receives forbidden for pods/exec although able to get and list Pods, revealing separate RBAC verbs.

D:

Inspect maxSurge, maxUnavailable, rollout conditions, ReplicaSets, readiness and prior image revisions. These observations are more relevant to Deployment rolling updates and rollback, not this case. The distinguishing check is: Inspect selected Pod/container, executed command, RBAC exec permission and audit records. Workload context: A developer receives forbidden for pods/exec although able to get and list Pods, revealing separate RBAC verbs.

Question 540

A security engineer assumes a policy that selects server Pods also blocks outgoing traffic, although only ingress policyTypes are configured. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Inspect NetworkPolicy podSelector, namespaces, allowed ports, CNI enforcement support and packet test results.
  2. Inspect Service selector, Pod readiness, EndpointSlice addresses, kube-proxy or eBPF service programming and target ports.
  3. Inspect controller readiness, class or Gateway association, route attachment status, TLS Secret and backend Service mapping.
  4. Inspect kubectl describe Pod events, requests, node taints, PVC claims and node affinity.

Explanation

Correct Answer

A:

Inspect NetworkPolicy podSelector, namespaces, allowed ports, CNI enforcement support and packet test results. This is the most discriminating evidence for the described failure or requirement. Without policies a standard namespace usually permits traffic; NetworkPolicy enforcement requires a compatible networking implementation. The corresponding implementation is: Apply supported Kubernetes NetworkPolicies to restrict traffic using Pod/namespace selectors and explicit ingress/egress rules. Workload context: A security engineer assumes a policy that selects server Pods also blocks outgoing traffic, although only ingress policyTypes are configured.

Incorrect Answers

B:

Inspect Service selector, Pod readiness, EndpointSlice addresses, kube-proxy or eBPF service programming and target ports. These observations are more relevant to Service endpoint routing and kube-proxy, not this case. The distinguishing check is: Inspect NetworkPolicy podSelector, namespaces, allowed ports, CNI enforcement support and packet test results. Workload context: A security engineer assumes a policy that selects server Pods also blocks outgoing traffic, although only ingress policyTypes are configured.

C:

Inspect controller readiness, class or Gateway association, route attachment status, TLS Secret and backend Service mapping. These observations are more relevant to Ingress and Gateway API routing, not this case. The distinguishing check is: Inspect NetworkPolicy podSelector, namespaces, allowed ports, CNI enforcement support and packet test results. Workload context: A security engineer assumes a policy that selects server Pods also blocks outgoing traffic, although only ingress policyTypes are configured.

D:

Inspect kubectl describe Pod events, requests, node taints, PVC claims and node affinity. These observations are more relevant to Pending pod FailedScheduling events, not this case. The distinguishing check is: Inspect NetworkPolicy podSelector, namespaces, allowed ports, CNI enforcement support and packet test results. Workload context: A security engineer assumes a policy that selects server Pods also blocks outgoing traffic, although only ingress policyTypes are configured.

Kubernetes and Cloud Native Associate (KCNA) Practice Tests