Linux Foundation KCNA Practice Test 3
Question 20
A support team tries to add a permanent second service by creating an ephemeral container and expects Deployment updates to preserve it. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- Use the scheduler to select feasible nodes and the cluster autoscaler to adjust node capacity when unschedulable Pods can fit a supported node group.
- Use an authorized ephemeral container for live Pod diagnostics when the original image lacks troubleshooting tools.
- Choose imagePullPolicy based on tag immutability and cluster delivery needs, checking runtime cache and registry accessibility.
- Use kubectl get, describe and logs as complementary views of object state, events and container output before changing resources.
Explanation
Correct Answer
B:Use an authorized ephemeral container for live Pod diagnostics when the original image lacks troubleshooting tools. This response implements the controlling Kubernetes or cloud native principle. Ephemeral containers are intended for debugging and do not behave like ordinary replicated application containers. Check its effect by: Inspect Pod ephemeralContainers entries, RBAC privileges, target process namespace and active diagnostic sessions. Workload context: A support team tries to add a permanent second service by creating an ephemeral container and expects Deployment updates to preserve it.
Incorrect Answers
A:Use the scheduler to select feasible nodes and the cluster autoscaler to adjust node capacity when unschedulable Pods can fit a supported node group. This action addresses Scheduler versus autoscaler responsibility instead of the controlling requirement. The autoscaler provisions nodes; it does not assign Pod nodeName or fix impossible affinity or quota constraints by itself. For this scenario prefer: Use an authorized ephemeral container for live Pod diagnostics when the original image lacks troubleshooting tools. Workload context: A support team tries to add a permanent second service by creating an ephemeral container and expects Deployment updates to preserve it.
C:Choose imagePullPolicy based on tag immutability and cluster delivery needs, checking runtime cache and registry accessibility. This action addresses Image pull policy and cached images instead of the controlling requirement. Always pulls or checks the registry when needed, while IfNotPresent may use cache; pull policy is not image provenance. For this scenario prefer: Use an authorized ephemeral container for live Pod diagnostics when the original image lacks troubleshooting tools. Workload context: A support team tries to add a permanent second service by creating an ephemeral container and expects Deployment updates to preserve it.
D:Use kubectl get, describe and logs as complementary views of object state, events and container output before changing resources. This action addresses kubectl inspect and describe diagnostics instead of the controlling requirement. kubectl get summarizes objects; describe reveals events and details; logs reveals container stdout/stderr, not complete API diagnostics. For this scenario prefer: Use an authorized ephemeral container for live Pod diagnostics when the original image lacks troubleshooting tools. Workload context: A support team tries to add a permanent second service by creating an ephemeral container and expects Deployment updates to preserve it.
Question 21
A bare-metal test cluster creates a LoadBalancer Service but EXTERNAL-IP remains pending because no load-balancer controller exists. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- Apply supported Kubernetes NetworkPolicies to restrict traffic using Pod/namespace selectors and explicit ingress/egress rules.
- Select and operate a Kubernetes-compatible CNI implementation to provide Pod IP connectivity and required network capabilities.
- Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint.
- Choose PV access modes based on how nodes and workloads must mount storage and verify CSI driver capability.
Explanation
Correct Answer
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. 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:Apply supported Kubernetes NetworkPolicies to restrict traffic using Pod/namespace selectors and explicit ingress/egress rules. This action addresses NetworkPolicy ingress egress isolation instead of the controlling requirement. Without policies a standard namespace usually permits traffic; NetworkPolicy enforcement requires a compatible networking implementation. For this scenario prefer: Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint. Workload context: A bare-metal test cluster creates a LoadBalancer Service but EXTERNAL-IP remains pending because no load-balancer controller exists.
B:Select and operate a Kubernetes-compatible CNI implementation to provide Pod IP connectivity and required network capabilities. This action addresses CNI Pod networking implementation instead of the controlling requirement. The CNI plugin supplies Pod networking; a Kubernetes Service alone cannot correct a broken Pod network implementation. For this scenario prefer: Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint. Workload context: A bare-metal test cluster creates a LoadBalancer Service but EXTERNAL-IP remains pending because no load-balancer controller exists.
D: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: Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint. Workload context: A bare-metal test cluster creates a LoadBalancer Service but EXTERNAL-IP remains pending because no load-balancer controller exists.
Question 22
A controller-plane report shows a Pod bound to a worker that has a stopped kubelet and no running containers. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.
- The container sees the intended isolated resources while usage limits are reflected in host accounting.
- Review kubelet service logs, node conditions, CRI connectivity and Pod events for assigned nodes.
- Review Pod scheduling reasons, node group templates, provisioning limits and autoscaler scale-up decisions.
- Let kubelet on each node reconcile assigned Pod specifications with the container runtime and report node and Pod status.
- Use kube-scheduler to bind eligible unscheduled Pods to suitable nodes based on resources and scheduling constraints.
Explanation
Correct Answers
B:Review kubelet service logs, node conditions, CRI connectivity and Pod events for assigned nodes. This is the most discriminating evidence for the described failure or requirement. kubelet manages Pod execution on a node; it does not serve the central Kubernetes API or select new nodes. The corresponding implementation is: Let kubelet on each node reconcile assigned Pod specifications with the container runtime and report node and Pod status. This is the diagnostic evidence part of the paired answer. Workload context: A controller-plane report shows a Pod bound to a worker that has a stopped kubelet and no running containers.
D:Let kubelet on each node reconcile assigned Pod specifications with the container runtime and report node and Pod status. This response implements the controlling Kubernetes or cloud native principle. kubelet manages Pod execution on a node; it does not serve the central Kubernetes API or select new nodes. Check its effect by: Review kubelet service logs, node conditions, CRI connectivity and Pod events for assigned nodes. This is the implementation part of the required paired answer. Workload context: A controller-plane report shows a Pod bound to a worker that has a stopped kubelet and no running containers.
Incorrect Answers
A:The container sees the intended isolated resources while usage limits are reflected in host accounting. This step belongs to Linux namespaces and cgroups rather than the complementary implementation and evidence pair. The intended approach is: Let kubelet on each node reconcile assigned Pod specifications with the container runtime and report node and Pod status. Validate with: Review kubelet service logs, node conditions, CRI connectivity and Pod events for assigned nodes. Workload context: A controller-plane report shows a Pod bound to a worker that has a stopped kubelet and no running containers.
C:Review Pod scheduling reasons, node group templates, provisioning limits and autoscaler scale-up decisions. This step belongs to Scheduler versus autoscaler responsibility rather than the complementary implementation and evidence pair. The intended approach is: Let kubelet on each node reconcile assigned Pod specifications with the container runtime and report node and Pod status. Validate with: Review kubelet service logs, node conditions, CRI connectivity and Pod events for assigned nodes. Workload context: A controller-plane report shows a Pod bound to a worker that has a stopped kubelet and no running containers.
E:Use kube-scheduler to bind eligible unscheduled Pods to suitable nodes based on resources and scheduling constraints. This step belongs to Scheduler responsibility and binding rather than the complementary implementation and evidence pair. The intended approach is: Let kubelet on each node reconcile assigned Pod specifications with the container runtime and report node and Pod status. Validate with: Review kubelet service logs, node conditions, CRI connectivity and Pod events for assigned nodes. Workload context: A controller-plane report shows a Pod bound to a worker that has a stopped kubelet and no running containers.
Question 23
A web team reports CPU below 50% as its sole SLO despite users seeing frequent payment failures. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- Expose application metrics in supported Prometheus format and configure authorized scrape targets and label cardinality.
- Define user-relevant service-level indicators and objectives for availability, error rate or latency with practical alert thresholds.
- Report suspected project security vulnerabilities through the designated private security channel before public reproduction details or exploit examples.
- File reproducible issues with versions, expected/actual behavior, logs and minimal sanitized reproduction steps to support project maintainers.
Explanation
Correct Answer
B:Define user-relevant service-level indicators and objectives for availability, error rate or latency with practical alert thresholds. This response implements the controlling Kubernetes or cloud native principle. An SLI is a measurement, an SLO is a target and an SLA is a contractual commitment; they should not be conflated. Check its effect by: Inspect SLI queries, SLO target/window, request populations, error budgets and alert rule outcomes. Workload context: A web team reports CPU below 50% as its sole SLO despite users seeing frequent payment failures.
Incorrect Answers
A:Expose application metrics in supported Prometheus format and configure authorized scrape targets and label cardinality. This action addresses Prometheus pull scraping and metrics endpoints instead of the controlling requirement. Prometheus primarily scrapes targets on an interval; instrumentation must expose values and high-cardinality labels can overload storage. For this scenario prefer: Define user-relevant service-level indicators and objectives for availability, error rate or latency with practical alert thresholds. Workload context: A web team reports CPU below 50% as its sole SLO despite users seeing frequent payment failures.
C:Report suspected project security vulnerabilities through the designated private security channel before public reproduction details or exploit examples. This action addresses Responsible vulnerability disclosure in communities instead of the controlling requirement. Public bug trackers are not always the right venue for undisclosed security issues; project security policies define channels. For this scenario prefer: Define user-relevant service-level indicators and objectives for availability, error rate or latency with practical alert thresholds. Workload context: A web team reports CPU below 50% as its sole SLO despite users seeing frequent payment failures.
D:File reproducible issues with versions, expected/actual behavior, logs and minimal sanitized reproduction steps to support project maintainers. This action addresses Upstream issue reporting and review collaboration instead of the controlling requirement. High-quality issue reports help distributed open-source teams collaborate, and a public issue is not a safe place to paste secrets. For this scenario prefer: Define user-relevant service-level indicators and objectives for availability, error rate or latency with practical alert thresholds. Workload context: A web team reports CPU below 50% as its sole SLO despite users seeing frequent payment failures.
Question 24
A 99.9 percent availability objective is written without specifying which requests count as successful over what period. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?
- Alerts identify meaningful user-impacting regressions before the service spends an unacceptable error budget.
- Workloads can be redeployed between supported clusters with explicitly identified environment-specific adaptations.
- Operators find the latency or failure cause using combined telemetry without mistaking metrics for individual request evidence.
- Distributed requests produce correlated spans and approved telemetry reaches its configured backend without leaking secrets.
Explanation
Correct Answer
A:Alerts identify meaningful user-impacting regressions before the service spends an unacceptable error budget. This is an observable service outcome, not just evidence that a configuration file was saved. An SLI is a measurement, an SLO is a target and an SLA is a contractual commitment; they should not be conflated. Workload context: A 99.9 percent availability objective is written without specifying which requests count as successful over what period.
Incorrect Answers
B:Workloads can be redeployed between supported clusters with explicitly identified environment-specific adaptations. That result validates Open standards vendor-neutral portability rather than the requirement here. Verify instead: Alerts identify meaningful user-impacting regressions before the service spends an unacceptable error budget. Workload context: A 99.9 percent availability objective is written without specifying which requests count as successful over what period.
C:Operators find the latency or failure cause using combined telemetry without mistaking metrics for individual request evidence. That result validates Metrics logs and traces distinctions rather than the requirement here. Verify instead: Alerts identify meaningful user-impacting regressions before the service spends an unacceptable error budget. Workload context: A 99.9 percent availability objective is written without specifying which requests count as successful over what period.
D:Distributed requests produce correlated spans and approved telemetry reaches its configured backend without leaking secrets. That result validates OpenTelemetry instrumentation and exporters rather than the requirement here. Verify instead: Alerts identify meaningful user-impacting regressions before the service spends an unacceptable error budget. Workload context: A 99.9 percent availability objective is written without specifying which requests count as successful over what period.
Question 25
An admin deletes a StatefulSet and assumes all its PVCs and underlying disks must be deleted by default. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.
- Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy.
- Use StatefulSets for workloads needing stable ordinal identity and per-replica persistent claims rather than one shared ephemeral Deployment.
- Use emptyDir for temporary Pod-scoped data and PVC-backed volumes when data must survive Pod replacement.
- Inspect PV persistentVolumeReclaimPolicy, underlying disk state, claim release and storage provisioner behavior.
- Approved workloads can access required credentials while unauthorized viewers cannot recover plaintext through the API.
Explanation
Correct Answers
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. This is the diagnostic evidence part of the paired answer. Workload context: An admin deletes a StatefulSet and assumes all its PVCs and underlying disks must be deleted by default.
B:Use StatefulSets for workloads needing stable ordinal identity and per-replica persistent claims rather than one shared ephemeral Deployment. This response implements the controlling Kubernetes or cloud native principle. StatefulSets manage stable identities and can provision distinct PVCs; they do not automatically provide database replication correctness. Check its effect by: Inspect StatefulSet ordinal Pod names, headless Service, volumeClaimTemplates and update strategy. This is the implementation part of the required paired answer. Workload context: An admin deletes a StatefulSet and assumes all its PVCs and underlying disks must be deleted by default.
Incorrect Answers
C:Use emptyDir for temporary Pod-scoped data and PVC-backed volumes when data must survive Pod replacement. This step belongs to Ephemeral emptyDir versus persistent volumes rather than the complementary implementation and evidence pair. The intended approach is: Use StatefulSets for workloads needing stable ordinal identity and per-replica persistent claims rather than one shared ephemeral Deployment. Validate with: 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 PV persistentVolumeReclaimPolicy, underlying disk state, claim release and storage provisioner behavior. This step belongs to PV reclaim policy Retain versus Delete rather than the complementary implementation and evidence pair. The intended approach is: Use StatefulSets for workloads needing stable ordinal identity and per-replica persistent claims rather than one shared ephemeral Deployment. Validate with: 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.
E: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 StatefulSets for workloads needing stable ordinal identity and per-replica persistent claims rather than one shared ephemeral Deployment. Validate with: 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 26
A change from Service port 80 to 8080 breaks external routing because the Ingress backend still points to the old port. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?
- Inspect host/path rules, route attachment, listener TLS, backend port and controller access logs.
- Inspect commit identity, build/test results, artifact digest, promotion approval and deployment events.
- Review ephemeralContainers spec, target container namespace, attach status and host-level privileges requested.
- Inspect maxSurge, maxUnavailable, rollout conditions, ReplicaSets, readiness and prior image revisions.
Explanation
Correct Answer
A:Inspect host/path rules, route attachment, listener TLS, backend port and controller access logs. This is the most discriminating evidence for the described failure or requirement. A healthy Service does not guarantee correct edge routing; ingress controllers and TLS bindings add separate layers. The corresponding implementation is: Trace external HTTP requests through DNS, ingress/Gateway association, TLS configuration, Service and Pod endpoints. Workload context: A change from Service port 80 to 8080 breaks external routing because the Ingress backend still points to the old port.
Incorrect Answers
B:Inspect commit identity, build/test results, artifact digest, promotion approval and deployment events. These observations are more relevant to CI versus CD pipeline separation, not this case. The distinguishing check is: Inspect host/path rules, route attachment, listener TLS, backend port and controller access logs. Workload context: A change from Service port 80 to 8080 breaks external routing because the Ingress backend still points to the old port.
C:Review ephemeralContainers spec, target container namespace, attach status and host-level privileges requested. These observations are more relevant to Ephemeral debug containers for minimal images, not this case. The distinguishing check is: Inspect host/path rules, route attachment, listener TLS, backend port and controller access logs. Workload context: A change from Service port 80 to 8080 breaks external routing because the Ingress backend still points to the old port.
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 host/path rules, route attachment, listener TLS, backend port and controller access logs. Workload context: A change from Service port 80 to 8080 breaks external routing because the Ingress backend still points to the old port.
Question 27
A cluster adds nodes successfully but the scheduler still rejects the workload because it requests a nonexistent topology label. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?
- Eligible Pending Pods trigger appropriate capacity increases and then receive scheduler bindings.
- Pods schedule based on requests and stay within resource policy without avoidable throttling or memory termination.
- Operators identify the failing object and use evidence before editing controllers or escalating access.
- Replica placement stays within the intended skew or reports clear scheduling limits.
Explanation
Correct Answer
A:Eligible Pending Pods trigger appropriate capacity increases and then receive scheduler bindings. This is an observable service outcome, not just evidence that a configuration file was saved. The autoscaler provisions nodes; it does not assign Pod nodeName or fix impossible affinity or quota constraints by itself. Workload context: A cluster adds nodes successfully but the scheduler still rejects the workload because it requests a nonexistent topology label.
Incorrect Answers
B:Pods schedule based on requests and stay within resource policy without avoidable throttling or memory termination. That result validates CPU requests and memory limits rather than the requirement here. Verify instead: Eligible Pending Pods trigger appropriate capacity increases and then receive scheduler bindings. Workload context: A cluster adds nodes successfully but the scheduler still rejects the workload because it requests a nonexistent topology label.
C:Operators identify the failing object and use evidence before editing controllers or escalating access. That result validates kubectl inspect and describe diagnostics rather than the requirement here. Verify instead: Eligible Pending Pods trigger appropriate capacity increases and then receive scheduler bindings. Workload context: A cluster adds nodes successfully but the scheduler still rejects the workload because it requests a nonexistent topology label.
D:Replica placement stays within the intended skew or reports clear scheduling limits. That result validates Topology spread constraints rather than the requirement here. Verify instead: Eligible Pending Pods trigger appropriate capacity increases and then receive scheduler bindings. Workload context: A cluster adds nodes successfully but the scheduler still rejects the workload because it requests a nonexistent topology label.
Question 28
A release team observes healthy node memory metrics but a specific downstream queue service accumulates errors during peak load. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.
- Compare trace IDs, time synchronized log events, resource saturation metrics and span durations.
- Use time-aligned metrics, structured logs and distributed traces to isolate root causes across Kubernetes components and services.
- Use ephemeral containers to inspect a running Pod when its application image lacks debug tools, with approved access to sensitive process namespaces.
- Production uses a tested traceable artifact only after required promotion and environment gates succeed.
- Compare Git revision, application sync status, live resource diff and reconciliation events.
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 release team observes healthy node memory metrics but a specific downstream queue service accumulates errors during peak load.
B: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 release team observes healthy node memory metrics but a specific downstream queue service accumulates errors during peak load.
Incorrect Answers
C:Use ephemeral containers to inspect a running Pod when its application image lacks debug tools, with approved access to sensitive process namespaces. This step belongs to Ephemeral debug containers for minimal images 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 release team observes healthy node memory metrics but a specific downstream queue service accumulates errors during peak load.
D:Production uses a tested traceable artifact only after required promotion and environment gates succeed. This step belongs to CI versus CD pipeline separation 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 release team observes healthy node memory metrics but a specific downstream queue service accumulates errors during peak load.
E:Compare Git revision, application sync status, live resource diff and reconciliation events. This step belongs to GitOps reconciliation and source of truth 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 release team observes healthy node memory metrics but a specific downstream queue service accumulates errors during peak load.
Question 29
A project sets an audit Pod Security label and assumes this alone prevents privileged workloads from starting. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.
- Inspect Secret read permissions, encryption configuration, encoded manifest values and audit trails.
- Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions.
- Review namespace pod-security labels, admission warnings, violations and workload securityContext.
- Distinguish authenticating a Kubernetes API caller from authorizing verbs and validating or mutating admission behavior.
- Deleted claims follow the intended deletion or retention policy without unexpectedly destroying important data.
Explanation
Correct Answers
B: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 project sets an audit Pod Security label and assumes this alone prevents privileged workloads from starting.
C: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 project sets an audit Pod Security label and assumes this alone prevents privileged workloads from starting.
Incorrect Answers
A:Inspect Secret read permissions, encryption configuration, encoded manifest values and audit trails. This step belongs to Secret base64 encoding versus encryption 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 project sets an audit Pod Security label and assumes this alone prevents privileged workloads from starting.
D:Distinguish authenticating a Kubernetes API caller from authorizing verbs and validating or mutating admission behavior. This step belongs to Authentication authorization and admission order 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 project sets an audit Pod Security label and assumes this alone prevents privileged workloads from starting.
E:Deleted claims follow the intended deletion or retention policy without unexpectedly destroying important data. This step belongs to PV reclaim policy Retain versus Delete 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 project sets an audit Pod Security label and assumes this alone prevents privileged workloads from starting.
Question 30
A service hits its cgroup memory ceiling and is killed even though host-wide free RAM remains available. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- Maintain accurate node labels, allocatable resources and topology information to support workload placement and capacity analysis.
- Use supported sidecar containers for tightly coupled helper functions and verify lifecycle coordination within the Pod.
- Explain how namespaces isolate process/network views and cgroups control CPU and memory resource accounting and enforcement.
- Model tightly coupled containers inside a Pod when they must share a network namespace and lifecycle, not as unrelated separate Pods.
Explanation
Correct Answer
C:Explain how namespaces isolate process/network views and cgroups control CPU and memory resource accounting and enforcement. This response implements the controlling Kubernetes or cloud native principle. Namespaces and cgroups provide different Linux primitives; neither independently creates Kubernetes scheduling. Check its effect by: Inspect process namespace, container cgroup limits, OOM events and host resource metrics. Workload context: A service hits its cgroup memory ceiling and is killed even though host-wide free RAM remains available.
Incorrect Answers
A:Maintain accurate node labels, allocatable resources and topology information to support workload placement and capacity analysis. This action addresses Node labels and allocatable inventory instead of the controlling requirement. Node allocatable excludes reservations from raw capacity; labels must reflect real node capabilities and administration. For this scenario prefer: Explain how namespaces isolate process/network views and cgroups control CPU and memory resource accounting and enforcement. Workload context: A service hits its cgroup memory ceiling and is killed even though host-wide free RAM remains available.
B:Use supported sidecar containers for tightly coupled helper functions and verify lifecycle coordination within the Pod. This action addresses Sidecar containers and shared Pod lifecycle instead of the controlling requirement. Sidecars share a Pod network context; careless start or termination ordering can block a workload. For this scenario prefer: Explain how namespaces isolate process/network views and cgroups control CPU and memory resource accounting and enforcement. Workload context: A service hits its cgroup memory ceiling and is killed even though host-wide free RAM remains available.
D:Model tightly coupled containers inside a Pod when they must share a network namespace and lifecycle, not as unrelated separate Pods. This action addresses Pod shared network namespace and lifecycle instead of the controlling requirement. Containers in one Pod share networking and selected volumes; Kubernetes schedules Pods rather than independent containers. For this scenario prefer: Explain how namespaces isolate process/network views and cgroups control CPU and memory resource accounting and enforcement. Workload context: A service hits its cgroup memory ceiling and is killed even though host-wide free RAM remains available.