Kubernetes is widely adopted for deploying, scaling, and managing containerized applications. To ensure production-grade reliability and efficiency, it’s crucial to follow best practices such as resource limits, security configurations, and cluster monitoring.
In this post, we present a curated set of multiple-choice questions (MCQs) on Kubernetes best practices and real-world use cases. These MCQs are designed to reinforce practical knowledge for interviews, exams, and real-world Kubernetes usage in enterprise environments.
1.) What is a recommended way to avoid resource starvation in Kubernetes Pods?
2.) Why should you use readiness probes in production applications?
3.) Which command shows the current resource usage of nodes and pods?
4.) What is the benefit of using namespaces in Kubernetes?
5.) Why should ConfigMaps and Secrets be used instead of hardcoding values?
6.) What is the best practice for storing sensitive credentials in Kubernetes?
7.) Which probe ensures that Kubernetes restarts a pod if it’s stuck?
8.) What does the command kubectl get all -n production return?
9.) What is the main purpose of using Horizontal Pod Autoscaler (HPA)?
10.) How can you apply a YAML manifest to a cluster?