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 17

Question 160

A new team dismisses every CNCF sandbox project as unusable despite a well-scoped pilot and maintained code. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Inspect SLI queries, SLO target/window, request populations, error budgets and alert rule outcomes.
  2. Identify each project role, integration point, maintainer documentation and whether it belongs to Kubernetes core.
  3. Review CNCF landscape category, project governance, release cadence, support ecosystem and security disclosures.
  4. Inspect LICENSE files, contribution guidelines, DCO or CLA requirements and third-party dependency notices.

Explanation

Correct Answer

C:

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

Incorrect Answers

A:

Inspect SLI queries, SLO target/window, request populations, error budgets and alert rule outcomes. These observations are more relevant to SLIs SLOs and golden signals, not this case. The distinguishing check is: Review CNCF landscape category, project governance, release cadence, support ecosystem and security disclosures. Workload context: A new team dismisses every CNCF sandbox project as unusable despite a well-scoped pilot and maintained code.

B:

Identify each project role, integration point, maintainer documentation and whether it belongs to Kubernetes core. These observations are more relevant to CNCF ecosystem and Kubernetes roles, not this case. The distinguishing check is: Review CNCF landscape category, project governance, release cadence, support ecosystem and security disclosures. Workload context: A new team dismisses every CNCF sandbox project as unusable despite a well-scoped pilot and maintained code.

D:

Inspect LICENSE files, contribution guidelines, DCO or CLA requirements and third-party dependency notices. These observations are more relevant to Open source licensing and contribution basics, not this case. The distinguishing check is: Review CNCF landscape category, project governance, release cadence, support ecosystem and security disclosures. Workload context: A new team dismisses every CNCF sandbox project as unusable despite a well-scoped pilot and maintained code.

Question 161

An admin deletes a Pod and expects its bound persistent volume's underlying data to disappear automatically. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy.
  2. Inspect PVC phase, PV claimRef, capacity, accessModes, storageClassName and volume-mount events.
  3. Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records.
  4. Review namespace pod-security labels, admission warnings, violations and workload securityContext.

Explanation

Correct Answer

B:

Inspect PVC phase, PV claimRef, capacity, accessModes, storageClassName and volume-mount events. This is the most discriminating evidence for the described failure or requirement. A PVC is a storage request and a PV is a cluster storage resource; neither should be confused with an emptyDir volume. The corresponding implementation is: Use PVCs to request persistent storage and PVs to represent volumes whose lifecycle is separate from ephemeral Pods. Workload context: An admin deletes a Pod and expects its bound persistent volume's underlying data to disappear automatically.

Incorrect Answers

A:

Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy. These observations are more relevant to StatefulSet identity and volume templates, not this case. The distinguishing check is: Inspect PVC phase, PV claimRef, capacity, accessModes, storageClassName and volume-mount events. Workload context: An admin deletes a Pod and expects its bound persistent volume's underlying data to disappear automatically.

C:

Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records. These observations are more relevant to Cluster DNS and service discovery, not this case. The distinguishing check is: Inspect PVC phase, PV claimRef, capacity, accessModes, storageClassName and volume-mount events. Workload context: An admin deletes a Pod and expects its bound persistent volume's underlying data to disappear automatically.

D:

Review namespace pod-security labels, admission warnings, violations and workload securityContext. These observations are more relevant to Pod Security Admission and namespaces, not this case. The distinguishing check is: Inspect PVC phase, PV claimRef, capacity, accessModes, storageClassName and volume-mount events. Workload context: An admin deletes a Pod and expects its bound persistent volume's underlying data to disappear automatically.

Question 162

A developer receives permission to list Pods in one namespace but believes it also allows deleting Nodes across the cluster. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Review initContainers/sidecar restart behavior, shared volumes, localhost traffic and termination events.
  2. Inspect local-versus-server manifest diff, field ownership, admission rejection and resulting resource generation.
  3. Check node unschedulable state, PodDisruptionBudgets, DaemonSets, local storage and eviction events.
  4. Inspect verbs, apiGroups, resources, RoleBinding/ClusterRoleBinding subjects and kubectl auth can-i results.

Explanation

Correct Answer

D:

