Question 1010
At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: Service invoice-svc in ledger exists but requests fail and its EndpointSlices list no ready backends. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?
Explanation
Correct Answer
A Service may exist without usable backends because labels or Pod readiness do not match expected routing. This explains the stated condition. The corresponding action is: Run kubectl -n ledger describe service invoice-svc and kubectl -n ledger get endpointslices -l kubernetes.io/service-name=invoice-svc. The direct acceptance evidence is: Confirm endpoint addresses appear for healthy selected Pods and test a request through invoice-svc.
Incorrect Answers
This principle describes a separate cause: Cluster DNS search domains and dnsPolicy control short-name resolution; resolving a public hostname is not proof of Kubernetes Service resolution. The reported condition is governed by: A Service may exist without usable backends because labels or Pod readiness do not match expected routing. The two mechanisms should not be conflated.
The offered statement is true for this other mechanism: A PVC binds only to compatible available storage or successful dynamic provisioning; absent provisioners, quotas or delayed binding can leave it Pending. It does not explain the facts described here, which follow from: A Service may exist without usable backends because labels or Pod readiness do not match expected routing.
This principle describes a separate cause: The Service routes to its configured backend target port; working DNS does not establish that the destination process is listening there. The reported condition is governed by: A Service may exist without usable backends because labels or Pod readiness do not match expected routing. The two mechanisms should not be conflated.