Bird
0
0

Given the following scenario: You deploy a Kubernetes cluster with 3 nodes and create a Deployment with 5 replicas. What will happen if one node fails?

medium📝 Predict Output Q4 of 15
Docker - Swarm
Given the following scenario: You deploy a Kubernetes cluster with 3 nodes and create a Deployment with 5 replicas. What will happen if one node fails?
AThe cluster will shut down due to node failure
BKubernetes will reschedule the lost pods to other nodes to maintain 5 replicas
CThe Deployment will reduce replicas to 2 automatically
DPods on the failed node will remain in pending state indefinitely
Step-by-Step Solution
Solution:
  1. Step 1: Understand Kubernetes self-healing

    Kubernetes automatically reschedules pods from failed nodes to healthy nodes to maintain desired replicas.
  2. Step 2: Analyze other options

    Deployment does not reduce replicas automatically; cluster does not shut down; pods do not stay pending indefinitely.
  3. Final Answer:

    Kubernetes will reschedule the lost pods to other nodes to maintain 5 replicas -> Option B
  4. Quick Check:

    Self-healing = C [OK]
Quick Trick: Kubernetes auto-reschedules pods on node failure [OK]
Common Mistakes:
  • Thinking replicas reduce automatically
  • Assuming cluster stops on node failure
  • Believing pods stay pending forever

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes