Bird
0
0

A Deployment has desired replicas set to 4. You notice actual replicas fluctuates between 2 and 4 frequently. What could cause this behavior?

hard📝 Workflow Q9 of 15
Kubernetes - ReplicaSets and Deployments
A Deployment has desired replicas set to 4. You notice actual replicas fluctuates between 2 and 4 frequently. What could cause this behavior?
AResource constraints causing Pods to crash and restart
BDeployment YAML has incorrect replicas value
Ckubectl get deployment command is outdated
DPods are manually deleted without replacement
Step-by-Step Solution
Solution:
  1. Step 1: Analyze fluctuating actual replicas

    Fluctuation means Pods are not stable and restart often.
  2. Step 2: Identify common cause

    Resource limits or errors cause Pods to crash and restart, lowering actual replicas temporarily.
  3. Final Answer:

    Resource constraints causing Pods to crash and restart -> Option A
  4. Quick Check:

    Pod crashes cause actual replicas to fluctuate [OK]
Quick Trick: Pod crashes cause actual replicas to vary [OK]
Common Mistakes:
  • Assuming YAML is wrong without checking
  • Believing kubectl output is stale
  • Ignoring automatic Pod replacement

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes