Troubleshooting

A containerized application occasionally deadlocks. The process keeps running, so the orchestrator believes the container is healthy, but it no longer serves requests. Which method BEST lets the orchestrator detect this state and restart the container automatically?

Show the answer

Correct answerD. A liveness health check that requests the application's HTTP health endpoint

A liveness health check against an application endpoint tests whether the app actually responds, so a deadlock fails the check and triggers a restart. A process-existence check passes because the deadlocked process is still running.