Bird
0
0

You want to deploy a microservice that must always be available, even if some pods fail. Which Kubernetes feature helps achieve this and how?

hard📝 Best Practice Q15 of 15
Microservices - Orchestration with Kubernetes
You want to deploy a microservice that must always be available, even if some pods fail. Which Kubernetes feature helps achieve this and how?
AUse a Deployment with replicas to run multiple pod copies for high availability
BUse a single Pod with restartPolicy set to Never
CUse a ConfigMap to store pod data for recovery
DUse a ServiceAccount to control pod permissions
Step-by-Step Solution
Solution:
  1. Step 1: Understand high availability needs

    Running multiple copies of a microservice ensures it stays available if some pods fail.
  2. Step 2: Use Kubernetes Deployment with replicas

    A Deployment manages multiple pod replicas and automatically replaces failed pods to maintain availability.
  3. Final Answer:

    Use a Deployment with replicas to run multiple pod copies for high availability -> Option A
  4. Quick Check:

    Deployment + replicas = high availability [OK]
Quick Trick: Deploy replicas with Deployment for service uptime [OK]
Common Mistakes:
MISTAKES
  • Using single pod with no replicas
  • Confusing ConfigMap with availability
  • Mixing permissions with availability

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes