Bird
0
0

Given a cluster with a node group set to min=1 and max=3 nodes, and currently 1 node running, what will Cluster Autoscaler do if 5 new pods requiring 1 CPU each are scheduled but the node has only 2 CPUs free?

medium📝 Command Output Q4 of 15
Kubernetes - Resource Management
Given a cluster with a node group set to min=1 and max=3 nodes, and currently 1 node running, what will Cluster Autoscaler do if 5 new pods requiring 1 CPU each are scheduled but the node has only 2 CPUs free?
ARemove existing nodes to free resources
BAdd 1 node and schedule pods partially
CDo nothing because max nodes reached
DAdd 2 more nodes to accommodate all pods
Step-by-Step Solution
Solution:
  1. Step 1: Analyze resource demand and node capacity

    5 pods need 5 CPUs total; current node has 2 CPUs free, so 3 more CPUs needed.
  2. Step 2: Check node group limits and scaling behavior

    Min=1, max=3 nodes means up to 2 more nodes can be added to meet demand.
  3. Step 3: Determine autoscaler action

    Autoscaler adds 2 nodes to provide enough CPUs for all pods.
  4. Final Answer:

    Add 2 more nodes to accommodate all pods -> Option D
  5. Quick Check:

    Pods need > current capacity -> add nodes up to max [OK]
Quick Trick: Autoscaler adds nodes until max or demand met [OK]
Common Mistakes:
  • Assuming only one node added regardless of demand
  • Thinking autoscaler ignores max node limit
  • Confusing scale-up with scale-down behavior

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes