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 89

Question 880

An engineer trusts mutable image tags from an approved namespace and overlooks an unverified image replacement during promotion. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Compare Service type, clusterIP, nodePort, targetPort, node addresses and backend EndpointSlices.
  2. Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy.
  3. Inspect serviceAccountName, RoleBindings, projected tokens, audience and kubectl auth can-i permissions.
  4. Review image references, signing identities, attestations, admission decisions and deployed imageIDs.

Explanation

Correct Answer

D:

Review image references, signing identities, attestations, admission decisions and deployed imageIDs. This is the most discriminating evidence for the described failure or requirement. An image scanner alone does not prove publisher identity; signed provenance and admission enforcement address different guarantees. The corresponding implementation is: Require approved registry artifacts and verifiable signatures or digests before admitting production workloads. Workload context: An engineer trusts mutable image tags from an approved namespace and overlooks an unverified image replacement during promotion.

Incorrect Answers

A:

Compare Service type, clusterIP, nodePort, targetPort, node addresses and backend EndpointSlices. These observations are more relevant to ClusterIP and NodePort Service exposure, not this case. The distinguishing check is: Review image references, signing identities, attestations, admission decisions and deployed imageIDs. Workload context: An engineer trusts mutable image tags from an approved namespace and overlooks an unverified image replacement during promotion.

B:

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: Review image references, signing identities, attestations, admission decisions and deployed imageIDs. Workload context: An engineer trusts mutable image tags from an approved namespace and overlooks an unverified image replacement during promotion.

C:

Inspect serviceAccountName, RoleBindings, projected tokens, audience and kubectl auth can-i permissions. These observations are more relevant to ServiceAccount and workload RBAC boundaries, not this case. The distinguishing check is: Review image references, signing identities, attestations, admission decisions and deployed imageIDs. Workload context: An engineer trusts mutable image tags from an approved namespace and overlooks an unverified image replacement during promotion.

Question 881

An administrator installs a Docker CLI and assumes Kubernetes always requires the Docker daemon to schedule Pods. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?

  1. Inspect FailedScheduling events, Pod requests, node allocatable and scheduler filter outcomes.
  2. Compare host kernel sharing, namespace isolation, hypervisor boundaries and workload trust requirements.
  3. Compare image digest, registry manifest, Pod imageID, rollout timestamp and supply-chain approval.
  4. Inspect kubelet runtime endpoint, CRI protocol support, containerd service status and runtime errors.

Explanation

Correct Answer

D:

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. Workload context: An administrator installs a Docker CLI and assumes Kubernetes always requires the Docker daemon to schedule Pods.

Incorrect Answers

A:

Inspect FailedScheduling events, Pod requests, node allocatable and scheduler filter outcomes. These observations are more relevant to Pending Pods and resource-fit checks, not this case. The distinguishing check is: 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.

B:

Compare host kernel sharing, namespace isolation, hypervisor boundaries and workload trust requirements. These observations are more relevant to Container versus virtual machine isolation, not this case. The distinguishing check is: 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:

Compare image digest, registry manifest, Pod imageID, rollout timestamp and supply-chain approval. These observations are more relevant to Immutable container images and digests, not this case. The distinguishing check is: 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 882

A service packages OCI-compatible images but its persistent volume depends on a provider-only disk implementation unavailable in a second cloud. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?

  1. Alerts identify meaningful user-impacting regressions before the service spends an unacceptable error budget.
  2. Workloads can be redeployed between supported clusters with explicitly identified environment-specific adaptations.
  3. Contributions and distributions meet stated open-source terms without assuming every repository uses the same license.
  4. Platform selections fit the actual problem without expecting one component to implement the whole cloud native stack.

Explanation

Correct Answer

B:

Workloads can be redeployed between supported clusters with explicitly identified environment-specific adaptations. This is an observable service outcome, not just evidence that a configuration file was saved. Cloud native APIs improve portability but do not guarantee identical storage classes, load balancers or custom controllers across clouds. Workload context: A service packages OCI-compatible images but its persistent volume depends on a provider-only disk implementation unavailable in a second cloud.

Incorrect Answers

A:

Alerts identify meaningful user-impacting regressions before the service spends an unacceptable error budget. That result validates SLIs SLOs and golden signals rather than the requirement here. Verify instead: Workloads can be redeployed between supported clusters with explicitly identified environment-specific adaptations. Workload context: A service packages OCI-compatible images but its persistent volume depends on a provider-only disk implementation unavailable in a second cloud.

C:

