CKA · domain
scenario questions
Practise Certified Kubernetes Administrator CKA scenario questions practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.
Focused practice
Practice scenario questions questions
Scored sessions drawing only from this domain — pick a length below.
Start 20-question practice test →What this domain covers
What to know about scenario questions
scenario questions questions test whether you can apply the concept in context, not just recognise a definition.
How the topic appears in realistic exam-style scenarios.
Which detail in the question changes the correct answer.
How to eliminate plausible but wrong options.
How to connect the question back to the wider exam objective.
Watch out for
Common scenario questions exam traps
- ▸Answering from memory before reading the full scenario.
- ▸Missing a constraint such as cost, availability, security, scope or command context.
- ▸Choosing a broad answer when the question asks for the most specific fix.
- ▸Ignoring why the wrong options are tempting.
Question index
All scenario questions questions (726)
Click any question to see the full explanation, or start a practice session above.
You are managing a Kubernetes cluster with three worker nodes. A deployment named 'frontend' is configured with 3 replicas. After a node failure, you notice that only 2 pods are running, and the third pod is stuck in 'Pending' state. The remaining nodes have sufficient CPU and memory. You check the deployment events and find no errors. You also verify that the PersistentVolumeClaims (PVCs) used by the deployment are bound. What is the most likely reason the third pod is not scheduled?
Easy2You need to create a Service that exposes port 80 on each node's IP at a static port (30080). Which Service type should you use?
Easy3Which command should you use to view the logs of a container that has previously crashed in a Pod?
Easy4You create a ClusterIP service named 'my-svc' in the 'default' namespace. A pod in the same namespace tries to reach the service using the DNS name 'my-svc'. Which fully qualified domain name (FQDN) should the pod use to resolve the service?
Medium5Which THREE of the following are characteristics of a Kubernetes StatefulSet? (Select THREE)
Medium6A cluster administrator wants to ensure that no pods are scheduled on the master node(s). Which approach is the best practice?
Easy7A 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 external hostname like 'example.com', which DNS server will it query first?
Easy8What is the purpose of the kube-proxy component?
Easy9A CronJob is configured to run every hour. You notice that the job did not run at the scheduled time. What is the most likely reason?
Medium10A node named 'worker-1' is unhealthy. You want to mark it as unschedulable and move workloads to other nodes. Which command sequence is correct?
Medium11A system administrator needs to install a Kubernetes cluster using kubeadm. The control plane node must be initialized with a specific Pod network CIDR of 10.244.0.0/16 for Flannel. Which command should be used?
Easy12A user reports that their application cannot resolve DNS names for services in the cluster. The application runs in a pod with dnsPolicy: ClusterFirst. What is the most likely cause?
Hard13You need to see the startup logs of the kubelet service. Which command should you use?
Easy14You are debugging a Pod that is in 'Pending' state. The output of 'kubectl describe pod' shows: Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning FailedScheduling 2m default-scheduler 0/3 nodes are available: 1 Insufficient cpu, 2 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate. What does this indicate?
Hard15During a cluster upgrade, what is the correct order of operations for upgrading a node?
Medium16A node in the cluster is reporting NotReady. You run 'journalctl -u kubelet' and see repeated errors: 'failed to get system container stats for "/system.slice/kubelet.service": failed to get cgroup stats'. What is the most likely cause?
Medium17Which of the following creates a ConfigMap named 'my-config' from a file 'app.properties'?
Easy18You suspect a DNS issue within the cluster. Which TWO commands can you run from within a pod to test DNS resolution?
Hard19You want to run a batch job that processes a queue and then terminates. The job should be run only once. Which Kubernetes resource should you use?
Easy20Which two of the following are valid methods for service discovery in Kubernetes?
Medium21A NetworkPolicy named 'default-deny-ingress' is applied to all pods in a namespace. The policy has no rules. An administrator then creates a new NetworkPolicy that allows ingress traffic to pods with label 'app: web' from any source using a podSelector with '{}'. Will traffic be allowed to pods labeled 'app: web'?
Hard22A Kubernetes cluster is running with a single control plane node. The administrator wants to add a second control plane node for high availability. What is the first step after the new node has been provisioned with the required software?
Medium23A new Kubernetes administrator runs 'kubeadm join --token <token> <control-plane-ip>:6443 --discovery-token-ca-cert-hash sha256:<hash>' on a worker node. The join fails with 'error execution phase preflight: couldn't validate the identity of the API Server'. What is the most likely cause?
Medium24Which command rolls back a Deployment named 'web' to the previous revision?
Easy25You need to test DNS resolution from within a pod. Which command should you run?
Medium26A pod is stuck in 'Pending' state. Which TWO of the following are common causes?
Medium27Which CronJob schedule expression runs a job every day at midnight (00:00)?
Easy28You are troubleshooting a pod that is failing to start due to a volume mount error. The pod spec references a PersistentVolumeClaim (PVC) named 'data-pvc'. You run 'kubectl get pvc data-pvc -n default' and see the status is 'Pending'. Which of the following is the MOST likely cause?
Medium29A pod is in 'ImagePullBackOff' state. Which TWO are valid first troubleshooting steps?
Easy30Which TWO of the following are valid kube-proxy modes?
Easy31Which of the following is a valid command to create a PersistentVolume named 'pv-demo' using a YAML manifest file named 'pv.yaml'?
Easy32What is the default pod phase when a pod is first created but not yet running?
Easy33A pod is in ImagePullBackOff state. You run 'kubectl describe pod mypod' and see 'Failed to pull image "myapp:latest": rpc error: code = Unknown desc = Error response from daemon: manifest for myapp:latest not found: manifest unknown'. What is the most likely cause?
Medium34A 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?
Medium35A DevOps team needs to deploy a stateful application that requires persistent storage with ReadWriteMany access mode across multiple pods running on different nodes. Which Kubernetes resource should they use to provision the storage?
Medium36Refer to the exhibit. A Kubernetes cluster was initialized using kubeadm with the command shown. After initialization, the cluster nodes are in NotReady state. Which is the most likely missing step?
Hard37Which command correctly backs up etcd data using etcdctl with API version 3?
Easy38Which component runs on every node in a Kubernetes cluster and ensures containers are running in a pod?
Easy39A Pod is running but cannot connect to a Service. You have verified that the Service endpoints are correct. Which of the following is the most likely cause if the Pod is using hostNetwork: true?
Hard40Which THREE of the following are valid methods for service discovery in Kubernetes?
Medium41You are setting up a new Kubernetes cluster using kubeadm. You run 'kubeadm init --pod-network-cidr=10.244.0.0/16' on the control plane node. The command fails with: '[preflight] Some fatal errors occurred: [ERROR CRI]: container runtime is not running: output: time="..." level=fatal msg="validate service connection: CRI v1 runtime API is not implemented for endpoint 'unix:///var/run/containerd/containerd.sock': rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService'"'. What is the most likely cause?
Hard42A pod is in 'ImagePullBackOff' state. You run 'kubectl describe pod' and see the event: 'Failed to pull image "nginx:latest": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 8.8.8.8:53: no such host'. What is the MOST likely cause?
Medium43You are tasked with troubleshooting a production Kubernetes cluster. A user reports that they cannot access a web application running in the cluster. The application is deployed as a Deployment named 'frontend' with 2 replicas, exposed via a Service of type LoadBalancer. You have kubectl access to the cluster. You run 'kubectl get pods -l app=frontend' and see both pods are Running and Ready. You run 'kubectl get svc frontend' and see the Service has an external IP of 192.168.1.100. However, when you curl http://192.168.1.100 from a machine outside the cluster, you get a connection timeout. You are able to curl the pod IPs directly from within the cluster and get a response. Which of the following is the most likely cause of the issue?
Easy44Which of the following YAML snippets correctly defines a Kubernetes Deployment with 3 replicas and a rolling update strategy?
Medium45A ClusterRole named 'pod-reader' exists that grants get, list, and watch permissions on pods. You want to bind this ClusterRole to a user 'john' in the 'development' namespace only. Which resource should you create?
Medium46Which annotation is commonly used to trigger a rollout restart of a Deployment when a ConfigMap is updated?
Easy47Which TWO of the following are true about a HorizontalPodAutoscaler (HPA) using average CPU utilization? (Select TWO)
Hard48A pod 'my-pod' in the 'default' namespace cannot resolve the service 'db-service' in the 'production' namespace. Which DNS name should be used to reach the service from 'my-pod'?
Medium49Which TWO of the following are required for dynamic provisioning of PersistentVolumes using a StorageClass?
Medium50Which of the following volume types is designed to store sensitive information such as passwords or tokens?
Easy51You create a Deployment with 3 replicas and a ClusterIP Service. You notice that some pods are not receiving traffic. What is the most likely cause?
Medium52A ClusterRoleBinding grants cluster-admin access to a user. Which field in the ClusterRoleBinding specifies the user?
Medium53An administrator needs to expand an existing PersistentVolumeClaim. Which TWO conditions must be met?
Hard54A Deployment named 'web-app' has 5 replicas. You want to perform a rolling update with a maximum of 3 pods unavailable during the update and a maximum of 2 extra pods above the desired count. Which YAML snippet correctly sets the rolling update strategy?
Medium55Which THREE are valid ways to inject configuration data into a pod?
Hard56Which of the following is NOT a control plane component in Kubernetes?
Easy57An administrator wants to ensure that a critical Pod always runs on a node that has an SSD. Which approach should be used?
Medium58An administrator needs to create a PersistentVolume with 10Gi capacity, ReadWriteOnce access mode, and a reclaim policy of Retain. Which YAML snippet correctly defines this PV?
Easy59You create a ConfigMap named 'app-config' with key 'database.url'. Which command correctly creates a pod that injects this ConfigMap value as an environment variable named 'DB_URL'?
Medium60Which kubectl command creates a ConfigMap named 'app-config' from a file 'config.properties'?
Easy61Which Service type exposes a Service on each Node's IP at a static port in the range 30000-32767?
Easy62Which TWO of the following are valid ways to expose a Service externally? (Select TWO.)
Medium63You have a DaemonSet that runs on all nodes. You need to ensure it does NOT run on a node labeled 'disk=ssd'. Which field in the DaemonSet spec should you use?
Medium64An application team reports that a Deployment's Pods in namespace 'web' become unreachable after a rolling update, even though 'kubectl get pods' shows them as Running and Ready. The Service 'web-svc' of type ClusterIP exists and has endpoints listed. You exec into a client Pod in the same namespace and run 'curl http://web-svc:8080'; the connection times out. You then run 'kubectl get networkpolicy -n web' and see a policy named 'deny-all-ingress' with podSelector matching the web Pods and policyTypes: Ingress, but no ingress rules. Which of the following is the MOST likely cause of the timeout?
Medium65You want to upgrade the control plane from v1.28.0 to v1.29.0 using kubeadm. After upgrading kubeadm on the control plane node, which command should you run first?
Medium66You run 'kubectl get pods' and see a pod in 'ImagePullBackOff' state. What is the most likely cause?
Easy67Which CSI driver feature must be supported by the driver to allow expanding a PVC while the pod using it is still running?
Hard68You create a Pod with an init container and a main container. The init container runs a script that writes to a shared volume. The main container reads from that volume. However, the Pod is stuck in 'Init:CrashLoopBackOff'. What is the most likely cause?
Hard69You run 'kubectl top nodes' but get 'error: metrics not available yet'. What is the most likely cause?
Medium70Which TWO of the following are valid ways to inject configuration data into a pod? (Select TWO.)
Easy71Your kubeadm cluster was initialized with default certificates. You need to check the expiration of the API server certificate and renew it if necessary. Which TWO commands are appropriate? (Choose TWO.)
Hard72To make a node unschedulable without evicting existing pods, which command should be used?
Medium73An admin runs 'kubectl get pods' and sees a pod in the 'Pending' state. Which is the most likely cause?
Medium74A cluster administrator wants to ensure that a set of batch processing Pods are preemptible and should not cause disruption to other critical workloads. Which combination of scheduling features should be used?
Hard75Which THREE of the following are CNI plugins?
Easy76A Deployment has been updated with a new image, but the rollout is stuck. You run 'kubectl rollout status deployment/my-app' and see 'Waiting for rollout to finish: 2 out of 5 new replicas have been updated...'. The deployment's strategy is RollingUpdate with maxSurge: 25% and maxUnavailable: 25%. What is the most likely cause?
Medium77Which of the following is NOT a valid Service type in Kubernetes?
Easy78You 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?
Hard79Which TWO of the following statements about StorageClass are correct? (Select two.)
Medium80Which TWO of the following are valid ways to create a Role in the 'default' namespace that grants get and list on pods?
Medium81An administrator needs to allow a service account 'monitor-sa' in namespace 'monitoring' to read pods across all namespaces. Which RBAC resources should be created?
Medium82You are the administrator of a cluster that uses an external etcd cluster. The kube-apiserver manifest on the control-plane node contains the flag `--etcd-servers=https://10.0.0.5:2379`. You need to add a second etcd endpoint at `https://10.0.0.6:2379` to increase availability. Where should you make this change?
Medium83You have a pod with resource requests: cpu: 500m, memory: 128Mi. The node has 4 CPU cores and 8Gi memory. What is the maximum number of such pods that can be scheduled on this node based on CPU only?
Medium84Which kube-proxy mode supports connection-based load balancing using Linux IPVS?
Easy85A Kubernetes cluster has a deployment with 3 replicas. After a node failure, you notice that only 2 pods are running, and the deployment has not rescheduled the missing pod. What is the most likely cause?
Easy86You are a cluster administrator managing a multi-node Kubernetes cluster version 1.22. The cluster runs critical applications in the 'production' namespace. You have been asked to upgrade the control plane node to version 1.23 while minimizing downtime. The cluster uses a single control plane node (not HA). You have already backed up etcd and verified the backup is valid. You have also reviewed the upgrade notes and there are no breaking changes that affect your workloads. You have drained the control plane node and ensured all pods are evicted. The node is now in 'Ready,SchedulingDisabled' state. You then run 'kubeadm upgrade plan' and see that upgrade to v1.23.0 is available. Next, you run 'kubeadm upgrade apply v1.23.0'. The command completes successfully. However, when you try to uncordon the node with 'kubectl uncordon <node>', you get an error: 'error: unable to update node: the object has been modified; please apply your changes to the latest version and try again'. What is the most likely cause and the correct next step?
Hard87You are troubleshooting a node that is in 'NotReady' state. Which command should you use to check the kubelet logs for errors?
Easy88A new StorageClass 'fast' is created with volumeBindingMode: WaitForFirstConsumer. A PVC using this StorageClass is created but no pod consumes it. What is the state of the PVC immediately after creation?
Medium89Which TWO of the following are valid methods to diagnose why a node is in 'NotReady' state?
Medium90Which resource is used to configure TLS termination and path-based routing for HTTP(S) traffic into a cluster?
Easy91You see events like 'Failed to pull image' when running 'kubectl get events'. Which command can you use to get more detailed information about a specific pod's events?
Easy92You are preparing to upgrade a Kubernetes cluster from v1.27 to v1.28 using kubeadm. What is the correct order of operations for upgrading the control plane nodes?
Medium93A pod is stuck in Pending state. 'kubectl describe pod' shows '0/1 nodes are available: 1 node(s) had taint {key=value: NoSchedule}, 1 node(s) had taint {node.kubernetes.io/unreachable: }. What does this indicate?
Medium94You run 'kubectl get nodes' and one node shows 'NotReady'. You SSH into the node and run 'systemctl status kubelet'. The output shows 'active (running)'. What should you check NEXT?
Medium95Which TWO of the following are valid methods to expose ConfigMap data to pods?
Easy96What is the default port for the Kubernetes API server?
Easy97A pod is in CrashLoopBackOff state. Which command shows the last termination reason?
Easy98A StatefulSet named 'web' uses volumeClaimTemplates to create a PVC named 'data' with storage class 'ssd'. The StatefulSet has 3 replicas. After scaling down to 2 replicas, what happens to the PVC of the third pod (web-2)?
Hard99Which command initializes a Kubernetes control plane node using kubeadm?
Easy100You create a StorageClass with volumeBindingMode: WaitForFirstConsumer. A PVC using this StorageClass is created but remains in 'Pending' state. The PVC expects a node with label 'disktype=ssd'. A suitable node exists. What is the MOST likely reason the PVC is still Pending?
Hard101Which THREE are valid methods to provide authentication to the Kubernetes API server? (Select three.)
Hard102A Kubernetes cluster has a Service named 'web-svc' of type ClusterIP in the 'production' namespace. The Service selects pods with label 'app=web'. A NetworkPolicy in the same namespace is applied with the following spec: ```yaml apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: allow-web spec: podSelector: matchLabels: app: web policyTypes: - Ingress ingress: - from: - podSelector: matchLabels: role: frontend ``` A pod with label 'role=frontend' in the 'staging' namespace attempts to connect to 'web-svc.production.svc.cluster.local' on port 80. What is the result?
Medium103A NetworkPolicy allows ingress from pods with label 'role: frontend'. Which field is used to select those pods?
Medium104You need to schedule a pod on a node with label 'disktype=ssd'. Which field should you add to the pod spec?
Medium105Which TWO of the following are valid commands to check resource usage of pods?
Easy106Which TWO of the following are valid reclaim policies for a PersistentVolume? (Select TWO)
Medium107Refer to the exhibit. A new worker node (node2) has been added to the cluster. It shows NotReady status, and a CertificateSigningRequest (CSR) is pending. What step must the cluster administrator take to make node2 ready?
Hard108You apply the following NetworkPolicy: ```yaml apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: deny-all spec: podSelector: {} policyTypes: - Ingress - Egress ``` What is the result?
Hard109A developer creates a YAML manifest for a pod that uses a PersistentVolumeClaim. The PVC requests 5Gi of storage but the only available PV has 10Gi. What will happen when the pod is created?
Medium110You have a Deployment with 5 replicas. During a rolling update, you want to ensure that at most 3 pods are unavailable at any time. Which field should you set in the Deployment's strategy?
Medium111A pod with priorityClassName: high is pending. You describe the pod and see the event: '0/3 nodes are available: 3 node(s) didn't match pod affinity/anti-affinity, 1 node(s) had taint {node-role.kubernetes.io/control-plane: }, that the pod didn't tolerate.' The pod has required anti-affinity to avoid co-location with pods from the same app. How can you get the pod scheduled?
Hard112Which of the following are valid methods to troubleshoot a Node that is 'NotReady'? (Select all that apply)
Medium113You need to prepare a worker node for maintenance. Which TWO actions should you perform? (Choose TWO.)
Hard114What is the default DNS name for a service named 'my-svc' in namespace 'default'?
Easy115Which THREE components run on every worker node in a Kubernetes cluster? (Choose THREE.)
Easy116What is the default kube-proxy mode in modern Kubernetes clusters?
Medium117A node in your cluster is reporting 'NotReady'. You SSH into the node and run 'systemctl status kubelet'. The output shows 'Active: inactive (dead)'. Which command should you run FIRST to attempt to resolve this?
Hard118A Deployment 'web' has replicas=3 and update strategy RollingUpdate with maxSurge=50% and maxUnavailable=0. You update the container image. During the rollout, what is the maximum number of pods that can be running simultaneously?
Medium119An administrator runs 'kubectl get pvc' and sees a PVC with status 'Lost'. What does this status indicate?
Medium120You have a ClusterRole named 'deployer' that allows creating Deployments and Services. You want to grant a ServiceAccount 'ci-cd' in namespace 'app' the permissions defined in this ClusterRole. Which TWO resources are needed? (Choose TWO.)
Medium121You are unable to resolve a Service DNS name from within a pod. To test DNS resolution, which command should you run inside the pod?
Medium122A Kubernetes cluster uses Calico as the CNI plugin. Two pods on different nodes cannot communicate, but pods on the same node can. Network policies are not enforced. What is the most likely cause?
Hard123A cluster administrator creates a PersistentVolume with the following YAML: apiVersion: v1 kind: PersistentVolume metadata: name: pv-example spec: capacity: storage: 1Gi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain hostPath: path: /data/pv A user creates a PersistentVolumeClaim requesting 500Mi with access mode ReadWriteOnce and no storage class. The PVC remains in Pending state. What is the most likely cause?
Medium124Which kubectl command is used to view the logs of a container that has previously crashed in a pod?
Easy125A pod is in 'Pending' state. 'kubectl describe pod' shows: '0/3 nodes are available: 1 Insufficient memory, 2 node(s) had taint {node-role.kubernetes.io/control-plane: }, that the pod didn't tolerate.' Which THREE actions would resolve the issue? (Choose three)
Medium126A Kubernetes cluster has three control plane nodes and five worker nodes. The kube-apiserver is failing to start on one control plane node with the error 'etcdserver: request timed out'. The etcd cluster is healthy with three members. Which of the following is the most likely cause?
Hard127A Pod with a restartPolicy of 'OnFailure' exits with code 0. What will happen?
Easy128An administrator applies the following YAML: --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: my-pvc spec: accessModes: - ReadWriteOnce resources: requests: storage: 5Gi storageClassName: "" --- What does setting storageClassName to an empty string achieve?
Medium129You have a CronJob that runs a batch job every 5 minutes. The job takes about 2 minutes to complete. However, if a job takes longer than 5 minutes, you want to prevent a new job from starting until the previous one finishes. Which CronJob field should you configure?
Medium130You have a service account named 'my-sa' in the 'default' namespace. You want to mount its token into a pod automatically. Which field in the pod spec achieves this?
Medium131You apply the following NetworkPolicy to namespace 'ns1': apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: deny-ingress spec: podSelector: {} policyTypes: - Ingress ingress: [] What effect does this policy have?
Hard132You need to check the logs of a container that previously crashed. The pod is currently running, but the previous instance of the container exited with an error. Which command will show you the logs from the crashed container?
Hard133An administrator needs to upgrade a Kubernetes cluster from v1.28 to v1.29 using kubeadm. Which of the following steps is performed FIRST?
Medium134A DevOps engineer notices that the kubelet on a node is unable to register with the Kubernetes API server. The kubelet logs show 'Failed to get bootstrap CA certificate' and the node is not yet part of the cluster. What is the most likely cause?
Hard135A cluster administrator needs to provide storage to a pod that must read and write files, but the data does not need to persist beyond the pod's lifecycle. Which volume type should be used?
Hard136Which of the following commands can be used to check the endpoints of a service named 'my-service'?
Medium137You run 'kubectl top nodes' and it returns an error: 'error: metrics not available yet'. What does this indicate?
Easy138Which TWO statements about emptyDir volumes are correct?
Medium139An admin attempts to restore an etcd snapshot using 'etcdctl snapshot restore' but encounters an error. Which environment variable must be set for etcdctl to work with v3 API?
Hard140A DevOps engineer is designing a Kubernetes cluster for a production environment. Which of the following is a best practice for etcd deployment?
Medium141A Pod is configured with a volume that uses a ConfigMap. The ConfigMap is updated after the Pod is running. How can the Pod access the updated data without restarting?
Medium142You have a multi-node cluster. One node shows 'NotReady'. You run 'journalctl -u kubelet' on that node and see 'network plugin is not ready'. What is the most likely cause?
Hard143A StatefulSet named 'db' has 3 replicas. You need to update the pod template to change the resource limits. After applying the change, you run 'kubectl rollout status sts db' and it hangs. What is the most likely reason?
Hard144Which TWO of the following are common causes of CrashLoopBackOff? (Choose two)
Medium145A pod is in 'Pending' state. After running 'kubectl describe pod', you see the event: '0/3 nodes are available: 3 PersistentVolumeClaim is not bound'. What is the most likely cause?
Medium146You need to investigate why a service is not reachable from within the cluster. Which of the following is the first step?
Medium147Which TWO of the following are valid reclaim policies for a PersistentVolume?
Medium148A StatefulSet named 'web' uses volumeClaimTemplates to dynamically provision PersistentVolumeClaims for each replica. The cluster runs on AWS with the EBS CSI driver. How many PersistentVolumeClaims will be created if the StatefulSet has 3 replicas and the volumeClaimTemplates specify a single template?
Medium149Which Service type is used to expose a service externally with a cloud provider's load balancer?
Easy150You need to check the CPU and memory usage of all pods in the 'production' namespace. Which command should you use?
Easy151A 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 see the message: 'OOMKilled'. What is the MOST appropriate action to resolve this issue?
Medium152A pod is failing to start with the error 'CrashLoopBackOff'. You check the logs with 'kubectl logs pod' and see nothing. What is the most likely reason?
Medium153You need to expose a Service externally using an Ingress. The Ingress controller requires a specific IngressClass. How do you specify the IngressClass in the Ingress resource?
Medium154You want to mount a Secret named 'db-secret' as a volume in a pod. Which volume type should you use in the pod spec?
Medium155A cluster administrator needs to allow pods labeled 'app=web' in namespace 'frontend' to receive TCP traffic on port 443 only from pods labeled 'app=proxy' in namespace 'backend'. The cluster uses the default CNI plugin that enforces NetworkPolicy. The administrator creates a NetworkPolicy in the 'frontend' namespace with podSelector matching 'app=web', policyTypes: ['Ingress'], and an ingress rule with from: [{namespaceSelector: {matchLabels: {name: 'backend'}}, podSelector: {matchLabels: {app: 'proxy'}}}], ports: [{protocol: 'TCP', port: 443}]. However, the namespace 'backend' is not labeled with 'name=backend'. What is the effect of this policy?
Medium156You have a Deployment with the following resource limits for containers: memory: 256Mi. The pod is repeatedly killed with OOMKilled. You need to change the limit to 512Mi. Which field should you modify in the Deployment YAML?
Hard157Which TWO statements about PersistentVolume (PV) reclaim policies are correct?
Medium158You want to see the last 50 lines of logs from a pod named 'api-pod' for the container 'api-container'. Which command accomplishes this?
Easy159Which TWO components are part of the Kubernetes control plane? (Choose TWO.)
Medium160A Kubernetes cluster was upgraded from v1.28 to v1.29. After the upgrade, nodes report NotReady. You check kubelet logs and see: 'error: failed to run Kubelet: misconfiguration: kubelet cgroup driver: "systemd" is different from docker cgroup driver: "cgroupfs"'. What is the most likely cause?
Medium161A developer runs `kubectl run nginx --image=nginx --port=80` and then `kubectl expose pod nginx --port=80 --target-port=80 --type=NodePort`. What is the name of the created Service?
Medium162What is the default reclaim policy for a PersistentVolume?
Easy163Which three are possible reasons for a pod being in Pending state? (Choose three.)
Medium164A StatefulSet named 'web' with spec.replicas=3 uses the default pod management policy (OrderedReady). The StatefulSet has persistent volume claims. You run 'kubectl scale statefulset web --replicas=5'. Which statement is TRUE about the new pods?
Hard165What is the default DNS name for a Service named 'my-service' in namespace 'my-ns'?
Easy166Which TWO of the following are responsibilities of the kube-controller-manager?
Medium167You run 'kubectl get pods' and see a pod in 'ImagePullBackOff' state. Which command would help you determine the exact reason for the image pull failure?
Medium168A StatefulSet named 'mysql' is deployed with 3 replicas. A developer reports that the pod 'mysql-0' is failing due to persistent volume issues. After fixing the underlying storage, they want to recreate 'mysql-0' while preserving its stable network identity. What is the correct approach?
Medium169An administrator creates a PersistentVolume named 'pv-nfs' with a reclaim policy of 'Retain'. After a user deletes the PVC bound to this PV, what state does the PV enter?
Medium170Which command initializes a new Kubernetes control plane node using kubeadm?
Easy171A PersistentVolume is created with the following spec: persistentVolumeReclaimPolicy: Retain claimRef: namespace: default name: my-pvc After the PVC 'my-pvc' is deleted, what happens to the PV?
Hard172A developer is creating a Pod with a single container that should restart only if the process exits with non-zero. Which restartPolicy should be used?
Medium173You have a Pod that is stuck in Pending state. Running 'kubectl describe pod' shows events: '0/4 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/control-plane: }, 3 node(s) had taint {key: value}, that the pod didn't tolerate.' How can you resolve this issue?
Hard174You have a DaemonSet that runs a logging agent. You want to ensure it only runs on nodes with GPU. Which field should you set in the DaemonSet's pod template spec?
Medium175Which TWO commands can be used to test DNS resolution for a Service named 'my-svc' in namespace 'default' from within a temporary pod? (Choose 2)
Medium176A pod is configured to use a PersistentVolumeClaim (PVC). The PVC is bound to a PersistentVolume (PV) that uses a cloud disk. The pod fails to start with the error 'MountVolume.SetUp failed for volume ... mount failed: exit status 32'. What is the most likely cause?
Easy177A node in the cluster is showing NotReady status. Which steps should you take to diagnose the issue? (Select the BEST initial step.)
Medium178What is the purpose of a PriorityClass in Kubernetes scheduling?
Easy179You are troubleshooting a pod that is in 'Pending' state. Running 'kubectl describe pod' shows the event: '0/3 nodes are available: 3 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate.' What is the most likely cause?
Hard180You have a HorizontalPodAutoscaler targeting a Deployment with minReplicas=2 and maxReplicas=10. currentReplicas is 2. The HPA uses average CPU utilization across pods, targetting 80% of the requested CPU. Pod CPU request is 500m. The current average CPU utilization is 90%. What will the HPA do?
Medium181You are upgrading a cluster from v1.28 to v1.29. You have already drained and upgraded all worker nodes. The control plane nodes have not been upgraded yet. 'kubectl get nodes' shows the control plane nodes are still v1.28. What is the correct next step?
Medium182An administrator needs to expand a PersistentVolumeClaim (PVC) that is currently bound to a PersistentVolume (PV). The PV is provisioned by a storage class that supports volume expansion. What must the administrator do to increase the PVC's storage size?
Medium183Which two of the following are valid methods for exposing a Service externally in Kubernetes? (Select TWO.)
Medium184A pod runs but you cannot connect to its container port from another pod in the same namespace. 'kubectl exec' into the pod and 'curl localhost:8080' works. What is the MOST likely cause?
Hard185Which of the following Service types exposes a Service on a static port on each node's IP?
Easy186You run `kubectl get pods` and get an error: 'error: You must be logged in to the server (Unauthorized)'. What is the most likely cause?
Medium187An application requires a persistent volume that can be shared across multiple Pods running on different nodes, with read-write access from all Pods simultaneously. Which access mode should be specified in the PersistentVolumeClaim?
Medium188You want to expose a Deployment named 'web' on port 80 internally within the cluster. Which command creates a ClusterIP Service?
Medium189Which TWO of the following are valid ways to expose environment variables from a ConfigMap to a pod? (Select TWO.)
Medium190Which THREE of the following are valid steps to troubleshoot a Node in NotReady state? (Choose three)
Hard191A user creates a PersistentVolumeClaim with a storage class 'ssd' that does not exist in the cluster. What will happen when the PVC is created?
Medium192A NetworkPolicy named 'deny-all' is applied to a namespace with podSelector: {}. The policy has no ingress rules. What is the effect?
Hard193You are troubleshooting a network connectivity issue between two pods in different namespaces. The pods have the following labels: pod-a in namespace 'foo' with labels {app: web}, pod-b in namespace 'bar' with labels {app: db}. You verify that both pods have IP addresses and can ping the Kubernetes service IP. However, pod-a cannot connect to pod-b on port 5432. What should you check first?
Hard194A user reports that they cannot access a Service of type ClusterIP from within the cluster. The Service selects pods that are running and responding. Which of the following is the MOST likely cause?
Hard195You want to ensure that a pod only runs on nodes that have a GPU. Nodes with GPUs are labeled with 'gpu=true'. Which scheduling constraint should you use?
Medium196You run 'kubectl get pods' and see that a pod is in CrashLoopBackOff. Which THREE of the following are valid next steps? (Select 3)
Hard197You run 'kubectl get nodes' and see that one node is marked as 'NotReady'. Which component is likely failing on that node?
Medium198You are a platform engineer managing a Kubernetes cluster with 5 worker nodes (node1-node5). The cluster runs a mix of stateless web services and stateful databases. Users report that a critical database Pod (part of a StatefulSet) is frequently evicted during node maintenance. The StatefulSet has a single replica. You need to improve the availability of this database Pod. The current configuration: the Pod has resource requests (2 CPU, 4Gi memory) and limits (4 CPU, 8Gi memory). The cluster uses the default scheduler with no custom policies. Nodes have varying capacities: node1 and node2 have 8 CPU/32Gi memory, node3-node5 have 4 CPU/16Gi memory. During rolling node reboots, the database Pod gets evicted and takes a long time to reschedule because no node has enough resources. What should you do to minimize downtime and ensure the Pod is rescheduled promptly after eviction?
Medium199A pod is stuck in 'Pending' state. 'kubectl describe pod' shows '0/1 nodes are available: 1 node(s) had taint {node.kubernetes.io/unreachable: }, that the pod didn't tolerate'. What does this indicate?
Hard200An administrator creates a PersistentVolume with the following YAML: ```yaml apiVersion: v1 kind: PersistentVolume metadata: name: pv-example spec: capacity: storage: 5Gi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain hostPath: path: /mnt/data ``` Which of the following is true about this PersistentVolume?
Easy201Which of the following service types exposes a service on a static port on each node's IP address?
Easy202A pod is stuck in Pending state. You describe the pod and see: '0/4 nodes are available: 4 node(s) had taint {node.kubernetes.io/not-ready: }, that the pod didn't tolerate.' What is the most likely reason?
Hard203An administrator is setting up RBAC to allow a CI/CD pipeline to create and delete pods only in the 'ci' namespace. Which combination of resources should be created?
Hard204A worker node in your cluster has been marked NotReady for several minutes. You SSH into the node and find that the kubelet process is not running. You start the kubelet service, but it immediately exits. Running 'journalctl -u kubelet -n 50' shows repeated errors about being unable to load the kubeconfig file at /etc/kubernetes/kubelet.conf. Which of the following is the MOST likely cause?
Medium205Which TWO of the following are valid ways to expose a ConfigMap to a pod? (Select TWO)
Easy206A StorageClass named 'fast-ssd' uses the provisioner 'kubernetes.io/gce-pd' and has volumeBindingMode: WaitForFirstConsumer. A PVC 'my-pvc' requests 100Gi storage from this StorageClass. A pod using the PVC is scheduled to a node in zone 'us-central1-a'. When is the PV provisioned?
Medium207A cluster has multiple kubeconfig files. You want to set the current context to 'admin@production' for all future kubectl commands. Which command should you run?
Medium208Which THREE of the following are common causes for a Pod to remain in Pending state? (Select THREE.)
Medium209A pod needs to share data between two containers during their lifecycle, but the data does not need to persist after the pod is deleted. Which volume type is most appropriate?
Medium210You run 'kubectl get nodes' and one node shows 'NotReady'. You SSH into the node and run 'systemctl status kubelet'. Kubelet is active but 'journalctl -u kubelet -n 50' shows 'network plugin is not ready: cni config uninitialized'. What is the most likely cause?
Hard211Which command shows CPU and memory usage of nodes in the cluster?
Easy212Which THREE of the following are valid taint effects that can be applied to a node? (Select 3)
Hard213What is the purpose of the kube-proxy component in a Kubernetes cluster?
Easy214A pod is in ImagePullBackOff. Which TWO of the following are possible causes? (Select 2)
Medium215You want to configure NetworkPolicy to allow ingress traffic only from pods with label 'role: frontend' in the same namespace. Which podSelector should be in the ingress rule?
Hard216You have a pod that is in 'CrashLoopBackOff' state. Which command should you use to view the logs from the previous instance of the container?
Easy217Which of the following is a required field when defining a PersistentVolume?
Medium218You have a PVC that is bound to a PV with a filesystem volume mode. You want to use the volume as a block device in a pod. What should you do?
Hard219You are troubleshooting a node that is 'NotReady'. Which THREE of the following are possible causes? (Choose three.)
Hard220A pod has resource requests: cpu: 250m, memory: 128Mi. The node has 2 CPU cores and 4Gi memory. What is the maximum number of such pods that can fit on this node based solely on CPU requests?
Hard221Your team is deploying a new application that consists of a web frontend and a backend API. The frontend must be accessible from outside the cluster, and the backend should only be accessible from within the cluster. The cluster has multiple namespaces: 'frontend' and 'backend'. You have been asked to design the deployment. The frontend Deployment should have 5 replicas, and the backend Deployment should have 3 replicas. Additionally, you need to ensure that the frontend pods can communicate with the backend pods using a stable DNS name. You also want to isolate the backend from other namespaces. Which set of resources should you create?
Medium222You need to implement a PriorityClass named 'high-priority' with value 1000 and mark it as non-preempting. Which YAML field should you set to true?
Medium223A developer created a ServiceAccount named 'app-sa' in the 'dev' namespace. They want a pod to use this ServiceAccount. Which field in the pod spec should be set?
Medium224A CKA candidate runs 'kubectl get nodes' and sees that a worker node is in the 'NotReady' state. Which command should be used to diagnose the node's kubelet health?
Easy225A node has a taint 'gpu=true:NoSchedule'. A pod has a toleration 'key: gpu, operator: Exists, effect: NoSchedule'. Will the pod be scheduled on the node?
Hard226A Job named 'data-processor' completes successfully. You want to run it again with the same configuration. What is the correct way to rerun the Job?
Medium227Which TWO of the following are valid access modes for a PersistentVolume in Kubernetes? (Select two.)
Medium228You have a pod that is CrashLoopBackOff. The logs show 'error: dial tcp: lookup service.default.svc.cluster.local: no such host'. What is the most likely cause?
Hard229A pod's YAML specifies 'restartPolicy: Never' and the container exits with code 0. What state will the pod be in?
Hard230You are troubleshooting a pod that cannot start. Running 'kubectl describe pod' shows the event: 'Failed to pull image "myregistry.io/myapp:1.0": rpc error: code = Unknown desc = Error response from daemon: manifest for myregistry.io/myapp:1.0 not found'. What is the MOST likely cause?
Hard231What is the default kube-proxy mode in Kubernetes v1.29?
Easy232Which Service type exposes a Service externally via a cloud provider's load balancer?
Easy233Which of the following volume types provides ephemeral storage that shares the pod's lifecycle and is initially empty?
Medium234A node is 'NotReady'. Which THREE steps should you take to troubleshoot?
Medium235You need to expose multiple HTTP services on a single IP address with path-based routing. Which resource should you use?
Medium236You update a NetworkPolicy to add an egress rule. After applying, pods affected by the policy can no longer reach external IPs. What is the most likely reason?
Medium237A team is designing a storage solution for a Cassandra cluster on Kubernetes. Each pod must have its own dedicated storage, and the cluster must be able to scale up and down dynamically. Which Kubernetes resource should be used to manage the storage?
Medium238You are a cluster administrator managing a production Kubernetes cluster that hosts a stateful application using StatefulSets with PersistentVolumeClaims (PVCs) backed by a cloud provider's persistent disk. A developer reports that a new pod in the StatefulSet is stuck in 'Pending' state. You describe the StatefulSet and see that it has 3 replicas. Two pods are Running, but the third pod (pod-2) is Pending. You check the PVC for pod-2 and see it is 'Pending'. The StorageClass uses 'WaitForFirstConsumer' volume binding mode. The node where pod-2 should run has sufficient resources. Other PVCs in the same namespace bound successfully. What is the most likely cause of the pending PVC and pod?
Easy239A NetworkPolicy named 'deny-all' is created with an empty podSelector and no rules. What does this policy accomplish?
Hard240Which command creates a Job that runs a single pod to execute the command 'echo Hello'?
Easy241A pod is in ImagePullBackOff state. Which command is MOST useful to diagnose the issue?
Medium242You run 'kubectl get pods' and see a pod with status 'ImagePullBackOff'. Which of the following is a possible cause?
Hard243You try to run 'kubectl logs mypod' and get the error: 'Error from server (BadRequest): container "myapp" in pod "mypod" is waiting to start: PodInitializing'. What does this mean?
Medium244A pod in the 'production' namespace is in CrashLoopBackOff state. Running 'kubectl describe pod web-app -n production' shows the event 'OOMKilled'. What is the most appropriate action to resolve this issue?
Medium245You need to check the memory usage of all pods in the 'production' namespace. Which command fulfills this requirement?
Medium246A pod cannot resolve a service DNS name. The cluster uses CoreDNS. Which of the following is the most likely cause if the pod's /etc/resolv.conf contains 'nameserver 10.96.0.10' and the CoreDNS pod is running?
Hard247Which command is used to take a snapshot of etcd using etcdctl?
Easy248Which TWO of the following kubectl commands can be used to view the logs of a container in a pod? (Choose two.)
Easy249A Pod is in 'CrashLoopBackOff' state. You run 'kubectl logs <pod> --previous' and see an error about a missing environment variable. The Pod spec defines the environment variable in a ConfigMap. What is the best next step to diagnose the issue?
Hard250Which component is responsible for maintaining network rules on each node?
Medium251Which TWO commands can be used to interact with etcd snapshot operations? (Select TWO.)
Medium252A 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 automatically?
Medium253A node in your cluster is reporting 'NotReady' status. You log into the node and run 'systemctl status kubelet'. The kubelet service is not running. Which command should you use to start the kubelet and enable it to start on boot?
Easy254A node in the cluster has been cordoned. Which of the following is true about the node?
Medium255Which THREE of the following are valid commands to troubleshoot network connectivity between pods? (Select 3)
Hard256A cluster administrator notices that nodes are not joining the cluster after a kubeadm init. The kubelet logs show: 'failed to run Kubelet: could not init service: open /var/lib/kubelet/config.yaml: permission denied'. What is the most likely cause?
Hard257After deploying a new Deployment, you run 'kubectl get events' and see 'FailedScheduling' events. What is a possible cause?
Medium258Which TWO of the following are control plane components?
Easy259Which TWO statements about DaemonSets are correct? (Select 2)
Medium260An administrator runs 'kubeadm init' on a machine that previously had a Kubernetes cluster. The command fails with the above errors. What is the best course of action?
Hard261What is the function of the 'kube-scheduler' in Kubernetes?
Easy262You need to schedule a pod to a specific node named 'worker-2' for testing purposes. Which field should you set in the pod spec?
Medium263You are upgrading a Kubernetes cluster from version 1.28 to 1.29. What is the correct order of steps?
Hard264Which reclaim policy will cause the underlying storage to be deleted when the associated PersistentVolume is released from a PersistentVolumeClaim?
Easy265You have a NodePort service. Which kube-proxy mode allows for better performance and more sophisticated load balancing algorithms like 'least connection'?
Hard266An administrator backs up etcd data using 'ETCDCTL_API=3 etcdctl snapshot save /backup/etcd-snapshot.db'. Which command correctly restores this snapshot on a new etcd instance?
Hard267A 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 tolerate, 3 Insufficient cpu.' Which of the following is the most likely combination of issues?
Hard268A DaemonSet is expected to run on all nodes, but a particular node does not have the pod. The node is Ready and has no taints. You run 'kubectl describe daemonset <name>' and see 'MISSING' for that node. What is a likely cause?
Medium269Which of the following Service types does NOT assign a ClusterIP to the Service?
Easy270A pod named 'app' is not starting. You run 'kubectl describe pod app' and see the event: 'MountVolume.SetUp failed for volume "pvc-volume" : rpc error: code = NotFound desc = volume not found'. What is the most likely issue?
Easy271Which of the following commands will list all PersistentVolumeClaims in a cluster?
Easy272Which TWO of the following are control plane components? (Select 2)
Easy273You run 'kubectl get pods' and see a pod named 'db' in CrashLoopBackOff. 'kubectl logs db' shows nothing. 'kubectl logs db --previous' shows 'Error: database connection failed'. What is the most likely cause?
Medium274A Service of type ClusterIP is not reachable from within the cluster. Pods backing the Service are running and healthy. What is the most likely cause?
Hard275Which THREE of the following are true about expanding a PersistentVolumeClaim?
Hard276Which of the following is a valid CNI plugin for Kubernetes networking?
Easy277An administrator is tasked with setting up a new Kubernetes cluster using kubeadm. They have two nodes: one control plane and one worker. After initializing the control plane with 'kubeadm init', the worker node fails to join with the error 'error execution phase preflight: [preflight] Some fatal errors occurred: [ERROR CRI]: container runtime is not running'. What should the administrator check first?
Easy278An administrator runs 'kubectl get nodes' and sees that one node is in the 'NotReady' state. Which component should be checked FIRST to diagnose the issue?
Hard279An administrator runs `kubectl port-forward service/my-svc 8080:80`. What does this command do?
Medium280Which access mode allows multiple pods running on different nodes to read from and write to a PersistentVolume at the same time?
Easy281A Pod is in Pending state for a long time. 'kubectl describe pod' shows the event: '0/3 nodes are available: 3 node(s) had taints that the pod didn't tolerate'. What is the most likely issue?
Easy282A Pod is stuck in 'Pending' state. You run 'kubectl describe pod my-pod' and see the event: '0/3 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate, 2 Insufficient cpu.' The pod has resource requests: cpu: 2, memory: 1Gi. The cluster has 3 nodes: one control-plane with taint node-role.kubernetes.io/master:NoSchedule, and two worker nodes each with 1 CPU. What is the most likely cause?
Hard283Which kube-proxy mode uses iptables rules to handle service traffic?
Easy284A StatefulSet named 'mysql' manages 3 replicas. You need to scale it down to 1 replica. What happens to the PersistentVolumeClaims (PVCs) of the removed pods?
Hard285A pod is in 'Pending' state. 'kubectl describe pod' shows '0/4 nodes are available: 1 node(s) had taint that the pod didn't tolerate, 2 node(s) didn't match pod's node affinity/selector, 1 node(s) had insufficient memory'. What does this indicate?
Medium286Which component is responsible for managing the lifecycle of pods on a node?
Easy287You need to check the resource usage of nodes in your cluster. Which command should you run?
Medium288Which TWO taint effects can be used to prevent a pod from being scheduled on a node unless it has a matching toleration?
Medium289Which of the following are valid methods to debug a failing CoreDNS pod? (Select TWO)
Medium290Which THREE are valid steps when upgrading a Kubernetes cluster using kubeadm? (Select 3)
Medium291A node named 'node1' is having issues. You want to prevent any new pods from being scheduled onto it without affecting running pods. Which command should you use?
Medium292You have a Pod that is in CrashLoopBackOff. Which TWO of the following commands would be most helpful in diagnosing the issue?
Hard293A pod is stuck in Pending with event '0/4 nodes are available: 1 node(s) had taint "node.kubernetes.io/disk-pressure", and 3 node(s) had taint "node.kubernetes.io/memory-pressure", that the pod didn't tolerate'. What is the best approach to schedule the pod?
Hard294You need to temporarily access a pod's HTTP endpoint on port 8080 from your local machine on port 8080. Which kubectl command should you use?
Easy295You run 'kubectl get pods' and see a pod with status 'Init:CrashLoopBackOff'. What does this indicate?
Medium296Which subcommand of 'kubectl config' is used to switch between different contexts?
Medium297You run `kubectl port-forward service/my-svc 8080:80`. What does this command do?
Medium298Which command forwards local port 8080 to port 80 of a pod named 'web-pod'?
Easy299You run kubectl get nodes and see one node is NotReady. The kubelet is running on the node. What is the most likely cause?
Medium300A developer reports that a Pod named 'web-pod' in namespace 'frontend' is crashing repeatedly. You run 'kubectl logs web-pod -n frontend' but see no output. Which command should you run next to see the logs from the previous, crashed container instance?
Medium301A pod is in CrashLoopBackOff. The YAML for the initContainer is: apiVersion: v1 kind: Pod metadata: name: myapp spec: initContainers: - name: init image: busybox command: ['sh', '-c', 'sleep 5 && exit 1'] containers: - name: app image: nginx What is the most likely reason for the CrashLoopBackOff?
Hard302A developer needs to access the Kubernetes API from a pod using a ServiceAccount. Which of the following is the recommended way to mount the ServiceAccount token into a pod?
Hard303An administrator notices that traffic to a Service is not being forwarded to any pod. The Service has selector 'app: web' and there are pods with that label. However, 'kubectl get endpoints' shows no endpoints. What is the most likely cause?
Medium304A cluster administrator wants to expand an existing PersistentVolumeClaim (PVC) that is bound to a PersistentVolume (PV) with reclaim policy Delete and storage class 'fast'. The PV was dynamically provisioned. Which condition is required for the PVC expansion to succeed?
Medium305A node in the cluster is showing status 'NotReady'. You run 'kubectl describe node worker1' and see that the kubelet has not posted node status for more than 1 minute. Which command should you run on the node to check the kubelet logs?
Medium306Which TWO statements are correct regarding DaemonSets?
Medium307A developer runs 'kubectl port-forward service/my-svc 8080:80' and reports that connections to localhost:8080 fail. The service is a ClusterIP service that selects pods with label 'app: my-app'. What is the most likely cause?
Hard308Which of the following is the default DNS name for a Service named 'my-svc' in namespace 'my-ns'?
Medium309You suspect the kubelet on a worker node has stopped. Which two commands should you run to confirm the kubelet status and check its logs?
Medium310You have a headless service named 'my-headless' with clusterIP: None. A pod in the same namespace queries the DNS name 'my-headless'. What will the DNS response contain?
Medium311You need to check the current resource usage of nodes in your cluster. Which command should you use?
Easy312Which command can you run to see the events related to a specific pod?
Easy313A Pod has an init container that writes a configuration file, and the main container reads that file. The init container runs successfully, but the main container fails with 'file not found'. What is the most likely cause?
Medium314You have a multi-node Kubernetes cluster. After upgrading the kubelet on a worker node, the node remains in 'NotReady' state. Which TWO actions should you take to troubleshoot? (Choose TWO.)
Hard315You need to check the status of control plane components. Which TWO commands are appropriate?
Medium316You 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 correct?
Hard317A node shows status NotReady. You SSH into the node and run 'systemctl status kubelet' which shows the kubelet is active (running). What is the next most likely step to diagnose the issue?
Medium318You run 'kubectl get pods' and see a pod with status 'CrashLoopBackOff'. You check the logs with 'kubectl logs <pod> --previous' and see: 'Error: unable to connect to database at db-svc:5432 (connection refused)'. What is the most likely cause?
Medium319What is the purpose of the 'kubeadm reset' command?
Easy320You have a NetworkPolicy that selects pods with label 'app: db'. The policy has an ingress rule allowing traffic from pods with label 'app: frontend'. A pod with label 'app: frontend' is in a different namespace. No namespaceSelector is specified in the ingress rule. Will traffic from that pod be allowed?
Hard321A StatefulSet named 'db' manages 3 pods. The pods are named db-0, db-1, db-2. What is the expected behavior when the StatefulSet's pod management policy is set to OrderedReady and you scale down from 3 to 1 replica?
Hard322You create a PriorityClass named 'high-priority' with value 1000000 (one million). A pod uses this PriorityClass. The cluster has limited resources. What scheduling behavior is most likely?
Hard323A Pod is in CrashLoopBackOff. You run 'kubectl describe pod' and see that the container fails with 'Error: container command not found'. What is the most likely cause?
Medium324Which command shows events sorted by timestamp for troubleshooting recent issues?
Easy325After deploying a new Deployment, you notice that the pods are stuck in ImagePullBackOff. What is the most common cause?
Medium326You have a Deployment with 3 replicas. You run 'kubectl rollout history deployment web-app' and see revision 2 is current. You want to roll back to revision 1. Which command should you use?
Medium327You run 'kubectl get svc my-service -o yaml' and see 'type: ClusterIP'. The service has no endpoints. What is the most likely cause?
Medium328What is the DNS name for a Service named 'api' in the 'default' namespace?
Medium329You have a pod that is in 'Pending' state because it requires a PersistentVolumeClaim that is not bound. Which event would you see in 'kubectl describe pod'?
Easy330A pod is in Pending state. You see the event: '0/2 nodes are available: 2 node(s) had taint {node-role.kubernetes.io/control-plane: }, that the pod didn't tolerate'. What should you do to schedule the pod on one of the control-plane nodes?
Medium331You create a Service of type LoadBalancer in a Kubernetes cluster that does not have an external load balancer provider (e.g., bare-metal). What will be the state of the EXTERNAL-IP field when you run 'kubectl get svc'?
Medium332Which kubectl command is used to drain a node before performing maintenance?
Easy333What is the purpose of a PriorityClass in Kubernetes?
Easy334An administrator is preparing a bare-metal node to join an existing kubeadm cluster. The node has containerd installed and running, swap disabled, and the required kernel modules loaded. Before running kubeadm join, which command should the administrator run to ensure the kubelet registers with the API server using the correct node name?
Easy335A user tries to create a pod with the YAML file that requests 2 CPUs as a limit. The cluster has a ResourceQuota named 'compute-quota' with limits.cpu: 2. The user sees the above error. What is the likely issue?
Medium336A pod named 'web-app' is crashing repeatedly. You run 'kubectl describe pod web-app' and see that the container exited with code 137. What does this indicate?
Medium337You are tasked with troubleshooting a web application that is deployed in a Kubernetes cluster. The application consists of a Deployment named 'web-app' with 3 replicas, each running a container that listens on port 3000. A Service named 'web-service' of type ClusterIP with selector 'app: web' and port 80 targeting port 3000 has been created. Additionally, an Ingress resource named 'web-ingress' is configured with a host rule for 'example.com' and backend service 'web-service' on port 80. Users report that accessing http://example.com results in a 503 Service Unavailable error. You verify that all pods are running, but kubectl get pods shows the READY column as 0/1 for each pod. The Ingress controller logs show 'upstream connect error or disconnect/reset before headers'. You check the endpoints: 'kubectl get endpoints web-service' shows no endpoints. The pods have the label 'app: web'. What should you do to resolve the issue?
Hard338Which of the following is a valid way to mount a Secret as a volume in a Pod?
Easy339A company deploys a web application with multiple replicas in a Kubernetes cluster. Users report intermittent connectivity issues. The application pods are exposed via a ClusterIP Service. To ensure stable connectivity, which action should be taken?
Medium340A pod is in ImagePullBackOff state. Which command can you run to get more details about the underlying error?
Medium341A pod is in 'Pending' state. Which TWO of the following are possible causes? (Select 2)
Medium342Which command initializes a new Kubernetes cluster using kubeadm?
Easy343Which command retrieves the rollout history of a Deployment named 'web'?
Easy344You apply the following NetworkPolicy: apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: deny-all spec: podSelector: {} policyTypes: - Ingress What effect does this policy have?
Medium345A pod has been in Pending state for a long time. 'kubectl describe pod' shows the event: '0/3 nodes are available: 1 node(s) had taint {node.kubernetes.io/not-ready: }, that the pod didn't tolerate, 2 node(s) had taint {node.kubernetes.io/unreachable: }, that the pod didn't tolerate.' What is the most likely cause?
Medium346Which control plane component is responsible for storing the cluster state and configuration?
Easy347You apply a LimitRange that sets default CPU request to 0.5 and default CPU limit to 1. You create a pod without specifying any CPU resources. What are the effective CPU request and limit for the pod?
Hard348You have an Ingress resource with the following spec: spec: rules: - host: example.com http: paths: - path: /api pathType: Prefix backend: service: name: api-service port: number: 80 A client sends a request to http://example.com/api/v1/users. Which path is matched?
Hard349A cluster has multiple namespaces: 'frontend', 'backend', and 'monitoring'. A pod in the 'frontend' namespace needs to reach a Service named 'db-service' in the 'backend' namespace. The 'db-service' Service is of type ClusterIP. Which DNS name should the pod use?
Hard350Which TWO of the following commands are useful for debugging network connectivity between pods?
Medium351To back up etcd, which command should be used with etcdctl?
Medium352You suspect a DNS issue inside a pod. Which command can you run to test DNS resolution from within a pod?
Medium353A pod is running but cannot be accessed via its ClusterIP service from another pod in the same namespace. The service endpoints list shows the pod's IP. What is the most likely cause?
Hard354You have a Deployment named 'web-app' in the 'default' namespace. You run the following command: kubectl rollout history deployment web-app. The output shows: revision 1, revision 2, revision 3. You want to roll back to revision 1. Which command achieves this?
Easy355A 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?
Hard356A pod is stuck in 'Pending' state. Which command would you run FIRST to diagnose the issue?
Medium357A node has been cordoned. Which statement about the node is true?
Medium358Which three components are part of the Gateway API? (Choose three.)
Hard359A container requests 256Mi memory and has a limit of 512Mi. The container tries to allocate 600Mi. What happens?
Medium360Which TWO of the following are valid reasons to use a Headless Service?
Easy361What is the purpose of 'kubeadm reset'?
Medium362Which TWO commands can be used to view the configuration of a kubeconfig file?
Medium363An Ingress resource is created with the following spec: spec: rules: - host: example.com http: paths: - path: /api pathType: Prefix backend: service: name: api-service port: number: 80 The backend service 'api-service' is in the same namespace as the Ingress. What must be true for the Ingress to route traffic to the service?
Medium364You deploy a pod with image 'nginx:1.21'. It stays in ImagePullBackOff. You run 'kubectl describe pod nginx-pod' and see the event: 'Failed to pull image "nginx:1.21": rpc error: code = Unknown desc = Error response from daemon: manifest for nginx:1.21 not found'. What is the most likely fix?
Medium365Refer to the exhibit. An administrator creates a token with TTL 0. What is the effect on the token?
Medium366You want to forward local port 8080 to port 80 of a pod named 'nginx-pod'. Which command should you use?
Medium367Which TWO statements about Headless services are correct? (Select TWO)
Medium368A pod uses a PVC with access mode RWO. The pod is scheduled on node A. You want to schedule another pod on node B that uses the same PVC. What will happen?
Medium369Which component is responsible for managing the network rules and forwarding on each node?
Easy370Which command is used to create a backup of etcd data using etcdctl?
Easy371A Node is in NotReady state. Which action should be taken first to diagnose the issue?
Medium372You have a NetworkPolicy that selects pods with label 'role: db' in the 'default' namespace. The policy has no ingress rules defined. What is the effect on traffic to the selected pods?
Medium373Which THREE of the following are valid steps to troubleshoot DNS issues in a Kubernetes cluster?
Medium374Which of the following is a correct Ingress resource snippet that routes traffic to service 'web-svc' on port 80 for the host 'example.com'?
Medium375You have a Service with endpoints for pods in different zones. You want kube-proxy to use a mode that provides better performance for large clusters and supports scheduling algorithms like least-connection. Which mode should you use?
Hard376Which THREE components are required for a pod to resolve a Service DNS name?
Medium377Which resource type is used to configure HTTP/HTTPS routing to Services?
Easy378You have configured a ServiceAccount with an associated image pull secret. The Pod referencing this ServiceAccount still fails with ImagePullBackOff due to authentication errors. What is the most likely misconfiguration?
Hard379A developer runs 'kubectl port-forward service/my-service 8080:80'. What does this command do?
Medium380You are managing a Kubernetes cluster that hosts a microservices application. One of the services, 'payment-processor', is critical and must always be available. It has a Deployment with 3 replicas, each requesting 1 CPU and 2Gi memory. Recently, the team added a new service 'data-analyzer' that runs as a DaemonSet on all nodes, consuming significant CPU and memory. After the addition, you notice that 'payment-processor' pods are occasionally being evicted, and new pods are slow to be scheduled. You check node resource usage and find that some nodes are overcommitted. You want to ensure that 'payment-processor' pods are never evicted and are scheduled before less critical workloads. Which action should you take?
Hard381Which TWO statements about EndpointSlices are correct?
Hard382Drag and drop the steps to troubleshoot a Node that is in NotReady state into the correct order.
Medium383You are trying to debug a network connectivity issue between two pods. Pod A can reach the internet but cannot reach Pod B's IP address. Which command should you use to test connectivity from within Pod A to Pod B's service?
Medium384You have a Deployment 'db' with 3 replicas. Each pod writes to a PersistentVolumeClaim (PVC). A StatefulSet is required for stable network identities and ordered pod management. Which of the following is a key characteristic that differentiates a StatefulSet from a Deployment?
Hard385An admin wants to view the current context in their kubeconfig. Which command should they use?
Medium386Which THREE statements about PersistentVolumeClaims (PVCs) are correct?
Medium387A DevOps team needs to provide persistent storage to a set of pods that all require read-write access to the same data simultaneously. Which volume type should they use?
Medium388Which command creates a ConfigMap named 'app-config' from the file 'config.properties'?
Easy389Which TWO of the following are valid methods to authenticate to the Kubernetes API server?
Medium390You are debugging a DNS issue from within a pod. The pod is running 'busybox'. Which command would you use to test DNS resolution for 'kubernetes.default.svc.cluster.local'?
Medium391You have a kube-proxy running in ipvs mode. Which of the following is true about IPVS?
Hard392You run `kubectl expose deployment web --port=80 --target-port=8080 --type=NodePort` and the Service is created. What is the effect of this command?
Medium393Based on the exhibit, the pod is in CrashLoopBackOff. Which command should you run NEXT to identify the root cause?
Medium394You are troubleshooting a pod that is in 'Pending' state. 'kubectl describe pod' shows '0/1 nodes are available: 1 Insufficient memory, 1 node(s) had taint {node-role.kubernetes.io/control-plane: }, that the pod didn't tolerate'. Which TWO actions can resolve the issue?
Hard395An ingress resource is defined with the following snippet: ```yaml spec: tls: - hosts: - app.example.com secretName: app-tls rules: - host: app.example.com http: paths: - path: / pathType: Prefix backend: service: name: app-service port: number: 80 ``` The secret 'app-tls' exists and contains a valid certificate. However, accessing https://app.example.com returns a certificate warning in the browser. What is the most likely cause?
Hard396Which TWO of the following are valid reasons a pod might be stuck in 'Pending' state?
Easy397A cluster has a CSI driver installed. A pod using a CSI volume is in CrashLoopBackOff. 'kubectl describe pod' shows: 'failed to mount volume: rpc error: code = DeadlineExceeded desc = context deadline exceeded'. What is the MOST likely cause?
Hard398A pod is stuck in 'Pending' state. You run 'kubectl describe pod my-pod' and see the event: '0/4 nodes are available: 4 node(s) had taint {node.kubernetes.io/unreachable: }, that the pod didn't tolerate'. What is the likely cause?
Easy399You are using kubeadm to initialize a cluster. After running 'kubeadm init', you follow the instructions to set up the kubeconfig for the regular user. Which of the following commands should you run to allow kubectl to communicate with the cluster?
Medium400You need to expose a service named 'my-svc' on a static port 30080 on every node. Which service type should you use?
Medium401Which command shows resource usage (CPU and memory) for nodes in a cluster?
Easy402You need to renew all certificates on a kubeadm-managed cluster. Which command accomplishes this?
Hard403You have taken an etcd snapshot using 'ETCDCTL_API=3 etcdctl snapshot save snapshot.db'. Which TWO commands are needed to restore this snapshot to a new etcd member? (Choose TWO.)
Hard404You have a service 'my-svc' of type ClusterIP with no selector defined. You manually create an Endpoints object with the same name. Which statement is true?
Medium405A pod in namespace 'ns1' cannot resolve the DNS name 'svc.ns2.svc.cluster.local'. What is the most likely cause?
Medium406Which TWO actions can help troubleshoot a service that is not reachable from within a pod?
Medium407A pod is in 'ImagePullBackOff' state. Which of the following is NOT a common cause?
Medium408A pod is in ImagePullBackOff state. Which command would give you the most information about why the image pull failed?
Easy409Based on the exhibit, what is the most likely cause of the pod not running?
Hard410A pod is unable to start because the PersistentVolumeClaim it references is still in 'Pending' state. What is the most likely cause?
Easy411Which TWO of the following are valid ways to specify resource requests and limits for a container in a pod? (Select 2)
Hard412Which command allows you to view the current context in a kubeconfig file?
Easy413Which TWO of the following are valid ways to expose a Service externally in a Kubernetes cluster running on-premises (no cloud provider)?
Medium414Which command is used to backup etcd data using etcdctl?
Easy415Which two of the following are correct statements about EndpointSlices?
Medium416You run 'kubectl logs pod-name' and get no output. Which TWO steps should you take to troubleshoot further?
Medium417You have an Ingress resource with a TLS section specifying a secret named 'tls-secret'. The certificate in 'tls-secret' is expired. What happens when a client connects via HTTPS to the Ingress host?
Hard418An operations team must guarantee that exactly one copy of a log-shipping Pod runs on every worker node, including nodes added to the cluster later, and that each node gets at most one such Pod. Some nodes carry the taint 'dedicated=batch:NoSchedule'. Which resource and configuration should the team use?
Hard419You are troubleshooting a scenario where a pod cannot communicate with another pod in the same namespace via service name. Which THREE steps would you take to diagnose the issue? (Select 3)
Hard420Which component is responsible for maintaining the desired state of the cluster, such as ensuring the correct number of replicas for a Deployment?
Easy421A pod is stuck in Pending state. You run 'kubectl describe pod my-pod' and see the event '0/1 nodes are available: 1 Insufficient cpu'. What is the most likely cause?
Easy422A Kubernetes cluster uses kube-proxy in iptables mode. A Service named 'web-svc' of type ClusterIP has three endpoints: pod A (10.244.1.5:8080), pod B (10.244.2.6:8080), and pod C (10.244.3.7:8080). A client pod repeatedly sends requests to the Service's ClusterIP. The administrator observes that all requests from a single client pod are being routed to pod A, even though pod B and pod C are healthy. Which of the following is the most likely explanation?
Hard423A pod is in ImagePullBackOff. Which command would help determine the exact reason?
Medium424You have a Service named 'my-service' in namespace 'ns1'. Another pod in namespace 'ns2' needs to resolve 'my-service' using DNS. What FQDN should the pod use?
Medium425Which TWO commands show cluster events that can help in troubleshooting?
Easy426Which command is used to check the expiration of certificates managed by kubeadm?
Medium427You have an etcd cluster with three members. You need to take a snapshot for disaster recovery. Which command correctly creates a snapshot?
Hard428Which access mode allows multiple pods to read and write to a PersistentVolume simultaneously when all pods are on the same node?
Easy429A pod is in CrashLoopBackOff. 'kubectl logs my-pod --previous' shows: 'Error: failed to start: exec: "/app/start.sh": stat /app/start.sh: no such file or directory'. What is the most likely cause?
Hard430Which component on a worker node is responsible for maintaining network rules and forwarding traffic to the correct pod?
Easy431An admin wants to check the expiration date of all certificates used by kubeadm components. Which command should be used?
Medium432Which volume type in Kubernetes allows a Pod to share data between its containers, with the data being deleted when the Pod is removed?
Easy433You have a PriorityClass named 'high-priority' with value 1000 and 'low-priority' with value 100. A Pod with 'high-priority' is pending because no node has enough resources. Another Pod with 'low-priority' is running on a node. Will the high-priority Pod preempt the low-priority Pod?
Hard434An administrator runs 'kubectl get pods' and sees a pod stuck in 'Pending' state. Which of the following is NOT a typical cause?
Hard435You suspect the kubelet on a worker node is not functioning correctly. Which command should you use to check the kubelet service status?
Easy436A pod is using a PersistentVolumeClaim (PVC) named 'mypvc' which is bound to a PersistentVolume (PV) with reclaim policy 'Retain'. The pod is deleted and then the PVC is deleted. What happens to the PV?
Medium437You have a pod that is in CrashLoopBackOff. Which two troubleshooting steps should you take first? (Choose two.)
Hard438A NetworkPolicy named 'deny-all' has only a podSelector matching all pods and no rules. What is the effect?
Medium439Which kubectl command will show the rollout history of a Deployment named 'web-app'?
Easy440A Deployment named 'web' is failing to schedule pods. You run 'kubectl describe pod web-xyz' and see the event: '0/3 nodes are available: 3 Insufficient cpu.' What is the most likely cause?
Medium441You have a ResourceQuota in a namespace that sets limits: pods: 10, requests.cpu: 4, requests.memory: 8Gi. You try to create a Pod with requests.cpu: 1, requests.memory: 2Gi, and no limits. The namespace currently has 8 pods using 3 CPUs and 5Gi memory in total requests. What happens?
Hard442Which THREE of the following are valid ways to restrict or influence pod scheduling using taints and tolerations? (Select THREE.)
Hard443Which TWO of the following are common causes for a pod to be in the 'Pending' state?
Medium444A cluster has a PersistentVolumeClaim (PVC) named 'data-claim' bound to a PersistentVolume (PV) with reclaim policy 'Retain'. The PVC is deleted. The PV now shows status 'Released'. What must be done so that the PV can be reused by a new PVC?
Hard445Which component is responsible for implementing the NetworkPolicy rules?
Medium446You see a pod in 'Pending' state. 'kubectl describe pod' shows '0/4 nodes are available: 1 node(s) had taint(s) that the pod didn't tolerate, 3 Insufficient cpu'. What should you do?
Medium447Which THREE of the following are common causes for a pod to remain in 'Pending' state?
Hard448Which TWO components are part of the Kubernetes control plane? (Select two.)
Medium449Which TWO components run on worker nodes? (Select 2)
Medium450A pod is in CrashLoopBackOff. You run 'kubectl logs mypod --previous' and see 'Error: unable to connect to database'. What is the MOST likely cause?
Medium451A pod is stuck in 'Pending' state. You run 'kubectl describe pod mypod' and see: '0/4 nodes are available: 4 node(s) didn't match pod anti-affinity constraints'. What does this mean?
Medium452You want to check the logs of a container that previously crashed. Which command should you use?
Medium453Refer to the exhibit. The master node shows NotReady status. The kubelet is reporting 'container runtime is down'. Which command should be used to investigate and fix this issue?
Medium454You need to create a RoleBinding that grants a user access to read Pods in the 'dev' namespace. Which YAML manifest is correct?
Medium455You want to debug a Service that is not reachable. Which kubectl command can you use to forward a local port to a pod in the Service?
Easy456A node is NotReady. Which THREE conditions could cause this?
Hard457A pod is stuck in Pending state. You run 'kubectl describe pod my-pod' and see the event: '0/4 nodes are available: 1 node(s) had taint {gpu: true} that the pod didn't tolerate, 3 node(s) had resource pressure.'. What is the most likely cause?
Medium458Which command can you use to check the expiration date of certificates managed by kubeadm?
Easy459A Kubernetes cluster uses kube-proxy in IPVS mode. A Service named 'api-svc' of type ClusterIP has three endpoints: 10.244.1.5:8080, 10.244.2.6:8080, and 10.244.3.7:8080. A client pod repeatedly connects to 'api-svc' and observes that all connections are routed to the same endpoint, 10.244.1.5:8080. The client pod and the endpoints are on different nodes. What is the most likely cause?
Hard460A HorizontalPodAutoscaler (HPA) is configured for a Deployment with targetCPUUtilizationPercentage: 80. The current CPU utilization is 90%. The deployment has minReplicas: 3 and maxReplicas: 10. What will the HPA do?
Medium461Which kubectl command is used to view the current context in the kubeconfig file?
Easy462You have a DaemonSet that is supposed to run on all nodes, but you notice it is not running on a node with a taint 'dedicated=monitoring:NoSchedule'. What must be added to the DaemonSet's pod template to make it run on that node?
Medium463You need to check the expiration date of certificates used by the kube-apiserver. Which command should you use?
Medium464Which THREE of the following are valid steps to troubleshoot a node that is in 'NotReady' state?
Hard465Which resource type is used to define a template for dynamically provisioning PersistentVolumes?
Easy466A ClusterIP Service is not reachable from within the cluster. You verify that the Service has endpoints. Which of the following could be the cause? (Select two.)
Hard467Which command is used to initialize a Kubernetes cluster using kubeadm?
Easy468An admin runs 'kubectl get pods' and sees a pod in 'Pending' state for a long time. 'kubectl describe pod' shows '0/1 nodes are available: 1 node has memory pressure'. Which is the most likely cause?
Medium469Which TWO of the following are valid strategies for a Deployment's rolling update? (Select TWO.)
Medium470You run 'kubectl get events --sort-by=.lastTimestamp' and see the following events for a pod: 'Warning FailedScheduling 0/3 nodes are available: 3 Insufficient cpu'. What is the most likely solution?
Medium471Which annotation is commonly used with ExternalDNS to specify the DNS hostname for a Service?
Medium472You create a Deployment with the following YAML: apiVersion: apps/v1 kind: Deployment metadata: name: myapp spec: replicas: 3 selector: matchLabels: app: myapp template: metadata: labels: app: myapp spec: containers: - name: myapp image: myapp:latest resources: limits: cpu: "500m" memory: "256Mi" requests: cpu: "200m" memory: "128Mi" After applying it, the pods are in 'CrashLoopBackOff'. You check logs and see 'Error: container process exited with error'. What is the MOST likely cause?
Medium473A CSI driver is installed in the cluster, but a PersistentVolumeClaim using a StorageClass that references this driver remains Pending. The administrator checks the logs of the CSI controller pod and sees no errors. What is a possible cause?
Hard474Which Kubernetes Service type exposes the Service on a static port on each Node's IP address, allowing external access without a LoadBalancer?
Easy475Which kube-proxy mode uses iptables rules to handle service traffic and is the default in many distributions?
Medium476A pod has status 'Init:Error'. What does this indicate?
Hard477A company runs a batch job that processes a queue. The job should run to completion exactly once. Which resource should be used?
Medium478Which kubectl command is used to mark a node as unschedulable for new pods without affecting existing running pods?
Medium479You create a Service with clusterIP: None. What is this called and what is its purpose?
Medium480A StatefulSet named 'web' has 3 replicas. You need to update the container image from 'nginx:1.19' to 'nginx:1.20' using a rolling update with ordered pod management. What must you ensure in the StatefulSet spec?
Hard481You run 'kubectl get pods' and one pod shows 'ImagePullBackOff'. Which command would help you diagnose the issue?
Easy482A developer asks you to create a Service that resolves to an external database at 'db.example.com'. Which Service type should you use?
Medium483Which THREE of the following are valid steps to troubleshoot a DNS issue within a Kubernetes cluster?
Hard484You have a pod that is in 'Pending' state. Which command would you run to get more information about why the pod cannot be scheduled?
Easy485Which annotation is commonly used with the ExternalDNS project to manage DNS records for a Kubernetes service?
Medium486Which kube-proxy mode uses IP Virtual Server (IPVS) for load balancing and supports more algorithms than the default mode?
Medium487You run 'kubectl cordon node1'. Which TWO statements describe the effect of this command? (Choose TWO.)
Medium488A pod is unable to resolve DNS names of services in other namespaces. Which DNS configuration is most likely missing?
Medium489Which THREE of the following are components of the Kubernetes control plane? (Choose THREE.)
Medium490You have a pod that is stuck in 'Pending' state. Running 'kubectl describe pod' shows the event: '0/3 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate, 2 node(s) didn't match pod anti-affinity rules.' What is the MOST likely solution?
Hard491You run 'kubectl logs my-pod -c my-container' and get no output, but you know the container produces logs. What should you do next to see previous container logs?
Medium492You have a Pod that is stuck in Pending state. Which command should you use to get detailed information about why the Pod is not running?
Easy493A Service of type LoadBalancer is created but the EXTERNAL-IP remains <pending>. The cluster is running on-premises without a cloud load balancer integration. Which of the following is the most likely reason?
Hard494You attempt to schedule a pod but it remains 'Pending'. 'kubectl describe pod' shows the event: '0/3 nodes are available: 3 node(s) didn't match node selector.' What is the MOST likely cause?
Medium495After creating a NetworkPolicy that selects pods with label 'role: db' and allows ingress on TCP port 3306 from pods with label 'role: api', you notice that pods with label 'role: db' are still reachable on port 3306 from pods without 'role: api' label. What is the most likely cause?
Medium496Which THREE components are part of the Gateway API?
Medium497Which access mode allows a PersistentVolume to be mounted as read-write by multiple pods across different nodes?
Easy498You have a Service 'my-svc' with ClusterIP None (headless). You create a StatefulSet with 3 replicas and a headless Service. How do you reach individual pods?
Hard499You are troubleshooting a connectivity issue between two pods in the same cluster. Pod A cannot reach Pod B's IP. Which command would you run from Pod A to test connectivity?
Hard500You are troubleshooting a DNS issue. From within a pod, you run 'nslookup kubernetes.default.svc.cluster.local' and get 'connection timed out; no servers could be reached'. What is the most likely cause?
Hard501Which NetworkPolicy rule will allow ingress traffic from pods with label 'role: frontend' in the same namespace?
Easy502A pod is in the 'Pending' state for a long time. You run 'kubectl describe pod pending-pod' and see the event: '0/4 nodes are available: 1 node(s) had taint {node.kubernetes.io/not-ready: }, 3 node(s) had taint {node-role.kubernetes.io/control-plane: } that the pod didn't tolerate.' What is the MOST likely solution?
Medium503You need to drain a node 'node1' and ensure that pods are evicted gracefully. Which command should you use?
Medium504You are performing a backup of etcd using the command: 'ETCDCTL_API=3 etcdctl snapshot save /backup/etcd-snapshot.db'. You get an error: 'Error: context deadline exceeded'. What is the most likely cause?
Hard505Which DNS record does CoreDNS create for a headless Service named 'headless-svc' in the namespace 'default'?
Easy506Which of the following is the default DNS name for a Service named 'api' in namespace 'production'?
Easy507A pod is in Pending state. You run 'kubectl describe pod pending-pod' and see an event: '0/3 nodes are available: 3 Insufficient memory'. However, you believe there is enough memory across the cluster. What could be the issue?
Hard508An administrator runs 'kubectl cordon node1' and then 'kubectl drain node1 --ignore-daemonsets'. What is the effect on node1?
Medium509Which TWO of the following are correct methods to check the health of the kube-apiserver?
Medium510An administrator needs to initialize a new Kubernetes control plane node using kubeadm. Which of the following is the correct command to initialize the control plane with a specific pod network CIDR of 10.244.0.0/16?
Easy511A pod uses a PersistentVolumeClaim named 'claim-log'. The PVC is pending. You run 'kubectl describe pvc claim-log' and see the event: 'waiting for a volume to be created, either by external provisioner or manually'. The StorageClass 'standard' has provisioner: 'kubernetes.io/no-provisioner'. What is the most likely cause?
Medium512You need to back up etcd data for a cluster with etcd running as a static Pod. Which command should you use?
Medium513A cluster administrator needs to create a PersistentVolume that can be mounted as a block device (not a filesystem) by a Pod. Which field in the PersistentVolume spec must be set to enable this?
Medium514You have a kubeconfig file with multiple contexts. You want to temporarily switch to a different context for a single kubectl command. Which flag should you use?
Hard515Which TWO of the following are valid commands to view cluster events sorted by timestamp?
Medium516Which command displays the expiration date of all certificates managed by kubeadm?
Easy517A cluster uses a CSI driver for dynamic provisioning. An administrator creates a StorageClass with 'volumeBindingMode: WaitForFirstConsumer' and a PVC. The pod using the PVC is scheduled to a node. However, the PV is never provisioned. What is the most likely cause?
Hard518A node in your cluster is in the 'NotReady' state. You SSH into the node and run 'systemctl status kubelet' which shows the kubelet is active but not functioning correctly. Which command should you use to get detailed logs to troubleshoot the kubelet?
Medium519A node in your cluster shows status 'NotReady'. You have SSH access to the node. What is the first command you should run to check the kubelet status?
Medium520You need to back up etcd on a single control plane node. Which command correctly creates a snapshot?
Hard521Which component is responsible for maintaining network rules on each worker node to enable service discovery and load balancing?
Easy522You want to expose an application running in the cluster on a public IP address. Which Service type should you use?
Medium523You need to grant a ServiceAccount named 'monitor-sa' in namespace 'monitoring' the ability to read Pods and Services across all namespaces. Which TWO resources are needed? (Choose TWO.)
Hard524You are troubleshooting a service named 'api' in the 'prod' namespace that is not reachable from other pods. You run 'kubectl get endpoints api -n prod' and see that the endpoints list is empty. The service selector is 'app=api', and there are three pods with that label running. Which of the following is the MOST likely cause?
Hard525You have a pod named 'web-pod' that is in a CrashLoopBackOff state. To examine the logs from the previous instance of the container, which command should you use?
Easy526Which THREE of the following are characteristics of a StatefulSet's volumeClaimTemplates?
Hard527A Kubernetes cluster has been running for months. Recently, some pods are reporting 'FailedScheduling' due to insufficient memory. The administrator wants to add a new node with 32GB RAM. However, after joining the node, the new node shows 'NotReady' and the kubelet logs indicate 'Failed to update node status: context deadline exceeded'. What is the most likely cause?
Hard528You have a Deployment with 4 replicas. During a rolling update, you want to ensure that only 2 pods are unavailable at any given time. Which field should you set in the Deployment spec?
Medium529Which of the following is a valid CSI (Container Storage Interface) driver operation in Kubernetes?
Easy530A developer accidentally runs 'kubectl delete pvc data-claim'. What is the immediate effect on the PersistentVolume pv-data?
Easy531Which THREE statements about StorageClasses are true?
Medium532A user reports that a pod is stuck in 'ContainerCreating' state. Which command would you run first to diagnose the issue?
Easy533You have multiple kubeconfig files. Which command merges them into a single config file?
Easy534You want to check the memory usage of nodes in your cluster. Which command should you use?
Easy535Which TWO of the following are valid commands to check the status of control plane components?
Easy536You have a NetworkPolicy that denies all ingress traffic by default, and you want to allow traffic only from pods with label 'app: monitoring' in the same namespace. What should the policy spec look like?
Hard537An administrator runs 'kubectl get nodes' and sees that a worker node is in the 'Ready,SchedulingDisabled' state. Which command was most likely executed on that node?
Medium538You deploy a pod with resource limits but no requests. The pod gets OOMKilled. What is the most likely reason?
Medium539A Deployment's pod is stuck in Pending state. 'kubectl describe pod' shows Events: '0/4 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/control-plane: }, that the pod didn't tolerate, 3 Insufficient memory'. What is the likely fix?
Hard540Which THREE components are part of the Gateway API resource model? (Select THREE)
Hard541A pod with an init container that runs a database migration fails. The init container exits with code 1. What is the pod's status?
Medium542A cluster administrator is configuring a Pod to use a PersistentVolumeClaim (PVC) that is dynamically provisioned using a StorageClass with volumeBindingMode: WaitForFirstConsumer. The PVC is created before the Pod. When the Pod is created, which node will the PV be provisioned on?
Hard543You run 'kubectl get pods' and see that a pod is in 'CrashLoopBackOff'. You want to examine the container's previous exit code. Which command provides this information?
Medium544A cluster administrator manages a PersistentVolume with reclaim policy Retain that was bound to a PersistentVolumeClaim. The application team deletes the PVC, but the administrator later needs to reuse the same underlying storage for a new PVC in the same namespace. After the PVC deletion, the PV shows status Released. Which sequence of actions must the administrator perform to make the PV bindable again?
Hard545A developer needs to create a Role that allows listing pods in the 'dev' namespace. Which YAML snippet correctly defines this Role?
Medium546Which TWO of the following are valid steps to troubleshoot a pod that is in 'CrashLoopBackOff'?
Medium547An administrator needs to configure dynamic provisioning for persistent volumes using an external CSI driver. Which of the following is the correct approach?
Hard548Which THREE components must be present in a high-availability control plane setup?
Hard549Which TWO of the following are valid methods to configure kubectl to use a specific context?
Medium550Which TWO of the following are valid reclaim policies for PersistentVolumes?
Medium551A pod cannot resolve a Service name 'my-svc' in the same namespace. The DNS pod is running. What is a likely cause?
Medium552An administrator runs 'kubectl run test-pod --image=nginx' and the pod is created but stays in 'Pending' state. Which command would BEST help diagnose why the pod is not running?
Medium553The controller-manager logs show repeated errors: 'Failed to list *v1.Pod: connection refused'. What is the most likely cause?
Medium554You run 'kubectl get events --sort-by='.lastTimestamp'' and see repeated events: 'Failed to pull image "myimage:v2": rpc error: code = Unknown desc = Error response from daemon: manifest for myimage:v2 not found'. What is the issue?
Easy555Which command shows resource usage for pods and nodes in the cluster?
Easy556Drag and drop the steps to back up and restore etcd data for a Kubernetes cluster into the correct order.
Medium557Which kubectl command is used to mark a node as unschedulable so that no new pods are scheduled onto it?
Easy558A cluster was installed using kubeadm. You need to upgrade the cluster from v1.28 to v1.29. Which of the following is the correct order of operations?
Medium559You have a Deployment with 3 replicas. After updating the container image, the new pods are in 'ImagePullBackOff' state. You run 'kubectl describe pod <pod-name>' and see the event: 'Failed to pull image "myregistry/myapp:latest": rpc error: code = Unknown desc = Error response from daemon: manifest for myregistry/myapp:latest not found: manifest unknown: manifest unknown'. What is the MOST likely cause?
Medium560Which command can be used to view resource usage of nodes in a cluster?
Easy561You run 'kubectl get pods -n default' and see a pod named 'backend' in ImagePullBackOff state. What is the most likely cause?
Medium562An administrator creates a NetworkPolicy in namespace 'app' with the following YAML. Which statement is true about the policy? apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: deny-all spec: podSelector: {} policyTypes: - Ingress
Easy563A developer wants to deploy a pod that will run only once to initialize a database schema. Which Kubernetes resource should they use?
Easy564A Pod in a Deployment is CrashLoopBackOff. 'kubectl logs' shows the application exits with code 1 after printing one line. The Pod has a liveness probe that checks an HTTP endpoint. What should be checked first?
Medium565Which command is used to take a snapshot of etcd data for backup?
Easy566Which component is responsible for maintaining network rules on worker nodes?
Easy567You run 'kubectl top nodes' and get an error: 'error: metrics not available yet'. What is the most likely cause?
Medium568A Pod is stuck in CrashLoopBackOff. You run `kubectl logs <pod-name>` but see no output. What is the most likely cause?
Medium569You need to check the logs of a kubelet on a node. Which command should you run on the node?
Easy570You run 'kubectl get pods' and see some pods in 'ImagePullBackOff' state. Which command would best help identify the root cause?
Medium571Which command is used to mark a node as unschedulable and evict its pods?
Easy572You need to allow a pod to use a specific device from the host node (e.g., /dev/sdb) as a raw block device. Which volume mode should you set in the PVC?
Hard573You want to check the current resource usage (CPU and memory) of pods in the 'default' namespace. Which kubectl command should you use?
Hard574You are setting up a new Kubernetes cluster using kubeadm. After running 'kubeadm init', you want to start using the cluster with kubectl. Which of the following commands should you run to configure kubectl for the admin user?
Easy575You have three pods selected by a service. One pod is in 'CrashLoopBackOff' state. How does the service's endpoints behave?
Hard576Which component is responsible for assigning pods to nodes?
Easy577Which TWO are true about taints and tolerations? (Select 2)
Medium578Which command retrieves logs from a container that has crashed and restarted?
Easy579A cluster administrator creates a StorageClass with the following YAML: apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: fast provisioner: kubernetes.io/aws-ebs parameters: type: gp2 reclaimPolicy: Delete volumeBindingMode: Immediate A developer creates a PVC using this StorageClass. The PVC is created and remains in Pending state. What is the most likely cause?
Medium580A pod is in 'CrashLoopBackOff' state. Which THREE of the following are possible causes?
Hard581A developer wants to run a one-time batch job that processes data and then exits. Which Kubernetes resource should be used?
Medium582You want to dynamically provision storage for a PVC using a StorageClass named 'fast-ssd'. Which field in the PVC YAML specifies the StorageClass?
Medium583Which component is responsible for running containers on a node and reporting their status to the control plane?
Easy584A developer wants to mount a ConfigMap as a volume in a pod. However, the pod should only see specific keys from the ConfigMap, not all keys. What is the best approach?
Easy585An administrator creates a ServiceAccount named 'monitor' in the 'default' namespace. They want any pod using this ServiceAccount to be able to list pods cluster-wide. Which RBAC resource should be created and bound to this ServiceAccount?
Medium586You need to create a ServiceAccount named 'deployer' and grant it permission to create Deployments in namespace 'app'. Which YAML snippet correctly creates the necessary RBAC resources?
Hard587You have a PriorityClass 'high-priority' with value 1000 and 'low-priority' with value 100. A pod A with 'high-priority' is pending because the node has no resources. A pod B with 'low-priority' is running on that node. What will happen if preemption is enabled?
Hard588Which TWO of the following are required fields in a PersistentVolumeClaim spec? (Select TWO)
Medium589A pod remains in Pending state. You run 'kubectl describe pod mypod' and see the following event: '0/3 nodes are available: 2 node(s) had taint {node-role.kubernetes.io/control-plane: }, that the pod didn't tolerate, 1 node(s) didn't match pod anti-affinity rules.' What is the best action to schedule the pod?
Hard590Which THREE of the following are characteristics of a StatefulSet? (Select 3)
Medium591A pod is stuck in Pending state. Running 'kubectl describe pod mypod' reveals the event '0/4 nodes are available: 3 Insufficient memory, 1 node(s) had taints that the pod didn't tolerate'. What is the most likely cause?
Medium592Which component on a worker node is responsible for maintaining network rules and enabling service abstraction?
Easy593You are applying the following RBAC manifest: --- apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: namespace: development name: pod-reader rules: - apiGroups: [""] resources: ["pods"] verbs: ["get", "watch", "list"] Which TWO statements are true about this Role? (Choose TWO.)
Medium594A pod is in CrashLoopBackOff. You check the logs with 'kubectl logs my-pod --previous' and see 'Error: cannot connect to database at 10.0.0.1:3306'. The database service is named 'mysql' and runs on port 3306. What is the most likely cause?
Medium595A user creates a Deployment with replicas=3. Two Pods are running, but the third is stuck in ContainerCreating. 'kubectl describe pod' shows 'Failed to create pod sandbox: rpc error: code = Unknown desc = failed to create containerd task: OCI runtime create failed: container_linux.go:349: starting container process caused: exec: "/app": stat /app: no such file or directory'. What is the most likely cause?
Easy596A pod is stuck in 'Pending' state. 'kubectl describe pod' shows '0/1 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate'. What is the most likely cause?
Hard597To view the logs of a specific container in a multi-container pod named 'web-pod', which command is correct?
Easy598Which of the following is a core component of the Gateway API?
Easy599A cluster administrator wants to provide storage for an application that requires reading and writing by multiple pods simultaneously. The storage backend is an NFS server that supports multiple writers. Which access mode should be specified in the PersistentVolume?
Medium600Which component is responsible for running containers on a Kubernetes node?
Easy601You want to view the resource usage of all pods in the cluster. What command should you run?
Easy602You are troubleshooting DNS resolution from within a pod. You exec into the pod and run 'nslookup kubernetes.default.svc.cluster.local'. The command fails with 'connection timed out; no servers could be reached'. However, 'kubectl get svc -n kube-system' shows the kube-dns service with a ClusterIP. What is the MOST likely cause?
Medium603During a 'kubeadm init', the administrator sees the message 'Your Kubernetes control-plane has been initialized successfully!' but the 'kubectl get nodes' shows the control plane node as 'NotReady'. What is the most likely missing step?
Easy604You initialize a cluster with 'kubeadm init' and want to join a worker node. What is the correct command to generate the join command?
Medium605Which kubeconfig context is currently active?
Medium606Which FOUR are correct ways to configure a default deny all ingress traffic NetworkPolicy? (Choose 4)
Hard607Which command shows the logs of a pod that has crashed and restarted?
Easy608A cluster uses Flannel as the CNI plugin. Which of the following best describes Flannel's networking model?
Medium609Which TWO of the following are components of the Ingress API? (Select TWO.)
Medium610A Kubernetes cluster has a Service of type ClusterIP named 'my-svc' in the 'default' namespace. You deploy a pod and want it to resolve the service's cluster IP using DNS. What FQDN should the pod use?
Medium611You need to back up etcd data for a cluster running Kubernetes v1.29. Which command correctly creates a snapshot?
Medium612Which of the following CNI plugins typically uses BGP to distribute routing information across nodes?
Hard613To check the expiration date of all certificates managed by kubeadm, which command should you run?
Medium614Which command shows resource usage (CPU/memory) of all pods in the default namespace?
Easy615A team is configuring etcd for a multi-node Kubernetes cluster. They want to ensure that etcd data is encrypted at rest. Which approach should they use?
Hard616Which of the following is a valid use case for a Headless Service?
Easy617A node in your cluster is marked as NotReady. You SSH into the node and run 'systemctl status kubelet'. The output shows the kubelet is inactive (dead). What should you do FIRST to restore the node?
Medium618In a Kubernetes cluster using CoreDNS, what is the DNS name for a Service named 'api' in namespace 'backend'?
Medium619Which command lists all events in the cluster sorted by timestamp?
Easy620Which ONE of the following is a valid field in a PodSpec for defining init containers?
Medium621Which of the following is NOT a control plane component?
Easy622You want to temporarily access a pod's HTTP endpoint on port 8080 from your local machine on port 9090. Which command should you use?
Easy623Which TWO of the following will cause a pod to be rescheduled to a different node? (Select TWO.)
Medium624A Job named 'pi' runs a container that computes pi to 2000 digits. The Job's spec has completions=3 and parallelism=2. After some time, you observe that two pods completed successfully, and the third pod is still running. What is the expected behavior when the third pod completes?
Hard625You run 'kubectl get nodes' and one node shows 'NotReady'. Which command should you run first to check the kubelet status on that node?
Medium626A pod is not able to communicate with another pod in the same namespace. Both pods are running and have IP addresses. Which command can you use to test connectivity from the first pod to the second pod's IP?
Hard627A user reports that they can't authenticate to the cluster using a kubeconfig file. Running 'kubectl config view' shows the current context points to a user with client certificate and key. Which command checks the expiration date of the client certificate?
Hard628Your cluster has three control plane nodes. You suspect the etcd cluster has a leader election issue. Which TWO commands can help diagnose the etcd cluster health and membership? (Choose TWO.)
Medium629Which kubectl command correctly retrieves the list of EndpointSlices for a Service named 'my-svc' in the 'default' namespace?
Medium630You run 'kubectl get pods' and see a pod in 'CrashLoopBackOff'. You want to see the logs of the last crashed instance. Which command should you run?
Medium631What is the default DNS name for a Service named 'my-svc' in namespace 'my-ns'?
Easy632You are asked to backup the etcd database on a control plane node. The etcd is running as a static pod. Which command sequence will create a consistent snapshot?
Hard633You run 'kubectl get pods' and see a pod in 'ImagePullBackOff' state. Which of the following is NOT a common cause?
Medium634You have a kubeconfig file with multiple contexts. How do you switch to the context named 'prod-cluster'?
Medium635You are troubleshooting a pod that is in 'CrashLoopBackOff' state. You run 'kubectl logs mypod' and get no output. You then run 'kubectl logs mypod --previous' and see an error: 'Error: failed to start container: context deadline exceeded'. What is the MOST likely cause?
Hard636A pod is unable to resolve DNS names. You exec into the pod and run 'nslookup kubernetes.default.svc.cluster.local'. The command hangs. What is the MOST likely cause?
Medium637You have a Deployment with spec.replicas=3. You update the container image. The rollout gets stuck because the new ReplicaSet cannot create pods due to an image pull error. Which command would you use to roll back to the previous revision?
Medium638An administrator is preparing a StorageClass for a stateful application. The cluster's default StorageClass uses immediate binding, which causes PersistentVolumes to be provisioned before the consuming Pod is scheduled. The administrator wants volumes to be provisioned only after the scheduler has selected a node, so that topology-aware constraints (such as zone-local disks) can be honored. Which change to the StorageClass should the administrator make?
Medium639A pod is in Pending state. You run 'kubectl describe pod' and see the event: '0/4 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate, 3 node(s) had taint {node.kubernetes.io/not-ready: }.'. What is the most likely reason?
Medium640An Ingress resource uses 'networking.k8s.io/v1' API. Which field specifies the hostname and path rules for routing traffic?
Medium641Which TWO network plugins (CNI) are commonly used in Kubernetes clusters? (Select TWO)
Medium642A NetworkPolicy allows ingress traffic from pods with label 'app: frontend' in any namespace. Which selector is used?
Hard643A company wants to expose a web application running as a Deployment with 3 replicas to external users. They need a stable IP address that does not change and the ability to terminate TLS. Which resource should they use?
Medium644Which THREE of the following are valid considerations when using resource requests and limits? (Select 3)
Hard645You run 'kubectl get nodes' and see that a node is 'NotReady'. You SSH into the node and run 'systemctl status kubelet'. The output shows 'Active: inactive (dead)'. What is the most likely cause?
Medium646A ServiceAccount 'monitor-sa' needs to be able to list Pods in namespace 'monitoring'. Which RBAC configuration is appropriate?
Hard647Which command would you use to check the status of the kube-apiserver on a control plane node managed by systemd?
Easy648You have a Deployment that should have a rolling update with no downtime. You set maxSurge to 25% and maxUnavailable to 0%. With 4 replicas, how many pods will be created above the desired count during the update?
Medium649A DaemonSet named 'fluentd' is configured to run on all nodes. After adding a new node to the cluster, you notice that the DaemonSet pod is not running on the new node. What could be the cause?
Medium650A node in your cluster is reporting a DiskPressure condition. Which kubectl command would you use to get details about the node's condition?
Easy651Which two scheduling constraints can be used to ensure a pod runs on a node that has a specific label?
Hard652You have a Deployment with livenessProbe configured. The pod restarts every few minutes. 'kubectl describe pod' shows the liveness probe is failing with 'HTTP probe failed with statuscode: 503'. The application's /healthz endpoint returns 200 from within the pod using 'kubectl exec'. What could be the issue?
Hard653You run: kubectl expose deployment web --port=80 --target-port=8080 --type=LoadBalancer --name=web-svc. What is the effect of this command?
Medium654Refer to the exhibit. A pod is defined with an emptyDir volume using memory medium. The pod is scheduled on a node with 4 GB of RAM. The container writes 3 GB of data to /cache. What will happen?
Hard655Which TWO statements about EndpointSlices are true? (Choose 2)
Medium656A developer creates a PVC with storageClassName: "" (empty string). What does this mean?
Medium657A pod with a resource request of 500m CPU and a limit of 1 CPU is scheduled. The node has a CPU capacity of 2 cores. What does the '500m' represent?
Medium658Which command can you use to view the logs of a container that has crashed and been restarted?
Easy659Which of the following can be used to expose a set of pods externally to the internet in a Kubernetes cluster? (Select THREE.)
Medium660Which three are valid pod phases?
Medium661You have a StatefulSet with 5 pods, each requiring a unique stable network identity. The StatefulSet is scaled down from 5 to 3. Which pods will be terminated?
Hard662Which two statements about HorizontalPodAutoscaler (HPA) are correct?
Medium663A DevOps team is deploying a stateful application that requires persistent storage with ReadWriteMany access mode across multiple pods running on different nodes in a Kubernetes cluster. Which storage solution should they choose to meet this requirement?
Medium664A developer created a ClusterRole named 'pod-reader' with rules to get and list pods. They created a ClusterRoleBinding 'read-pods-global' binding this ClusterRole to a service account 'sa-pod-reader' in the 'default' namespace. Which of the following is true about the permissions of this service account?
Medium665A node is NotReady. You ssh into the node and run 'systemctl status kubelet'. It shows 'Active: inactive (dead)'. What is the most appropriate next step?
Hard666Which control plane component stores the entire cluster state?
Easy667After upgrading the control plane using kubeadm, you need to update the kubelet configuration on the node. Which command should you run on the node?
Medium668Which TWO of the following are valid ways to inject a ConfigMap into a pod as environment variables? (Select 2)
Medium669You run 'kubectl get nodes' and see that one node is in the 'NotReady' state. Which command would you use FIRST to investigate the kubelet status on that node?
Medium670Which command creates a ConfigMap named 'app-config' from a file 'config.properties'?
Easy671A Kubernetes cluster has a node pool with GPU nodes labeled 'accelerator=nvidia-tesla'. A Pod requires a GPU. Which configuration is necessary?
Hard672An administrator runs 'kubectl get pods' and sees a pod in 'Pending' state. The output of 'kubectl describe pod pod-name' shows '0/1 nodes are available: 1 node(s) had taint that the pod didn't tolerate'. What is the most likely cause?
Medium673Which TWO statements about Kubernetes resource requests and limits are correct? (Select 2)
Medium674A pod has tolerations for a taint with key 'dedicated', value 'gpu', and effect 'NoSchedule'. The pod's nodeSelector is {disktype: ssd}. Which node(s) can this pod be scheduled on? (Assume node1 has taint dedicated=gpu:NoSchedule and label disktype=ssd; node2 has taint dedicated=gpu:NoSchedule and label disktype=hdd; node3 has no taint and label disktype=ssd)
Hard675A Deployment named 'app' has 3 replicas. The rolling update strategy is set with maxSurge=1 and maxUnavailable=1. During an update, a new ReplicaSet is created. How many pods will be in terminating state at the moment when the new ReplicaSet has 2 pods ready?
Medium676You have a pod that is in 'Pending' state. Which command would you use to view detailed information about the pod's status, including events that may indicate why it is not running?
Easy677You run 'kubeadm certs check-expiration' and see that the 'apiserver' certificate expires in 30 days. What is the correct way to renew just that certificate using kubeadm?
Hard678Which access mode allows multiple pods on different nodes to mount a PersistentVolume as read-write?
Easy679You need to allow a specific user to create and manage deployments in the 'development' namespace only. Which RBAC resources should you create?
Medium680You are a CKA managing a production cluster with 5 worker nodes. A developer reports that a new deployment 'payment-service' is not accessible from other pods via its Service 'payment-svc' in the 'default' namespace. The Service is of type ClusterIP with selector 'app: payment'. The deployment has 3 replicas, all showing 'Running' status. From a test pod, you run 'curl http://payment-svc:8080' and get 'Connection refused'. You verify that the pods are listening on port 8080 and the container's readiness probe passes. 'kubectl get endpoints payment-svc' shows no endpoints. 'kubectl describe svc payment-svc' shows the selector 'app=payment'. What is the most likely cause?
Hard681Which of the following describes the role of init containers in a pod?
Easy682A StatefulSet 'db' has 3 replicas. You scale it down to 1. In what order are the pods deleted?
Hard683What is the purpose of a headless Service (clusterIP: None)?
Easy684Which THREE of the following are correct about using a hostPath volume in Kubernetes? (Select THREE)
Hard685Which kubeconfig context field defines the set of users, clusters, and namespaces for kubectl operations?
Easy686You need to back up the etcd database for a kubeadm-created cluster. Which directory contains the etcd data?
Hard687Which Ingress resource field is used to specify the hostname for which traffic should be routed?
Medium688Which TWO statements about Ingress in Kubernetes are correct?
Medium689Which volume type is typically used to share configuration data with a pod as files, where the data is stored in the cluster as a resource?
Easy690A StatefulSet named 'web' uses volumeClaimTemplates to create PVCs for each replica. You scale the StatefulSet from 3 to 5 replicas. What happens to the PVCs?
Medium691You need to expose a Deployment named 'web' on port 80 inside the cluster. Which kubectl command creates a ClusterIP service?
Easy692You have a Pod that needs to run a database migration before the main application container starts. Which Kubernetes concept should you use?
Medium693You create a CronJob that should run every day at midnight. The CronJob has a startingDeadlineSeconds of 100. If the CronJob controller is down for 2 minutes, what happens?
Hard694Which two of the following are valid service discovery methods in Kubernetes? (Choose two.)
Easy695A cluster has kube-proxy running in ipvs mode. An administrator creates a Service of type ClusterIP. Which of the following is true about how traffic is forwarded to the pods?
Hard696You run 'kubectl get pods' and see that a pod named 'db' is in 'CrashLoopBackOff'. Which TWO commands are most useful for diagnosing the issue? (Choose two)
Medium697A Node is reporting DiskPressure condition. Which action is most appropriate to resolve this without losing data?
Medium698Which THREE of the following are true about NetworkPolicy in Kubernetes? (Select 3)
Hard699What does the 'volumeMode: Block' setting in a PersistentVolume spec indicate?
Easy700A PersistentVolumeClaim named 'my-pvc' is created and remains in 'Pending' state. Which command should the administrator use to investigate the reason?
Easy701You have a Deployment with 3 replicas. One of the pods is in 'Pending' state. 'kubectl describe pod' shows: 'Warning FailedScheduling 0/4 nodes are available: 1 node(s) had taint {key1: value1}, that the pod didn't tolerate, 3 node(s) didn't match pod anti-affinity rules.' Which two issues are preventing the pod from being scheduled?
Medium702A pod named 'web' in the 'default' namespace is in Running state, but users report that the application is not responding. You run 'kubectl exec web -- curl -v http://localhost:8080' and see 'Connection refused'. The pod's container is listening on port 8080. Which of the following is the MOST likely cause?
Medium703Given 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 image: nginx ports: - containerPort: 8080 --- apiVersion: v1 kind: Service metadata: name: my-service spec: selector: app: my-app ports: - port: 80 targetPort: 8080 ``` A pod in the same namespace tries to reach my-service on port 80. What is the most likely outcome?
Easy704Which of the following is a core control plane component of Kubernetes?
Easy705Which TWO components are part of the Kubernetes control plane? (Select 2)
Easy706You are troubleshooting a node that shows 'NotReady' status. Which TWO commands can help you investigate the kubelet state?
Easy707Which TWO of the following are valid volumeBindingMode values for a StorageClass?
Medium708You have a Deployment with 3 replicas. You create a headless service (clusterIP: None) with a label selector. Which of the following is true about DNS resolution for this service?
Hard709Which command creates a kubeconfig file that can be used to authenticate as a specific user?
Easy710Which component is responsible for running containers on a node?
Easy711You are debugging a DNS issue in the cluster. Which of the following tools is commonly used to test DNS resolution from within a Pod?
Medium712You deploy a pod with the following YAML: apiVersion: v1 kind: Pod metadata: name: test-pod spec: containers: - name: test image: nginx resources: requests: memory: "64Mi" cpu: "250m" limits: memory: "128Mi" cpu: "500m" The pod starts, but after a few minutes it is killed with OOMKilled. What is the MOST likely reason?
Medium713Which TWO statements are true about Ingress in Kubernetes?
Medium714You run 'kubectl get pods' and see a pod in 'CrashLoopBackOff'. What command would you run to see the reason for the crash?
Medium715Which of the following is a core control plane component responsible for persisting cluster state?
Easy716A developer runs 'kubectl run nginx --image=nginx --expose --port=80'. What Kubernetes resources are created?
Medium717Which DNS record type does Kubernetes use to resolve a Service's ClusterIP?
Easy718A NetworkPolicy with podSelector: {} and policyTypes: [Ingress] is applied to a namespace. What is the effect on pods in that namespace?
Hard719A Pod is stuck in Pending state. Running 'kubectl describe pod' shows '0/3 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/control-plane: }, 2 node(s) had taint {node-role.kubernetes.io/master: }'. The Pod does not have tolerations. What is the most likely cause?
Hard720A developer deployed a Pod that is stuck in Pending state. The cluster has one worker node with taint 'node.kubernetes.io/disk-pressure:NoSchedule'. The Pod does not specify any tolerations. What is the most likely cause?
Easy721You 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?
Medium722You need to create a Kubernetes ServiceAccount named 'build-bot' and ensure that pods using this ServiceAccount can authenticate to the Kubernetes API using a long-lived token. Which TWO steps are necessary? (Choose TWO.)
Medium723Which kubectl command will expose a deployment named 'web-app' as a NodePort service on port 80?
Easy724Which TWO commands can be used to check the expiration of certificates managed by kubeadm?
Easy725Which THREE of the following are true about the interaction between PersistentVolumeClaims and pods?
Hard726Which THREE statements about NetworkPolicy are correct?
HardOther domains
All CKA exam domains
Frequently asked questions
- What does the scenario questions domain cover on the CKA exam?
- scenario questions questions test whether you can apply the concept in context, not just recognise a definition.
- How many questions are in this domain?
- This page lists all 726 scenario questions questions in the CKA question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
- What is the best way to practise this domain?
- Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
- Can I practise only scenario questions questions?
- Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.