CKA Cheat Sheet 2026
The 30 highest-yield CKA facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
66 questions
120 min time limit
66.00% to pass
- You are upgrading a node's kubelet. What must you do immediately after installing the new kubelet package? → Reload systemd daemon and restart kubelet (daemon-reload && systemctl restart kubelet)
- What is a Pod in Kubernetes? → The smallest deployable unit that can contain one or more containers
- You want to create a ConfigMap from a directory of config files. Which command accomplishes this? → kubectl create configmap myconfig --from-file=./config-dir/
- Which etcd operation should be performed before upgrading the Kubernetes control plane? → etcd snapshot backup
- Which Service type allows external access to a Kubernetes application through a specific port on each node in the cluster? → NodePort
- An AppArmor profile is applied to a container using which mechanism in Kubernetes? → An annotation on the pod: `container.apparmor.security.beta.kubernetes.io/`
- Which ConfigMap in the kube-system namespace stores the kubeadm cluster configuration? → kubeadm-config
- Which kubeadm command is run on a worker node during a cluster upgrade (after the control plane is already upgraded)? → kubeadm upgrade node
- Which Kubernetes object defines the permissions granted by a ClusterRole to a set of users across all namespaces? → ClusterRoleBinding
- Which NetworkPolicy `podSelector: {}` (empty) in the spec means? → All Pods in the namespace are selected
- Which type of workload should you use for a Pod that must run on every node in a Kubernetes cluster? → DaemonSet
- Which command displays only the last 50 lines of logs from pod 'api'? → kubectl logs api --tail=50
- What is a ConfigMap? → An object storing non-confidential configuration data as key-value pairs
- What is a Persistent Volume (PV)? → A storage resource in the cluster provisioned independently of Pod lifecycle
- How do you restrict communication between Pods in a Kubernetes cluster? → By using Network Policies.
- What does 'kubectl get pods' show? → A list of all Pods and their status in the current namespace
- What is the correct order of operations when upgrading a multi-node Kubernetes cluster using kubeadm? → Upgrade control plane first, then drain and upgrade each worker
- What is a Kubernetes Deployment? → A resource that manages ReplicaSets and provides declarative updates for Pods
- What does the `ipBlock` field in a NetworkPolicy ingress rule define? → A CIDR range of IP addresses allowed or denied as traffic sources
- A Pod needs to reach an external hostname 'db.example.com'. Which DNS resolution path does it use by default? → The cluster DNS (CoreDNS) which then forwards to upstream resolvers
- Which of the following ensures that Pods run with restricted permissions in Kubernetes? → Security Context
- Which Kubernetes resource is used to securely store sensitive data like API keys and passwords? → Secret
- What happens when a Service's label selector matches no running pods? → The Endpoints object has no entries and traffic to the service is dropped
- A `postStart` hook fails. What does Kubernetes do to the container? → Kills and restarts the container
- You set a Deployment's strategy type to Recreate. What happens during an update? → Old pods are terminated before new pods are created
- What is the primary purpose of an Ingress resource in Kubernetes? → To manage HTTP/HTTPS routing from outside the cluster to internal services
- How is Secret data stored in etcd by default in a Kubernetes cluster? → Base64-encoded but not encrypted
- What field in a projected volume allows you to combine a ConfigMap and a Secret into a single volume mount path? → projected.sources
- Which object automatically tracks the IP addresses and ports of Pods backing a Service in large clusters (1000+ endpoints)? → EndpointSlices
- What flag in kubeadm init allows you to specify the pod network CIDR? → --pod-network-cidr
Turn these facts into recall: