Linux Foundation KCNA Practice Test 78
Question 770
An engineer checks image tag spelling to validate deployment but never compares running Pod imageID with approved digest. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?
- Production uses a tested traceable artifact only after required promotion and environment gates succeed.
- Root-cause hypotheses align with recorded warning events and targeted corrective actions.
- An incident timeline pinpoints the failing dependency rather than relying on one generic readiness or CPU signal.
- Staging and production execute identical approved artifact content and releases remain reproducible.
Explanation
Correct Answer
D:Staging and production execute identical approved artifact content and releases remain reproducible. This is an observable service outcome, not just evidence that a configuration file was saved. An image digest identifies the immutable artifact; matching labels or Git SHAs alone do not prove identical layers. Workload context: An engineer checks image tag spelling to validate deployment but never compares running Pod imageID with approved digest.
Incorrect Answers
A:Production uses a tested traceable artifact only after required promotion and environment gates succeed. That result validates CI versus CD pipeline separation rather than the requirement here. Verify instead: Staging and production execute identical approved artifact content and releases remain reproducible. Workload context: An engineer checks image tag spelling to validate deployment but never compares running Pod imageID with approved digest.
B:Root-cause hypotheses align with recorded warning events and targeted corrective actions. That result validates kubectl describe and event chronology rather than the requirement here. Verify instead: Staging and production execute identical approved artifact content and releases remain reproducible. Workload context: An engineer checks image tag spelling to validate deployment but never compares running Pod imageID with approved digest.
C:An incident timeline pinpoints the failing dependency rather than relying on one generic readiness or CPU signal. That result validates Correlating metrics logs and traces rather than the requirement here. Verify instead: Staging and production execute identical approved artifact content and releases remain reproducible. Workload context: An engineer checks image tag spelling to validate deployment but never compares running Pod imageID with approved digest.
Question 771
An engineer reduces a Pod CPU limit but leaves its excessive request unchanged and sees no improvement in scheduling. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?
- All intended replicas run the approved digest and upgrades trace back to a reviewed artifact.
- Replica placement stays within the intended skew or reports clear scheduling limits.
- Feasible Pods are scheduled after resource or policy conflicts are resolved without overcommitting critical nodes.
- Pods assigned to a healthy node start and report status with failed containers surfaced for diagnosis.
Explanation
Correct Answer
C:Feasible Pods are scheduled after resource or policy conflicts are resolved without overcommitting critical nodes. This is an observable service outcome, not just evidence that a configuration file was saved. A Pending unscheduled Pod has no running container logs; scheduler events reveal placement failures. Workload context: An engineer reduces a Pod CPU limit but leaves its excessive request unchanged and sees no improvement in scheduling.
Incorrect Answers
A:All intended replicas run the approved digest and upgrades trace back to a reviewed artifact. That result validates Immutable container images and digests rather than the requirement here. Verify instead: Feasible Pods are scheduled after resource or policy conflicts are resolved without overcommitting critical nodes. Workload context: An engineer reduces a Pod CPU limit but leaves its excessive request unchanged and sees no improvement in scheduling.
B: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: Feasible Pods are scheduled after resource or policy conflicts are resolved without overcommitting critical nodes. Workload context: An engineer reduces a Pod CPU limit but leaves its excessive request unchanged and sees no improvement in scheduling.
D:Pods assigned to a healthy node start and report status with failed containers surfaced for diagnosis. That result validates Kubelet node agent responsibilities rather than the requirement here. Verify instead: Feasible Pods are scheduled after resource or policy conflicts are resolved without overcommitting critical nodes. Workload context: An engineer reduces a Pod CPU limit but leaves its excessive request unchanged and sees no improvement in scheduling.
Question 772
A multi-container Pod has a proxy sidecar and teams inspect the wrong container because they omit the container name. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?
- Live cluster configurations converge to reviewed Git commits and unauthorized drift is flagged or corrected.
- Engineers identify the failing process message associated with the correct container instance and time window.
- Release artifacts have verifiable origin and unapproved build paths are rejected before application rollout.
- Public requests reach the intended application host and path with a valid certificate and matching backends.
Explanation
Correct Answer
B:Engineers identify the failing process message associated with the correct container instance and time window. This is an observable service outcome, not just evidence that a configuration file was saved. kubectl logs streams container stdout/stderr, and --previous selects the prior terminated instance if available. Workload context: A multi-container Pod has a proxy sidecar and teams inspect the wrong container because they omit the container name.
Incorrect Answers
A:Live cluster configurations converge to reviewed Git commits and unauthorized drift is flagged or corrected. That result validates GitOps reconciliation and source of truth rather than the requirement here. Verify instead: Engineers identify the failing process message associated with the correct container instance and time window. Workload context: A multi-container Pod has a proxy sidecar and teams inspect the wrong container because they omit the container name.
C:Release artifacts have verifiable origin and unapproved build paths are rejected before application rollout. That result validates Software supply chain attestations rather than the requirement here. Verify instead: Engineers identify the failing process message associated with the correct container instance and time window. Workload context: A multi-container Pod has a proxy sidecar and teams inspect the wrong container because they omit the container name.
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: Engineers identify the failing process message associated with the correct container instance and time window. Workload context: A multi-container Pod has a proxy sidecar and teams inspect the wrong container because they omit the container name.
Question 773
A helper container must read the primary app's local socket but developers deploy it as a separate Pod and call localhost. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?
- Co-located containers communicate over localhost and move through Pod lifecycle as an atomic scheduling unit.
- Principals can perform only intended operations at the correct scope while denied actions remain inaccessible.
- Stateless replicas converge to the declared count and rolling updates progress without manual Pod recreation.
- Cluster state can be recovered from a tested snapshot with quorum intact and application volumes handled separately.
Explanation
Correct Answer
A:Co-located containers communicate over localhost and move through Pod lifecycle as an atomic scheduling unit. This is an observable service outcome, not just evidence that a configuration file was saved. Containers in one Pod share networking and selected volumes; Kubernetes schedules Pods rather than independent containers. Workload context: A helper container must read the primary app's local socket but developers deploy it as a separate Pod and call localhost.
Incorrect Answers
B:Principals can perform only intended operations at the correct scope while denied actions remain inaccessible. That result validates Role and ClusterRole authorization rather than the requirement here. Verify instead: Co-located containers communicate over localhost and move through Pod lifecycle as an atomic scheduling unit. Workload context: A helper container must read the primary app's local socket but developers deploy it as a separate Pod and call localhost.
C:Stateless replicas converge to the declared count and rolling updates progress without manual Pod recreation. That result validates Deployment and ReplicaSet ownership rather than the requirement here. Verify instead: Co-located containers communicate over localhost and move through Pod lifecycle as an atomic scheduling unit. Workload context: A helper container must read the primary app's local socket but developers deploy it as a separate Pod and call localhost.
D:Cluster state can be recovered from a tested snapshot with quorum intact and application volumes handled separately. That result validates etcd consistency and cluster state rather than the requirement here. Verify instead: Co-located containers communicate over localhost and move through Pod lifecycle as an atomic scheduling unit. Workload context: A helper container must read the primary app's local socket but developers deploy it as a separate Pod and call localhost.
Question 774
A team adds a liveness probe to a transient overloaded endpoint and starts a restart storm instead of isolating readiness behavior. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?
- Inspect Service metadata, selected Pod labels, EndpointSlice readiness, containerPort and actual listening sockets.
- Examine authentication identity, RBAC decision, admission webhook result and API response status.
- Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records.
- Inspect probe paths, thresholds, failure conditions, Service endpoints and container restart events.
Explanation
Correct Answer
D:Inspect probe paths, thresholds, failure conditions, Service endpoints and container restart events. This is the most discriminating evidence for the described failure or requirement. Readiness failure removes a Pod from ready endpoints; liveness failure may restart a container. The corresponding implementation is: Assign readiness for traffic acceptance, liveness for unhealthy restarts and startup for slow initialization when appropriate. Workload context: A team adds a liveness probe to a transient overloaded endpoint and starts a restart storm instead of isolating readiness behavior.
Incorrect Answers
A:Inspect Service metadata, selected Pod labels, EndpointSlice readiness, containerPort and actual listening sockets. These observations are more relevant to Service selector and port mismatch diagnostics, not this case. The distinguishing check is: Inspect probe paths, thresholds, failure conditions, Service endpoints and container restart events. Workload context: A team adds a liveness probe to a transient overloaded endpoint and starts a restart storm instead of isolating readiness behavior.
B:Examine authentication identity, RBAC decision, admission webhook result and API response status. These observations are more relevant to Authentication authorization and admission order, not this case. The distinguishing check is: Inspect probe paths, thresholds, failure conditions, Service endpoints and container restart events. Workload context: A team adds a liveness probe to a transient overloaded endpoint and starts a restart storm instead of isolating readiness behavior.
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 probe paths, thresholds, failure conditions, Service endpoints and container restart events. Workload context: A team adds a liveness probe to a transient overloaded endpoint and starts a restart storm instead of isolating readiness behavior.
Question 775
After a node failure the Deployment stays below desired replicas and the platform team inspects only running application logs. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- Allow Kubernetes controllers to reconcile declared desired object state instead of manually replacing each Pod after failure.
- Use a compatible container runtime via the Kubernetes Container Runtime Interface to create and manage containers on nodes.
- Place a Kubernetes Service in front of ephemeral Pods when callers need stable discovery independent of individual Pod IP changes.
- Assign a Role to namespaced permissions and a ClusterRole where appropriate for cluster-scoped or reusable rules, binding least privilege.
Explanation
Correct Answer
A:Allow Kubernetes controllers to reconcile declared desired object state instead of manually replacing each Pod after failure. This response implements the controlling Kubernetes or cloud native principle. Controllers continuously reconcile desired state; an isolated manually created Pod lacks a Deployment's replica management. Check its effect by: Compare desired and observed replicas, controller events, ReplicaSet ownership and controller-manager health. Workload context: After a node failure the Deployment stays below desired replicas and the platform team inspects only running application logs.
Incorrect Answers
B: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: Allow Kubernetes controllers to reconcile declared desired object state instead of manually replacing each Pod after failure. Workload context: After a node failure the Deployment stays below desired replicas and the platform team inspects only running application logs.
C:Place a Kubernetes Service in front of ephemeral Pods when callers need stable discovery independent of individual Pod IP changes. This action addresses Service stable virtual endpoint instead of the controlling requirement. A Service abstracts changing Pod endpoints; exposing a ClusterIP does not automatically create public Internet access. For this scenario prefer: Allow Kubernetes controllers to reconcile declared desired object state instead of manually replacing each Pod after failure. Workload context: After a node failure the Deployment stays below desired replicas and the platform team inspects only running application logs.
D:Assign a Role to namespaced permissions and a ClusterRole where appropriate for cluster-scoped or reusable rules, binding least privilege. This action addresses Role and ClusterRole authorization instead of the controlling requirement. A RoleBinding can bind a ClusterRole within its namespace; a ClusterRoleBinding grants its rules at cluster scope. For this scenario prefer: Allow Kubernetes controllers to reconcile declared desired object state instead of manually replacing each Pod after failure. Workload context: After a node failure the Deployment stays below desired replicas and the platform team inspects only running application logs.
Question 776
A namespace lacks the correct registry pull Secret and otherwise healthy Pods remain in ImagePullBackOff. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?
- Inspect securityContext, runAsUser, allowPrivilegeEscalation, capabilities, seccompProfile and startup errors.
- Inspect node conditions, eviction events, kubelet logs, disk usage and QoS/resource request settings.
- Inspect Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references.
- Review container lastState, exit code, restart count, previous logs and application configuration.
Explanation
Correct Answer
C:Inspect Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references. This is the most discriminating evidence for the described failure or requirement. ImagePullBackOff is a retrieval or authorization problem; changing app readiness probes cannot fix a missing image. The corresponding implementation is: Diagnose image-pull problems by validating image reference, registry availability, permissions and Secret scope. Workload context: A namespace lacks the correct registry pull Secret and otherwise healthy Pods remain in ImagePullBackOff.
Incorrect Answers
A:Inspect securityContext, runAsUser, allowPrivilegeEscalation, capabilities, seccompProfile and startup errors. These observations are more relevant to Linux securityContext and seccomp basics, not this case. The distinguishing check is: Inspect Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references. Workload context: A namespace lacks the correct registry pull Secret and otherwise healthy Pods remain in ImagePullBackOff.
B:Inspect node conditions, eviction events, kubelet logs, disk usage and QoS/resource request settings. These observations are more relevant to Node pressure and Pod eviction analysis, not this case. The distinguishing check is: Inspect Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references. Workload context: A namespace lacks the correct registry pull Secret and otherwise healthy Pods remain in ImagePullBackOff.
D: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 Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references. Workload context: A namespace lacks the correct registry pull Secret and otherwise healthy Pods remain in ImagePullBackOff.
Question 777
A Pod is accepted by the API but has no nodeName while an operator insists the kubelet must choose a host. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- Use a DaemonSet to run a supported node agent across eligible nodes, respecting taints and selectors.
- Assign stable labels for matching workload membership, and use annotations for nonselecting descriptive metadata.
- Use kube-scheduler to bind eligible unscheduled Pods to suitable nodes based on resources and scheduling constraints.
- Set workload requests for placement and limits for bounded runtime use based on measured application needs.
Explanation
Correct Answer
C:Use kube-scheduler to bind eligible unscheduled Pods to suitable nodes based on resources and scheduling constraints. This response implements the controlling Kubernetes or cloud native principle. kube-scheduler assigns Pods to nodes; kubelet executes Pods after assignment and the controller manager reconciles controllers. Check its effect by: Inspect Pod scheduling events, available node capacity, taints, selectors and assigned nodeName. Workload context: A Pod is accepted by the API but has no nodeName while an operator insists the kubelet must choose a host.
Incorrect Answers
A:Use a DaemonSet to run a supported node agent across eligible nodes, respecting taints and selectors. This action addresses DaemonSet node-local workloads instead of the controlling requirement. A DaemonSet creates node-level replicas automatically rather than a fixed overall replica count like a Deployment. For this scenario prefer: Use kube-scheduler to bind eligible unscheduled Pods to suitable nodes based on resources and scheduling constraints. Workload context: A Pod is accepted by the API but has no nodeName while an operator insists the kubelet must choose a host.
B:Assign stable labels for matching workload membership, and use annotations for nonselecting descriptive metadata. This action addresses Labels selectors and annotations instead of the controlling requirement. Labels support equality and set-based selectors; annotations do not become Service selectors automatically. For this scenario prefer: Use kube-scheduler to bind eligible unscheduled Pods to suitable nodes based on resources and scheduling constraints. Workload context: A Pod is accepted by the API but has no nodeName while an operator insists the kubelet must choose a host.
D:Set workload requests for placement and limits for bounded runtime use based on measured application needs. This action addresses CPU requests and memory limits instead of the controlling requirement. Requests influence scheduling; limits govern enforcement and memory-limit breaches can terminate containers. For this scenario prefer: Use kube-scheduler to bind eligible unscheduled Pods to suitable nodes based on resources and scheduling constraints. Workload context: A Pod is accepted by the API but has no nodeName while an operator insists the kubelet must choose a host.
Question 778
A release changes only an environment variable and a previously stable service begins failing health checks after the new ReplicaSet starts. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- Distinguish readiness endpoint failures from application process exits before deciding whether to restart or change service routing.
- Trace external HTTP requests through DNS, ingress/Gateway association, TLS configuration, Service and Pod endpoints.
- Configure Deployment rollout strategy with availability bounds and use rollout history when an update requires controlled rollback.
- Compare rollout history and resource generations to identify whether application failures correlate with a new deployment revision.
Explanation
Correct Answer
D: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. Workload context: A release changes only an environment variable and a previously stable service begins failing health checks after the new ReplicaSet starts.
Incorrect Answers
A:Distinguish readiness endpoint failures from application process exits before deciding whether to restart or change service routing. This action addresses Readiness-probe failure versus process crash instead of the controlling requirement. Readiness-probe failure normally removes endpoint traffic without killing the container; liveness changes restart behavior. For this scenario prefer: Compare rollout history and resource generations to identify whether application failures correlate with a new deployment revision. Workload context: A release changes only an environment variable and a previously stable service begins failing health checks after the new ReplicaSet starts.
B:Trace external HTTP requests through DNS, ingress/Gateway association, TLS configuration, Service and Pod endpoints. This action addresses Ingress route and TLS mismatch diagnosis instead of the controlling requirement. A healthy Service does not guarantee correct edge routing; ingress controllers and TLS bindings add separate layers. For this scenario prefer: Compare rollout history and resource generations to identify whether application failures correlate with a new deployment revision. Workload context: A release changes only an environment variable and a previously stable service begins failing health checks after the new ReplicaSet starts.
C:Configure Deployment rollout strategy with availability bounds and use rollout history when an update requires controlled rollback. This action addresses Deployment rolling updates and rollback instead of the controlling requirement. A rolling update controls replacement pacing but application correctness still requires probes and release validation. For this scenario prefer: Compare rollout history and resource generations to identify whether application failures correlate with a new deployment revision. Workload context: A release changes only an environment variable and a previously stable service begins failing health checks after the new ReplicaSet starts.
Question 779
A regional control-plane upgrade changes the API endpoint but workers continue running and administrators need to verify client access. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?
- Inspect ConfigMap/Secret references, RBAC, API audit records, encryption-at-rest settings and mount or environment behavior.
- Check resource namespace, role bindings, quotas and effective network enforcement across namespaces.
- Check API endpoint connectivity, request audit records, resource authorization and response status.
- Inspect local-versus-server manifest diff, field ownership, admission rejection and resulting resource generation.
Explanation
Correct Answer
C:Check API endpoint connectivity, request audit records, resource authorization and response status. This is the most discriminating evidence for the described failure or requirement. kube-apiserver validates and serves API requests; etcd stores cluster state rather than exposing the user API. The corresponding implementation is: Use kube-apiserver as the authenticated front end for Kubernetes API objects, rather than connecting clients directly to etcd. Workload context: A regional control-plane upgrade changes the API endpoint but workers continue running and administrators need to verify client access.
Incorrect Answers
A:Inspect ConfigMap/Secret references, RBAC, API audit records, encryption-at-rest settings and mount or environment behavior. These observations are more relevant to ConfigMap and Secret boundaries, not this case. The distinguishing check is: Check API endpoint connectivity, request audit records, resource authorization and response status. Workload context: A regional control-plane upgrade changes the API endpoint but workers continue running and administrators need to verify client access.
B:Check resource namespace, role bindings, quotas and effective network enforcement across namespaces. These observations are more relevant to Namespace scope and limits, not this case. The distinguishing check is: Check API endpoint connectivity, request audit records, resource authorization and response status. Workload context: A regional control-plane upgrade changes the API endpoint but workers continue running and administrators need to verify client access.
D: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: Check API endpoint connectivity, request audit records, resource authorization and response status. Workload context: A regional control-plane upgrade changes the API endpoint but workers continue running and administrators need to verify client access.
Question 780
An operator raises CPU shares in response to an OOMKilled event without investigating application memory usage. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?
- Workloads function under least privilege and operations needing prohibited capabilities are rejected or explicitly reviewed.
- The application operates within measured memory budgets or receives justified capacity changes without repeated OOM restarts.
- The Service has healthy matching backends and forwards to the application process's actual port.
- The precise scheduling blocker is removed and the workload binds to an eligible node.
Explanation
Correct Answer
B:The application operates within measured memory budgets or receives justified capacity changes without repeated OOM restarts. This is an observable service outcome, not just evidence that a configuration file was saved. Container memory exceeding its cgroup limit can trigger OOMKilled even when node aggregate memory seems available. Workload context: An operator raises CPU shares in response to an OOMKilled event without investigating application memory usage.
Incorrect Answers
A:Workloads function under least privilege and operations needing prohibited capabilities are rejected or explicitly reviewed. That result validates Linux securityContext and seccomp basics rather than the requirement here. Verify instead: The application operates within measured memory budgets or receives justified capacity changes without repeated OOM restarts. Workload context: An operator raises CPU shares in response to an OOMKilled event without investigating application memory usage.
C:The Service has healthy matching backends and forwards to the application process's actual port. That result validates Service selector and port mismatch diagnostics rather than the requirement here. Verify instead: The application operates within measured memory budgets or receives justified capacity changes without repeated OOM restarts. Workload context: An operator raises CPU shares in response to an OOMKilled event without investigating application memory usage.
D:The precise scheduling blocker is removed and the workload binds to an eligible node. That result validates Pending pod FailedScheduling events rather than the requirement here. Verify instead: The application operates within measured memory budgets or receives justified capacity changes without repeated OOM restarts. Workload context: An operator raises CPU shares in response to an OOMKilled event without investigating application memory usage.