Sample questions
Certified Kubernetes Administrator CKA practice questions
Which TWO components are part of the Kubernetes control plane? (Select 2)
Cluster Architecture, Installation and ConfigurationeasySee the answer and why each option is right or wrong →A Pod is stuck in Pending state. 'kubectl describe pod' shows the event: '0/4 nodes are available: 1 node had taint {node-role.kubernetes.io/control-plane: }, that the pod didn't t…
You have a cluster with multiple worker nodes. You need to upgrade the cluster from v1.28.0 to v1.29.0 using kubeadm. What is the correct sequence of steps?
Cluster Architecture, Installation and ConfigurationhardSee the answer and why each option is right or wrong →A user needs to deploy a pod that requires access to the Kubernetes API server from within the pod. Which resource should be used to provide authentication credentials automaticall…
Cluster Architecture, Installation and ConfigurationmediumSee the answer and why each option is right or wrong →An administrator runs 'kubectl cordon node1' and then 'kubectl drain node1 --ignore-daemonsets'. What is the effect on node1?
Cluster Architecture, Installation and ConfigurationmediumSee the answer and why each option is right or wrong →Which command creates a ConfigMap named 'app-config' from a file 'config.properties'?
You run 'kubectl get pods' and see a pod in 'CrashLoopBackOff'. What command would you run to see the reason for the crash?
You need to upgrade a Kubernetes cluster from v1.28 to v1.29 using kubeadm. After upgrading the control plane, what should you do on each worker node?
Cluster Architecture, Installation and ConfigurationmediumSee the answer and why each option is right or wrong →A user creates a PersistentVolumeClaim with a storage class 'ssd' that does not exist in the cluster. What will happen when the PVC is created?
A CronJob runs every hour. The job takes 45 minutes to complete. What is the default behavior if the next scheduled time occurs while the previous job is still running?
Given the following YAML manifests in the same namespace: ```yaml apiVersion: v1 kind: Pod metadata: name: my-pod labels: app: my-app spec: containers: - name: app…
Which subcommand of 'kubectl config' is used to switch between different contexts?
Cluster Architecture, Installation and ConfigurationmediumSee the answer and why each option is right or wrong →A pod in the 'production' namespace is in a CrashLoopBackOff state. The pod has been running successfully for several days. You run 'kubectl describe pod app-pod -n production' and…
A pod in the 'production' namespace is in a CrashLoopBackOff state. The pod has been running successfully for several days. You run 'kubectl describe pod app-pod -n production' and…
Which TWO of the following are valid ways to isolate a set of pods from all ingress traffic except from monitoring pods?
Which TWO of the following are valid methods to provide a token to a Pod for authenticating to the Kubernetes API server?
Cluster Architecture, Installation and ConfigurationmediumSee the answer and why each option is right or wrong →What is the DNS name for a Service named 'api' in the 'default' namespace?
Which of the following volume types provides ephemeral storage that shares the pod's lifecycle and is initially empty?
A pod is in ImagePullBackOff state. Which command can you run to get more details about the underlying error?
A pod is running with the default DNS policy. The cluster DNS service is at 10.96.0.10. The node's /etc/resolv.conf has nameserver 8.8.8.8. When the pod tries to resolve an externa…
A node named 'worker-1' is unhealthy. You want to mark it as unschedulable and move workloads to other nodes. Which command sequence is correct?
Cluster Architecture, Installation and ConfigurationmediumSee the answer and why each option is right or wrong →A pod is stuck in Pending state. 'kubectl describe pod' shows the event: '0/3 nodes are available: 3 node(s) didn't match pod anti-affinity rules'. What is the most likely cause?
You run `kubectl port-forward service/my-svc 8080:80`. What does this command do?
You have a Kubernetes cluster with a single control-plane node and multiple worker nodes. You need to upgrade the cluster from v1.28.0 to v1.29.0. Which sequence of steps is correc…
Cluster Architecture, Installation and ConfigurationhardSee the answer and why each option is right or wrong →