D3: Kubernetes Health Checks (Probes)
Google Cloud Professional Cloud Developer exam practice questions · 10 flashcards
Question
What is a liveness probe?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Kubernetes Health Checks (Probes) practice questions and answers
- What is a liveness probe?Checks if the container is alive; restarts it if it fails.
- What is a readiness probe?Checks if the Pod can serve traffic; removes it from Service endpoints if not.
- What is a startup probe?Gives slow-starting apps time before liveness/readiness checks begin.
- Probe types?HTTP GET, TCP socket, exec command and gRPC.
- Key probe settings?initialDelaySeconds, periodSeconds, timeoutSeconds, failureThreshold.
- App takes 2 minutes to start and gets killed. Fix?Add a startup probe.
- App temporarily overloaded; shouldn't receive traffic. Which probe?Readiness.
- App deadlocked; needs restart. Which probe?Liveness.
- Why keep liveness checks lightweight?Heavy checks or dependency checks can cause unnecessary restarts.
- How do GKE load balancer health checks relate?They can use the readiness probe path.