Inspect verbs, apiGroups, resources, RoleBinding/ClusterRoleBinding subjects and kubectl auth can-i results. This is the most discriminating evidence for the described failure or requirement. A RoleBinding can bind a ClusterRole within its namespace; a ClusterRoleBinding grants its rules at cluster scope. The corresponding implementation is: Assign a Role to namespaced permissions and a ClusterRole where appropriate for cluster-scoped or reusable rules, binding least privilege. Workload context: A developer receives permission to list Pods in one namespace but believes it also allows deleting Nodes across the cluster.

Incorrect Answers

A:

Review initContainers/sidecar restart behavior, shared volumes, localhost traffic and termination events. These observations are more relevant to Sidecar containers and shared Pod lifecycle, not this case. The distinguishing check is: Inspect verbs, apiGroups, resources, RoleBinding/ClusterRoleBinding subjects and kubectl auth can-i results. Workload context: A developer receives permission to list Pods in one namespace but believes it also allows deleting Nodes across the cluster.

B:

Inspect local-versus-server manifest diff, field ownership, admission rejection and resulting resource generation. These observations are more relevant to kubectl apply and declarative updates, not this case. The distinguishing check is: Inspect verbs, apiGroups, resources, RoleBinding/ClusterRoleBinding subjects and kubectl auth can-i results. Workload context: A developer receives permission to list Pods in one namespace but believes it also allows deleting Nodes across the cluster.

C:

Check node unschedulable state, PodDisruptionBudgets, DaemonSets, local storage and eviction events. These observations are more relevant to Node cordon drain maintenance, not this case. The distinguishing check is: Inspect verbs, apiGroups, resources, RoleBinding/ClusterRoleBinding subjects and kubectl auth can-i results. Workload context: A developer receives permission to list Pods in one namespace but believes it also allows deleting Nodes across the cluster.

Question 163

An app owner wants data locality preference but writes a hard node affinity that excludes healthy zones during failover. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Check Pod priority, preemptionPolicy, scheduling events, available alternatives and victim selection.
  2. Inspect affinity terms, matchExpressions, node labels, scheduler feasibility and fallback placement.
  3. Check API endpoint connectivity, request audit records, resource authorization and response status.
  4. Inspect Dockerfile layer history, build context, cache usage, image size and scanner findings.

Explanation

Correct Answer

B:

Inspect affinity terms, matchExpressions, node labels, scheduler feasibility and fallback placement. This is the most discriminating evidence for the described failure or requirement. Preferred affinity can be ignored to schedule a Pod; required affinity must be satisfied at scheduling time. The corresponding implementation is: Choose requiredDuringSchedulingIgnoredDuringExecution for a hard node preference and preferred rules for soft placement choices. Workload context: An app owner wants data locality preference but writes a hard node affinity that excludes healthy zones during failover.

Incorrect Answers

A:

Check Pod priority, preemptionPolicy, scheduling events, available alternatives and victim selection. These observations are more relevant to PriorityClass and preemption, not this case. The distinguishing check is: Inspect affinity terms, matchExpressions, node labels, scheduler feasibility and fallback placement. Workload context: An app owner wants data locality preference but writes a hard node affinity that excludes healthy zones during failover.

C:

Check API endpoint connectivity, request audit records, resource authorization and response status. These observations are more relevant to Kubernetes API server and API requests, not this case. The distinguishing check is: Inspect affinity terms, matchExpressions, node labels, scheduler feasibility and fallback placement. Workload context: An app owner wants data locality preference but writes a hard node affinity that excludes healthy zones during failover.

D:

Inspect Dockerfile layer history, build context, cache usage, image size and scanner findings. These observations are more relevant to Image layers and build cache, not this case. The distinguishing check is: Inspect affinity terms, matchExpressions, node labels, scheduler feasibility and fallback placement. Workload context: An app owner wants data locality preference but writes a hard node affinity that excludes healthy zones during failover.

Question 164

A team deletes unhealthy Pods repeatedly while provider load-balancer health checks target an incorrect Service node port. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Inspect CNI configuration, Pod CIDRs, node route tables, overlay/underlay links and CNI daemon logs.
  2. Review container lastState, exit code, restart count, previous logs and application configuration.
  3. Inspect external IP status, controller events, security groups, health checks and upstream target availability.
  4. Inspect controller readiness, class or Gateway association, route attachment status, TLS Secret and backend Service mapping.

Explanation

Correct Answer

C:

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. Workload context: A team deletes unhealthy Pods repeatedly while provider load-balancer health checks target an incorrect Service node port.

Incorrect Answers

A:

