Question 380
At Timberline Foods, the supply-chain applications team is managing a factory inventory cluster with requirements for operational resilience and accurate stock changes. The team claims a correction and requests independent validation for: A Service has the correct selector but no healthy endpoints because the matching Pods are not ready. Which observed result BEST confirms the intended correction?
Explanation
Correct Answer
Ready Pods appear in the endpoint set and client connections recover without routing to unready replicas. This demonstrates that the originally documented problem was resolved: A Service has the correct selector but no healthy endpoints because the matching Pods are not ready. The corresponding corrective approach is: Check selector labels and readiness conditions so the Service advertises only eligible endpoints. For Timberline Foods, this observed outcome is more meaningful than a completed ticket or configuration claim.
Incorrect Answers
An in-cluster DNS lookup resolves the expected Service while Pod lifecycle remains managed by Kubernetes controllers and kubelet. That observed result would support another specific correction: Identify CoreDNS or the configured DNS service as providing service name resolution, not scheduling or container execution. The other scenario concerns: A troubleshooting guide treats CoreDNS as a container runtime that restarts failed Pods instead of a cluster DNS component. The current Timberline Foods problem is: A Service has the correct selector but no healthy endpoints because the matching Pods are not ready. The evidence required here is: Ready Pods appear in the endpoint set and client connections recover without routing to unready replicas.
The service's EndpointSlices contain only the desired backend addresses and client traffic flows again. That observed result would support another specific correction: Restore a valid Service selector or explicitly manage EndpointSlices when a selectorless Service is intentional. The other scenario concerns: A team removes all Service selectors expecting the cluster to automatically discover arbitrary backend Pods anyway. The current Timberline Foods problem is: A Service has the correct selector but no healthy endpoints because the matching Pods are not ready. The evidence required here is: Ready Pods appear in the endpoint set and client connections recover without routing to unready replicas.
Approved application Pods connect to the database while a disallowed test Pod is blocked by the policy-aware network layer. That observed result would support another specific correction: Apply an ingress policy selecting the database Pods with the minimum permitted client sources and ports. The other scenario concerns: A security team intends to limit inbound access to a database but writes only an egress NetworkPolicy for its namespace. The current Timberline Foods problem is: A Service has the correct selector but no healthy endpoints because the matching Pods are not ready. The evidence required here is: Ready Pods appear in the endpoint set and client connections recover without routing to unready replicas.