Security in Kubernetes is critical to ensuring safe and compliant cluster operations. It covers aspects such as authentication, authorization, RBAC, secrets management, pod security policies, and network policies.
This set of multiple-choice questions (MCQs) is designed to test and improve your understanding of Kubernetes security concepts from both a theoretical and practical perspective. These MCQs are particularly useful for preparing for certification exams and job interviews in the cloud-native ecosystem.
1.) What does RBAC stand for in Kubernetes?
2.) Which of the following components enforces RBAC rules in Kubernetes?
3.) What command lists all cluster roles in the current Kubernetes cluster?
4.) What is the purpose of Kubernetes Secrets?
5.) What is the default namespace for Kubernetes secrets and config maps?
6.) What command is used to create a secret from a literal value?
7.) What does a Kubernetes service account provide?
8.) Which of the following is NOT a valid Kubernetes security context field?
9.) Which resource limits what a pod can do (like running as root)?
10.) Which of the following tools helps scan Kubernetes clusters for security issues?