Inspect CNI configuration, Pod CIDRs, node route tables, overlay/underlay links and CNI daemon logs. These observations are more relevant to CNI Pod networking implementation, not this case. The distinguishing check is: Inspect external IP status, controller events, security groups, health checks and upstream target availability. Workload context: A team deletes unhealthy Pods repeatedly while provider load-balancer health checks target an incorrect Service node port.

B:

Review container lastState, exit code, restart count, previous logs and application configuration. These observations are more relevant to CrashLoopBackOff and previous logs, not this case. The distinguishing check is: Inspect external IP status, controller events, security groups, health checks and upstream target availability. Workload context: A team deletes unhealthy Pods repeatedly while provider load-balancer health checks target an incorrect Service node port.

D:

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 external IP status, controller events, security groups, health checks and upstream target availability. Workload context: A team deletes unhealthy Pods repeatedly while provider load-balancer health checks target an incorrect Service node port.

Question 165

A cloud team migrates CSI drivers and older StorageClass provisioner names begin failing to create volumes. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Diagnose image-pull problems by validating image reference, registry availability, permissions and Secret scope.
  2. Configure StorageClass WaitForFirstConsumer when scheduling topology must influence dynamic volume provisioning.
  3. Use CoreDNS or the configured cluster DNS service to resolve Service and Pod naming in their correct namespaces.
  4. Configure a supported StorageClass and CSI provisioner to dynamically create backing volumes for PVCs.

Explanation

Correct Answer

D:

Configure a supported StorageClass and CSI provisioner to dynamically create backing volumes for PVCs. This response implements the controlling Kubernetes or cloud native principle. StorageClass names provisioning behavior; a controller and backend must support dynamic provisioning. Check its effect by: Inspect StorageClass provisioner name, allowed topology, PVC events and CSI controller logs. Workload context: A cloud team migrates CSI drivers and older StorageClass provisioner names begin failing to create volumes.

Incorrect Answers

A:

Diagnose image-pull problems by validating image reference, registry availability, permissions and Secret scope. This action addresses ImagePullBackOff registry and auth errors instead of the controlling requirement. ImagePullBackOff is a retrieval or authorization problem; changing app readiness probes cannot fix a missing image. For this scenario prefer: Configure a supported StorageClass and CSI provisioner to dynamically create backing volumes for PVCs. Workload context: A cloud team migrates CSI drivers and older StorageClass provisioner names begin failing to create volumes.

B:

Configure StorageClass WaitForFirstConsumer when scheduling topology must influence dynamic volume provisioning. This action addresses WaitForFirstConsumer volume binding instead of the controlling requirement. A PVC may legitimately remain unbound until a Pod consumes it under WaitForFirstConsumer. For this scenario prefer: Configure a supported StorageClass and CSI provisioner to dynamically create backing volumes for PVCs. Workload context: A cloud team migrates CSI drivers and older StorageClass provisioner names begin failing to create volumes.

C:

Use CoreDNS or the configured cluster DNS service to resolve Service and Pod naming in their correct namespaces. This action addresses Cluster DNS and service discovery instead of the controlling requirement. Kubernetes DNS uses namespace-aware search paths; a fully qualified Service name avoids ambiguity across namespaces. For this scenario prefer: Configure a supported StorageClass and CSI provisioner to dynamically create backing volumes for PVCs. Workload context: A cloud team migrates CSI drivers and older StorageClass provisioner names begin failing to create volumes.

Question 166

A node gains a NoExecute taint and running Pods without the right toleration are evicted rather than simply blocked from new scheduling. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Review node taint key/effect, Pod toleration key/operator and associated scheduler events.
  2. Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads.
  3. Check NodeReady condition, kubelet heartbeats, network connectivity, pressure conditions and scheduler events.
  4. Apply taints to repel unauthorized scheduling and give only intended workloads matching tolerations.
  5. Missing workload replicas are recreated from their controllers and desired counts converge after disruptions.

Explanation

Correct Answers

A:

Review node taint key/effect, Pod toleration key/operator and associated scheduler events. This is the most discriminating evidence for the described failure or requirement. A toleration permits scheduling onto tainted nodes but does not force the scheduler to choose those nodes. The corresponding implementation is: Apply taints to repel unauthorized scheduling and give only intended workloads matching tolerations. This is the diagnostic evidence part of the paired answer. Workload context: A node gains a NoExecute taint and running Pods without the right toleration are evicted rather than simply blocked from new scheduling.

D:

