Bird
0
0

How can you ensure a Deployment automatically replaces unhealthy Pods to maintain service availability?

hard📝 Trade-off Q9 of 15
Microservices - Orchestration with Kubernetes
How can you ensure a Deployment automatically replaces unhealthy Pods to maintain service availability?
AUse a Service with type LoadBalancer
BIncrease the number of replicas manually
CSet readiness and liveness probes in Pod spec
DDisable rolling updates
Step-by-Step Solution
Solution:
  1. Step 1: Understand probes role

    Liveness and readiness probes detect unhealthy Pods so Deployment can replace them.
  2. Step 2: Evaluate other options

    Increasing replicas doesn't replace unhealthy Pods, LoadBalancer is for traffic, disabling rolling updates is unrelated.
  3. Final Answer:

    Set readiness and liveness probes in Pod spec -> Option C
  4. Quick Check:

    Probes enable auto-replacement of unhealthy Pods [OK]
Quick Trick: Use probes to detect and replace bad Pods [OK]
Common Mistakes:
MISTAKES
  • Thinking replicas fix unhealthy Pods
  • Confusing Service type with health checks
  • Disabling rolling updates to fix health

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes