Azure Interview Questions and Answers
Last updated 2026-11-19
Azure interviews tend to be strongest on identity and enterprise integration: Microsoft Entra ID, role-based access control, hybrid networking and governance. Interviewers also want to see that you can build and secure a standard application stack with App Service, storage, databases and a virtual network. This page works through 15 questions with az CLI and Bicep snippets.
Many Azure terms differ from AWS equivalents, so a good habit is to learn each service with its counterpart. If you are comparing clouds, see the AWS questions and the Google Cloud questions. Product names and SKUs change often, so check Microsoft Learn for current naming.
| Identity | Microsoft Entra ID (formerly Azure Active Directory), Azure RBAC, managed identities |
|---|---|
| Compute | Virtual Machines, App Service, Functions, AKS, Container Apps |
| Certifications | AZ-900 fundamentals, AZ-104 administrator, AZ-204 developer, AZ-500 security |
Azure resource hierarchy in one paragraph
Management groups contain subscriptions, subscriptions contain resource groups, and resource groups contain resources. Policy, RBAC role assignments and budgets can be applied at any level and are inherited downwards. A resource group is a lifecycle container: resources in it usually share a deployment lifecycle and are deleted together. Knowing this hierarchy lets you answer governance questions such as how to stop anyone creating VMs in an expensive region.
Azure Interview Questions and Answers: questions with worked answers
1 What is the difference between Microsoft Entra ID and Azure RBAC?
easyEntra ID is the identity service: it holds users, groups, applications and service principals, and handles authentication, single sign-on and conditional access. Azure RBAC is the authorisation system for Azure resources: a role assignment combines a security principal, a role definition (a set of allowed actions) and a scope (management group, subscription, resource group or resource). Entra roles such as Global Administrator manage the directory itself, while Azure roles such as Contributor manage resources. The two are separate permission planes, a frequent point of confusion in interviews.
2 Explain Owner, Contributor, Reader and User Access Administrator.
easyOwner has full access and can assign roles to others. Contributor can create and manage all resources but cannot grant access. Reader can view but not change. User Access Administrator can manage role assignments but not resources. Follow least privilege: assign at the narrowest scope, to groups rather than individuals, and prefer built-in specific roles such as Virtual Machine Contributor or Storage Blob Data Reader. Management-plane roles do not automatically grant data-plane access to blobs, so you often need a data role as well.
bashaz role assignment create --assignee asha@example.com \ --role "Storage Blob Data Reader" \ --scope /subscriptions/<sub-id>/resourceGroups/rg-app/providers/Microsoft.Storage/storageAccounts/stappdata az role assignment list --resource-group rg-app --output table3 What are managed identities and why use them?
mediumA managed identity is an identity in Entra ID automatically managed for an Azure resource, so code can authenticate to Key Vault, Storage or SQL without any secret in configuration. System-assigned identities are tied to one resource and deleted with it. User-assigned identities are standalone, can be shared across resources and reused after redeployment. The application gets a token from the platform endpoint, usually transparently through DefaultAzureCredential in the SDKs. You then grant the identity only the RBAC roles it needs. This eliminates connection strings and rotation work.
4 Describe Azure virtual networks: subnets, NSGs, peering, and how to expose a database privately.
mediumA VNet is an isolated address space in a region, divided into subnets. Network security groups hold prioritised allow and deny rules, are stateful, and attach to subnets or network interfaces. VNet peering connects VNets privately over the Microsoft backbone and is non-transitive unless you route through a hub with a virtual appliance or Virtual WAN. To keep a database off the internet, create a private endpoint, which places a private IP from your subnet on the service, link a private DNS zone so the service name resolves to it, then disable public network access. Service endpoints are the older, cheaper option that only restrict the service firewall to your subnet.
5 Compare Azure Load Balancer, Application Gateway, Front Door and Traffic Manager.
mediumAzure Load Balancer is layer 4 and regional, distributing TCP and UDP flows. Application Gateway is layer 7 and regional, with URL routing, SSL termination, cookie affinity and an optional web application firewall. Front Door is a global layer 7 entry point with anycast, caching, WAF and fast failover across regions. Traffic Manager is DNS-based global routing by priority, performance, weighted or geographic methods; it does not proxy traffic, so failover time depends on DNS TTLs. A multi-region web app commonly uses Front Door in front of regional Application Gateways or App Services.
6 Which storage redundancy options exist for a storage account?
mediumLRS keeps three copies in one data centre, protecting against hardware failure but not a data-centre loss. ZRS spreads copies across three availability zones in one region. GRS replicates to a paired secondary region asynchronously with LRS there, and GZRS combines ZRS in the primary with replication to the secondary; the RA variants allow read access to the secondary. Choose by recovery needs and budget. Account kinds also matter: blob containers for objects, Azure Files for SMB or NFS shares, queues and tables. Use access tiers hot, cool, cold and archive with lifecycle management to cut cost on aging data.
7 What are availability sets, availability zones and scale sets?
mediumAn availability set spreads VMs across fault domains (separate racks) and update domains within one data centre, protecting against rack failure and planned maintenance. Availability zones are physically separate locations within a region with independent power, cooling and network, and give a stronger guarantee; place instances across zones when the region supports it. A Virtual Machine Scale Set runs a group of identical VMs that autoscale on metrics or schedules and integrate with load balancers. New designs normally prefer zones with scale sets over classic availability sets.
8 When would you choose App Service, Azure Functions, Container Apps or AKS?
mediumApp Service is a managed platform for web apps and APIs with deployment slots, autoscale and easy TLS, ideal when you do not need container orchestration. Functions are event-driven and billed on consumption or in premium plans, suited to short triggered tasks. Container Apps runs containers serverlessly on a Kubernetes-based platform with scale to zero and Dapr and KEDA built in, without managing the cluster. AKS gives full Kubernetes control with a managed control plane, which makes sense for complex microservice estates, custom networking and teams that already know Kubernetes. Pick the least operational burden that meets the requirement.
9 How do deployment slots work and why are they useful?
mediumA slot is a live app instance with its own hostname, available in Standard and higher App Service plans. You deploy a new version to a staging slot, warm it up and test it, then swap: Azure exchanges the slots' routing, so production receives the warmed-up instance with no cold start, and the old version sits in the staging slot for instant rollback. Settings can be marked slot-specific so connection strings do not travel with the swap. You can also route a percentage of traffic to a slot for a basic canary test.
bashaz webapp deployment slot create -g rg-app -n myapp --slot staging az webapp deploy -g rg-app -n myapp --slot staging --src-path app.zip --type zip az webapp deployment slot swap -g rg-app -n myapp --slot staging --target-slot production10 What is Azure Key Vault and how should applications use it?
mediumKey Vault stores secrets, encryption keys and certificates with access control and audit logs. Applications should authenticate with a managed identity and read secrets at start-up or reference them directly, for example App Service Key Vault references in app settings, so no credential is stored in code. Enable soft delete and purge protection so deleted items can be recovered, use the RBAC permission model rather than legacy access policies for new vaults, and use private endpoints for network isolation. Premium and managed HSM tiers support hardware-protected keys for stricter compliance.
11 Write a minimal Bicep template for a storage account and explain how it differs from ARM JSON and Terraform.
mediumBicep is a domain-specific language that compiles to ARM templates, with a cleaner syntax, modules and strong type checking, and no state file because Azure Resource Manager itself tracks deployments. ARM JSON is the underlying verbose format. Terraform is multi-cloud and keeps state, with a plan step; Bicep supports what-if for a similar preview. Choose Bicep for Azure-only teams wanting day-one support for new resource types, Terraform for multi-cloud or existing Terraform skill.
textparam location string = resourceGroup().location param name string resource sa 'Microsoft.Storage/storageAccounts@2023-05-01' = { name: name location: location sku: { name: 'Standard_ZRS' } kind: 'StorageV2' properties: { minimumTlsVersion: 'TLS1_2' allowBlobPublicAccess: false supportsHttpsTrafficOnly: true } } output id string = sa.idbashaz deployment group what-if -g rg-app -f main.bicep -p name=stappdata001 az deployment group create -g rg-app -f main.bicep -p name=stappdata00112 What is Azure Policy and how does it differ from RBAC?
mediumRBAC answers who can do what. Azure Policy answers what is allowed to exist: it evaluates resource properties against rules and can audit, deny, modify or deploy missing settings through effects like Audit, Deny, Modify and DeployIfNotExists. Examples are denying public IPs on NICs, requiring a cost-centre tag or restricting regions. Policies are grouped into initiatives and assigned at a scope, and compliance results show which existing resources violate them. A user with Owner rights is still blocked by a Deny policy.
13 How do Azure Monitor, Log Analytics and Application Insights fit together?
mediumAzure Monitor is the umbrella platform for metrics and logs. Metrics are near-real-time numeric series. Logs go into a Log Analytics workspace, where you query with Kusto Query Language and build alerts and workbooks. Application Insights is the application performance monitoring feature that collects requests, dependencies, exceptions and traces, now stored in a workspace-based model. Diagnostic settings route resource logs into the workspace, a storage account or an event hub. Action groups define who or what is notified when an alert fires.
textAppRequests | where TimeGenerated > ago(1h) | summarize total = count(), failed = countif(Success == false) by bin(TimeGenerated, 5m) | extend failure_rate = todouble(failed) / total | order by TimeGenerated desc14 Explain Azure Active Directory Conditional Access and multifactor authentication.
hardConditional Access is the Entra ID policy engine that evaluates signals, such as user, group, application, device compliance, location and sign-in risk, and enforces controls like requiring MFA, blocking access or demanding a compliant device. A typical baseline is MFA for all administrators and for sign-ins from outside trusted locations, with legacy authentication blocked because it cannot do MFA. Policies should start in report-only mode to measure impact, and you should keep two emergency break-glass accounts excluded from policies, monitored and protected with strong credentials, to avoid lockout.
15 How would you connect an on-premises network to Azure?
hardA site-to-site VPN gateway builds an IPsec tunnel over the internet, quick to set up and encrypted, with bandwidth limited by the gateway SKU. ExpressRoute is a private dedicated connection through a provider that does not traverse the public internet, offering predictable latency and higher throughput at higher cost; it is not encrypted by default, so add MACsec or a VPN over it when required. Many enterprises use ExpressRoute as primary and VPN as backup. Use a hub-and-spoke topology with a gateway in the hub VNet and peered spokes, and avoid overlapping address ranges between on-premises and Azure.
Frequently asked questions
Is Azure Active Directory the same as Microsoft Entra ID?
Yes. Microsoft renamed Azure Active Directory to Microsoft Entra ID in 2023. Older articles and some portal text still use the earlier name, so know both.
Which Azure certification should I start with?
AZ-900 is a gentle introduction. AZ-104 Azure Administrator is the one most infrastructure and DevOps employers value, as it covers identity, networking, compute, storage and monitoring in a hands-on way.
Do I need to know PowerShell for Azure?
It helps in Windows-heavy organisations, but the az CLI and Bicep or Terraform cover most automation. Know one scripting approach well and be able to read the other.
How is Azure different from AWS for interview purposes?
The concepts map closely: VNet and VPC, NSG and security group, Entra ID and IAM. The main practical differences are the resource group and subscription hierarchy, and deep integration with Microsoft identity and Windows workloads.
Related guides
More in Role-wise Interview Questions by Job and Tech Stack
- Backend Developer Interview Questions and Answers
- Business Analyst Interview Questions and Answers
- Cloud Engineer Interview Questions and Answers
- Computer Vision Interview Questions and Answers
- Cybersecurity Interview Questions and Answers
- Data Analyst Interview Questions and Answers
- Data Engineer Interview Questions and Answers
- Data Scientist Interview Questions and Answers
- Deep Learning Interview Questions and Answers
- DevOps Interview Questions and Answers
- Django Interview Questions and Answers (Django 5)
- Docker Interview Questions and Answers