Certified Kubernetes Administrator (CKA) Flashcards
Browse all 26 cards
How is the CKA exam curriculum organized, and what are the five domains?
It is organized into 5 competency domains: Cluster Architecture, Installation & Configuration; Workloads & Scheduling; Services & Networking; Storage; and Troubleshooting.
Which CKA domain carries the highest exam weighting, and what is it?
Troubleshooting is the most heavily weighted domain at 30% of the exam.
How long is the CKA exam and how many tasks does it contain?
Candidates get 2 hours (120 minutes) to complete 15-20 performance-based tasks.
What score is required to pass the CKA exam?
A score of 66% or above is required to pass.
How long is a CKA certification valid before it must be renewed?
The CKA certification is valid for 2 years from the date it is earned.
How is the CKA exam proctored?
It is remotely proctored through PSI's Bridge platform using the PSI Secure Browser, with live monitoring via streaming audio, video, and screen sharing.
What format does the CKA exam take?
It is a hands-on, performance-based test where candidates solve multiple real tasks directly from a command line on a live Kubernetes cluster, rather than answering multiple-choice questions.
kubectl apply vs kubectl create — what's the key difference?
kubectl create imperatively creates a new resource and fails if it already exists; kubectl apply declaratively creates or updates a resource by reconciling a YAML manifest against the live state, making it safe to re-run.
What is the role of the kube-apiserver?
It is the front-end control-plane component that exposes the Kubernetes API, validates and processes REST requests, and is the only component that talks directly to etcd.
What does etcd store in a Kubernetes cluster?
etcd is the cluster's consistent, distributed key-value store holding all cluster state and configuration data, including object specs and status.
What is the function of kube-scheduler?
It watches for newly created Pods with no assigned node and selects a node for them to run on based on resource requirements, constraints, affinity rules, and taints/tolerations.
What is kubelet's role on a worker node?
It is the primary node agent that ensures containers described in PodSpecs are running and healthy, reporting node and pod status back to the control plane.
What is a Kubernetes Deployment used for?
A Deployment manages a ReplicaSet of Pods declaratively, providing rolling updates, rollbacks, and self-healing to maintain a desired number of Pod replicas.
What is a StatefulSet, and when would you use one?
A StatefulSet manages stateful applications by giving Pods stable, unique network identities and persistent storage that survives rescheduling — used for workloads like databases that need stable identity and ordered deployment/scaling.
What is a DaemonSet?
A controller that ensures a copy of a Pod runs on every (or a selected subset of) node in the cluster — commonly used for log collectors, monitoring agents, or CNI plugins.
How does a Kubernetes Service provide stable networking to Pods?
A Service defines a stable virtual IP and DNS name that load-balances traffic to a dynamic set of Pods selected by label selectors, decoupling clients from individual Pod IPs which change as Pods are recreated.
What are the main Kubernetes Service types?
ClusterIP (internal-only virtual IP, the default), NodePort (exposes the service on a static port on every node), LoadBalancer (provisions an external cloud load balancer), and ExternalName (maps the service to a DNS name).
What is an Ingress resource?
An API object that manages external HTTP/HTTPS access to Services within a cluster, typically providing host- and path-based routing, TLS termination, and load balancing, and requires an Ingress controller to function.
How does a Secret differ from a ConfigMap?
A Secret is intended for sensitive data (passwords, tokens, keys) and is base64-encoded rather than stored in plain text, with tighter access controls, though it is not encrypted at rest by default without additional configuration.
What is a PersistentVolume (PV) and PersistentVolumeClaim (PVC)?
A PersistentVolume is a cluster-level piece of storage provisioned by an admin or dynamically via a StorageClass; a PersistentVolumeClaim is a user's request for storage that binds to a matching PV, abstracting the underlying storage details from Pods.
What are taints and tolerations used for?
Taints are applied to nodes to repel Pods from scheduling onto them unless the Pod has a matching toleration, allowing nodes to be reserved for specific workloads.
What is the first command to run when troubleshooting a failing Pod?
kubectl describe pod <name> to inspect events, container statuses, and conditions, often followed by kubectl logs <name> to check container output.
How do you drain a node for maintenance in Kubernetes?
Use kubectl drain <node>, which safely evicts running Pods (respecting PodDisruptionBudgets) and cordons the node to prevent new scheduling; kubectl uncordon reallows scheduling afterward.
What is a NetworkPolicy?
A NetworkPolicy is a namespace-scoped resource that controls traffic flow between Pods (and to/from external endpoints) at the IP/port level, enforced by a compatible CNI plugin — it is deny-by-default only once a policy selects a Pod.
What does kubeadm do?
kubeadm is the official bootstrapping tool used to initialize a Kubernetes control-plane node (kubeadm init) and join worker nodes (kubeadm join), and is also used for cluster upgrades.
How would you back up and restore etcd?
Use etcdctl snapshot save to create a point-in-time backup of the etcd data store, and etcdctl snapshot restore to recover cluster state from that snapshot — critical for disaster recovery of control-plane state.