Kubernetes Basics Quiz
← Back to Kubernetes Quiz
Welcome! ☸️
Test your fundamental Kubernetes knowledge with this quick quiz.
Instructions :
Select the best answer for each question.
Your score will be shown at the end.
Aim for 100% to prove you are ready for the next level!
What is the smallest deployable unit in Kubernetes?
A Pod is the smallest and simplest Kubernetes object. A Pod represents a single instance of a running process in your cluster and can contain one or more containers.
Which command lists all pods in the default namespace?
kubectl get pods retrieves a list of all pods in the current namespace.
What is a Kubernetes Service?
A Service identifies a set of Pods using selectors and defines a logical set of Pods and a policy by which to access them.
Which object is used to manage stateless applications and ensures a specified number of replicas are running?
A Deployment provides declarative updates for Pods and ReplicaSets. It is commonly used for stateless applications.
Which command applies a configuration file to a cluster?
kubectl apply -f manages applications through files defining Kubernetes resources. It creates and updates resources declaratively.
What is a Namespace in Kubernetes?
Namespaces provide a scope for names, intended for isolate resources between multiple teams or projects.
Which component controls the Kubernetes cluster?
The Control Plane (Master Node) manages the worker nodes and the Pods in the cluster. It makes global decisions (scheduling) and detects/responds to cluster events.
What is a Node in Kubernetes?
A Node is a worker machine in Kubernetes, managed by the Control Plane.
Which command is used to view logs of a pod?
kubectl logs prints the logs for a container in a pod.
Kubelet is the "node agent" that runs on each node to manage Pods and containers.
Which command gives detailed information about a specific resource?
kubectl describe shows detailed information about a resource, including events and status conditions.
What happens if a Pod crashes in a Deployment?
Kubernetes Deployments (via ReplicaSets) permit self-healing. If a Pod crashes, it is replaced to maintain the desired replica count.
Which command is used to execute a command inside a specific container in a Pod?
kubectl exec allows you to execute a command directly inside a running container (e.g., kubectl exec -it <pod> -- /bin/bash).
What does the "Pending" status of a Pod mean?
Pending means the Pod is created in the API Server but not yet scheduled to a Node (e.g., waiting for resources or matching node selectors).
A ReplicaSet guarantees the availability of a specified number of identical Pods.
Which command deletes a resource defined in a YAML file?
kubectl delete -f removes the resources defined in the specified configuration file.
usage of kubectl port-forward?
kubectl port-forward allows you to access a Pod's internal port from your local machine (localhost) securely.
What is the default restart policy for a Pod?
The default RestartPolicy is Always , meaning the container is restarted if it stops, regardless of the exit code.
Which component stores the cluster data (key-value store)?
etcd is the backing store for all cluster data.
How do you quickly check the cluster info and master URL?
kubectl cluster-info displays addresses of the master and services.
Quiz Progress
0 / 0 questions answered
(0% )
0 correct
Quiz Complete!
0%
Reset quiz
📚 Study Guides
📬 Weekly DevOps, Cloud & Gen AI quizzes & guides