Contributions and distributions meet stated open-source terms without assuming every repository uses the same license. That result validates Open source licensing and contribution basics rather than the requirement here. Verify instead: Workloads can be redeployed between supported clusters with explicitly identified environment-specific adaptations. Workload context: A service packages OCI-compatible images but its persistent volume depends on a provider-only disk implementation unavailable in a second cloud.

D:

Platform selections fit the actual problem without expecting one component to implement the whole cloud native stack. That result validates CNCF ecosystem and Kubernetes roles rather than the requirement here. Verify instead: Workloads can be redeployed between supported clusters with explicitly identified environment-specific adaptations. Workload context: A service packages OCI-compatible images but its persistent volume depends on a provider-only disk implementation unavailable in a second cloud.

Question 883

An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Select PV reclaim policies according to retention requirements and verify storage cleanup or recovery steps after PVC deletion.
  2. Require approved registry artifacts and verifiable signatures or digests before admitting production workloads.
  3. Configure StorageClass WaitForFirstConsumer when scheduling topology must influence dynamic volume provisioning.
  4. Use emptyDir for temporary Pod-scoped data and PVC-backed volumes when data must survive Pod replacement.

Explanation

Correct Answer

C:

Configure StorageClass WaitForFirstConsumer when scheduling topology must influence dynamic volume provisioning. This response implements the controlling Kubernetes or cloud native principle. A PVC may legitimately remain unbound until a Pod consumes it under WaitForFirstConsumer. Check its effect by: Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

Incorrect Answers

A:

Select PV reclaim policies according to retention requirements and verify storage cleanup or recovery steps after PVC deletion. This action addresses PV reclaim policy Retain versus Delete instead of the controlling requirement. Retain leaves storage for deliberate recovery; Delete usually removes underlying dynamically provisioned storage when supported. For this scenario prefer: Configure StorageClass WaitForFirstConsumer when scheduling topology must influence dynamic volume provisioning. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

B:

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: Configure StorageClass WaitForFirstConsumer when scheduling topology must influence dynamic volume provisioning. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

D:

Use emptyDir for temporary Pod-scoped data and PVC-backed volumes when data must survive Pod replacement. This action addresses Ephemeral emptyDir versus persistent volumes instead of the controlling requirement. emptyDir exists for the lifetime of a Pod on a node and is lost when the Pod is removed. For this scenario prefer: Configure StorageClass WaitForFirstConsumer when scheduling topology must influence dynamic volume provisioning. Workload context: An engineer creates a consuming Pod without matching node capacity and expects WaitForFirstConsumer to override Pod scheduling constraints.

Question 884

A Helm template references a missing value and deployment emits a malformed image name only after rendering. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?

  1. Diagnostics are reproducible, scoped and do not leave unreviewed configuration changes inside containers.
  2. Template rendering produces intended resources and upgrades or rollbacks remain tied to specific chart revisions.
  3. New replicas become Ready before old capacity is removed and a failed rollout can return to a known revision.
  4. Public requests reach the intended application host and path with a valid certificate and matching backends.

Explanation

Correct Answer

B:

Template rendering produces intended resources and upgrades or rollbacks remain tied to specific chart revisions. This is an observable service outcome, not just evidence that a configuration file was saved. Helm templates generate manifests; a chart repository alone does not deploy resources or validate runtime behavior. Workload context: A Helm template references a missing value and deployment emits a malformed image name only after rendering.

Incorrect Answers

A:

Diagnostics are reproducible, scoped and do not leave unreviewed configuration changes inside containers. That result validates kubectl exec diagnostic boundaries rather than the requirement here. Verify instead: Template rendering produces intended resources and upgrades or rollbacks remain tied to specific chart revisions. Workload context: A Helm template references a missing value and deployment emits a malformed image name only after rendering.

C:

New replicas become Ready before old capacity is removed and a failed rollout can return to a known revision. That result validates Deployment rolling updates and rollback rather than the requirement here. Verify instead: Template rendering produces intended resources and upgrades or rollbacks remain tied to specific chart revisions. Workload context: A Helm template references a missing value and deployment emits a malformed image name only after rendering.

D:

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: Template rendering produces intended resources and upgrades or rollbacks remain tied to specific chart revisions. Workload context: A Helm template references a missing value and deployment emits a malformed image name only after rendering.

Question 885