Apply taints to repel unauthorized scheduling and give only intended workloads matching tolerations. This response implements the controlling Kubernetes or cloud native principle. A toleration permits scheduling onto tainted nodes but does not force the scheduler to choose those nodes. Check its effect by: Review node taint key/effect, Pod toleration key/operator and associated scheduler events. This is the implementation part of the required paired answer. Workload context: A node gains a NoExecute taint and running Pods without the right toleration are evicted rather than simply blocked from new scheduling.

Incorrect Answers

B:

Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads. This step belongs to PriorityClass and preemption rather than the complementary implementation and evidence pair. The intended approach is: Apply taints to repel unauthorized scheduling and give only intended workloads matching tolerations. Validate with: Review node taint key/effect, Pod toleration key/operator and associated scheduler events. Workload context: A node gains a NoExecute taint and running Pods without the right toleration are evicted rather than simply blocked from new scheduling.

C:

Check NodeReady condition, kubelet heartbeats, network connectivity, pressure conditions and scheduler events. This step belongs to Node readiness and scheduling exclusion rather than the complementary implementation and evidence pair. The intended approach is: Apply taints to repel unauthorized scheduling and give only intended workloads matching tolerations. Validate with: Review node taint key/effect, Pod toleration key/operator and associated scheduler events. Workload context: A node gains a NoExecute taint and running Pods without the right toleration are evicted rather than simply blocked from new scheduling.

E:

Missing workload replicas are recreated from their controllers and desired counts converge after disruptions. This step belongs to Controller manager reconciliation loops rather than the complementary implementation and evidence pair. The intended approach is: Apply taints to repel unauthorized scheduling and give only intended workloads matching tolerations. Validate with: Review node taint key/effect, Pod toleration key/operator and associated scheduler events. Workload context: A node gains a NoExecute taint and running Pods without the right toleration are evicted rather than simply blocked from new scheduling.

Question 167

A service fails after runAsNonRoot is applied because its image expects to write to a root-owned directory. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Inspect securityContext, runAsUser, allowPrivilegeEscalation, capabilities, seccompProfile and startup errors.
  2. The application operates within measured memory budgets or receives justified capacity changes without repeated OOM restarts.
  3. Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy.
  4. Run containers with nonroot identities, minimal capabilities and an appropriate seccomp profile for reduced kernel attack surface.
  5. Apply RBAC and encryption-at-rest controls to Kubernetes Secrets and avoid exposing decoded values in logs or public manifests.

Explanation

Correct Answers

A:

Inspect securityContext, runAsUser, allowPrivilegeEscalation, capabilities, seccompProfile and startup errors. This is the most discriminating evidence for the described failure or requirement. Disabling privilege escalation and dropping Linux capabilities reduce risk but do not replace image or API authorization. The corresponding implementation is: Run containers with nonroot identities, minimal capabilities and an appropriate seccomp profile for reduced kernel attack surface. This is the diagnostic evidence part of the paired answer. Workload context: A service fails after runAsNonRoot is applied because its image expects to write to a root-owned directory.

D:

Run containers with nonroot identities, minimal capabilities and an appropriate seccomp profile for reduced kernel attack surface. This response implements the controlling Kubernetes or cloud native principle. Disabling privilege escalation and dropping Linux capabilities reduce risk but do not replace image or API authorization. Check its effect by: Inspect securityContext, runAsUser, allowPrivilegeEscalation, capabilities, seccompProfile and startup errors. This is the implementation part of the required paired answer. Workload context: A service fails after runAsNonRoot is applied because its image expects to write to a root-owned directory.

Incorrect Answers

B:

The application operates within measured memory budgets or receives justified capacity changes without repeated OOM restarts. This step belongs to Container OOMKilled and resource pressure rather than the complementary implementation and evidence pair. The intended approach is: Run containers with nonroot identities, minimal capabilities and an appropriate seccomp profile for reduced kernel attack surface. Validate with: Inspect securityContext, runAsUser, allowPrivilegeEscalation, capabilities, seccompProfile and startup errors. Workload context: A service fails after runAsNonRoot is applied because its image expects to write to a root-owned directory.

C:

Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy. This step belongs to StatefulSet identity and volume templates rather than the complementary implementation and evidence pair. The intended approach is: Run containers with nonroot identities, minimal capabilities and an appropriate seccomp profile for reduced kernel attack surface. Validate with: Inspect securityContext, runAsUser, allowPrivilegeEscalation, capabilities, seccompProfile and startup errors. Workload context: A service fails after runAsNonRoot is applied because its image expects to write to a root-owned directory.

