DevOps and Infrastructure as Code Interview Questions for Microsoft Azure
25 DevOps and Infrastructure as Code questions with answers for microsoft azure roles — 6 easy, 12 medium, 7 hard.
About DevOps and Infrastructure as Code
Automate Azure with Bicep, ARM templates and Terraform, and build CI/CD pipelines in Azure DevOps and GitHub Actions. Cover service connections with workload identity federation, YAML stages and environments, what-if previews, Terraform state, GitOps for AKS and deployment strategies like blue-green and canary. Write real templates and pipelines you can show in interviews.
What is Bicep and how does it relate to ARM templates?
Show answer
What are the main services in Azure DevOps?
Show answer
Deploy a Bicep file and preview changes with Azure CLI.
Show answer
How do you build and push a container image to ACR without Docker installed?
Show answer
Tell me about a time you automated a manual process.
Show answer
Your company is choosing between Bicep and Terraform for its Azure estate. What would you recommend?
Show answer
What are ARM deployment modes and scopes?
Show answer
What is a service connection in Azure Pipelines?
Show answer
Explain stages, jobs, steps and environments in YAML pipelines.
Show answer
What deployment strategies can you use for Azure apps?
Show answer
What is the what-if operation in Bicep deployments?
Show answer
Write a Bicep file that creates a storage account with parameters.
Show answer
Write a GitHub Actions job that logs in to Azure with OIDC.
Show answer
Write a basic Terraform configuration for a resource group and VNet with remote state.
Show answer
Your pipeline takes 40 minutes. How do you speed it up?
Show answer
How do you handle a failed release that affected customers?
Show answer
How do you mentor juniors on DevOps practices?
Show answer
How do you manage Terraform state securely on Azure?
Show answer
What is GitOps and how is it used with AKS?
Show answer
Write an Azure Pipelines YAML that builds a .NET app and deploys it to App Service.
Show answer
Someone changed production resources manually in the portal. How do you detect and handle drift?
Show answer
How do you manage secrets and configuration for many environments in pipelines?
Show answer
A deployment to production failed halfway. How do you design pipelines to handle this?
Show answer
How would you structure IaC repositories for a platform team supporting 30 app teams?
Show answer
Frequently asked questions
How important is DevOps and Infrastructure as Code in Microsoft Azure interviews?
Automate Azure with Bicep, ARM templates and Terraform, and build CI/CD pipelines in Azure DevOps and GitHub Actions. Cover service connections with workload identity federation, YAML stages and environments, what-if previews, Terraform state, GitOps for AKS and deployment strategies like blue-green and canary. Write real templates and pipelines you can show in interviews.
How should I use the DevOps and Infrastructure as Code sheet?
Go top to bottom — easy to hard. Answer before opening each answer, tick what you solved and save misses to Last-Minute Revision.