- Correct answer: (D) By the selector label. When you create a service object, you include a selector that includes the label to match for the service endpoints. Any matching pods will be added as an endpoint.
- Correct answer: (B)
kubectl get ep <service name>. Services use endpoints to select the pods that receive requests to the service. One of the first steps when it comes to troubleshooting a service is to verify that endpoints have been assigned.
- Correct answer: (B) False. Some distributions do include support for
LoadBalancerservices out of the box, but most still do not include support without the need to add a component such as MetalLB.
- Correct answer: (D) Layer 4. The two load balancers used in Kubernetes are Layer 7 and Layer 4. Layer 7 load balancers run in Layer 7 of the OSI model and can only accept application-level traffic such as HTTP and HTTPS. Since Layer 4 load balancers run at a lower layer of the OSI model, they have access to lower...