Beginner Kubernetes quiz
A free beginner Kubernetes quiz with up to 40 multiple-choice questions on Pods, Deployments, Services, scheduling, storage, networking, security and kubectl. Written for people new to the technology, with an explanation for every answer.
Loading Quiz...
Preparing your Kubernetes Beginner level questions
Browse the 27 easy Kubernetes questions, with answers
- 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?