Azure Interview Questions and Answers

41 questions with short, clear answers · Updated December 2026

These Azure questions cover what interviewers ask for Azure administrator, cloud engineer and support roles, roughly at the level of the AZ-900 and AZ-104 certifications, plus scenario questions for experienced candidates.

Azure renames products often, so the answers use today's names: for example, Azure Active Directory is now Microsoft Entra ID. If an interviewer uses an old name, it helps to mention that you know both.

Azure basics and governance

Q1. Explain the Azure resource hierarchy.

Management groups contain subscriptions, subscriptions contain resource groups, and resource groups contain resources such as VMs and storage accounts. Access (RBAC) and Azure Policy assigned at a higher level are inherited by everything below it. A subscription is also a billing boundary, and a resource group is usually a set of resources that share a lifecycle.

Q2. What are Azure regions, region pairs and availability zones?

A region is a set of data centres in one geography, such as Central India. Many regions have availability zones: physically separate data centres with their own power, cooling and networking. Many regions are also paired with another region in the same geography for disaster recovery and staggered platform updates. Zone-redundant deployments protect against a data centre failure; using a second region protects against a regional outage.

Q3. What is the difference between Azure RBAC and Azure Policy?

RBAC controls who can do what: it grants users, groups or identities permissions on resources. Azure Policy controls what is allowed to exist, whoever creates it: for example only certain VM sizes, only the Central India region, or every resource must have a cost-centre tag. Policies can deny, audit, add or modify settings, and deploy missing settings.

Q4. What are resource locks?

Locks protect resources from accidental changes. A CanNotDelete lock lets people read and modify a resource but not delete it; a ReadOnly lock blocks changes as well. Locks are inherited from the subscription or resource group and apply even to Owners until the lock is removed.

Q5. How do you manage and reduce Azure costs?

Use the pricing calculator before building, Cost Management for analysis, budgets and alerts, and tags to split costs by team. Save with Reservations or an Azure savings plan for compute, Azure Hybrid Benefit for existing Windows Server and SQL Server licences, Spot VMs for interruptible work, auto-shutdown for dev VMs, and Azure Advisor's right-sizing recommendations.

Q6. What tools can you use to manage Azure?

The Azure portal, Azure CLI, Azure PowerShell, Cloud Shell in the browser, the REST API and SDKs, and infrastructure-as-code with ARM templates, Bicep or Terraform. Everything goes through Azure Resource Manager, which applies the same authentication, RBAC, policy and locks whichever tool you use.

Identity: Entra ID and RBAC

Q7. What is Microsoft Entra ID?

Microsoft Entra ID (formerly Azure Active Directory) is Microsoft's cloud identity service. It stores users, groups and app registrations, handles sign-in with MFA and single sign-on for Microsoft 365, Azure and thousands of SaaS apps, and uses modern protocols (OAuth 2.0, OpenID Connect, SAML). It is not the same as on-premises Active Directory Domain Services, which uses LDAP and Kerberos.

Q8. What does an Azure role assignment consist of?

Three parts: a security principal (user, group, service principal or managed identity), a role definition (a set of allowed actions, such as Contributor), and a scope (management group, subscription, resource group or resource). The built-in roles everyone should know are Owner, Contributor, Reader and User Access Administrator.

Q9. What is the difference between Owner and Contributor?

Both can create and manage all resources in their scope. Only Owner can also grant access to others (manage role assignments). Contributor cannot assign roles, which is why automation and most admins get Contributor or a narrower role.

Q10. What is a managed identity?

A managed identity is an identity in Entra ID that Azure creates and rotates for a resource, so code on a VM, App Service or Function can get tokens for Key Vault, Storage or SQL without storing any secret. A system-assigned identity is tied to one resource and deleted with it; a user-assigned identity is a separate resource that several resources can share.

Q11. What are Conditional Access and Privileged Identity Management?

Conditional Access policies decide how users sign in based on signals such as user, app, location, device state and risk: for example require MFA outside the office or block legacy authentication. Privileged Identity Management (PIM) gives admin roles just in time: users activate a role for a limited time, with approval and justification, instead of holding it permanently. Both need Entra ID P1 or P2 licences.

Q12. What is Azure Key Vault used for?

Key Vault stores secrets (passwords, connection strings), encryption keys and certificates, with access controlled by Azure RBAC and every access logged. Applications read secrets at run time using a managed identity. Soft delete and purge protection stop secrets from being lost permanently by mistake.

Virtual machines and compute

Q13. What is the difference between an availability set and availability zones?

An availability set spreads VMs across fault domains (separate racks, power and network) and update domains (rebooted at different times) inside one data centre, protecting against hardware failure and maintenance. Availability zones place VMs in separate data centres within the region, protecting against a whole data centre failing, and offer a higher SLA. A VM uses one or the other.

Q14. What are Virtual Machine Scale Sets?

A scale set manages a group of identical or mixed VMs as one: it adds or removes instances automatically with autoscale rules (for example on CPU or a schedule), spreads them across zones, and works with a load balancer. It is Azure's equivalent of an AWS Auto Scaling group.

Q15. What disk types can an Azure VM use?

Managed disks come as Standard HDD, Standard SSD, Premium SSD, Premium SSD v2 and Ultra Disk, from cheapest to fastest. A VM has an OS disk, optional data disks, and usually a temporary disk whose data can be lost on redeploy or resize, so never keep important data on the temporary disk.

Q16. How do you connect to VMs securely without public IPs?

Use Azure Bastion, which gives RDP and SSH in the browser (or native client) over TLS, so VMs need no public IP and no open port 3389 or 22 to the internet. Just-in-time VM access in Microsoft Defender for Cloud is another option: it opens the port only for an approved IP and a limited time.

Q17. When would you use App Service, Azure Functions, Container Apps or AKS?

App Service for web apps and APIs without managing servers; Azure Functions for event-driven code billed per execution; Azure Container Apps for containers and microservices with autoscaling (including to zero) without running Kubernetes yourself; and AKS when you need full Kubernetes control. VMs remain the choice for software that needs the full operating system.

Q18. What are App Service plans and deployment slots?

An App Service plan is the set of compute resources (tier, size, instance count) your apps run on; several apps can share one plan. Deployment slots, available from the Standard tier, are live copies such as "staging": you deploy and test there, then swap with production with no downtime, and swap back if something breaks.

Networking

Q19. What is a Network Security Group, and how are its rules evaluated?

An NSG is a stateful firewall applied to a subnet or a network interface. Rules have a priority (lower number first), source, destination, port, protocol and allow or deny; processing stops at the first match. Default rules allow traffic inside the VNet and from the Azure load balancer and deny other inbound traffic. If NSGs are on both the subnet and the NIC, traffic must be allowed by both.

Q20. What is an Application Security Group?

An ASG is a label you put on VM network interfaces, such as "web" or "db". NSG rules can then use ASGs as source or destination ("allow web to db on 1433") instead of IP addresses, so rules keep working as VMs are added or their IPs change.

Q21. How do VNets connect to each other and to on-premises networks?

VNet peering connects two VNets (in the same or different regions) over Microsoft's backbone with low latency; it is not transitive and address spaces must not overlap. For many VNets, use a hub-and-spoke design with Azure Virtual WAN or a hub VNet. On-premises networks connect through a VPN Gateway (encrypted over the internet) or ExpressRoute (a private dedicated circuit).

Q22. What is the difference between Azure Load Balancer, Application Gateway, Front Door and Traffic Manager?

Azure Load Balancer is regional and layer 4 (TCP/UDP). Application Gateway is regional and layer 7 (HTTP/HTTPS) with path-based routing, TLS termination and an optional Web Application Firewall. Azure Front Door is global layer 7, with a CDN, WAF and fast failover between regions. Traffic Manager is DNS-based global routing for any protocol. Use the Standard SKU of Load Balancer and public IPs; the Basic SKUs have been retired.

Q23. What is the difference between a service endpoint and a private endpoint?

A service endpoint lets a subnet reach a PaaS service such as Storage or SQL over the Azure backbone, and the service can then be limited to that subnet, but the service keeps its public IP. A private endpoint gives the service a private IP inside your VNet through Private Link, so it can be reached privately (also from on-premises and peered VNets) and public access can be turned off. Private endpoints need private DNS zones to resolve correctly.

Q24. How should VMs without public IPs reach the internet?

Give the subnet explicit outbound connectivity, usually a NAT Gateway, or route traffic through Azure Firewall or a network virtual appliance. Do not rely on the old "default outbound access", which Microsoft is retiring; new subnets can be created as private subnets with no implicit outbound internet.

Q25. What is Azure Firewall, and how is it different from an NSG?

An NSG filters by IP, port and protocol at a subnet or NIC and is free. Azure Firewall is a managed, central, stateful firewall service, usually placed in a hub VNet: it adds FQDN (domain) filtering, threat intelligence, NAT rules, logging across all spokes, and in the Premium tier TLS inspection and IDPS. Most designs use both.

Storage and databases

Q26. What services does an Azure storage account provide?

Blob storage for objects such as files, images and backups (with Data Lake Storage Gen2 for analytics), Azure Files for SMB and NFS file shares, Queue storage for simple messaging, and Table storage for key-value data. Each has its own endpoint under the storage account name.

Q27. Explain the storage redundancy options.

LRS keeps three copies in one data centre; ZRS keeps copies across three availability zones in the region; GRS adds asynchronous copies in the paired region; GZRS combines ZRS with geo-replication. The RA- versions (RA-GRS, RA-GZRS) also let you read from the secondary region. Choose based on how much outage you can tolerate and the cost.

Q28. What are the blob access tiers?

Hot for data used often, Cool for data kept at least 30 days and used rarely, Cold for at least 90 days, and Archive for at least 180 days. Archive is offline: a blob must be rehydrated, which can take hours, before it can be read. Lifecycle management policies move blobs between tiers automatically.

Q29. How do you give someone temporary access to a blob?

Generate a shared access signature (SAS) with limited permissions, a start and expiry time, and ideally an IP range. A user delegation SAS, signed with Entra ID credentials, is preferred over an account-key SAS because it can be revoked and audited more easily. Inside Azure, managed identities with RBAC are better than SAS tokens.

Q30. What is the difference between Azure SQL Database, SQL Managed Instance and SQL Server on a VM?

Azure SQL Database is a fully managed single database or elastic pool, best for new cloud applications. SQL Managed Instance is nearly 100% compatible with on-premises SQL Server (SQL Agent, cross-database queries), best for lift-and-shift migrations. SQL Server on an Azure VM gives full control of the OS and SQL Server, but you manage patching and high availability yourself.

Q31. What is Azure Cosmos DB?

Cosmos DB is a globally distributed NoSQL database with single-digit-millisecond latency, multi-region writes and five consistency levels (strong, bounded staleness, session, consistent prefix, eventual). It offers several APIs, including NoSQL, MongoDB, Cassandra, Gremlin and Table, and a PostgreSQL option. Choosing a good partition key is critical for performance and cost.

Monitoring, backup and automation

Q32. What is the difference between Azure Monitor, Log Analytics and Application Insights?

Azure Monitor is the overall platform for metrics, logs, alerts and dashboards. Log Analytics workspaces store log data that you query with KQL (Kusto Query Language). Application Insights is the application performance monitoring part: it tracks requests, failures, dependencies and response times inside your code.

Q33. What is the Activity log?

The Activity log records control-plane operations on resources in a subscription: who created, changed or deleted what, and when, plus service health events. It is kept for 90 days; send it to a Log Analytics workspace or storage account to keep it longer or to alert on it.

Q34. What is the difference between Azure Backup and Azure Site Recovery?

Azure Backup takes point-in-time backups of VMs, files, SQL and other workloads into a vault so you can restore data after deletion, corruption or ransomware. Azure Site Recovery continuously replicates whole VMs to another region (or from on-premises to Azure) so you can fail over the running workload during a disaster. Backup protects data; Site Recovery protects availability.

Q35. What are ARM templates and Bicep?

ARM templates are JSON files that declare Azure resources for repeatable deployments. Bicep is Microsoft's simpler language for the same thing: it compiles to ARM JSON, is much shorter and easier to read, and is the recommended way to write native Azure infrastructure as code. Deployments are idempotent, and what-if shows the changes before you apply them.

Q36. What is Microsoft Defender for Cloud?

Defender for Cloud gives a secure score and recommendations for misconfigurations across Azure (and AWS and GCP), and paid Defender plans add threat protection for servers, storage, SQL, containers and Key Vault. It is where you start when asked to improve the security posture of a subscription.

Scenario questions

Q37. A user cannot RDP to a Windows VM. How do you troubleshoot?

Check that the VM is running and its boot diagnostics show it booted; check the NSGs on both the subnet and the NIC allow 3389 from the user's IP (IP flow verify in Network Watcher shows which rule blocks it); check the VM has a public IP or that the user connects through Bastion or VPN; and check Windows Firewall and the RDP service, using Run Command or the serial console if needed. "Reset password" and "Reset configuration" in the portal fix many RDP issues.

Q38. How would you stop developers from creating expensive VMs?

Assign an Azure Policy with the "Allowed virtual machine size SKUs" definition (deny effect) at the subscription or management group, give developers Contributor only on their own resource groups, and set budgets with alerts. Auto-shutdown schedules and Dev/Test pricing reduce cost further.

Q39. An App Service must read a database password. How do you do it securely?

Store the password in Key Vault, turn on a managed identity for the App Service, give that identity the Key Vault Secrets User role on the vault, and reference the secret in the app settings with a Key Vault reference. Better still, if the database is Azure SQL, use Entra ID authentication with the managed identity so there is no password at all.

Q40. Design a hub-and-spoke network for a company with several application teams.

Create a hub VNet with shared services: Azure Firewall, VPN or ExpressRoute gateway, Bastion and DNS. Each team gets a spoke VNet peered to the hub, with route tables sending traffic through the firewall, NSGs on subnets, and private endpoints for PaaS services. Azure Policy enforces the rules, and Azure Virtual WAN can replace a self-managed hub at larger scale.

Q41. How do you move resources to another resource group, subscription or region?

Many resources can be moved between resource groups and subscriptions with the Move operation (dependent resources move together; the resource ID changes, so update scripts and RBAC). Moving to another region is different: you redeploy, usually with Azure Resource Mover, Site Recovery for VMs, or by exporting templates and copying data.

Learn Azure hands-on

Knowing the answers is half the job; interviewers also ask what you have built. Technical Guftgu's Azure training is taught in Hindi with live classes, labs and project work, plus resume and mock-interview help. We do not promise or guarantee job placement.

Azure training near you

More interview questions

TECHNICAL GUFTGU

© 2026 Technical Guftgu. All rights reserved.