Bird
0
0

Given this YAML snippet for a Deployment with 3 replicas, what will happen if one pod crashes?

medium📝 Predict Output Q4 of 15
Kubernetes - Advanced Deployment Patterns
Given this YAML snippet for a Deployment with 3 replicas, what will happen if one pod crashes?
AThe crashed pod will remain down until manually restarted
BKubernetes will create a new pod to maintain 3 replicas
CAll pods will be terminated and recreated
DThe Deployment will scale down to 2 replicas automatically
Step-by-Step Solution
Solution:
  1. Step 1: Understand Deployment replica behavior

    Deployments maintain the desired number of replicas by restarting pods that fail.
  2. Step 2: Apply this to the scenario

    If one pod crashes, Kubernetes will start a new pod to keep 3 replicas running.
  3. Final Answer:

    Kubernetes will create a new pod to maintain 3 replicas -> Option B
  4. Quick Check:

    Deployment replica count maintained = New pod created [OK]
Quick Trick: Deployments auto-replace crashed pods to keep replica count [OK]
Common Mistakes:
  • Thinking pods stay down without manual restart
  • Assuming all pods restart on one failure
  • Believing Deployment scales down automatically on failure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes