← Back to Kubernetes Quiz
Welcome! ☸️
Test your knowledge on Storage, Networking, and Controllers.
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 Advanced level!
What is a PersistentVolume (PV)?
A PersistentVolume (PV) is a piece of storage in the cluster that has been provisioned by an administrator or dynamically provisioned using Storage Classes.
Which object allows a user to request storage (claim a PV)?
A PersistentVolumeClaim (PVC) is a request for storage by a user.
What is a ConfigMap used for?
ConfigMaps store non-confidential data in key-value pairs.
How are Secrets different from ConfigMaps?
Secrets are specifically intended to hold confidential data like passwords or tokens.
A DaemonSet runs a copy of a Pod on all (or selected) nodes. Useful for logging/monitoring agents.
What is the function of an Ingress?
Ingress exposes HTTP and HTTPS routes from outside the cluster to services within the cluster.
What is a StatefulSet used for?
StatefulSet manages stateful applications, providing stable network IDs (pod-0, pod-1) and persistent storage.
Which probe checks if the container is ready to accept traffic?
A Readiness Probe determines if a container is ready to serve traffic. If failed, it is removed from Service endpoints.
What does a Liveness Probe do?
A Liveness Probe detects if the application has crashed or deadlocked. If it fails, the container is restarted.
What is a Job in Kubernetes?
A Job creates Pods that run to completion (e.g., a batch task).
A CronJob creates Jobs on a repeating schedule (like a cron file in Linux).
usage of ClusterIP: None in a Service?
Setting ClusterIP: None creates a Headless Service , often used with StatefulSets for direct pod-to-pod communication via DNS.
What is an InitContainer?
InitContainers run to completion before any app containers start. They are used for setup scripts or waiting for dependencies.
StorageClass allows administrators to define different tiers of storage and enables dynamic provisioning of PVs.
Static Pods are managed directly by the kubelet (via config files in /etc/kubernetes/manifests) and mirror pods are created on the API server.
How do you inject environment variables into a Pod from a ConfigMap?
You can use valueFrom to reference a specific key or envFrom to load all keys as environment variables.
what is the command to restart a deployment without changing the YAML?
kubectl rollout restart triggers a rolling restart of the deployment, useful for picking up config map changes.
What ensures that a Pod creates a specific folder on the host node?
A hostPath volume mounts a file or directory from the host node's filesystem into your Pod.
What is a ServiceAccount?
ServiceAccounts are for processes running in Pods. User accounts are for humans.
What does emptyDir volume do?
emptyDir is created when a Pod is assigned to a Node and exists as long as that Pod is running on that node. It is initially empty.
Quiz Progress
0 / 0 questions answered
(0% )
0 correct
Quiz Complete!
0%
Reset quiz
📚 Study Guides
📬 Weekly DevOps, Cloud & Gen AI quizzes & guides