Your organisation uses Azure DevOps. Set up a secure deployment pipeline to AKS.
IntermediateScenarioCI/CD and IaC
Answer
Situation read → WIF service connections, environments with checks, templates.
What I'd do →
- Create an ARM service connection with workload identity federation, scoped to the app RG, not granted to all pipelines
- Docker registry service connection for ACR (also WIF-backed)
- Environment
shop-prodwith approvals and branch control (refs/heads/main) - Pipeline:
Docker@2buildAndPush, then adeploymentjob toshop-produsingAzureCLI@2orKubernetesManifest@1 - Extend from a platform template that adds scanning stages
Why → Approvals and checks live on the resources, so a modified pipeline can't skip them.
Interview tip → Mention checks on the service connection itself, not only the environment.
More on CI/CD and IaC
Design a GitHub Actions pipeline that builds an image, pushes to ACR and deploys to AKS with no secrets.IntermediateYou need to promote the same image from dev to staging to prod. How do you design it?IntermediateTerraform state for prod is in a storage account accessible with account keys. Harden it.IntermediateYour team wants to move from ARM JSON templates to Bicep. How do you migrate?BeginnerA pipeline needs to deploy to dev, test and prod in different subscriptions. How do you handle identities?AdvancedThe Terraform plan for a small change shows the AKS cluster will be replaced. What do you do?Advanced