Kubernetes Quiz
Select your difficulty level to begin the quiz
Free Kubernetes quiz with 97 multiple-choice questions on Pods, Deployments, Services, scheduling, storage, networking, security and kubectl, at beginner, advanced and expert level. Every answer comes with an explanation.
Latest Kubernetes Articles
How to debug a Pod stuck in Pending in Kubernetes
How to check and renew kubeadm certificates in Kubernetes
Agent Substrate explained: how it suspends and resumes AI agents on Kubernetes
How to debug OOMKilled containers in Kubernetes
CVE-2026-123158 (*sshole): the OpenSSH password bypass on Alpine
How to drain Kubernetes nodes safely with PodDisruptionBudgets
OCI images explained: manifests, layers, media types and artifacts
Kubernetes 1.35 Timbernetes: What Breaks, What's Deprecated, and How to Upgrade Without Surprises
Kubernetes 1.36: What's New, What's Gone, and What You Should Care About
cgroup v1 vs cgroup v2: real differences and concrete impacts on Kubernetes workloads
Differences and Changes Between containerd v1.x and v2.0: Impacts on Running Containers in Kubernetes
Migrating from Ingress to Gateway API in Kubernetes
Exploring the New Features in Kubernetes 1.35: Timbernetes - The World Tree Release
Kubernetes graphs
Deployment, Service and Ingress: how a request reaches your Pods
Gateway API: GatewayClass, Gateway and HTTPRoute with a canary split
PVC, StorageClass and CSI: how a cloud disk ends up in your Pod
RBAC: how a ServiceAccount gets its permissions
Inside an OCI image: tag, index, manifests, config and layers
A StatefulSet database: headless Service, per-Pod volumes, snapshots and restore
Autoscaling end to end: KEDA, the HPA it creates and Karpenter adding nodes
Prometheus Operator: ServiceMonitor, PrometheusRule and the path to an alert
External Secrets Operator: from a cloud secret manager to a Pod, with rotation
Agent Substrate: actors, warm workers and snapshots on Kubernetes
All Kubernetes questions
Each question has its own page with the answer and an explanation.
Beginner: 27 easy questions
- Which kubectl command is used to view the logs of a pod?
- What is a Pod in Kubernetes?
- What is the purpose of a Kubernetes Service?
- Which command would you use to create a deployment from a YAML file?
- Which kubectl command would you use to get detailed information about a specific pod?
- What is a Kubernetes Namespace used for?
- What is the purpose of a ConfigMap in Kubernetes?
- Which command would you use to scale a deployment named 'nginx-deployment' to 5 replicas?
- Which kubectl command would you use to view all pods in all namespaces?
- Which command would you use to create a new namespace called 'development'?
- Which kubectl command would you use to edit a running deployment named 'web-app'?
- What is the purpose of a Kubernetes Secret?
- Which kubectl command would you use to view the resource usage of pods?
- What happens when you apply a resource that already exists in the cluster?
- Which command would you use to get the YAML definition of a running pod named 'web-app'?
- What is the purpose of the 'kubectl port-forward' command?
- What happens to a pod's data when it is deleted?
- Which command would you use to view events in a Kubernetes cluster?
- Which kubectl command would you use to view the current context?
- What is the purpose of the 'kubectl exec' command?
- After maintenance on a drained Kubernetes node, which command lets the scheduler place new pods on it again?
- A Kubernetes container shows reason OOMKilled with exit code 137. What does the exit code 137 tell you?
- A container restarted after an out-of-memory kill. Which field of the Kubernetes pod status records that the previous run was OOMKilled?
- A container writes files to an emptyDir volume with medium: Memory. What do those files count against?
- Which command shows when each certificate in a kubeadm cluster's control plane PKI expires?
- With default settings, how long are the leaf certificates that kubeadm generates for the control plane valid?
- kubectl get pods shows a Pod with STATUS SchedulingGated. What makes the scheduler start trying to place it?
Advanced: 41 medium questions
- Which component of the Kubernetes control plane is responsible for maintaining the desired state of the cluster?
- What is the difference between a Deployment and a StatefulSet?
- A pod is stuck in 'Pending' state. What is the most likely cause?
- Which component is responsible for maintaining network rules on nodes and enabling pod-to-pod communication?
- What is a DaemonSet used for in Kubernetes?
- What happens when a node in a Kubernetes cluster fails?
- What is the purpose of a PersistentVolume in Kubernetes?
- What is the difference between a ClusterIP and a NodePort service?
- What is a Kubernetes Ingress?
- A pod is in 'CrashLoopBackOff' state. What does this indicate?
- Which component is responsible for executing containers on nodes?
- What is the purpose of a Kubernetes ReplicaSet?
- Which network plugin is commonly used in Kubernetes to implement the Container Network Interface (CNI)?
- What is the purpose of a PersistentVolumeClaim (PVC)?
- Which command would you use to delete a pod named 'nginx' immediately without a grace period?
- What is the difference between 'kubectl create' and 'kubectl apply'?
- What is a Kubernetes Taint?
- What is the purpose of a NetworkPolicy in Kubernetes?
- What is a Kubernetes StatefulSet used for?
- Which component stores the state of the Kubernetes cluster?
- What is the purpose of a Kubernetes Job?
- What is a Kubernetes CronJob?
- What is the purpose of a Kubernetes HorizontalPodAutoscaler?
- What is the difference between a liveness probe and a readiness probe?
- What is the purpose of a ServiceAccount in Kubernetes?
- Which command would you use to create a secret from a file?
- What is the purpose of a Kubernetes InitContainer?
- Which component is responsible for scheduling pods onto nodes?
- What is the purpose of a Kubernetes ResourceQuota?
- What is the difference between a RollingUpdate and a Recreate deployment strategy?
- Which command would you use to view the logs of a specific container in a multi-container pod?
- What is a Kubernetes Toleration?
- What is the purpose of a Kubernetes StorageClass?
- Which command would you use to drain a node for maintenance?
- What is the purpose of the 'kubectl rollout' command?
- What is a Kubernetes Endpoint?
- Which command would you use to label a node?
- Which HTTP status code does the Kubernetes Eviction API return when a PodDisruptionBudget blocks an eviction?
- The kubelet evicts a pod because its node has crossed the memory.available hard eviction threshold. What happens to that pod?
- After running kubeadm certs renew all, openssl still shows the old expiry date on the certificate served on port 6443. What is the most likely reason?
- A Deployment wants 5 replicas but only 3 Pods exist and none is Pending. Where does a ResourceQuota rejection show up?
Expert: 29 hard questions
- What is a Kubernetes Operator?
- What is a Kubernetes Admission Controller?
- What is a Kubernetes Custom Resource Definition (CRD)?
- What is a Kubernetes PodDisruptionBudget used for?
- What is the purpose of a Kubernetes ValidatingWebhookConfiguration?
- What is the purpose of a Kubernetes PriorityClass?
- What is the purpose of a Kubernetes MutatingWebhookConfiguration?
- Every container in a pod sets CPU and memory limits but no requests. What QoS class does the pod get?
- A container keeps trying to use more CPU than its CPU limit. What happens?
- A pod was scheduled using a requiredDuringSchedulingIgnoredDuringExecution node affinity rule. Later someone removes the matching label from the node. What happens to the pod?
- A node gets a NoExecute taint. A pod already running on it tolerates the taint with tolerationSeconds: 300. What happens?
- What does a DNS lookup of a headless Service (clusterIP: None) with a selector return?
- What does externalTrafficPolicy: Local do on a NodePort or LoadBalancer Service?
- In a NetworkPolicy ingress rule, what is the difference between putting namespaceSelector and podSelector in the same 'from' entry and putting them in two separate entries?
- Two controllers read the same Deployment and both send an update based on what they read. How does the API server stop the second update from silently overwriting the first?
- A namespace has been stuck in Terminating for hours. What is the most likely cause?
- What does podManagementPolicy: Parallel change in a StatefulSet?
- What does volumeBindingMode: WaitForFirstConsumer on a StorageClass do?
- A slow-starting application is killed by its liveness probe before it finishes starting. What is the recommended fix?
- Which Pod Security Standards level requires pods to run as non-root, drop ALL capabilities, and use a seccomp profile?
- A Kubernetes Deployment runs 7 replicas and its PodDisruptionBudget sets minAvailable: "50%". How many pods must stay available during a drain?
- A pod in CrashLoopBackOff keeps its Kubernetes PodDisruptionBudget at zero allowed disruptions and blocks a node drain. Which PDB setting lets the drain evict running pods that aren't Ready?
- What happens when you try to evict a Kubernetes pod that is selected by two different PodDisruptionBudgets?
- On cgroup v2 nodes, which kubelet configuration field makes the kernel OOM-kill only the offending process in a container instead of every process in it?
- Why is kubelet.conf missing from the output of kubeadm certs check-expiration?
- A kubeadm apiserver certificate still has 300 days left. What does kubeadm certs renew apiserver do?
- Why can a node with 10% actual CPU usage still produce 'Insufficient cpu' in a FailedScheduling event?
- Why does 'pod has unbound immediate PersistentVolumeClaims' appear in a FailedScheduling message without a per-node count?
- A Pod requests 64 CPU on a cluster of 16-CPU nodes. Why does its event end with 'Preemption is not helpful for scheduling'?