Kubernetes networking is essential for enabling communication between containers, pods, and external services. It includes concepts like ClusterIP, NodePort, LoadBalancer, DNS-based service discovery, and network policies.
This post provides a structured set of multiple-choice questions (MCQs) that help to validate key concepts and commands related to Kubernetes networking and service discovery. These MCQs are particularly helpful for interview preparation and real-world troubleshooting in cloud-native environments.
1.) What is the default type of service in Kubernetes?
2.) Which service type is used to expose a service on each Node’s IP at a static port?
3.) What is the function of a kube-proxy in Kubernetes networking?
4.) What is the role of CoreDNS in Kubernetes?
5.) What is the default DNS suffix for services in Kubernetes?
6.) Which service type provisions an external load balancer from the cloud provider
7.) Which of the following allows internal pod-to-pod communication?
8.) What command would you use to inspect all services running in the default namespace?
9.) How do you describe a service named my-service in Kubernetes?
10.) Which command shows all endpoints associated with services?