A namespace is labeled enforce=restricted and a Pod requesting privileged host networking fails to create. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions.
  2. Inspect controller readiness, class or Gateway association, route attachment status, TLS Secret and backend Service mapping.
  3. Require approved registry artifacts and verifiable signatures or digests before admitting production workloads.
  4. Review namespace pod-security labels, admission warnings, violations and workload securityContext.
  5. The container remains running or completes as intended without repeated backoff cycles after a targeted correction.

Explanation

Correct Answers

A:

Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions. This response implements the controlling Kubernetes or cloud native principle. Pod Security Admission evaluates security standards at admission; it does not continuously sandbox existing containers after admission. Check its effect by: Review namespace pod-security labels, admission warnings, violations and workload securityContext. This is the implementation part of the required paired answer. Workload context: A namespace is labeled enforce=restricted and a Pod requesting privileged host networking fails to create.

D:

Review namespace pod-security labels, admission warnings, violations and workload securityContext. This is the most discriminating evidence for the described failure or requirement. Pod Security Admission evaluates security standards at admission; it does not continuously sandbox existing containers after admission. The corresponding implementation is: Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions. This is the diagnostic evidence part of the paired answer. Workload context: A namespace is labeled enforce=restricted and a Pod requesting privileged host networking fails to create.

Incorrect Answers

B:

Inspect controller readiness, class or Gateway association, route attachment status, TLS Secret and backend Service mapping. This step belongs to Ingress and Gateway API routing rather than the complementary implementation and evidence pair. The intended approach is: Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions. Validate with: Review namespace pod-security labels, admission warnings, violations and workload securityContext. Workload context: A namespace is labeled enforce=restricted and a Pod requesting privileged host networking fails to create.

C:

Require approved registry artifacts and verifiable signatures or digests before admitting production workloads. This step belongs to Image provenance and admission policies rather than the complementary implementation and evidence pair. The intended approach is: Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions. Validate with: Review namespace pod-security labels, admission warnings, violations and workload securityContext. Workload context: A namespace is labeled enforce=restricted and a Pod requesting privileged host networking fails to create.

E:

The container remains running or completes as intended without repeated backoff cycles after a targeted correction. This step belongs to CrashLoopBackOff and previous logs rather than the complementary implementation and evidence pair. The intended approach is: Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions. Validate with: Review namespace pod-security labels, admission warnings, violations and workload securityContext. Workload context: A namespace is labeled enforce=restricted and a Pod requesting privileged host networking fails to create.

Question 886

An admin deletes a StatefulSet and assumes all its PVCs and underlying disks must be deleted by default. 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 volume type, mount paths, Pod owner, node placement and data recovery requirements.
  3. Inspect Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references.
  4. Inspect external IP status, controller events, security groups, health checks and upstream target availability.

Explanation

Correct Answer

A:

Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy. This is the most discriminating evidence for the described failure or requirement. StatefulSets manage stable identities and can provision distinct PVCs; they do not automatically provide database replication correctness. The corresponding implementation is: Use StatefulSets for workloads needing stable ordinal identity and per-replica persistent claims rather than one shared ephemeral Deployment. Workload context: An admin deletes a StatefulSet and assumes all its PVCs and underlying disks must be deleted by default.

Incorrect Answers

B:

Inspect volume type, mount paths, Pod owner, node placement and data recovery requirements. These observations are more relevant to Ephemeral emptyDir versus persistent volumes, not this case. The distinguishing check is: Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy. Workload context: An admin deletes a StatefulSet and assumes all its PVCs and underlying disks must be deleted by default.

C:

Inspect Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references. These observations are more relevant to ImagePullBackOff registry and auth errors, not this case. The distinguishing check is: Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy. Workload context: An admin deletes a StatefulSet and assumes all its PVCs and underlying disks must be deleted by default.

D:

Inspect external IP status, controller events, security groups, health checks and upstream target availability. These observations are more relevant to LoadBalancer Service provisioning, not this case. The distinguishing check is: Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy. Workload context: An admin deletes a StatefulSet and assumes all its PVCs and underlying disks must be deleted by default.

Question 887

A developer supplies only args and expects it to replace the image entrypoint executable rather than pass new parameters. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?

  1. Pending eligible Pods receive appropriate node bindings when capacity and constraints allow scheduling.
  2. The container sees the intended isolated resources while usage limits are reflected in host accounting.
  3. Containers launch the intended process with arguments preserved and failures remain visible through status.
  4. Reapplying unchanged configuration is safe and the resulting cluster state matches the reviewed manifest.

Explanation

Correct Answer

C:

