You need to run a nightly batch job that must not affect web pods.
IntermediateScenarioAKS and Containers
Answer
Situation read → CronJob on a Spot pool, isolated by taints.
What I'd do →
- Add a Spot user pool with autoscaler min 0
- Create a
CronJobwithtolerationsforkubernetes.azure.com/scalesetpriority=spot:NoSchedule, anodeSelectorfor the pool,concurrencyPolicy: Forbid,backoffLimit - Make the job idempotent and checkpoint progress so evictions are survivable
- Alert on job failures via Container Insights (
KubeEventsor job status)
Why → Cheap, isolated capacity that scales to zero after the job.
Interview tip → Mention eviction handling; Spot without retries is a bug waiting.
More on AKS and Containers
You're asked to build a production AKS cluster. Walk through your key decisions.IntermediateA team wants to deploy a new microservice to AKS that reads a database password. How do you wire secrets?BeginnerYou need to upgrade a production AKS cluster from 1.31 to 1.33. Plan it.AdvancedPods need to scale on Service Bus queue length, not CPU. How?AdvancedYou need to run a GPU workload on an existing AKS cluster. What do you do?IntermediateA noisy application keeps starving other workloads on shared nodes. How do you fix it?Beginner