E:

Apply RBAC and encryption-at-rest controls to Kubernetes Secrets and avoid exposing decoded values in logs or public manifests. This step belongs to Secret base64 encoding versus encryption rather than the complementary implementation and evidence pair. The intended approach is: Run containers with nonroot identities, minimal capabilities and an appropriate seccomp profile for reduced kernel attack surface. Validate with: Inspect securityContext, runAsUser, allowPrivilegeEscalation, capabilities, seccompProfile and startup errors. Workload context: A service fails after runAsNonRoot is applied because its image expects to write to a root-owned directory.

Question 168

An administrator installs a Docker CLI and assumes Kubernetes always requires the Docker daemon to schedule Pods. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Inspect kubelet runtime endpoint, CRI protocol support, containerd service status and runtime errors.
  2. Choose containers for isolated application processes sharing a host kernel and use VMs when a stronger separate-kernel boundary is needed.
  3. Review initContainers/sidecar restart behavior, shared volumes, localhost traffic and termination events.
  4. The Pod schedules only onto eligible labeled nodes while other nodes remain untouched.
  5. Use a compatible container runtime via the Kubernetes Container Runtime Interface to create and manage containers on nodes.

Explanation

Correct Answers

A:

Inspect kubelet runtime endpoint, CRI protocol support, containerd service status and runtime errors. This is the most discriminating evidence for the described failure or requirement. A runtime executes containers; the CRI is its API integration with kubelet rather than the Kubernetes API server. The corresponding implementation is: Use a compatible container runtime via the Kubernetes Container Runtime Interface to create and manage containers on nodes. This is the diagnostic evidence part of the paired answer. Workload context: An administrator installs a Docker CLI and assumes Kubernetes always requires the Docker daemon to schedule Pods.

E:

Use a compatible container runtime via the Kubernetes Container Runtime Interface to create and manage containers on nodes. This response implements the controlling Kubernetes or cloud native principle. A runtime executes containers; the CRI is its API integration with kubelet rather than the Kubernetes API server. Check its effect by: Inspect kubelet runtime endpoint, CRI protocol support, containerd service status and runtime errors. This is the implementation part of the required paired answer. Workload context: An administrator installs a Docker CLI and assumes Kubernetes always requires the Docker daemon to schedule Pods.

Incorrect Answers

B:

Choose containers for isolated application processes sharing a host kernel and use VMs when a stronger separate-kernel boundary is needed. This step belongs to Container versus virtual machine isolation rather than the complementary implementation and evidence pair. The intended approach is: Use a compatible container runtime via the Kubernetes Container Runtime Interface to create and manage containers on nodes. Validate with: Inspect kubelet runtime endpoint, CRI protocol support, containerd service status and runtime errors. Workload context: An administrator installs a Docker CLI and assumes Kubernetes always requires the Docker daemon to schedule Pods.

C:

Review initContainers/sidecar restart behavior, shared volumes, localhost traffic and termination events. This step belongs to Sidecar containers and shared Pod lifecycle rather than the complementary implementation and evidence pair. The intended approach is: Use a compatible container runtime via the Kubernetes Container Runtime Interface to create and manage containers on nodes. Validate with: Inspect kubelet runtime endpoint, CRI protocol support, containerd service status and runtime errors. Workload context: An administrator installs a Docker CLI and assumes Kubernetes always requires the Docker daemon to schedule Pods.

D:

The Pod schedules only onto eligible labeled nodes while other nodes remain untouched. This step belongs to nodeSelector equality placement rather than the complementary implementation and evidence pair. The intended approach is: Use a compatible container runtime via the Kubernetes Container Runtime Interface to create and manage containers on nodes. Validate with: Inspect kubelet runtime endpoint, CRI protocol support, containerd service status and runtime errors. Workload context: An administrator installs a Docker CLI and assumes Kubernetes always requires the Docker daemon to schedule Pods.

Question 169

A development namespace cannot modify production ConfigMaps through the API but its Pods can still contact a production database over TCP. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Require approved registry artifacts and verifiable signatures or digests before admitting production workloads.
  2. Combine RBAC with NetworkPolicy to control both Kubernetes API permissions and east-west workload traffic.
  3. Configure StorageClass WaitForFirstConsumer when scheduling topology must influence dynamic volume provisioning.
  4. Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions.

