Question 1020
At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Service dispatch-svc in fulfillment exists but requests fail and its EndpointSlices list no ready backends. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?
Explanation
Correct Answer
Add labels, readiness and EndpointSlice checks to Service deployment acceptance tests. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n fulfillment describe service dispatch-svc and kubectl -n fulfillment get endpointslices -l kubernetes.io/service-name=dispatch-svc. The relevant mechanism is: A Service may exist without usable backends because labels or Pod readiness do not match expected routing.
Incorrect Answers
The suggested review tracks a different technical risk: Authentication establishes identity but authorization still requires permitted verbs, resources and scope in matching RBAC bindings. Here the sustained control must address: A Service may exist without usable backends because labels or Pod readiness do not match expected routing. Choose “Add labels, readiness and EndpointSlice checks to Service deployment acceptance tests”.
This routine guards against another mechanism: The Service routes to its configured backend target port; working DNS does not establish that the destination process is listening there. The recurring exposure in the current case is: A Service may exist without usable backends because labels or Pod readiness do not match expected routing. The matching preventive check is “Add labels, readiness and EndpointSlice checks to Service deployment acceptance tests”.
The suggested review tracks a different technical risk: HPA CPU utilization is computed from reported metrics relative to requests; missing metrics or requests can prevent scaling decisions. Here the sustained control must address: A Service may exist without usable backends because labels or Pod readiness do not match expected routing. Choose “Add labels, readiness and EndpointSlice checks to Service deployment acceptance tests”.