A stateful service on AKS uses Azure Disks. A zone goes down. What happens and how do you design for it?
AdvancedScenarioAKS and Containers
Answer
Situation read → LRS disks are zonal; the pod can't reschedule to another zone with its volume.
What I'd do →
- Explain: pod stays Pending (
volume node affinity conflict) until the zone returns - Design fix: ZRS disks via a custom StorageClass (
skuName: Premium_ZRS), which can attach in any zone - Or app-level replication (a database operator with replicas per zone) using LRS disks
- Back up with Azure Backup for AKS or Velero
Why → Zone-redundant storage or replication is what makes stateful pods survive a zone loss.
Interview tip → "Volume node affinity conflict" is the phrase that shows you've hit it.
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