Interview's MateKubernetes
Interview's Mate

Kubernetes

K8s · Workloads · GitOps · Cloud

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
Kubernetes topics
Lesson 149/ 160
08. Cluster Administration & Managed Cloud Kubernetes

Azure AKS Deep Dive (Azure CNI, Entra ID Workload Identity, KEDA Add-on)

Run AKS with Azure CNI, Entra workload identity, and the KEDA add-on.

AdvancedAzure CNI · Entra ID · KEDA Add-on3 quiz questions
Practice DevOps Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

In plain words

AKS is the Azure-hosted control desk that can issue an Entra federation card to a Pod and route VNet addresses to it. The simple Kubernetes rule is: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.

Think of it like…

AKS is the Azure-hosted control desk that can issue an Entra federation card to a Pod and route VNet addresses to it.

Where you’ve seen it

During a controlled maintenance window, the platform operator runs az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity. Expected evidence: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations. If the run instead shows this symptom, stop and restore the last known state: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking.

Words you’ll hear

Azure CNI
For this lesson, Azure CNI is the controlling idea: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
Entra ID
Entra ID is the checkpoint; run az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity and inspect the owner chain. The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking.
KEDA Add-on
KEDA Add-on is the outcome to preserve; the cost is explicit: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility.
Verification evidence
The evidence command is az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity. It connects the declaration to this behavior: Run AKS with Azure CNI, Entra workload identity, and the KEDA add-on.

Visual diagram

Loading interactive diagram

Theory & deep dive

How Azure CNI reaches the intended state

Run AKS with Azure CNI, Entra workload identity, and the KEDA add-on. AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.

The concrete checkpoint is az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity; compare the Azure CNI owner, Entra ID state, and KEDA Add-on outcome instead of treating YAML acceptance as proof.

Verify Entra ID, not only object creation

Run az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity after the change and correlate the result with Events and the owning object. AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.

Key takeaway: Azure CNI is implemented only when this invariant remains observable: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.

Entra ID: failure boundary and production cost

The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking. The prerequisite contract is concrete: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.

Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility. A safe design limits blast radius, records the last good configuration, and uses az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity as a deterministic rollback checkpoint.

Recover from Entra ID drift

Capture the current state with az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity, then correct the controlling manifest rather than patching a child object; the relevant divergence signal is specific: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking.

Key takeaway: Accept the trade-off consciously: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility.

How it works, step by step

Step 1 of 4
Platform planner

1. Plan the lifecycle boundary

Inventory versions, capacity, state, backups, and ownership in a reversible plan: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.

Azure CNI contract → owned state
Key numbers at this step
Goal
Run AKS with Azure CNI, Entra workload identity, and the KEDA add-on.
Owner
Azure CNI

When to use it & trade-offs

What it is

Run AKS with Azure CNI, Entra workload identity, and the KEDA add-on. AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.

Why it matters: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking. The invariant at risk is specific: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations. The quickest fact check before changing the design is az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity.

When to reach for it

  • Use Azure CNI to enforce this invariant: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
  • Use Entra ID evidence from az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity in reviews and incident timelines. Run AKS with Azure CNI, Entra workload identity, and the KEDA add-on.
  • Choose the managed cloud or platform service route only when this cost is justified by governance or scale: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility.

When to avoid or be careful

  • Avoid assuming Azure CNI is complete after YAML submission; the required behavior is concrete: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
  • Avoid treating the next symptom as random; check the owner and state with az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity first: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking.
  • Avoid adopting a heavier platform wrapper before measuring its cost: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility.

Native, manual, and managed paths for Azure CNI

Repeatable infrastructure control
Best for: Run AKS with Azure CNI, Entra workload identity, and the KEDA add-on. A concrete incident check is az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity.

Strengths: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.

Watch out: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility. Recovery must also recognize this signal: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking.

Manual cluster mutation
Best for: Quickly testing the Entra ID assumption with az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity; the expected invariant is: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.

Strengths: az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity gives immediate feedback without first building a platform layer.

Watch out: A manual change can hide drift, and unlike Azure CNI, it does not make this symptom self-documenting: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking.

Managed cloud or platform service
Best for: Teams that need KEDA Add-on integrated with guardrails; the evidence path is az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity.

Strengths: Platform controls can wrap this exact behavior in policy or dashboards: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.

Watch out: The added platform ownership buys value at this cost: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility.

Interview signals & numbers to know

When this topic comes up

  • Interview anchor: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
  • Trace Azure CNI to KEDA Add-on through Entra ID; the invariant is: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
  • Recognize the symptom: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking.
  • Justify the cost: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility.
  • Verify with az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity instead of only inspecting YAML.

Benchmarks & rules of thumb

2 -
Azure identity sides: Kubernetes ServiceAccount and Entra application
1 -
KEDA capability can be managed as an add-on
3 -
capacity checks: subnet, egress, and managed node quota

Common mistakes & follow-ups

Common interview mistakes

  • Debugging only the child object misses the Azure CNI owner contract: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
  • Ignoring this telltale condition leads to unrelated changes: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking.
  • Repeating az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity without an owner for remediation wastes retry cost. Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility.

Likely interviewer follow-ups

  • How would API output and runtime evidence prove this behavior: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations?
  • Which owner object, logs, and Events would you inspect for this symptom-The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking-?
  • At what threshold would this cost become unacceptable: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility?
Interview tip: Interview sequence: state the invariant, run az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity, name the failure, then justify the cost. Invariant: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations. Failure: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking. Cost: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility.

Knowledge check

Loading quiz

Put it into practice

Practice related interview Q&A

Apply Azure AKS Deep Dive (Azure CNI, Entra ID Workload Identity, KEDA Add-on) with generative AI interview Q&A and hands-on practice.

Open DevOps Q&A →Tech Learn Q&A
Previous topic
Google GKE Deep Dive (Autopilot vs Standard, Workload Identity, Gateway Controller)
Next topic
Provisioning Kubernetes Clusters with Terraform / OpenTofu