Home › Interview questions › Azure
Azure Interview Questions & Answers
77 Azure interview questions in 4 levels — junior to senior, plus 19 production scenarios. Read 3 free answers with real-world analogies.
Free sample answers
What is Azure, and what's the difference between IaaS, PaaS, and SaaS?
One-liner
Azure is Microsoft's cloud platform, offering rentable computing resources over the internet instead of you buying and running your own physical hardware — and IaaS, PaaS, and SaaS describe how much of the underlying setup Azure manages for you versus how much you manage yourself.
Real-world analogy
IaaS is like renting an empty apartment — you get the walls and utilities, but you bring your own furniture and set everything up yourself. PaaS is like renting a furnished apartment — much of the setup is already done for you. SaaS is like staying in a fully serviced hotel room — you just show up and use it, with everything handled for you.
Detailed explanation
- IaaS (Infrastructure as a Service), like an Azure Virtual Machine, gives you raw computing power, but you're responsible for the operating system, updates, and everything running on top of it.
- PaaS (Platform as a Service), like Azure App Service, handles the underlying operating system and infrastructure for you, so you just deploy your application code and let Azure manage the rest.
- SaaS (Software as a Service), like Microsoft 365, is a complete, ready-to-use application — you don't manage any infrastructure at all, you simply use the software directly.
Scenario
A team building a simple web application debates whether to use a Virtual Machine (IaaS) or Azure App Service (PaaS). Since they don't need deep control over the operating system, choosing App Service lets them focus purely on their application code, while Azure automatically handles patching, scaling, and the underlying server management for them.
Best practices
- Default to PaaS options (like App Service) when they meet your needs — they save significant ongoing operational effort compared to managing your own virtual machines.
- Reserve IaaS for situations where you genuinely need deep control over the operating system or specific software that a PaaS option can't accommodate.
- Understand which category any given Azure service falls into — it directly tells you how much of the maintenance burden falls on you versus Microsoft.
How does autoscaling work with Azure Virtual Machine Scale Sets (VMSS)?
One-liner
A Virtual Machine Scale Set lets you run a group of identical virtual machines that automatically increases or decreases in number based on demand, following rules you define around metrics like CPU usage.
Real-world analogy
It's like a restaurant automatically calling in extra staff when it gets busy, and sending some home again once things quiet down, based on how many customers are actually currently in the building, rather than always keeping the exact same fixed number of staff on shift regardless of how busy it actually is.
Detailed explanation
- A scale set is defined from a single virtual machine configuration (or image), and Azure automatically creates or removes identical instances based on autoscale rules you configure.
- Common autoscale rules trigger based on average CPU usage across the scale set, but you can also scale based on custom metrics, or on a fixed schedule if your traffic pattern is predictable at certain times of day.
- Scale sets work well together with a load balancer in front of them, automatically distributing incoming traffic across however many instances currently happen to be running at any given moment.
Scenario
A team runs a fixed number of virtual machines sized for their busiest expected traffic, meaning most of the time, several machines sit mostly idle and unnecessarily costing money. Switching to a Virtual Machine Scale Set with autoscaling rules based on CPU usage means the number of running machines automatically grows during genuinely busy periods and shrinks back down during quieter ones, more closely matching actual real demand and reducing unnecessary cost.
Best practices
- Use scale sets for workloads with variable or unpredictable demand, rather than manually sizing for worst-case traffic all the time.
- Base autoscale rules on a metric that genuinely reflects real load for your specific application, not just a generic default.
- Set sensible minimum and maximum instance counts, so autoscaling can't unexpectedly scale down to zero (leaving you with no capacity) or scale up to an unexpectedly high, costly number.
A Network Security Group change unexpectedly blocks traffic that was previously working fine. How do you identify exactly what changed and fix it?
One-liner
Check the NSG's rules in priority order, and use Azure's own Activity Log to see exactly what changed and when, rather than trying to guess at what might have shifted.
Real-world analogy
It's like a previously working delivery route suddenly getting blocked. You'd want to check the actual current road signs in order along the route, and check the town's own road maintenance records to see exactly what changed and precisely when, rather than guessing randomly at possible causes.
Detailed explanation
- NSG rules are evaluated in priority order, and the first matching rule wins — a newly added rule with a lower priority number than an existing rule can silently start overriding what used to be allowed traffic.
- The Activity Log in Azure shows a clear record of exactly what changed, when, and by whom, which is often the fastest way to pinpoint a recent change that's now causing an unexpected problem.
- Azure's Network Watcher includes a specific 'IP flow verify' tool that tells you definitively whether a specific piece of traffic is currently allowed or denied, and exactly which specific rule is responsible for that particular outcome.
Scenario
A team notices traffic that was working fine yesterday is now unexpectedly being blocked. Checking the Activity Log reveals a new NSG rule was added earlier that day as part of an unrelated security tightening effort, with a lower priority number than the existing rule that used to allow this specific traffic — meaning the new rule now matches first and blocks it. Adjusting the new rule's priority (or scope) to not unintentionally interfere with the previously working traffic resolves the issue.
Best practices
- Check the Activity Log early when investigating unexpected NSG behavior — it usually shows you exactly what changed and when, far faster than manual guessing.
- Use Network Watcher's IP flow verify tool to definitively confirm which specific rule is actually responsible for allowing or blocking a given piece of traffic.
- Review the full, actual priority order of all NSG rules together whenever adding a new one, rather than only considering the new rule in isolation.
A preview of the 77 questions in the Azure guide
Junior (20)
- What is Azure, and what's the difference between IaaS, PaaS, and SaaS?
- What are Azure regions and availability zones, and why do they matter?
- What is a resource group, and why does Azure organize everything around them?
- What's the difference between an Azure subscription and an Azure tenant?
+ 16 more Junior questions, with full answers, in the guide.
Mid-level (20)
- What is VNet peering, and how is it different from connecting networks with a VPN Gateway?
- What's the difference between a Network Security Group and Azure Firewall?
- What are the different Azure Storage redundancy options, like LRS, ZRS, and GRS, and how do you choose between them?
- How does Azure RBAC (role-based access control) work, and how is it different from just relying on Entra ID group membership?
+ 16 more Mid-level questions, with full answers, in the guide.
Senior (18)
- How would you design a landing zone for a large organization adopting Azure at scale?
- How would you design a hub-and-spoke network topology for a large Azure environment, and why is it commonly preferred over a flat network?
- How would you approach cost optimization for Azure at an organizational scale, beyond just resizing individual resources?
- How would you design an identity and access architecture for a large organization that also needs to support on-premises systems?
+ 14 more Senior questions, with full answers, in the guide.
Scenario (19)
- You can't RDP or SSH into an Azure virtual machine that was working fine before. How do you troubleshoot it?
- A Network Security Group change unexpectedly blocks traffic that was previously working fine. How do you identify exactly what changed and fix it?
- An application suddenly gets 'access denied' trying to read from a storage account that was working fine before. What do you check?
- You set up VNet peering between two virtual networks, but resources still can't reach each other. What are the most common causes?
+ 15 more Scenario questions, with full answers, in the guide.
Get the full DevOps / SRE Interview Guide