Linux Foundation KCNA Dumps
Linux Foundation KCNA Practice Test 15
Question 140
A student wants to understand why kubectl credentials on a laptop differ from a Pod's in-cluster identity. Which engineering change and test jointly addresses the scenario?
Explanation
Correct Answer
The situation is that a student wants to understand why kubectl credentials on a laptop differ from a Pod's in-cluster identity. Give each workload an appropriate Kubernetes ServiceAccount and narrow RBAC permissions rather than embedding an administrator kubeconfig in its image. Acceptance evidence: Run a synthetic read-only Pod with a restricted ServiceAccount and verify one permitted API read and one forbidden Secret list. This pairing is justified because serviceAccounts provide workload identities for Kubernetes API access; human authentication and authorization are separately configured and should not be shared as static image secrets.
Incorrect Answers
This action and check address the distinct objective “Use StorageClass for dynamic volume provisioning rather than handcrafting every disk” instead of the stated acceptance requirement. The matching action is to give each workload an appropriate Kubernetes ServiceAccount and narrow RBAC permissions rather than embedding an administrator kubeconfig in its image. Its confirming test is to run a synthetic read-only Pod with a restricted ServiceAccount and verify one permitted API read and one forbidden Secret list.
This action and check address the distinct objective “Use labels and selectors to connect resources predictably” instead of the stated acceptance requirement. The matching action is to give each workload an appropriate Kubernetes ServiceAccount and narrow RBAC permissions rather than embedding an administrator kubeconfig in its image. Its confirming test is to run a synthetic read-only Pod with a restricted ServiceAccount and verify one permitted API read and one forbidden Secret list.
This action and check address the distinct objective “Interpret Kubernetes spec and status fields without confusing intent with condition” instead of the stated acceptance requirement. The matching action is to give each workload an appropriate Kubernetes ServiceAccount and narrow RBAC permissions rather than embedding an administrator kubeconfig in its image. Its confirming test is to run a synthetic read-only Pod with a restricted ServiceAccount and verify one permitted API read and one forbidden Secret list.
Question 141
A nonprofit engineer alternates between staging and production clusters on one workstation. Which engineering approach is the most appropriate for this cloud-native case?
Explanation
Correct Answer
Inspect the active kubeconfig context and namespace before applying manifests to staging or production. This resolves the issue because a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment. To verify, run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace.
Incorrect Answers
This option addresses the distinct objective “Define secure release governance with staged approvals and policy verification”, not the immediate requirement. A deployment pipeline is a trust boundary; signed artifacts and automated policy tests reduce the risk of unreviewed configurations reaching production. For the stated case, a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
This option addresses the distinct objective “Use rollout status and undo to validate and recover a Deployment release”, not the immediate requirement. Deployment rollout strategy gradually replaces Pods and preserves revision history, but success depends on availability and revision retention settings. For the stated case, a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
This option addresses the distinct objective “Select DaemonSet for node-local agents rather than Deployment replica counts”, not the immediate requirement. A DaemonSet controller targets eligible nodes for a Pod each, adapting to node additions and labels rather than maintaining a global arbitrary replica count. For the stated case, a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
Question 142
A nonprofit engineer alternates between staging and production clusters on one workstation. What infrastructure principle makes the correct treatment effective?
Explanation
Correct Answer
A kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment. It supports this action: Inspect the active kubeconfig context and namespace before applying manifests to staging or production. To confirm, run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace.
Incorrect Answers
That statement explains the distinct objective “Understand resource quotas and LimitRanges for namespace capacity governance” rather than the cause in this case. The deciding mechanism here is that a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
That statement explains the distinct objective “Distinguish memory limits from CPU throttling for scheduling and runtime symptoms” rather than the cause in this case. The deciding mechanism here is that a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
That statement explains the distinct objective “Distinguish the CNI Pod network from Service discovery and routing” rather than the cause in this case. The deciding mechanism here is that a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
Question 143
A nonprofit engineer alternates between staging and production clusters on one workstation. What verification result would most convincingly distinguish a working solution from a claim?
Explanation
Correct Answer
Run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace. This is the relevant test because a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
Incorrect Answers
This check would help evaluate the distinct objective “Interpret Kubernetes spec and status fields without confusing intent with condition”, but not the required result. For this case, run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace.
This check would help evaluate the distinct objective “Explain the container runtime interface without conflating it with the control plane”, but not the required result. For this case, run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace.
This check would help evaluate the distinct objective “Apply GitOps reconciliation with a version-controlled desired state”, but not the required result. For this case, run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace.
Question 144
A nonprofit engineer alternates between staging and production clusters on one workstation. The change review contains this proposal: “Run a destructive cleanup command immediately after switching VPNs without checking current-context.” What risk matters most?
Explanation
Correct Answer
The command can mutate production objects although the operator intended a disposable laboratory cluster. The shortcut creates this risk because a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
Incorrect Answers
That outcome concerns the distinct objective “Understand open standards and vendor-neutral community collaboration”; it is not the most direct consequence of this shortcut. The relevant consequence is that the command can mutate production objects although the operator intended a disposable laboratory cluster.
That outcome concerns the distinct objective “Identify reconciliation work performed by kube-controller-manager”; it is not the most direct consequence of this shortcut. The relevant consequence is that the command can mutate production objects although the operator intended a disposable laboratory cluster.
That outcome concerns the distinct objective “Use least-privilege kubectl authentication and authorization during routine administration”; it is not the most direct consequence of this shortcut. The relevant consequence is that the command can mutate production objects although the operator intended a disposable laboratory cluster.
Question 145
A nonprofit engineer alternates between staging and production clusters on one workstation. Which implementation together with matching acceptance evidence best meets this case?
Explanation
Correct Answer
Inspect the active kubeconfig context and namespace before applying manifests to staging or production. Acceptance evidence: Run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace. This pairing is justified because a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
Incorrect Answers
This action and check address the distinct objective “Select DaemonSet for node-local agents rather than Deployment replica counts” instead of the stated acceptance requirement. The matching action is to inspect the active kubeconfig context and namespace before applying manifests to staging or production. Its confirming test is to run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace.
This action and check address the distinct objective “Limit workload-to-workload access with explicit NetworkPolicy allow rules” instead of the stated acceptance requirement. The matching action is to inspect the active kubeconfig context and namespace before applying manifests to staging or production. Its confirming test is to run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace.
This action and check address the distinct objective “Apply resource manifests declaratively instead of depending on imperative drift” instead of the stated acceptance requirement. The matching action is to inspect the active kubeconfig context and namespace before applying manifests to staging or production. Its confirming test is to run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace.
Question 146
A college class uses shared kubectl instructions but every learner has different kubeconfig contexts. Which supported Kubernetes practice directly addresses the stated requirement?
Explanation
Correct Answer
The situation is that a college class uses shared kubectl instructions but every learner has different kubeconfig contexts. Inspect the active kubeconfig context and namespace before applying manifests to staging or production. This resolves the issue because a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment. To verify, run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace.
Incorrect Answers
This option addresses the distinct objective “Recognize the kubelet role in local Pod lifecycle management”, not the immediate requirement. Each kubelet watches assigned Pod specifications and coordinates the container runtime, volumes and health information on its node. For the stated case, a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
This option addresses the distinct objective “Use image provenance and policy controls without trusting mutable tags”, not the immediate requirement. Image provenance reduces accidental or malicious image substitution; mutable tags alone cannot prove build integrity or content identity. For the stated case, a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
This option addresses the distinct objective “Apply resource manifests declaratively instead of depending on imperative drift”, not the immediate requirement. Declarative apply records desired configuration and supports repeatable reviewed changes; ad hoc editing of running containers is not persistent configuration management. For the stated case, a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
Question 147
A college class uses shared kubectl instructions but every learner has different kubeconfig contexts. Which causal explanation supports the intended design choice?
Explanation
Correct Answer
The situation is that a college class uses shared kubectl instructions but every learner has different kubeconfig contexts. A kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment. It supports this action: Inspect the active kubeconfig context and namespace before applying manifests to staging or production. To confirm, run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace.
Incorrect Answers
That statement explains the distinct objective “Use an immutable image digest for exact deployment provenance” rather than the cause in this case. The deciding mechanism here is that a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
That statement explains the distinct objective “Distinguish ConfigMaps from Secrets and avoid storing credentials in public configuration” rather than the cause in this case. The deciding mechanism here is that a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
That statement explains the distinct objective “Distinguish service mesh traffic management from external ingress routing” rather than the cause in this case. The deciding mechanism here is that a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
Question 148
A college class uses shared kubectl instructions but every learner has different kubeconfig contexts. Which test provides the strongest evidence of a correct implementation?
Explanation
Correct Answer
The situation is that a college class uses shared kubectl instructions but every learner has different kubeconfig contexts. Run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace. This is the relevant test because a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
Incorrect Answers
This check would help evaluate the distinct objective “Distinguish canary and blue-green delivery strategies from Kubernetes Deployment defaults”, but not the required result. For this case, run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace.
The situation is that a college class uses shared kubectl instructions but every learner has different kubeconfig contexts. This check would help evaluate the distinct objective “Explain the container runtime interface without conflating it with the control plane”, but not the required result. For this case, run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace.
This check would help evaluate the distinct objective “Use annotations for tool metadata rather than workload selection”, but not the required result. For this case, run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace.
Question 149
A college class uses shared kubectl instructions but every learner has different kubeconfig contexts. A shortcut is proposed: “Run a destructive cleanup command immediately after switching VPNs without checking current-context.” Which technical consequence follows most closely?
Explanation
Correct Answer
The situation is that a college class uses shared kubectl instructions but every learner has different kubeconfig contexts. The command can mutate production objects although the operator intended a disposable laboratory cluster. The shortcut creates this risk because a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
Incorrect Answers
That outcome concerns the distinct objective “Use nodeSelector to place a workload on nodes with required labels”; it is not the most direct consequence of this shortcut. The relevant consequence is that the command can mutate production objects although the operator intended a disposable laboratory cluster.
That outcome concerns the distinct objective “Explain metrics, logs and traces as complementary observability signals”; it is not the most direct consequence of this shortcut. The relevant consequence is that the command can mutate production objects although the operator intended a disposable laboratory cluster.
That outcome concerns the distinct objective “Use kubectl get and describe for distinct inspection needs”; it is not the most direct consequence of this shortcut. The relevant consequence is that the command can mutate production objects although the operator intended a disposable laboratory cluster.
Question 150
A college class uses shared kubectl instructions but every learner has different kubeconfig contexts. Which combined solution and independent check are most directly justified?
Explanation
Correct Answer
The situation is that a college class uses shared kubectl instructions but every learner has different kubeconfig contexts. Inspect the active kubeconfig context and namespace before applying manifests to staging or production. Acceptance evidence: Run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace. This pairing is justified because a kubeconfig context binds cluster, identity and default namespace, so command syntax can be valid yet target the wrong environment.
Incorrect Answers
This action and check address the distinct objective “Use namespaces as organizational scopes without treating them as firewalls” instead of the stated acceptance requirement. The matching action is to inspect the active kubeconfig context and namespace before applying manifests to staging or production. Its confirming test is to run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace.
This action and check address the distinct objective “Use kubectl get and describe for distinct inspection needs” instead of the stated acceptance requirement. The matching action is to inspect the active kubeconfig context and namespace before applying manifests to staging or production. Its confirming test is to run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace.
This action and check address the distinct objective “Diagnose CrashLoopBackOff from restart history and previous logs” instead of the stated acceptance requirement. The matching action is to inspect the active kubeconfig context and namespace before applying manifests to staging or production. Its confirming test is to run kubectl config current-context and kubectl config view --minify, then perform a read-only lookup in the expected namespace.
Kubernetes and Cloud Native Associate (KCNA) Practice Tests
- Linux Foundation KCNA Practice Test 13 - 10 Questions (Last Reviewed 08-Nov-2026)
- Linux Foundation KCNA Practice Test 14 - 10 Questions (Last Reviewed 07-Nov-2026)
- Linux Foundation KCNA Practice Test 15 - 10 Questions (Last Reviewed 06-Nov-2026)
- Linux Foundation KCNA Practice Test 16 - 10 Questions (Last Reviewed 05-Nov-2026)
- Linux Foundation KCNA Practice Test 17 - 10 Questions (Last Reviewed 04-Nov-2026)