Bird
0
0

You want to ensure your app only receives traffic after it finishes loading data and is ready. Which probe setup achieves this best?

hard📝 Best Practice Q15 of 15
Kubernetes - Health Checks and Probes
You want to ensure your app only receives traffic after it finishes loading data and is ready. Which probe setup achieves this best?
AUse a startup probe that immediately sends traffic to the app
BUse a liveness probe that restarts the app if /health fails
CUse a readiness probe that checks a /ready endpoint returning success after data load
DUse both liveness and readiness probes checking the same /health endpoint
Step-by-Step Solution
Solution:
  1. Step 1: Identify probe controlling traffic

    Readiness probe controls when app receives user traffic.
  2. Step 2: Choose probe matching app readiness

    Readiness probe checking /ready after data load ensures traffic only after app is ready.
  3. Step 3: Exclude other options

    Liveness restarts app but does not control traffic; startup probe delays startup but not traffic control.
  4. Final Answer:

    Use a readiness probe that checks a /ready endpoint returning success after data load -> Option C
  5. Quick Check:

    Readiness probe controls traffic flow [OK]
Quick Trick: Readiness probe controls traffic after app is ready [OK]
Common Mistakes:
  • Using liveness probe to control traffic
  • Confusing startup probe with readiness probe
  • Checking same endpoint for both probes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes