You need a reusable pipeline for 50 microservices in Azure DevOps. How do you design it?
IntermediateScenarioCI/CD and IaC
Answer
Situation read → Central template repo with extends templates, versioned.
What I'd do →
platform/pipeline-templatesrepo withbuild.yml,deploy-aks.yml,service.yml(extends template), tagged releases- Each service's
azure-pipelines.ymlis ~15 lines: resource reference to the template at a tag, parameters (service name, chart path) - Environments require the template via "Required template" check
- Roll out template changes by bumping the tag per service or with a bot PR
Why → One place to add security scanning or change deploy logic, enforced for prod.
Interview tip → Pinning to a tag avoids breaking 50 pipelines at once.
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.IntermediateYour organisation uses Azure DevOps. Set up a secure deployment pipeline to AKS.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?Advanced