Microsoft Azure Interview Questions & Answers
All 200 unique questions in one place — 59 easy, 95 medium, 46 hard — grouped by topic.
Practise by topic
Practise the way your interview works
Explain the hierarchy of management groups, subscriptions, resource groups and resources.
Show answer
What is a resource group and what rules apply to it?
Show answer
What is Azure Resource Manager (ARM)?
Show answer
What are regions, region pairs and availability zones?
Show answer
Name the Azure regions available in India.
Show answer
What is the shared responsibility model in Azure?
Show answer
What are resource locks and when would you use them?
Show answer
What are tags and how are they used in real projects?
Show answer
What is the difference between CapEx and OpEx, and how does Azure change it?
Show answer
How do you create a resource group and list resources using Azure CLI?
Show answer
Tell me about a time you learned a new Azure service quickly to deliver a task.
Show answer
Why do you want to build a career in Microsoft Azure?
Show answer
How do Azure SLAs work and how do you calculate a composite SLA?
Show answer
Your VMs run 24x7, but their sizes and regions change every few months. Would you buy reservations or a savings plan?
Show answer
What is Azure Arc?
Show answer
Write an Azure PowerShell command to find all VMs without an env tag.
Show answer
A team accidentally deleted a production resource group. How do you prevent this in future?
Show answer
Your manager asks you to estimate the monthly cost of a new Azure application. How do you do it?
Show answer
Explain the 5 Rs (or 6 Rs) of cloud migration in an Azure context.
Show answer
What is the Azure Well-Architected Framework?
Show answer
How do you handle a situation where a cloud bill suddenly doubled?
Show answer
How would you set up a landing zone for a company moving to Azure?
Show answer
How do you decide between IaaS and PaaS for migrating an on-premises application?
Show answer
How do you design an Azure subscription strategy for a large enterprise with many business units?
Show answer
What compute options does Azure offer and when do you choose each?
Show answer
Explain Azure VM series and how you pick a size.
Show answer
What are Spot VMs and where should you use them?
Show answer
What is Azure App Service and what does an App Service plan define?
Show answer
What are triggers and bindings in Azure Functions?
Show answer
What is Azure Bastion?
Show answer
What is the difference between an availability set and an availability zone?
Show answer
What are Virtual Machine Scale Sets and their orchestration modes?
Show answer
What are deployment slots in App Service?
Show answer
Explain Azure Functions hosting plans.
Show answer
What is Azure Kubernetes Service (AKS) and what does Azure manage for you?
Show answer
Tell me about a time you led a migration of workloads to Azure.
Show answer
Create a Linux VM with Azure CLI using SSH keys and no public IP.
Show answer
Write a simple HTTP-triggered Azure Function in Python (v2 programming model).
Show answer
How do you configure autoscale for an App Service plan?
Show answer
Users report the website on App Service is slow every morning at 9 AM. How do you investigate?
Show answer
Your Azure Function has slow first responses after idle periods. What can you do?
Show answer
A VM is not reachable over RDP. Walk through your troubleshooting.
Show answer
Describe a production incident you handled and what you learned.
Show answer
What is Durable Functions and what patterns does it support?
Show answer
Your team of four engineers must run 12 containerised microservices. Would you choose AKS or Azure Container Apps?
Show answer
Write the commands to create an AKS cluster with a system and a user node pool.
Show answer
You need to run a nightly 3-hour data processing job cheaply. Which compute would you choose?
Show answer
Design a highly available web tier for an e-commerce site during a festival sale.
Show answer
How would you upgrade an AKS cluster in production with minimal downtime?
Show answer
What services does an Azure Storage account provide?
Show answer
Explain the storage redundancy options LRS, ZRS, GRS and GZRS.
Show answer
What are the Blob Storage access tiers?
Show answer
Describe a time you had to choose between speed of delivery and data safety.
Show answer
What is a lifecycle management policy?
Show answer
Upload a folder to Blob Storage with AzCopy using Entra ID login.
Show answer
Tell me about a time you reduced cloud storage cost.
Show answer
How do you explain a technical storage decision to a non-technical stakeholder?
Show answer
What is a Shared Access Signature (SAS) and what types exist?
Show answer
How do you secure access to a storage account?
Show answer
What are Azure Managed Disks and their types?
Show answer
What is Azure Files and when would you use Azure File Sync?
Show answer
What are soft delete, versioning and immutable storage for blobs?
Show answer
What is Azure Data Lake Storage Gen2?
Show answer
An order system needs reliable, ordered messaging between services. Would you pick Queue Storage or Service Bus, and why?
Show answer
Write a lifecycle management rule to tier and delete log blobs.
Show answer
Read a blob in Python using DefaultAzureCredential.
Show answer
Generate a user delegation SAS for one blob with Azure CLI.
Show answer
A developer accidentally overwrote important files in Blob Storage. How do you recover and prevent it?
Show answer
Your storage costs are growing fast because of old logs. What do you do?
Show answer
An application on a VM must access a storage account without any keys. How do you set it up?
Show answer
How do you create a private endpoint for a storage account?
Show answer
How would you protect storage accounts against ransomware?
Show answer
How do you migrate 200 TB of on-premises data to Azure when the internet link is slow?
Show answer
Design storage for an app storing user documents that must stay in India for 7 years.
Show answer
What is an Azure Virtual Network (VNet)?
Show answer
What is a Network Security Group (NSG)?
Show answer
You are setting up Azure DNS for a new domain. What are the steps?
Show answer
How do you work with the security team when they reject your network design?
Show answer
How do you document and hand over a network design to the operations team?
Show answer
What is VNet peering and is it transitive?
Show answer
Compare Azure Load Balancer, Application Gateway, Front Door and Traffic Manager.
Show answer
What is the difference between a VPN Gateway and ExpressRoute?
Show answer
What are user-defined routes (UDRs)?
Show answer
What is Azure Firewall and how is it different from an NSG?
Show answer
What is Azure DNS and what is a private DNS zone?
Show answer
What is a NAT Gateway and why would you use it?
Show answer
Create a VNet with two subnets and an NSG rule using Azure CLI.
Show answer
Peer two VNets in both directions with Azure CLI.
Show answer
Which Network Watcher tools do you use to troubleshoot connectivity?
Show answer
A VM in a spoke cannot reach a VM in another spoke. What could be wrong?
Show answer
Tell me about a time you fixed a networking issue under pressure.
Show answer
What is the difference between a service endpoint and a private endpoint?
Show answer
Explain the hub-spoke network topology.
Show answer
Create a route table that sends internet traffic to Azure Firewall.
Show answer
How do you plan IP address space for VNets in an enterprise?
Show answer
An App Service cannot connect to an Azure SQL database behind a private endpoint. How do you troubleshoot?
Show answer
Your company needs a reliable private link from its Pune datacenter to Azure. What do you propose?
Show answer
How would you protect a public web application from attacks like SQL injection and DDoS?
Show answer
Partners need to allowlist a fixed outbound IP from your AKS cluster. How do you do it?
Show answer
What is Microsoft Entra ID?
Show answer
Explain the built-in roles Owner, Contributor, Reader and User Access Administrator.
Show answer
What is a managed identity and what types exist?
Show answer
What is Azure Key Vault and what can it store?
Show answer
What is Azure Policy and how is it different from RBAC?
Show answer
Assign a role to a group at resource group scope with Azure CLI.
Show answer
Store and read a secret from Key Vault using Azure CLI.
Show answer
How do you keep up with security changes in Azure?
Show answer
What is the difference between Entra ID roles and Azure RBAC roles?
Show answer
What is the difference between an app registration and a service principal?
Show answer
What is Conditional Access?
Show answer
What is Privileged Identity Management (PIM)?
Show answer
What is Microsoft Defender for Cloud?
Show answer
How does encryption at rest and in transit work in Azure?
Show answer
What is Microsoft Sentinel?
Show answer
How do you reference Key Vault secrets in App Service app settings?
Show answer
How do you create a custom RBAC role?
Show answer
A developer's service principal secret was committed to a public GitHub repo. What do you do?
Show answer
How do you give an external auditor read-only access to your Azure environment for two weeks?
Show answer
Your secure score in Defender for Cloud is low. How do you improve it?
Show answer
Tell me about a time you pushed back on a request that broke security rules.
Show answer
What is workload identity federation?
Show answer
Write a Bicep snippet for a custom Azure Policy that denies resources outside India regions.
Show answer
Design identity and access for a multi-team Azure platform in a bank.
Show answer
How would you secure an AKS cluster?
Show answer
What database services does Azure offer?
Show answer
A client wants to move a SQL Server database that uses SQL Agent jobs and cross-database queries. Which Azure SQL option fits, and what are the alternatives?
Show answer
What is Azure Cosmos DB and which APIs does it support?
Show answer
Why would you use Azure Cache for Redis?
Show answer
How would you reduce the cost of many idle dev and test databases?
Show answer
How do you handle disagreement with a developer about database design?
Show answer
Explain DTU and vCore purchasing models in Azure SQL Database.
Show answer
What is serverless compute in Azure SQL Database?
Show answer
You run a SaaS app with 300 small tenant databases whose usage peaks at different times. How do you host them cost-effectively?
Show answer
How do backups and point-in-time restore work in Azure SQL Database?
Show answer
What are Request Units (RUs) in Cosmos DB?
Show answer
Create an Azure SQL Database with Entra-only authentication using Azure CLI.
Show answer
How do you let an App Service connect to Azure SQL using its managed identity?
Show answer
Write a Cosmos DB NoSQL query to get a customer's orders above 5000 rupees.
Show answer
How do you find and fix slow queries in Azure SQL Database?
Show answer
A developer ran a DELETE without a WHERE clause on production. How do you recover?
Show answer
Tell me about a time you improved database performance.
Show answer
What is the Hyperscale tier of Azure SQL Database?
Show answer
What are active geo-replication and failover groups?
Show answer
How do you choose a partition key in Cosmos DB?
Show answer
Explain the five consistency levels in Cosmos DB.
Show answer
How do you migrate an on-premises SQL Server database to Azure SQL Managed Instance?
Show answer
Your Cosmos DB requests are failing with 429 errors. What do you do?
Show answer
A SQL database must survive a full regional outage with under 1 minute data loss. Design it.
Show answer
Should you use Cosmos DB or Azure SQL for a new e-commerce application?
Show answer
What is Infrastructure as Code and why use it on Azure?
Show answer
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
What is Azure Monitor and what data does it collect?
Show answer
What is a Log Analytics workspace?
Show answer
What is Application Insights?
Show answer
What are Azure Advisor recommendations?
Show answer
What is Azure Cost Management?
Show answer
What is Azure Service Health?
Show answer
How do you create a budget with alerts for a subscription?
Show answer
How do you prioritise when several alerts fire at the same time?
Show answer
What is the difference between the activity log and resource logs?
Show answer
What types of alerts does Azure Monitor support?
Show answer
Explain Azure Backup and Azure Site Recovery.
Show answer
What are RPO and RTO and how do they guide Azure designs?
Show answer
What is Azure Resource Graph?
Show answer
Write a KQL query for the top 10 slowest requests in Application Insights over the last day.
Show answer
Write a KQL query to find who deleted resources in the last 7 days.
Show answer
Write a KQL query to find VMs with average CPU above 80% in the last hour.
Show answer
Write a Resource Graph query to list unattached managed disks.
Show answer
Finance wants each team to pay for its own Azure usage. How do you implement this?
Show answer
Tell me about a time you set up monitoring that caught a problem early.
Show answer
How do you enable diagnostic settings at scale for all resources?
Show answer
How do you design monitoring for a production microservices app on AKS?
Show answer
Your Log Analytics bill is very high. How do you reduce it?
Show answer
Design a disaster recovery plan for a VM-based application in Central India.
Show answer
Users say an API is failing but no alert fired. What do you change?
Show answer
How do you enforce governance across 50 subscriptions?
Show answer
Frequently asked questions
What jobs can I get after learning Microsoft Azure?
Freshers usually start as cloud support associates, junior Azure administrators or cloud engineers in IT service companies and managed service providers. With one to three years of practice you can move into Azure administrator, Azure developer, DevOps engineer or cloud security engineer roles. Senior professionals become solutions architects or cloud consultants. Demand is strong because many Indian companies and global capability centres run Microsoft workloads that are moving to Azure.
Who is eligible to learn Azure?
Anyone with basic computer knowledge can start. Graduates in B.Tech, BCA, MCA, B.Sc IT and similar fields have an advantage, and working professionals from system administration, networking, testing or development switch to Azure regularly. Knowing basic networking, Linux or Windows commands and one scripting language such as Python or PowerShell helps, but these basics are covered early in the course.
How long does it take to learn Azure for a job?
With consistent practice of two to three hours a day, most learners cover the fundamentals in a month and become job-ready for entry-level roles in three to four months. Hands-on labs matter more than reading, so plan to build projects such as a hub-spoke network, an App Service with Azure SQL and a Bicep pipeline. Senior architecture skills take several years of real project experience.
Which Azure certification should I do first?
AZ-900 Azure Fundamentals is a good first step if you are new to cloud, though it is optional. For jobs, AZ-104 Azure Administrator is the most valued associate certification for infrastructure roles, while AZ-204 suits developers. Later, AZ-400 for DevOps, AZ-500 for security and AZ-305 for architects add weight. Microsoft associate and expert certifications need a free online renewal assessment every year.
Is coding required for Azure roles?
Administrator and support roles need scripting rather than programming: Azure CLI, PowerShell, Bash and Bicep or Terraform templates. Developer and DevOps roles need real coding in languages like C#, Python, Java or JavaScript plus YAML pipelines. Learning at least one scripting language well makes you faster and more valuable in every Azure role, because automation is expected in modern cloud teams.
Azure or AWS: which should I learn first?
Both are in demand in India. Azure is very strong in enterprises, banks and IT service companies that use Microsoft products, while AWS leads in startups and many product companies. Core cloud concepts like networking, identity, storage and IaC transfer well between them. Choose based on the jobs you are targeting, learn one deeply first, then pick up the second, since multi-cloud skills are increasingly valued.