100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 90
In namespace `gamma`, a RoleBinding refers to the Role `review-140`, whose rule grants `list` on `jobs` in API group `batch`; its subject is ServiceAccount `gamma/nightly-job`. The binding is in `gamma`, and no other RBAC grants exist. Determine the effective access and the boundaries of this grant. Choose THREE statements.
- This binding alone does not grant `watch` on `jobs` in `gamma`.
- ServiceAccount `gamma/nightly-job` automatically gains `list` on `jobs` in every namespace.
- The binding grants `watch` on `jobs` because the ServiceAccount can perform `list`.
- ServiceAccount `gamma/nightly-job` can perform `list` on `jobs` in `gamma`.
- The same ServiceAccount has no authorization from this binding to perform `list` on `jobs` in `finance`.
- The binding grants `list` on `pods/exec` because it shares the same namespace.
Explanation
Correct Answers
A:RBAC rules are additive and verb-specific; `watch` is absent while `list` is the only listed verb for `jobs`.
D:The RoleBinding in `gamma` selects exactly that ServiceAccount identity and the rule grants `list` on `jobs` within this namespace.
E:A RoleBinding grants permissions only in its own namespace `gamma`, even if it refers to a ClusterRole. For this authorization request, the target grant namespace is gamma, the rule specifies verb list on jobs, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
Incorrect Answers
B:The shown RoleBinding is scoped to `gamma`; a cluster-wide permission on namespaced resources would require a ClusterRoleBinding to an appropriate ClusterRole. For this authorization request, the target grant namespace is gamma, the rule specifies verb list on jobs, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
C:Kubernetes does not infer `watch` from `list`; each verb must be granted explicitly. For this authorization request, the target grant namespace is gamma, the rule specifies verb list on jobs, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
F:The rule names `jobs`, not `pods/exec`; matching namespace alone does not add RBAC resources. For this authorization request, the target grant namespace is gamma, the rule specifies verb list on jobs, the subject is gamma/nightly-job. RBAC evaluates the verb, resource, group, subject and binding scope together.
Question 91
During an incident review, an operator must choose an accurate diagnosis. A newly provisioned Linux node has kubelet installed, but kubeadm preflight cannot connect to any CRI endpoint Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose ONE statement.
- Install an Ingress controller to repair the CRI socket.
- Confirm that a CRI-compatible container runtime is installed and running.
- Create a StorageClass to start the container runtime.
- Change the Service type to LoadBalancer before initializing control plane.
Explanation
Correct Answer
B:kubelet needs a reachable CRI runtime to create and supervise containers.
Incorrect Answers
A:Ingress controllers route HTTP traffic; they do not expose the node container runtime CRI socket.
C:StorageClass provisioning is unrelated to the local kubelet-to-CRI connection.
D:Service exposure has no bearing on kubeadm preflight reaching a runtime socket.
Question 92
Before applying a change, the cluster team checks what the configuration actually permits. A newly provisioned Linux node has kubelet installed, but kubeadm preflight cannot connect to any CRI endpoint Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- Install an Ingress controller to repair the CRI socket.
- Create a StorageClass to start the container runtime.
- Inspect the configured CRI socket path before retrying initialization.
- Change the Service type to LoadBalancer before initializing control plane.
Explanation
Correct Answer
C:kubeadm and kubelet need the actual active runtime endpoint rather than a guessed socket.
Incorrect Answers
A:Ingress controllers route HTTP traffic; they do not expose the node container runtime CRI socket. The prerequisite check or operation is 'Inspect the configured CRI socket path before retrying initialization': Kubeadm and kubelet need the actual active runtime endpoint rather than a guessed socket.
B:StorageClass provisioning is unrelated to the local kubelet-to-CRI connection. The prerequisite check or operation is 'Inspect the configured CRI socket path before retrying initialization': Kubeadm and kubelet need the actual active runtime endpoint rather than a guessed socket.
D:Service exposure has no bearing on kubeadm preflight reaching a runtime socket. The prerequisite check or operation is 'Inspect the configured CRI socket path before retrying initialization': Kubeadm and kubelet need the actual active runtime endpoint rather than a guessed socket.
Question 93
During a remediation drill, the team evaluates the safe next steps and their consequences. A newly provisioned Linux node has kubelet installed, but kubeadm preflight cannot connect to any CRI endpoint Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- Correct the runtime endpoint mismatch before repeating `kubeadm init`.
- Install an Ingress controller to repair the CRI socket.
- Create a StorageClass to start the container runtime.
- Change the Service type to LoadBalancer before initializing control plane.
Explanation
Correct Answer
A:a failing CRI connection is a prerequisite failure; rerunning the same init will not repair the socket.
Incorrect Answers
B:Ingress controllers route HTTP traffic; they do not expose the node container runtime CRI socket. Instead, 'Correct the runtime endpoint mismatch before repeating `kubeadm init`' addresses the failure directly: A failing CRI connection is a prerequisite failure; rerunning the same init will not repair the socket.
C:StorageClass provisioning is unrelated to the local kubelet-to-CRI connection. Instead, 'Correct the runtime endpoint mismatch before repeating `kubeadm init`' addresses the failure directly: A failing CRI connection is a prerequisite failure; rerunning the same init will not repair the socket.
D:Service exposure has no bearing on kubeadm preflight reaching a runtime socket. Instead, 'Correct the runtime endpoint mismatch before repeating `kubeadm init`' addresses the failure directly: A failing CRI connection is a prerequisite failure; rerunning the same init will not repair the socket.
Question 94
During an incident review, an operator must choose an accurate diagnosis. A worker attempts to join an existing kubeadm cluster using a bootstrap token that has expired; the API server is reachable Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose ONE statement.
- Restart CoreDNS to extend the bootstrap token expiry.
- Reuse the expired token until the scheduler runs.
- Create a PodDisruptionBudget for the joining worker.
- Generate a fresh bootstrap token with `kubeadm token create` on a control-plane node.
Explanation
Correct Answer
D:a new valid bootstrap token restores the discovery/initial TLS bootstrap credential.
Incorrect Answers
A:CoreDNS does not issue or extend kubeadm bootstrap tokens.
B:bootstrap token expiration is enforced independently of scheduler activity.
C:PDBs protect voluntary disruptions of application Pods; they do not authorize TLS bootstrap.
Question 95
Before applying a change, the cluster team checks what the configuration actually permits. A worker attempts to join an existing kubeadm cluster using a bootstrap token that has expired; the API server is reachable Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- Use an up-to-date join command containing the API endpoint and CA certificate hash.
- Restart CoreDNS to extend the bootstrap token expiry.
- Reuse the expired token until the scheduler runs.
- Create a PodDisruptionBudget for the joining worker.
Explanation
Correct Answer
A:the joining node must authenticate discovery against the correct control plane and CA.
Incorrect Answers
B:CoreDNS does not issue or extend kubeadm bootstrap tokens. The prerequisite check or operation is 'Use an up-to-date join command containing the API endpoint and CA certificate hash': The joining node must authenticate discovery against the correct control plane and CA.
C:Bootstrap token expiration is enforced independently of scheduler activity. The prerequisite check or operation is 'Use an up-to-date join command containing the API endpoint and CA certificate hash': The joining node must authenticate discovery against the correct control plane and CA.
D:PDBs protect voluntary disruptions of application Pods; they do not authorize TLS bootstrap. The prerequisite check or operation is 'Use an up-to-date join command containing the API endpoint and CA certificate hash': The joining node must authenticate discovery against the correct control plane and CA.
Question 96
During a remediation drill, the team evaluates the safe next steps and their consequences. A worker attempts to join an existing kubeadm cluster using a bootstrap token that has expired; the API server is reachable Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- Create a PodDisruptionBudget for the joining worker.
- Reuse the expired token until the scheduler runs.
- Restart CoreDNS to extend the bootstrap token expiry.
- Check node registration after the new join attempt.
Explanation
Correct Answer
D:successful discovery and TLS bootstrap should produce a node object subject to normal readiness checks.
Incorrect Answers
A:PDBs protect voluntary disruptions of application Pods; they do not authorize TLS bootstrap. Instead, 'Check node registration after the new join attempt' addresses the failure directly: Successful discovery and TLS bootstrap should produce a node object subject to normal readiness checks.
B:Bootstrap token expiration is enforced independently of scheduler activity. Instead, 'Check node registration after the new join attempt' addresses the failure directly: Successful discovery and TLS bootstrap should produce a node object subject to normal readiness checks.
C:CoreDNS does not issue or extend kubeadm bootstrap tokens. Instead, 'Check node registration after the new join attempt' addresses the failure directly: Successful discovery and TLS bootstrap should produce a node object subject to normal readiness checks.
Question 97
During an incident review, an operator must choose an accurate diagnosis. A new kubeadm control-plane node cannot retrieve shared certificates because the temporary uploaded-certificate Secret has expired Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose ONE statement.
- Re-upload certificates using `kubeadm init phase upload-certs --upload-certs` on an existing control plane.
- Use an ordinary worker join and assume it creates API-server certificates.
- Set a Deployment replica count to three to repair the expired certificate bundle.
- Add a NetworkPolicy to lengthen the kubeadm upload Secret TTL.
Explanation
Correct Answer
A:kubeadm uses a time-limited encrypted certificate transfer for subsequent control-plane joins.
Incorrect Answers
B:a worker join does not create the additional control-plane static Pods and shared CA material.
C:kubeadm control-plane static Pods are not managed by an ordinary Deployment.
D:network policies filter traffic and cannot extend bootstrap certificate transfer data.
Question 98
Before applying a change, the cluster team checks what the configuration actually permits. A new kubeadm control-plane node cannot retrieve shared certificates because the temporary uploaded-certificate Secret has expired Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- Add a NetworkPolicy to lengthen the kubeadm upload Secret TTL.
- Set a Deployment replica count to three to repair the expired certificate bundle.
- Use an ordinary worker join and assume it creates API-server certificates.
- Provide a valid `--certificate-key` with the control-plane join command.
Explanation
Correct Answer
D:the joining control-plane node must decrypt the uploaded certificate bundle.
Incorrect Answers
A:Network policies filter traffic and cannot extend bootstrap certificate transfer data. The prerequisite check or operation is 'Provide a valid `--certificate-key` with the control-plane join command': The joining control-plane node must decrypt the uploaded certificate bundle.
B:Kubeadm control-plane static Pods are not managed by an ordinary Deployment. The prerequisite check or operation is 'Provide a valid `--certificate-key` with the control-plane join command': The joining control-plane node must decrypt the uploaded certificate bundle.
C:A worker join does not create the additional control-plane static Pods and shared CA material. The prerequisite check or operation is 'Provide a valid `--certificate-key` with the control-plane join command': The joining control-plane node must decrypt the uploaded certificate bundle.
Question 99
During a remediation drill, the team evaluates the safe next steps and their consequences. A new kubeadm control-plane node cannot retrieve shared certificates because the temporary uploaded-certificate Secret has expired Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose TWO statements.
- Add a NetworkPolicy to lengthen the kubeadm upload Secret TTL.
- Re-upload certificates using `kubeadm init phase upload-certs --upload-certs` on an existing control plane.
- Set a Deployment replica count to three to repair the expired certificate bundle.
- Use an ordinary worker join and assume it creates API-server certificates.
- Use `--control-plane` when adding an additional control-plane node.
Explanation
Correct Answers
B:Kubeadm uses a time-limited encrypted certificate transfer for subsequent control-plane joins. 'Set a Deployment replica count to three to repair the expired certificate bundle' would not achieve the required recovery because Kubeadm control-plane static Pods are not managed by an ordinary Deployment.
E:the flag distinguishes the control-plane join path from a worker join.
Incorrect Answers
A:Network policies filter traffic and cannot extend bootstrap certificate transfer data. Instead, 'Re-upload certificates using `kubeadm init phase upload-certs --upload-certs` on an existing control plane' addresses the failure directly: Kubeadm uses a time-limited encrypted certificate transfer for subsequent control-plane joins.
C:Kubeadm control-plane static Pods are not managed by an ordinary Deployment. Instead, 'Re-upload certificates using `kubeadm init phase upload-certs --upload-certs` on an existing control plane' addresses the failure directly: Kubeadm uses a time-limited encrypted certificate transfer for subsequent control-plane joins.
D:A worker join does not create the additional control-plane static Pods and shared CA material. Instead, 'Re-upload certificates using `kubeadm init phase upload-certs --upload-certs` on an existing control plane' addresses the failure directly: Kubeadm uses a time-limited encrypted certificate transfer for subsequent control-plane joins.
Question 100
During an incident review, an operator must choose an accurate diagnosis. Clients now connect through a new DNS name, but the API-server serving certificate does not list that DNS name as a subject alternative name Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose THREE statements.
- Ensure clients trust the signing CA and then verify the new endpoint name.
- Patch a Service selector to replace the server certificate.
- Disable RBAC to make the API server certificate match the hostname.
- Include the new API endpoint DNS name in the API-server serving-certificate SAN configuration.
- Add a toleration to the client Pod to suppress x509 hostname errors.
- Regenerate the API-server serving certificate with the corrected SAN set rather than blindly renewing it.
Explanation
Correct Answers
A:successful TLS validation requires both trusted issuer and a matching server identity.
D:TLS hostname verification requires the contacted DNS name to appear in an appropriate SAN.
F:kubeadm certs renew derives names from the existing certificate, so adding a new SAN requires the regeneration procedure.
Incorrect Answers
B:Kubernetes Service selection does not rewrite the control-plane TLS certificate.
C:authorization occurs after TLS identity validation and cannot change certificate SANs.
E:Pod placement policy has no effect on server certificate identity checks.
Certified Kubernetes Administrator (CKA) Practice Tests