Interview Prep/Azure/AKS and Containers

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 →

  1. Add a Spot user pool with autoscaler min 0
  2. Create a CronJob with tolerations for kubernetes.azure.com/scalesetpriority=spot:NoSchedule, a nodeSelector for the pool, concurrencyPolicy: Forbid, backoffLimit
  3. Make the job idempotent and checkpoint progress so evictions are survivable
  4. Alert on job failures via Container Insights (KubeEvents or 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.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on AKS and Containers