Azure Engineer interview questions
100 real questions with model answers and explanations for Associate Azure Engineer candidates.
See a Azure Engineer resume example →Practice with flashcards
Spaced repetition · Hunter Pass
Questions
An Azure region is a deployment location inside an Azure geography, while a paired region is a designated partner that supports platform recovery where pairing applies.
- A geography is the broader market boundary used to meet data-residency requirements, subject to the commitments of each Azure service.
- A region contains one or more datacenters connected by a low-latency network and is where I deploy resources.
- Traditional region pairs are usually within one geography and support sequenced platform updates and recovery priority, but I still configure workload replication, backups, and failover.
Why interviewers ask this: The interviewer checks whether you understand Azure geography without assuming that a region pair provides automatic disaster recovery.
Availability zones are physically separate datacenter groups within one Azure region, used to survive a datacenter-level failure.
- Each zone has independent power, cooling, and networking, but zones in the region remain connected by low-latency links.
- A zonal resource is pinned to one zone, while a zone-redundant service spreads or replicates across zones for me.
- I would place redundant VM instances in different zones and verify that every required service and SKU supports zones in that region.
Why interviewers ask this: A strong answer distinguishes zonal from zone-redundant deployment and recognizes that support varies by region and service.
A resource belongs to one resource group, and that resource group belongs to one subscription.
- The subscription is a billing, quota, and access boundary associated with a Microsoft Entra tenant.
- A resource group is a lifecycle container for related resources, although its resources can run in different Azure regions.
- RBAC and Azure Policy can be assigned higher in the hierarchy and inherited downward, so deleting a resource group must be treated as deleting everything inside it.
Why interviewers ask this: The interviewer is evaluating whether you can place resources correctly and understand inherited governance and lifecycle boundaries.
The ARM control plane manages Azure resources, while a service's data plane works with the data inside a deployed resource.
- Creating a storage account or changing its network settings is a control-plane operation sent through Azure Resource Manager.
- Uploading a blob or querying an Azure SQL database is a data-plane operation handled by that service's endpoint.
- The permissions are separate, so Contributor can manage a storage account but does not automatically grant permission to read its blobs.
Why interviewers ask this: The interviewer checks whether you understand why resource management access does not necessarily grant access to workload data.
Microsoft secures the cloud platform, while the customer remains responsible for their data, identities, access, and workload configuration.
- Microsoft always owns physical datacenters, hardware, and the underlying host infrastructure.
- With an Azure VM, I still patch the guest OS and secure the application, while Azure SQL takes over more OS and database engine maintenance.
- I must configure RBAC, network exposure, encryption choices, backups, and monitoring rather than assuming Azure enables the right controls automatically.
Why interviewers ask this: A good answer shows that customer responsibility changes with the service model but never disappears.
A user represents a person, a group collects identities, and a service principal represents an application or automation in a tenant.
- Users sign in interactively and can be cloud-only or synchronized from an on-premises directory.
- Groups let me assign the same application access or Azure role to many members instead of managing each person separately.
- A service principal is the tenant-local identity of an application and should receive only the roles its workload needs.
Why interviewers ask this: The interviewer checks whether you can choose the correct Entra identity type instead of using personal credentials for automation.
A managed identity is a Microsoft Entra service principal whose credential lifecycle Azure manages for the workload.
- The workload requests a short-lived token from Azure and does not keep a password or client secret in code or configuration.
- A system-assigned identity is tied to one resource's lifecycle, while a user-assigned identity can be attached to multiple resources.
- I still grant the identity a specific data-plane or control-plane role on the target resource because creating it grants no useful access by itself.
Why interviewers ask this: A strong answer covers secretless token acquisition, both identity types, and the need for explicit authorization.
An Azure RBAC role assignment grants a principal a role at a scope, and that access is inherited by child scopes.
- Common scopes run from management group to subscription, resource group, and individual resource.
- The assignment combines who receives access, which role defines allowed actions, and where those actions apply.
- I prefer the narrowest built-in role and scope, such as Storage Blob Data Reader on one account instead of Owner on the subscription.
Why interviewers ask this: The interviewer is looking for a precise understanding of principal, role, scope, inheritance, and least privilege.
Azure Key Vault centrally protects secrets, cryptographic keys, and certificates, and an application should access it with a managed identity.
- Secrets hold values such as connection strings, keys perform cryptographic operations, and certificates include certificate lifecycle material.
- Microsoft Entra authentication plus Azure RBAC should grant the application only operations such as reading a particular vault's secrets.
- I would also restrict network access where required and retain recovery controls such as soft delete and purge protection.
Why interviewers ask this: The interviewer checks whether you understand both what Key Vault protects and how to avoid introducing another stored credential.
MFA adds another proof of identity, while Conditional Access decides when access is allowed and whether MFA or another control is required.
- A Conditional Access policy evaluates signals such as user, application, device state, location, and sign-in risk.
- Its grant controls can require MFA or a compliant device, or block the sign-in when the conditions match.
- I would test policies in report-only mode and exclude controlled emergency accounts to avoid locking every administrator out.
Why interviewers ask this: A strong junior answer explains the policy decision flow and includes a safe rollout practice.
I choose a private, non-overlapping CIDR block large enough for current subnets and expected growth.
- A CIDR such as 10.20.0.0/16 defines the VNet address space, and smaller ranges from it are allocated to subnets.
- I account for Azure reserving five IP addresses in every subnet, so a /29 does not provide all eight addresses to resources.
- I check planned peering, VPN, and ExpressRoute networks first because overlapping address spaces prevent straightforward routing between them.
Why interviewers ask this: The interviewer checks practical address planning rather than just whether you can define CIDR notation.
A subnet is a non-overlapping slice of a VNet address space used to place and control groups of resources.
- A VNet can contain multiple subnets, but each subnet range must stay inside the VNet and cannot overlap another subnet.
- I can associate an NSG and a route table with the subnet to apply common traffic controls and routes.
- Some services require dedicated or delegated subnets, so I check service requirements before mixing workloads in one range.
Why interviewers ask this: The interviewer evaluates whether you understand subnets as both address boundaries and Azure configuration boundaries.
An NSG filters inbound and outbound traffic with stateful allow or deny rules, and service tags represent maintained groups of Azure IP ranges.
- Rules match source, destination, protocol, port, and direction, with lower priority numbers evaluated before higher ones.
- Because NSGs are stateful, response traffic for an allowed connection does not need a separate reverse rule.
- A tag such as Storage is safer to maintain than hardcoded service IP lists, but I still scope ports and direction narrowly.
Why interviewers ask this: A strong answer covers rule evaluation, statefulness, and the concrete value of Azure-managed service tags.
A user-defined route overrides or supplements Azure's system routes to send matching traffic to a chosen next hop.
- A route table matches address prefixes and supports next-hop types such as `Virtual appliance`, `Virtual network gateway`, and `None`.
- The `Virtual appliance` type uses a private IP and can steer traffic to managed Azure Firewall or a third-party Network Virtual Appliance, but Azure Firewall itself is not an appliance.
- I associate the route table with a subnet and verify IP forwarding and return routes for traffic sent through the network function.
Why interviewers ask this: The interviewer checks whether you understand where UDRs apply and how they steer traffic through network appliances.
An Azure public IP is a separately managed address resource that exposes a supported Azure frontend to the internet.
- It can be associated with resources such as a load balancer frontend, NAT Gateway, application gateway, or VM network interface.
- A static allocation keeps the address assigned to the resource, which is important for DNS records and external allowlists.
- A public IP provides reachability, not protection, so NSGs, firewalls, and application authentication still control access.
Why interviewers ask this: The interviewer wants to see that you separate internet addressing from traffic filtering and security.
Azure NAT Gateway gives a subnet scalable, predictable outbound internet connectivity through one or more static public IP addresses.
- Private resources use source NAT through the gateway without each VM needing its own public IP.
- It is attached at subnet level and takes precedence for new outbound connections from supported resources in that subnet.
- It does not accept unsolicited inbound connections, so I use a load balancer, application gateway, or Bastion for inbound needs.
Why interviewers ask this: A strong answer identifies NAT Gateway as an outbound service and does not confuse it with inbound publishing.
Azure Bastion provides managed RDP and SSH access to VMs over their private IP addresses without public IPs on the VMs.
- An administrator connects through the Azure portal or supported native client while Bastion reaches the target inside the VNet.
- The VM avoids exposing RDP port 3389 or SSH port 22 directly to the internet.
- I still restrict who can connect with Azure RBAC, VM credentials or Entra login, and appropriate network rules.
Why interviewers ask this: The interviewer checks whether you can reduce VM management exposure without claiming Bastion replaces identity controls.
Azure Private Link is the private connectivity technology, and a private endpoint is a network interface with a private VNet address that connects to a supported service through it.
- Clients send traffic to the private IP across the Microsoft network instead of reaching the service's public endpoint.
- The endpoint is created in a subnet and targets a specific service subresource, such as Blob on a storage account.
- I also review the service's public network access because adding a private endpoint alone may not disable its public endpoint.
Why interviewers ask this: A strong answer distinguishes the platform technology from the endpoint resource and notes that public access needs separate control.
Private DNS makes the service's normal hostname resolve to the private endpoint address for clients in the connected VNet.
- Azure services use private DNS zones such as privatelink.blob.core.windows.net for private endpoint records.
- Linking the zone to the VNet lets workloads keep using the standard service hostname while DNS returns the private IP.
- For on-premises or custom DNS clients, I configure forwarding or Azure DNS Private Resolver so they receive the same private answer.
Why interviewers ask this: The interviewer checks whether you know that private connectivity depends on correct name resolution, not just endpoint creation.
VNet peering gives two virtual networks private, low-latency connectivity over the Azure backbone, but the connectivity is not transitive by default.
- Peered VNets can communicate using private addresses when their address spaces do not overlap and security rules allow the traffic.
- If VNet A peers with B and B peers with C, A does not automatically gain a route to C.
- A hub-and-spoke design needs explicit peerings or routing through a gateway, firewall, or network virtual appliance for spoke-to-spoke traffic.
Why interviewers ask this: A strong answer states the nontransitive behavior and explains its consequence for hub-and-spoke networks.
Locked questions
- 21
How do you choose an Azure VM size?
- 22
What is an Azure VM image?
- 23
What is the difference between Azure managed disks and a VM temporary disk?
- 24
When would you use cloud-init or a VM extension?
- 25
What is the difference between availability sets and availability zones for Azure VMs?
availability - 26
What is an Azure Virtual Machine Scale Set?
- 27
What does Azure Load Balancer do?
load-balancing - 28
When would you choose Azure Application Gateway instead of Azure Load Balancer?
gatewayload-balancing - 29
Why are health probes important for Azure load-balancing services?
- 30
What are the basic building blocks of Azure App Service?
- 31
What does an Azure storage account define?
- 32
How are containers and blobs related in Azure Blob Storage?
storagecontainers - 33
What are the Azure Blob Storage access tiers?
storage - 34
What is the difference between LRS, ZRS, and GRS for Azure Storage?
- 35
How do blob versioning and soft delete protect data?
soft-deleteversioning - 36
What does Azure Blob Storage lifecycle management do?
storagestorage-lifecycle - 37
How do SAS tokens and encryption protect Azure Storage data?
encryptiontokens - 38
What management work does Azure SQL Database handle for you?
sqldatabase - 39
How do high availability and backups work at a basic level in Azure SQL Database?
sqldatabasebackups - 40
Why is the partition key important in Azure Cosmos DB?
partitioningcosmos-db - 41
What does RU/s mean in Azure Cosmos DB?
cosmos-db - 42
What consistency levels does Azure Cosmos DB offer?
cosmos-dbconsistency - 43
How does an Azure Function execute?
serverless - 44
How do Azure Functions hosting options differ from running Functions on an App Service plan?
serverless - 45
What is the difference between a Service Bus queue and a topic?
messagingdata-structures - 46
What is Azure Event Hubs designed for?
designstreaming - 47
What is Azure Event Grid used for?
gridevents - 48
How do metrics, logs, and alerts fit together in Azure Monitor?
monitoringalerting - 49
What does declarative infrastructure as code mean for ARM templates, Bicep, and Terraform?
terraformiac - 50
How would you use tags, budgets, and Azure Advisor to control Azure costs?
- 51
SSH to a running Linux VM times out on port 22 from your laptop, but the Azure portal shows no platform alert; what would you check first?
alertingssh - 52
RDP to a Windows VM reaches the sign-in screen but disconnects after 30 seconds for every user; how would you diagnose it?
- 53
A new NSG rule allows TCP 443 at priority 300, but IP flow verify still reports DenyAllInBound; what would you inspect?
networking - 54
A VM has a public IP, but outbound curl requests started timing out after a 0.0.0.0/0 UDR was added to its subnet; what would you check?
networkinghttp-tools - 55
A Linux VM deployment fails with No space left on device, and a newly attached 64 GB data disk does not appear under /data; what would you do?
deployment - 56
An app on a VM gets a 403 from Key Vault even though a system-assigned managed identity is enabled; what exact checks would you make?
secretsidentitysystem-design - 57
Ten minutes after provisioning, cloud-init did not create /opt/app and the Custom Script Extension shows Provisioning failed; where would you look?
- 58
Azure Bastion cannot connect to a private VM on port 22, while another VM in the same VNet works; what would you compare?
remote-access - 59
An Azure Load Balancer marks both backend VMs unhealthy because its TCP probe on port 8080 times out, although the app responds on port 80; what would you change?
load-balancingnetworking - 60
Application Gateway returns 502, and Backend health shows Unhealthy with probe status 404 for /healthz; how would you fix it?
gatewayload-balancing - 61
A VM Scale Set stays at two instances while average CPU is above 80 percent for 15 minutes; what would you inspect?
autoscaling - 62
VMs in two peered VNets cannot reach each other on TCP 5432, and Network Watcher reports next hop None; what would you check?
networking - 63
Three VMs in a private subnet cannot download updates after a NAT Gateway was created; its outbound connection metric remains zero. What would you verify?
gatewaynetworkingmonitoring - 64
After adding a private endpoint for a storage account, nslookup still returns its public IP from two application VMs; what would you inspect?
private-connectivityendpoints - 65
A TCP 443 request between two Azure VMs times out intermittently, and the team asks for proof of where it is blocked; which Network Watcher checks would you use?
networking - 66
A VM resolves api.internal to yesterday's IP for five minutes after every deployment, while another VM gets the new address; how would you diagnose Azure DNS?
dnsapideployment - 67
A CLI upload to Blob Storage returns 403 AuthorizationPermissionMismatch for one container, although az account show lists the expected user; what would you check?
authcontainersstorage - 68
Anonymous GET requests to a container return 409 PublicAccessNotPermitted after it was set to Blob access; what setting would you verify?
containers - 69
A download SAS worked this morning but now returns 403 AuthenticationFailed, and its se value was 12:00Z; how would you confirm the cause?
auth - 70
A browser upload from https://app.example.com fails its OPTIONS request, but the same PUT succeeds in curl; what would you inspect?
http-toolshttps - 71
Blob versioning is enabled, and the current report.csv was deleted 2 hours ago; how would you safely restore the correct previous version?
versioning - 72
A lifecycle rule should move logs/ blobs to Cool after one day, but 40-hour-old files remain Hot; what would you inspect?
- 73
An application gets 404 for every blob after its endpoint was changed to oldstore.blob.core.windows.net, while the portal shows data in newstore; what would you verify?
endpoints - 74
Azure Front Door Standard/Premium still serves the previous app.js 20 minutes after a release, while the Blob origin returns the new file; what would you do?
edge-routing - 75
Azure SQL rejects a developer with error 40615 saying IP 203.0.113.24 is not allowed; what would you change and verify?
sql - 76
An app makes 12 successful network connections to Azure SQL with managed identity, but every sign-in fails with Login failed for user '<token-identified principal>'; what would you fix?
sqltokensidentity - 77
An Azure SQL API starts returning connection pool timeouts at 120 open sessions, although CPU is only 25 percent; what would you check?
sqlpoolingapi - 78
An Azure SQL database is at 95 percent of its 32 GB limit, and the team also asks whether yesterday's data can be recovered; what would you verify?
sqldatabase - 79
A General Purpose Azure SQL serverless database auto-pauses after 60 idle minutes, and the first report then times out after 45 seconds; how would you handle it?
sqldatabase - 80
One Cosmos DB tenant generates 60 percent of requests and receives 429 responses while total RU usage averages 35 percent; what would you check?
cosmos-db - 81
An HTTP-triggered Azure Function loses the client response at about 230 seconds while processing 8,000 rows; what would you change?
serverlesshttpconcurrency - 82
A Function works locally, but 10 production invocations fail with KeyError for ORDERS_QUEUE after deployment; where would you check configuration?
deploymentconfig - 83
After an Application Insights connection-string and workspace change, a Function throws errors for 25 requests but shows no invocation telemetry; how would you diagnose it?
- 84
An App Service starts returning 500 responses immediately after a deployment, while platform health is green; what would you inspect first?
deployment - 85
After swapping staging to production, an App Service connects to the test database for 3 minutes; which environment-variable behavior would you check?
databasetest-data - 86
A Service Bus worker takes 90 seconds per message, but the lock lasts 60 seconds and messages reach the dead-letter queue after ten deliveries; what would you change?
messagingdata-structures - 87
An Event Hubs consumer reprocesses about 12,000 events after every restart; what checkpoint configuration would you verify?
streamingconfig - 88
An Event Grid webhook subscription delivered 0 of 50 storage events and reports endpoint response code 401; how would you recover safely?
endpointswebhooksgrid - 89
Azure Monitor shows no guest memory data for three new VMs, although CPU platform metrics are present; what would you check?
monitoringmemory - 90
A KQL query returns zero App Service errors even though the portal shows 23 failures in the last hour; how would you validate the query?
queriesvalidation - 91
A production NSG rule was changed around 14:20 UTC, and you need to identify who changed it; where would you look?
- 92
A resource-group Bicep deployment fails after 7 of 12 resources with InvalidTemplateDeployment; how would you find the real error?
deploymentiac - 93
A Bicep change is expected to update two resources, but what-if reports one deletion and six modifications; what would you do before deployment?
deploymentiac - 94
A Terraform pipeline fails because the Azure Storage state blob has an active lease, but no run has updated it for 45 minutes; what would you check?
terraformci-cd - 95
A deployment for 1 GitHub repository environment fails with AADSTS700213 No matching federated identity record; what would you compare?
deployment - 96
Daily Azure cost rose from $40 to $115 over three days with no planned launch; how would you find the cause?
- 97
Twenty Azure resources have no costCenter tag, so a monthly report cannot allocate $600; how would you correct existing resources and prevent new gaps?
- 98
A VM is backed up nightly, and the latest Recovery Services vault job is green; how would you prove a restore can meet a four-hour target?
secrets - 99
Your shift ends 25 minutes into an Azure incident where App Service 5xx errors remain at 8 percent; what would your Azure handoff contain?
incidents - 100
In Bicep review, a deployment identity is assigned Owner over the whole subscription just to create resources in one resource group; what would you change?
deploymentiac