Quiz
Test your kubectl, Pod, Service, and RBAC fundamentals before you ship a chart to production.
Sample questions
EXAMPLE
# Kubernetes quiz 1) Which controller is best suited for stateless workloads? a) StatefulSet b) Deployment c) DaemonSet d) Job 2) A Pod is stuck in CrashLoopBackOff. Which command shows the previous container exit? a) kubectl logs pod --previous b) kubectl describe pod | grep state c) kubectl get events d) all of the above 3) Which Service type exposes a Pod on every Node IP at a static port? a) ClusterIP b) NodePort c) LoadBalancer d) ExternalName 4) RBAC: a Role lives in a namespace. What is its cluster-scoped sibling? a) ClusterRoleBinding b) ClusterRole c) Subject d) ServiceAccount 5) ConfigMaps are not for: a) feature flags b) non-secret config files c) database passwords d) commit-time toggles 6) Which probe restarts the container when it fails? a) readinessProbe b) startupProbe c) livenessProbe d) lifecycle hook 7) HPA scales based on: a) CPU only b) memory only c) CPU, memory, or custom metrics d) request count only 8) A PodDisruptionBudget protects against: a) node failure b) too many voluntary disruptions at once c) image pull errors d) OOMKill Answers: 1b, 2d, 3b, 4b, 5c, 6c, 7c, 8b.
Why it matters
If you missed 5 or fewer, jump straight to writing your own Helm chart. If you missed more, redo Deployments, Services, and Probes before HPA and RBAC.
Tip: Tweak the snippet with Try it Yourself », then sit the quiz at the bottom of the page.
Discussion
Loading…