Question 130
A service returns 503 from its readiness endpoint but the process remains Running with restartCount zero. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
Explanation
Correct Answer
Distinguish readiness endpoint failures from application process exits before deciding whether to restart or change service routing. This response implements the controlling Kubernetes or cloud native principle. Readiness-probe failure normally removes endpoint traffic without killing the container; liveness changes restart behavior. Check its effect by: Inspect Pod Ready condition, container restart count, probe event, endpoint membership and HTTP response details. Workload context: A service returns 503 from its readiness endpoint but the process remains Running with restartCount zero.
Incorrect Answers
Gate rollout progression on suitable error, latency and business metrics with explicit thresholds and rollback authorization. This action addresses Progressive delivery and release metrics instead of the controlling requirement. Automated analysis requires representative telemetry and guardrails; an unchanged rollout status does not prove user experience is healthy. For this scenario prefer: Distinguish readiness endpoint failures from application process exits before deciding whether to restart or change service routing. Workload context: A service returns 503 from its readiness endpoint but the process remains Running with restartCount zero.
Use a versioned Git repository as declarative desired state and a reconciler to detect and correct drift with approved change controls. This action addresses GitOps reconciliation and source of truth instead of the controlling requirement. GitOps is a pull/reconciliation operating model rather than merely running kubectl from a CI server. For this scenario prefer: Distinguish readiness endpoint failures from application process exits before deciding whether to restart or change service routing. Workload context: A service returns 503 from its readiness endpoint but the process remains Running with restartCount zero.
Compare rollout history and resource generations to identify whether application failures correlate with a new deployment revision. This action addresses Rollout history status and change correlation instead of the controlling requirement. A Deployment being Available does not prove all new replicas are healthy or that a rollout has fully progressed. For this scenario prefer: Distinguish readiness endpoint failures from application process exits before deciding whether to restart or change service routing. Workload context: A service returns 503 from its readiness endpoint but the process remains Running with restartCount zero.


