Bird
0
0

Given this VPA configuration snippet, what will happen when the pod's CPU usage increases beyond the current request?

medium📝 Command Output Q13 of 15
Kubernetes - Resource Management
Given this VPA configuration snippet, what will happen when the pod's CPU usage increases beyond the current request?
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
  name: example-vpa
spec:
  targetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: example-app
  updatePolicy:
    updateMode: "Auto"
AThe VPA will automatically update the pod's CPU requests to match usage
BThe pod replicas will increase to handle the load
CThe pod will restart immediately to apply new resources
DNothing happens until manual intervention
Step-by-Step Solution
Solution:
  1. Step 1: Understand updateMode Auto

    When updateMode is Auto, VPA automatically adjusts resource requests without manual steps.
  2. Step 2: Effect on pod resources

    VPA changes CPU and memory requests to match observed usage, improving stability and efficiency.
  3. Final Answer:

    The VPA will automatically update the pod's CPU requests to match usage -> Option A
  4. Quick Check:

    updateMode Auto means automatic resource adjustment [OK]
Quick Trick: Auto updateMode means VPA adjusts resources automatically [OK]
Common Mistakes:
  • Confusing VPA with Horizontal Pod Autoscaler scaling pods
  • Thinking pods restart immediately on resource change
  • Assuming manual approval is needed with Auto mode

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes