Stage 10, Part 8 of 9, Autoscaling & Cost Optimization

Text

PART 8: INTERVIEW PREPARATION

35. Junior-Level Questions

QuestionExpected Answer
What is HPA?Scales replicas based on metrics
What is VPA?Adjusts resource requests/limits
What is a resource request?Minimum guaranteed resources
What is a resource limit?Maximum allowed resources
What is a spot instance?Discounted cloud capacity that can be reclaimed

36. Mid-Level Questions

QuestionExpected Answer
What is KEDA?Event-driven autoscaling
What is Karpenter?Modern node provisioner
What is the HPA/VPA conflict?Both scaling on CPU causes instability
What is bin-packing?Packing pods densely on fewer nodes
What is a PDB?Prevents too many pods from being unavailable

37. Senior-Level Questions

QuestionExpected Answer
How do you coordinate HPA, VPA, and KEDA?HPA on CPU, VPA on memory (Off mode), KEDA on events
How do you choose between Karpenter and CAS?Karpenter for EKS/AKS; CAS for GKE
How do you optimize spot instance usage?Diversify types, use PDBs, graceful shutdown
How do you measure cost efficiency?Utilization, cost per request, waste percentage
How do you handle cost anomalies?Alerts, budgets, automated remediation

38. Staff/Principal Questions

QuestionExpected Answer
Design a cost governance architecture.Kubecost + VPA + HPA + Karpenter + quotas + budgets
How do you implement FinOps at scale?Showback, chargeback, budgets, automated optimization
How do you handle multi-tenant cost allocation?Labels, namespaces, Kubecost allocation
How do you balance cost and availability?Spot with fallback, bin-packing with anti-affinity
How do you get 50% cost reduction?Rightsizing + spot + bin-packing + Karpenter consolidation

1:1 copy of the class Google Doc, code in code blocks.