Containers launch the intended process with arguments preserved and failures remain visible through status. This is an observable service outcome, not just evidence that a configuration file was saved. Kubernetes command maps to the image ENTRYPOINT override and args maps to CMD arguments; a process exit can restart a Pod. Workload context: A developer supplies only args and expects it to replace the image entrypoint executable rather than pass new parameters.

Incorrect Answers

A:

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: Containers launch the intended process with arguments preserved and failures remain visible through status. Workload context: A developer supplies only args and expects it to replace the image entrypoint executable rather than pass new parameters.

B:

The container sees the intended isolated resources while usage limits are reflected in host accounting. That result validates Linux namespaces and cgroups rather than the requirement here. Verify instead: Containers launch the intended process with arguments preserved and failures remain visible through status. Workload context: A developer supplies only args and expects it to replace the image entrypoint executable rather than pass new parameters.

D:

Reapplying unchanged configuration is safe and the resulting cluster state matches the reviewed manifest. That result validates kubectl apply and declarative updates rather than the requirement here. Verify instead: Containers launch the intended process with arguments preserved and failures remain visible through status. Workload context: A developer supplies only args and expects it to replace the image entrypoint executable rather than pass new parameters.

Question 888

A team rolls back to revision 3 but cannot explain the prior change because image tags were mutable and history lacks a digest. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.

  1. Review kubectl describe output, warning reasons, first/last timestamps and relevant controller ownership.
  2. Compare rollout history and resource generations to identify whether application failures correlate with a new deployment revision.
  3. Use container logs and --previous for restarted containers while preserving central logs for evicted or moved workloads.
  4. Inspect Deployment observedGeneration, rollout status, revision annotations, ReplicaSet ownership and release events.
  5. Live cluster configurations converge to reviewed Git commits and unauthorized drift is flagged or corrected.

Explanation

Correct Answers

B:

Compare rollout history and resource generations to identify whether application failures correlate with a new deployment revision. This response implements the controlling Kubernetes or cloud native principle. A Deployment being Available does not prove all new replicas are healthy or that a rollout has fully progressed. Check its effect by: Inspect Deployment observedGeneration, rollout status, revision annotations, ReplicaSet ownership and release events. This is the implementation part of the required paired answer. Workload context: A team rolls back to revision 3 but cannot explain the prior change because image tags were mutable and history lacks a digest.

D:

Inspect Deployment observedGeneration, rollout status, revision annotations, ReplicaSet ownership and release events. This is the most discriminating evidence for the described failure or requirement. A Deployment being Available does not prove all new replicas are healthy or that a rollout has fully progressed. The corresponding implementation is: Compare rollout history and resource generations to identify whether application failures correlate with a new deployment revision. This is the diagnostic evidence part of the paired answer. Workload context: A team rolls back to revision 3 but cannot explain the prior change because image tags were mutable and history lacks a digest.

Incorrect Answers

A:

Review kubectl describe output, warning reasons, first/last timestamps and relevant controller ownership. This step belongs to kubectl describe and event chronology rather than the complementary implementation and evidence pair. The intended approach is: Compare rollout history and resource generations to identify whether application failures correlate with a new deployment revision. Validate with: Inspect Deployment observedGeneration, rollout status, revision annotations, ReplicaSet ownership and release events. Workload context: A team rolls back to revision 3 but cannot explain the prior change because image tags were mutable and history lacks a digest.

C:

Use container logs and --previous for restarted containers while preserving central logs for evicted or moved workloads. This step belongs to kubectl logs current versus previous instance rather than the complementary implementation and evidence pair. The intended approach is: Compare rollout history and resource generations to identify whether application failures correlate with a new deployment revision. Validate with: Inspect Deployment observedGeneration, rollout status, revision annotations, ReplicaSet ownership and release events. Workload context: A team rolls back to revision 3 but cannot explain the prior change because image tags were mutable and history lacks a digest.

E:

Live cluster configurations converge to reviewed Git commits and unauthorized drift is flagged or corrected. This step belongs to GitOps reconciliation and source of truth rather than the complementary implementation and evidence pair. The intended approach is: Compare rollout history and resource generations to identify whether application failures correlate with a new deployment revision. Validate with: Inspect Deployment observedGeneration, rollout status, revision annotations, ReplicaSet ownership and release events. Workload context: A team rolls back to revision 3 but cannot explain the prior change because image tags were mutable and history lacks a digest.

Question 889

A team specifies a restrictive seccomp profile but its runtime ignores an unsupported profile name and administrators must check enforcement. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Run containers with nonroot identities, minimal capabilities and an appropriate seccomp profile for reduced kernel attack surface.
  2. Choose PV access modes based on how nodes and workloads must mount storage and verify CSI driver capability.
  3. Use ClusterIP for private service access and NodePort only when node-level external ports are intentionally needed.
  4. Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions.

Explanation

Correct Answer

A:

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. Workload context: A team specifies a restrictive seccomp profile but its runtime ignores an unsupported profile name and administrators must check enforcement.

Incorrect Answers

B:

Choose PV access modes based on how nodes and workloads must mount storage and verify CSI driver capability. This action addresses ReadWriteOnce and ReadWriteMany semantics instead of the controlling requirement. ReadWriteOnce normally limits read-write mounting to one node, not necessarily exactly one Pod; driver behavior matters. For this scenario prefer: Run containers with nonroot identities, minimal capabilities and an appropriate seccomp profile for reduced kernel attack surface. Workload context: A team specifies a restrictive seccomp profile but its runtime ignores an unsupported profile name and administrators must check enforcement.

C:

Use ClusterIP for private service access and NodePort only when node-level external ports are intentionally needed. This action addresses ClusterIP and NodePort Service exposure instead of the controlling requirement. ClusterIP does not automatically provide an external endpoint; NodePort opens a port on eligible nodes with network policy constraints. For this scenario prefer: Run containers with nonroot identities, minimal capabilities and an appropriate seccomp profile for reduced kernel attack surface. Workload context: A team specifies a restrictive seccomp profile but its runtime ignores an unsupported profile name and administrators must check enforcement.

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: Run containers with nonroot identities, minimal capabilities and an appropriate seccomp profile for reduced kernel attack surface. Workload context: A team specifies a restrictive seccomp profile but its runtime ignores an unsupported profile name and administrators must check enforcement.

Question 890

A node loses a label after scheduling and the team assumes IgnoredDuringExecution will automatically evict the existing Pod. Which Kubernetes or cloud native approach BEST addresses the stated requirement?

  1. Choose requiredDuringSchedulingIgnoredDuringExecution for a hard node preference and preferred rules for soft placement choices.
  2. Match Pod CPU/memory requests to node allocatable resources and scheduling constraints before blaming a container image.
  3. Use a compatible container runtime via the Kubernetes Container Runtime Interface to create and manage containers on nodes.
  4. Build minimal images with reproducible layers and protect against secrets embedded in historical image layers.

Explanation

Correct Answer

A:

Choose requiredDuringSchedulingIgnoredDuringExecution for a hard node preference and preferred rules for soft placement choices. This response implements the controlling Kubernetes or cloud native principle. Preferred affinity can be ignored to schedule a Pod; required affinity must be satisfied at scheduling time. Check its effect by: Inspect affinity terms, matchExpressions, node labels, scheduler feasibility and fallback placement. Workload context: A node loses a label after scheduling and the team assumes IgnoredDuringExecution will automatically evict the existing Pod.

Incorrect Answers

B:

Match Pod CPU/memory requests to node allocatable resources and scheduling constraints before blaming a container image. This action addresses Pending Pods and resource-fit checks instead of the controlling requirement. A Pending unscheduled Pod has no running container logs; scheduler events reveal placement failures. For this scenario prefer: Choose requiredDuringSchedulingIgnoredDuringExecution for a hard node preference and preferred rules for soft placement choices. Workload context: A node loses a label after scheduling and the team assumes IgnoredDuringExecution will automatically evict the existing Pod.

C:

Use a compatible container runtime via the Kubernetes Container Runtime Interface to create and manage containers on nodes. This action addresses Container runtime and CRI instead of the controlling requirement. A runtime executes containers; the CRI is its API integration with kubelet rather than the Kubernetes API server. For this scenario prefer: Choose requiredDuringSchedulingIgnoredDuringExecution for a hard node preference and preferred rules for soft placement choices. Workload context: A node loses a label after scheduling and the team assumes IgnoredDuringExecution will automatically evict the existing Pod.

D:

Build minimal images with reproducible layers and protect against secrets embedded in historical image layers. This action addresses Image layers and build cache instead of the controlling requirement. Deleting a file in a later image layer does not erase secrets committed into an earlier layer. For this scenario prefer: Choose requiredDuringSchedulingIgnoredDuringExecution for a hard node preference and preferred rules for soft placement choices. Workload context: A node loses a label after scheduling and the team assumes IgnoredDuringExecution will automatically evict the existing Pod.

Kubernetes and Cloud Native Associate (KCNA) Practice Tests