Kubernetes Security Basics for Beginners
An introductory quiz on essential Kubernetes security practices.
Questions in this quiz
15 questions on Kubernetes Security Basics for Beginners. Work through them here, then start the quiz to answer them and see your score.
1.What is the primary purpose of using namespaces in Kubernetes?
- ATo increase CPU allocation
- BTo enhance data storage
- CTo improve network performance
- DTo isolate resources within a cluster
2.Which Kubernetes object is used to control access to the API server?
- ADeployment
- BPod
- CService
- DRole
3.What is the function of a Network Policy in Kubernetes?
- ATo manage storage volumes
- BTo define how pods communicate with each other
- CTo monitor CPU usage
- DTo schedule pods on nodes
4.Which command is used to view the current contexts in Kubernetes?
- Akubectl get contexts
- Bkubectl describe contexts
- Ckubectl config view
- Dkubectl list contexts
5.What is the purpose of using RBAC in Kubernetes?
- ATo balance network load
- BTo control access to resources
- CTo manage pod replicas
- DTo allocate storage
6.Which of the following is a best practice for securing Kubernetes secrets?
- AEncrypt them at rest
- BUse environment variables
- CStore them in plain text
- DShare them publicly
7.What is the role of a PodSecurityPolicy in Kubernetes?
- ATo manage network traffic
- BTo enforce security constraints on pods
- CTo schedule pods
- DTo define CPU limits
8.Which component is responsible for authenticating users in Kubernetes?
- AController Manager
- BKubelet
- CAPI Server
- DScheduler
9.What is the benefit of using a service mesh in Kubernetes?
- AEnhances network security and observability
- BIncreases CPU allocation
- CSimplifies pod scheduling
- DImproves storage efficiency
10.Which Kubernetes object is used to manage sensitive information like passwords?
- AVolume
- BConfigMap
- CSecret
- DIngress
11.What is the purpose of using resource quotas in Kubernetes?
- ATo restrict resource usage per namespace
- BTo manage pod replicas
- CTo limit the number of namespaces
- DTo control API access
12.Which tool can be used for vulnerability scanning in Kubernetes?
- ATrivy
- BKubeadm
- CKubectl
- DKubelet
13.What is the function of a Kubernetes admission controller?
- ATo enforce policies on objects during creation
- BTo schedule pods on nodes
- CTo monitor network traffic
- DTo manage pod replicas
14.How can you restrict access to the Kubernetes dashboard?
- ABy using a firewall
- BBy increasing CPU limits
- CBy implementing RBAC policies
- DBy disabling the dashboard
15.What is a common method to secure communication between Kubernetes components?
- AUsing HTTP
- BUsing TLS
- CUsing SSH
- DUsing FTP