B. The pod will be marked as not ready and removed from service endpoints
C. The pod will ignore the failure and continue serving traffic
D. The pod will scale up automatically
Solution
Step 1: Understand readiness probe failure effect
Readiness probe failure marks pod as not ready, so it stops receiving traffic.
Step 2: Differentiate from liveness probe effect
Liveness probe failure triggers pod restart, readiness does not.
Final Answer:
The pod will be marked as not ready and removed from service endpoints -> Option B
Quick Check:
Readiness failure = pod not ready, no restart [OK]
Hint: Readiness failure removes pod from load balancer, no restart [OK]
Common Mistakes:
Confusing readiness failure with pod restart
Assuming pod scales automatically on probe failure
Ignoring failureThreshold effect
4. A microservice has a liveness probe configured as an HTTP GET on /health. The service sometimes returns HTTP 500 during startup but is healthy afterward. What is the best fix to avoid unnecessary restarts?
medium
A. Increase initialDelaySeconds to allow startup time before probing
B. Change the probe to readiness probe instead of liveness probe
C. Remove the probe completely to avoid restarts
D. Set failureThreshold to 1 to detect failures faster
Solution
Step 1: Identify cause of restarts
Liveness probe fails during startup because service returns HTTP 500 before ready.
Step 2: Adjust probe timing to avoid false failures
Increasing initialDelaySeconds delays probe start, allowing service to become healthy first.
Final Answer:
Increase initialDelaySeconds to allow startup time before probing -> Option A
Quick Check:
Delay liveness probe start to avoid false failures [OK]
Hint: Delay liveness probe start to avoid false failure during startup [OK]
Common Mistakes:
Removing probes which reduces reliability
Confusing readiness and liveness probe roles
Setting failureThreshold too low causing quick restarts
5. You have a microservice that takes time to initialize resources before it can serve requests. You want to ensure it is not restarted unnecessarily but also not receive traffic before ready. How should you configure liveness and readiness probes?
hard
A. Set liveness probe with a longer initialDelaySeconds and readiness probe to check resource initialization
B. Use only a liveness probe with a short periodSeconds to restart fast
C. Use only a readiness probe and no liveness probe
D. Set both probes to the same HTTP path and timing
Solution
Step 1: Prevent unnecessary restarts during initialization
Set liveness probe initialDelaySeconds long enough to avoid restarting while initializing.
Step 2: Use readiness probe to block traffic until ready
Readiness probe should check if resources are initialized before accepting traffic.
Final Answer:
Set liveness probe with a longer initialDelaySeconds and readiness probe to check resource initialization -> Option A