Azure interview questions and answers for cloud and DevOps roles
Azure interview questions test whether you can organize resources and access in a Microsoft cloud tenant, pick the right compute, storage and data service for a workload, connect it privately and securely, and keep it observable and affordable. Expect definition questions on subscriptions, Entra ID and RBAC, comparisons such as App Service versus AKS or Service Bus versus Event Grid, and scenarios like an app that cannot read Key Vault. Answers that start from the requirement and then name the service score better than lists of products.
By Evin JohnPublished 8 min read
Who is asked Azure questions
Azure dominates in organizations that already run Microsoft 365, Windows Server and .NET, so it comes up in cloud engineer, DevOps, platform, data engineering and .NET backend interviews, and in consulting roles that migrate those estates. A developer is asked how their app gets secrets, scales and logs. A cloud or platform engineer is asked about landing zones, network topology, governance and identity. Many interviewers also ask what you would do differently on another cloud, so knowing which ideas are general and which are Azure-specific helps. Certifications can help a résumé, but interviews test whether you can reason about a design, not whether you remember an exam.
- Screening questionsWhat a service is for and how it compares with its neighbor: VM versus App Service, Blob versus Files, Service Bus versus Event Hubs.
- Design discussionA workload to place on Azure: where it runs, how it is reached, where data lives, how identity and secrets work.
- TroubleshootingAn access error, a connection that times out inside a VNet, an unexpectedly large bill.
- Experience deep diveAn Azure system you built or migrated: what you would keep and what you would redo.
Resource organization and governance
| Question | What it tests | What a strong answer shows |
|---|---|---|
| What is the hierarchy from tenant to resource? | Structure | A Microsoft Entra tenant holds management groups, which hold subscriptions, which hold resource groups, which hold resources. Access and policy set at a level are inherited below it. |
| What is a resource group for? | Lifecycle | A container for resources that share a lifecycle and are deployed, secured and deleted together. A resource lives in exactly one group, though it can connect to resources elsewhere. |
| Why use several subscriptions? | Isolation | Separate billing, quotas, access boundaries and blast radius for production, non-production and teams. Management groups then apply common rules across them. |
| Azure RBAC versus Azure Policy? | Governance | RBAC decides who can do what on which scope. Policy decides what is allowed to exist, such as only certain regions or required tags, whoever deploys it. |
| What is a region pair and an availability zone? | Resilience | Zones are physically separate datacenters within one region for high availability. Many regions are paired with another region for disaster recovery and staggered platform updates. |
| What is a landing zone? | Platform | A prepared environment (subscriptions, networking, identity, policy, logging) that application teams deploy into, so every workload starts compliant. |
| ARM templates, Bicep or Terraform? | Infrastructure as code | ARM JSON is the native format; Bicep is a cleaner language that compiles to it; Terraform works across clouds and keeps its own state. Teams pick one and review changes like code. |
| What are resource locks? | Safety | A CanNotDelete or ReadOnly lock on a resource, group or subscription that blocks accidental changes even by owners until the lock is removed. |
param location string = resourceGroup().location
param name string
resource storage 'Microsoft.Storage/storageAccounts@2023-01-01' = {
name: name
location: location
sku: {
name: 'Standard_ZRS'
}
kind: 'StorageV2'
properties: {
minimumTlsVersion: 'TLS1_2'
allowBlobPublicAccess: false
supportsHttpsTrafficOnly: true
}
}Identity and access questions
- What is Microsoft Entra ID? The identity service behind Azure and Microsoft 365, formerly called Azure Active Directory. It authenticates users, groups and applications and issues their tokens; Azure RBAC then authorizes what those identities can do on resources.
- Entra roles versus Azure RBAC roles? Entra roles manage the directory itself (users, app registrations). Azure RBAC roles manage resources in subscriptions. A Global Administrator does not automatically own every subscription.
- What is a managed identity, and system-assigned versus user-assigned? An identity Azure manages for a resource, so code gets tokens without storing a secret. System-assigned is tied to one resource and deleted with it; user-assigned is a standalone resource you can attach to several.
- App registration versus service principal? The app registration is the global definition of an application; the service principal is its instance in a tenant, which receives role assignments.
- How do you give least privilege? Assign built-in or custom roles at the narrowest scope that works, to groups rather than people, and use Privileged Identity Management for just-in-time elevation to powerful roles.
- What does Conditional Access do? It applies sign-in rules such as requiring MFA, a compliant device or a trusted location, depending on the user, app and risk.
- Where should secrets live? In Key Vault, read at run time by a managed identity, with access through RBAC and logging on. Better still, avoid secrets entirely where a service accepts Entra tokens.
principal_id=$(az webapp identity assign \
--name orders-api --resource-group rg-orders \
--query principalId --output tsv)
vault_id=$(az keyvault show --name kv-orders --query id --output tsv)
az role assignment create \
--assignee-object-id "$principal_id" \
--assignee-principal-type ServicePrincipal \
--role "Key Vault Secrets User" \
--scope "$vault_id"Networking questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| NSG versus Azure Firewall? | Filtering | A network security group is a stateful allow/deny list on a subnet or NIC. Azure Firewall is a managed central firewall with application rules, threat intelligence and logging, usually in a hub VNet. |
| Is VNet peering transitive? | Topology | No. If A peers with B and B with C, A cannot reach C through B by default. Hub-and-spoke designs route through a firewall or appliance in the hub, or use Virtual WAN. |
| Private endpoint versus service endpoint? | PaaS access | A private endpoint gives the service a private IP inside your VNet and can be reached from peered networks and on-premises. A service endpoint keeps the public endpoint but lets the service trust traffic from a chosen subnet. |
| Load Balancer, Application Gateway, Front Door or Traffic Manager? | Load balancing | Load Balancer is regional layer 4. Application Gateway is regional layer 7 with an optional WAF. Front Door is global layer 7 at the edge. Traffic Manager steers traffic by DNS. |
| How do on-premises networks connect? | Hybrid | A site-to-site VPN over the internet for quick, lower-throughput links, or ExpressRoute for a private, more predictable connection. |
| Why do private endpoints need DNS planning? | Name resolution | Clients must resolve the service's usual name to the private IP, which means private DNS zones linked to the right VNets and forwarding from on-premises DNS. |
| How do VMs in a private subnet reach the internet? | Egress | Through a NAT gateway or a firewall with a route table, which also gives a stable outbound IP for allow lists. |
| How do admins reach VMs without public IPs? | Access | Azure Bastion or a VPN, with just-in-time access, rather than opening RDP or SSH to the internet. |
Compute, storage and data questions
- VMs, App Service, Functions, Container Apps or AKS? VMs for full control or legacy software. App Service for web apps and APIs with little platform work. Functions for event-driven code billed by execution. Container Apps for containers with scale-to-zero and no cluster to run. AKS when you need Kubernetes itself and have people to operate it.
- What do VM Scale Sets add? Identical VMs created from one model that scale on metrics or schedules and spread across zones, with rolling upgrades.
- What are App Service deployment slots? Live copies of an app with their own hostnames. Deploy to staging, warm it up, then swap with production; swap back if something breaks.
- Blob, Files, Queue or Table storage? Blob for objects such as images and backups. Files for SMB or NFS shares that lift-and-shift apps expect. Queue storage for simple message queues. Table storage for basic key-value data at low cost.
- What do LRS, ZRS, GRS and GZRS mean? Copies kept within one datacenter, across zones in a region, in a second region, or across zones and a second region. Read-access variants let you read the secondary copy.
- What are blob access tiers? Hot, cool, cold and archive trade storage price against access cost and speed. Archive data must be rehydrated before reading, which can take hours. Lifecycle rules move blobs between tiers by age.
- Azure SQL Database or SQL Managed Instance? SQL Database is a managed single database or elastic pool. Managed Instance is closer to full SQL Server (SQL Agent, cross-database queries), which suits lift-and-shift migrations.
- What are Cosmos DB's consistency levels? Strong, bounded staleness, session, consistent prefix and eventual. Session is the default and gives each client read-your-own-writes. The partition key choice decides how well it scales.
- Service Bus, Event Hubs or Event Grid? Service Bus for business messages that need queues, topics, sessions and dead-lettering. Event Hubs for high-volume streams such as telemetry. Event Grid for routing discrete events (a blob was created) to handlers.
Monitoring and cost questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| Azure Monitor, Log Analytics and Application Insights? | Observability | Azure Monitor is the umbrella for metrics, logs and alerts. Log Analytics workspaces store logs queried with KQL. Application Insights is the application performance part: requests, dependencies, exceptions and traces. |
| What is the Activity Log? | Audit | The record of control-plane operations: who created, changed or deleted which resource, and when. |
| How do you control Azure costs? | Cost | Tags and budgets with alerts, Cost Management reports by tag and resource group, right-sizing, autoscale and shutdown schedules, reservations or savings plans for steady load, and spot VMs for interruptible work. |
| What is Azure Hybrid Benefit? | Licensing | A way to apply existing Windows Server or SQL Server licenses to Azure resources, which matters in Microsoft-heavy migrations. |
| What does Azure Advisor do? | Recommendations | It suggests cost, reliability, security and performance improvements, such as idle resources and right-sizing candidates. Treat it as a starting list, not a verdict. |
requests
| where timestamp > ago(1h)
| summarize total = count(), failed = countif(tobool(success) == false), p95_ms = percentile(duration, 95) by name
| where failed > 0
| order by failed descAzure scenario questions for experienced candidates
| Scenario | First checks | What a strong answer adds |
|---|---|---|
| An App Service gets 403 reading Key Vault after a redeploy. | Is the managed identity still enabled, did it change (a new system-assigned identity has a new ID), does it have a role on the vault? | Checks whether the vault uses RBAC or access policies, and whether its firewall allows the app's outbound path or private endpoint. |
| A VM cannot reach an Azure SQL database through a private endpoint. | Name resolution from the VM, the NSG on both subnets, the database's public access setting. | Spots a missing private DNS zone link as the usual cause, and tests with the resolved IP before changing rules. |
| The monthly bill rose sharply. | Cost analysis grouped by service, resource and tag over the period. | Names common culprits (forgotten VMs or disks, log ingestion, egress, a scale rule stuck high) and adds budgets so the next one is caught early. |
| Plan a lift-and-shift of a .NET app with SQL Server. | Dependencies, data size, downtime window, authentication. | Considers App Service or VMs, SQL Managed Instance for compatibility, a migration rehearsal and a rollback plan. |
| Design for a regional outage. | Recovery time and data loss each part can accept. | Geo-redundant data, a second region on standby or active, Front Door for failover, and a tested runbook. |
Fictional example
- Interviewer
- A team has a containerized .NET API for internal users. It reads a SQL database and one secret. How would you host it?
- Candidate
- First I would ask about traffic shape, latency needs and whether the team already runs Kubernetes. Assuming modest, uneven traffic and no Kubernetes skills, I would use Container Apps in a VNet-integrated environment, with internal ingress only. The database would be Azure SQL with a private endpoint and public access disabled, and a private DNS zone linked to the VNet so the normal hostname resolves privately. The app gets a user-assigned managed identity, which signs in to SQL with Entra authentication, so the only remaining secret goes into Key Vault and is read through the same identity. Users reach it through the corporate network over the existing hub connection. I would send logs to a Log Analytics workspace with Application Insights, set an alert on failure rate and latency, tag everything with the team and cost center, and deploy it all from Bicep in a pipeline so test and production match.
Azure interview practice plan
- Week 1, structure and identity: in a free or sandbox subscription, create two resource groups, assign a role to a group at one scope, apply a policy that denies a region, and see both take effect.
- Week 1, secrets: deploy a small web app, give it a managed identity and read a Key Vault secret without any connection string in code. Then break the role assignment and read the error.
- Week 2, networking: build a hub and two spokes, show that the spokes cannot talk through the hub until you add routing, and put a private endpoint in front of a storage account.
- Week 2, operations: send app logs to Log Analytics, write three KQL queries you could use in an incident, and set a budget alert.
- Throughout: for each service you use, write one sentence on when you would choose it and one on when you would not. Clean up everything afterwards so practice does not become a bill.
Cloud questions rarely stay on one provider. Google Cloud (GCP) interview questions covers the same ground on Google's platform, DevOps engineer interview questions covers pipelines and incidents, and microservices interview questions covers the architectures many Azure workloads run.
Cloud design answers drift easily from the requirement into a product list. Natively, an AI interview assistant for Mac and Windows, transcribes a mock Azure design discussion so you can see afterwards whether you asked about traffic, data and identity before naming services. While you practice it can read a screenshot of a portal error or an architecture sketch and suggest what to examine, and with Pro or the free trial it uses the résumé and job description you add. Every practice session keeps its transcript and notes on your computer.
Questions people ask
What Azure questions are asked in interviews?
The tenant, management group, subscription and resource group hierarchy, Entra ID and RBAC, managed identities, VNets, NSGs and private endpoints, choosing between VMs, App Service, Functions and AKS, storage redundancy, Cosmos DB, messaging, monitoring and cost.
What is the difference between Azure RBAC and Azure Policy?
RBAC controls who can perform which actions on which resources. Azure Policy controls which configurations are allowed at all, such as permitted regions or required tags, regardless of who deploys.
What is a managed identity in Azure?
An identity that Azure creates and rotates for a resource so its code can get tokens for other services without storing a secret. It can be system-assigned to one resource or user-assigned and shared.
How should I prepare for an Azure interview?
Build a small workload in a sandbox subscription: identity, a private database connection, logs and a budget. Then practice explaining when you would choose each service and what it costs.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