Explanation

Correct Answer

B:

Combine RBAC with NetworkPolicy to control both Kubernetes API permissions and east-west workload traffic. This response implements the controlling Kubernetes or cloud native principle. NetworkPolicy governs data-plane traffic, whereas RBAC governs API actions; neither alone replaces the other. Check its effect by: Inspect namespace labels, Pod selectors, network policy rules, RBAC permissions and effective connectivity tests. Workload context: A development namespace cannot modify production ConfigMaps through the API but its Pods can still contact a production database over TCP.

Incorrect Answers

A:

Require approved registry artifacts and verifiable signatures or digests before admitting production workloads. This action addresses Image provenance and admission policies instead of the controlling requirement. An image scanner alone does not prove publisher identity; signed provenance and admission enforcement address different guarantees. For this scenario prefer: Combine RBAC with NetworkPolicy to control both Kubernetes API permissions and east-west workload traffic. Workload context: A development namespace cannot modify production ConfigMaps through the API but its Pods can still contact a production database over TCP.

C:

Configure StorageClass WaitForFirstConsumer when scheduling topology must influence dynamic volume provisioning. This action addresses WaitForFirstConsumer volume binding instead of the controlling requirement. A PVC may legitimately remain unbound until a Pod consumes it under WaitForFirstConsumer. For this scenario prefer: Combine RBAC with NetworkPolicy to control both Kubernetes API permissions and east-west workload traffic. Workload context: A development namespace cannot modify production ConfigMaps through the API but its Pods can still contact a production database over TCP.

D:

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: Combine RBAC with NetworkPolicy to control both Kubernetes API permissions and east-west workload traffic. Workload context: A development namespace cannot modify production ConfigMaps through the API but its Pods can still contact a production database over TCP.

Question 170

A Pod reports Running yet its Service has no ready endpoints because the readiness probe uses a nonexistent URL. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Assign dedicated Kubernetes service accounts and least-privilege RBAC for workloads accessing the API.
  2. Assign readiness for traffic acceptance, liveness for unhealthy restarts and startup for slow initialization when appropriate.
  3. Diagnose memory limit terminations using lastState and observed working-set growth rather than assuming every restart is application logic.
  4. Diagnose image-pull problems by validating image reference, registry availability, permissions and Secret scope.

Explanation

Correct Answer

B:

Assign readiness for traffic acceptance, liveness for unhealthy restarts and startup for slow initialization when appropriate. This response implements the controlling Kubernetes or cloud native principle. Readiness failure removes a Pod from ready endpoints; liveness failure may restart a container. Check its effect by: Inspect probe paths, thresholds, failure conditions, Service endpoints and container restart events. Workload context: A Pod reports Running yet its Service has no ready endpoints because the readiness probe uses a nonexistent URL.

Incorrect Answers

A:

Assign dedicated Kubernetes service accounts and least-privilege RBAC for workloads accessing the API. This action addresses ServiceAccount and workload RBAC boundaries instead of the controlling requirement. A service account is an API identity; granting Pods a namespace does not automatically limit an overbroad ClusterRoleBinding. For this scenario prefer: Assign readiness for traffic acceptance, liveness for unhealthy restarts and startup for slow initialization when appropriate. Workload context: A Pod reports Running yet its Service has no ready endpoints because the readiness probe uses a nonexistent URL.

C:

Diagnose memory limit terminations using lastState and observed working-set growth rather than assuming every restart is application logic. This action addresses Container OOMKilled and resource pressure instead of the controlling requirement. Container memory exceeding its cgroup limit can trigger OOMKilled even when node aggregate memory seems available. For this scenario prefer: Assign readiness for traffic acceptance, liveness for unhealthy restarts and startup for slow initialization when appropriate. Workload context: A Pod reports Running yet its Service has no ready endpoints because the readiness probe uses a nonexistent URL.

D:

Diagnose image-pull problems by validating image reference, registry availability, permissions and Secret scope. This action addresses ImagePullBackOff registry and auth errors instead of the controlling requirement. ImagePullBackOff is a retrieval or authorization problem; changing app readiness probes cannot fix a missing image. For this scenario prefer: Assign readiness for traffic acceptance, liveness for unhealthy restarts and startup for slow initialization when appropriate. Workload context: A Pod reports Running yet its Service has no ready endpoints because the readiness probe uses a nonexistent URL.

Kubernetes and Cloud Native Associate (KCNA) Practice Tests