Interview preparation
AZ-104 and Azure fundamentals interview questions
188 questions from 47 topics, each with a model answer. Many include the follow-up an interviewer is likely to ask next. Use the mock interview to practise thinking on your feet.
Mock interview
Nimbus plays the interviewer. Answer out loud, then compare with the model answer.
Microsoft Entra Users and Groups: Create and Manage
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between a security group and a Microsoft 365 group?
Model answer
A security group is for access: you give it Azure roles, app access or file permissions. A Microsoft 365 group is for teamwork: it comes with a shared mailbox, calendar, SharePoint site and can back a Teams team. Both can hold users, and either can have assigned or dynamic membership.
Intermediate When would you use a dynamic group instead of an assigned one?
Model answer
When membership follows a property that HR already keeps up to date, like department or location. With a rule such as user.department -eq "Sales", new sales hires join on day one and people who move teams drop out automatically. I'd keep assigned groups for small, hand-picked sets like a project team or an approvers list.
Experienced developer A user's department was changed but they still aren't in the dynamic group. What would you check?
Model answer
First the rule itself, on the group's Dynamic membership rules blade, using Validate rules against that user. Then the processing state: it must be On, not Paused. Then time: dynamic membership is evaluated in the background and can take a while in a big tenant. And the licence: dynamic groups need Entra ID P1 for the users in scope.
Scenario Forty new hires start on Monday. How would you set them up?
Model answer
I'd use Bulk operations, Bulk create, with the CSV template filled from HR's list, including department, job title and usage location. A dynamic group per department then picks them up, and group-based licensing on those groups gives them Microsoft 365. If HR sync is available, I'd use API-driven or HR inbound provisioning instead of CSVs.
Licenses and External Users in Microsoft Entra ID
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between assigning a license directly and through a group?
Model answer
Direct means I pick a user and give them the license. Group-based means I give the license to a group, and everyone in it gets it. When someone leaves the group they lose it, which stops paid licenses sitting with people who don't need them.
Intermediate A direct license assignment fails. What's the first thing you check?
Model answer
The user's usage location. Licenses depend on which country the service is used in, so the portal won't assign one until usage location is set. After that I'd check whether there are any free seats left for that product.
Experienced developer Some members of a licensed group show an error state. Why?
Model answer
Usually not enough seats, so the group can't license everyone, or a conflict between two service plans the user gets from different groups. I'd add seats or remove the conflicting plan, then select Reprocess on the group's Licenses blade. Members without a usage location use the directory's location under group licensing, so that's rarely the cause.
Scenario A partner's consultants need access to one SharePoint site and an internal app for three months. How would you set it up?
Model answer
I'd invite them as B2B guests, ideally into a group that has access to the site and the app, so I'm not managing a password for them. I'd restrict invitations to the partner's domain in External collaboration settings, require MFA through Conditional Access, and put an access review or an expiry on the group so access ends with the project.
Configure Self-Service Password Reset (SSPR)
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What problem does SSPR solve?
Model answer
Forgotten passwords and locked accounts. Instead of calling the helpdesk and waiting, users go to aka.ms/sspr, prove who they are with methods they registered earlier, and set a new password themselves.
Intermediate How would you roll out SSPR safely?
Model answer
Start with Selected and a pilot group, require two methods, allow the Authenticator app and email, and turn on registration at sign-in so the pilot users register before they ever need it. Notify users on resets. When the pilot is happy, switch to All.
Experienced developer A synced user resets their password with SSPR but can't sign in to their on-premises PC with it. Why?
Model answer
Password writeback probably isn't enabled. Without it, the new password only exists in the cloud. Writeback needs Entra Connect or Cloud Sync with writeback turned on there and on the On-premises integration page of Password reset, plus an Entra ID P1 license.
Scenario Users in the pilot say SSPR tells them to contact their administrator. What would you look at?
Model answer
Whether they're actually in the selected group, since Selected only covers one group. Then whether they've registered enough methods for the required number. Then whether the allowed methods match what they registered, since a method you've disabled doesn't count.
Azure RBAC: Built-in Roles and Scopes
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What are the three parts of an Azure role assignment?
Model answer
Who, what and where. Who is the security principal, such as a user or group. What is the role definition, like Reader. Where is the scope, such as one resource group. Put them together and that person can do that set of things in that place and everything below it.
Intermediate Contributor or Owner for an app team?
Model answer
Contributor on their own resource group in most cases. They can build and change everything they need, but they can't give access to anyone else or remove locks. I'd keep Owner for a few platform admins, ideally through PIM so it's only active when needed.
Experienced developer How would you let a team lead grant access without letting them create new Owners?
Model answer
Assign Role Based Access Control Administrator with a condition, either limited to specific roles and principals or the option that blocks assigning Owner, User Access Administrator and RBAC Administrator. That delegates day-to-day access without handing over the keys to the subscription.
Scenario The VM team needs to start and stop VMs in rg-app but must not change the network. Which role and scope?
Model answer
Virtual Machine Contributor at the rg-app resource group, assigned to the VM team's group. It manages VMs and their disks but doesn't give rights over the virtual network or let them sign in to the VMs. If even that's too much I'd write a custom role with just start, deallocate and read.
Interpret Access Assignments and Effective Access
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner If someone has Reader on a subscription and Contributor on one resource group, what can they do in that resource group?
Model answer
Contributor things. Roles add up, so in that resource group they can read and change resources. Everywhere else in the subscription they can only read.
Intermediate Does NotActions deny an action?
Model answer
No. NotActions only removes permissions from that one role. If the user has a second role that grants the action, they can do it. The only thing that truly denies is a deny assignment.
Experienced developer A user says they're only a Reader but they deleted a VM. How do you investigate?
Model answer
I'd open Check access on the VM or its resource group and look at every assignment, including inherited ones from the subscription or management group and anything through group memberships. Then the activity log to confirm who did the delete and when. Nine times out of ten there's a group with Contributor they'd forgotten about.
Scenario An Owner can't delete resources in a resource group managed by a deployment stack. Why?
Model answer
The deployment stack has deny settings, which Azure enforces as a deny assignment. Deny assignments win over role assignments, Owner included. They'd need to change the stack's deny settings or be in its excluded principals.
Implement and Manage Azure Policy
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between Azure Policy and RBAC?
Model answer
RBAC decides who can do things. Policy decides what's allowed to exist, whoever does it. An Owner can still be stopped by an Allowed locations policy, because policy is about the resource, not the person.
Intermediate Deny or Audit for a new tagging rule?
Model answer
I'd usually start with Audit, or the assignment in DoNotEnforce mode, to see how many resources would fail without breaking anyone's deployments. Then move to Modify to add the tag automatically, or Deny if teams must supply it themselves.
Experienced developer Why does a Modify or DeployIfNotExists assignment need a managed identity?
Model answer
Because Policy itself makes the change, not the user. The assignment's managed identity needs a role such as Tag Contributor or Contributor on the scope. The portal creates and grants it for you on the Remediation tab; with the CLI you add --mi-system-assigned and --location, then assign the role.
Scenario You assigned Inherit a tag from the resource group, but old resources still don't have the tag. What now?
Model answer
Modify only acts on create and update requests. For resources that already existed I'd create a remediation task for the assignment, either from Policy, Remediation, or with az policy remediation create. It uses the managed identity to add the tag to every non-compliant resource.
Resource Locks and Tags for Administrators
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between a Delete lock and a ReadOnly lock?
Model answer
A Delete lock, CanNotDelete, lets people keep working on the resource but stops anyone deleting it. ReadOnly stops any change at all, including tags. I use Delete on production all the time and ReadOnly only for short freezes.
Intermediate Why might a ReadOnly lock break an app?
Model answer
Because some operations that feel like reads are actually POST requests in Azure Resource Manager. Listing storage account keys is one, so anything that reads keys through the management API fails. Scaling a plan, starting a VM or adding a tag also stop working.
Experienced developer Do resource group tags flow down to resources?
Model answer
No, not by themselves. I'd assign the built-in Inherit a tag from the resource group if missing policy with a managed identity, plus a remediation task for existing resources. Cost Management also has a tag inheritance setting, but that only affects cost data, not the resources' actual tags.
Scenario An Owner can't delete a resource group they created. What's going on?
Model answer
Almost certainly a lock, on the group or inherited from the subscription. Locks apply to everyone. They'd check Locks on the group and the subscription, remove it if that's the right call, then delete. If there's no lock, I'd check for a deny assignment from a deployment stack.
Resource Groups, Subscriptions and Management Groups
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between a resource group and a subscription?
Model answer
A resource group is a folder for resources that belong together, like one app's VM, database and network. A subscription is bigger: it's where the bill, quotas and access boundary live, and it holds many resource groups.
Intermediate What happens when you move a resource to another resource group?
Model answer
Its resource ID changes because the group name is part of it, so scripts and anything referencing the old ID need updating. The region doesn't change. Both the source and target groups are locked for writes during the move, and the move is validated first.
Experienced developer Why put subscriptions under management groups?
Model answer
So governance is set once. An Allowed locations policy or a Reader role for the security team assigned at a management group applies to every subscription beneath it, including new ones. Typically I'd have Platform, Landing zones split into Corp and Online, and Sandbox, following the Cloud Adoption Framework.
Scenario A team wants to move a VM to another region. Can they use Move?
Model answer
Not the resource-group or subscription move. That keeps the region. For a region change I'd use Azure Resource Mover, or rebuild from a backup or image in the new region, then switch traffic and clean up the old one.
Manage Costs with Budgets, Alerts and Azure Advisor
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Does an Azure budget stop spending when you hit it?
Model answer
No. A budget only alerts. If you want something to happen, like shutting down dev VMs, you connect an action group that runs an automation runbook or a Logic App. Spending limits that actually stop services exist only on some credit-based offers.
Intermediate Actual or forecasted alerts?
Model answer
Both. Actual at 50 and 80 percent tells you where you are. Forecasted at 100 percent warns you mid-month that you're on track to overspend, which gives you time to act instead of finding out on the last day.
Experienced developer How would you give each department its own budget in one subscription?
Model answer
Tag resources with costcenter, enforce the tag with policy, then create a budget per department at the subscription scope with a filter on that tag value. Each budget's alerts go to that department's distribution list and action group.
Scenario Finance wants dev/test VMs shut down automatically if the dev subscription hits 90% of budget. How?
Model answer
A budget on the dev subscription with an Actual alert at 90% that calls an action group. The action group triggers an Automation runbook or Logic App with a managed identity that has Virtual Machine Contributor, which deallocates the tagged dev VMs.
Storage Firewalls and Virtual Network Rules
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What does setting a storage account firewall to Deny actually do?
Model answer
It changes the default for requests that don't match a rule. Anything not coming from an allowed subnet, an allowed public IP, an allowed resource instance or a trusted Azure service gets a 403, even if it presents a valid key or SAS. It doesn't change who is authorized, it changes where they're allowed to come from.
Intermediate A developer says the app VM can't reach storage after you set the firewall to Deny. You added the VM's public IP as an IP rule. What's wrong?
Model answer
If the VM is in Azure, especially in the same region, its traffic to storage doesn't arrive from its public IP. IP rules don't apply to requests from the same Azure region. I'd add the VM's subnet as a virtual network rule, which turns on the Microsoft.Storage service endpoint, or give storage a private endpoint.
Experienced developer After you locked the firewall, Azure Backup and some diagnostics stopped working. How do you fix it without opening the account up again?
Model answer
I'd tick the exception "Allow Azure services on the trusted services list to access this storage account", which in the CLI is --bypass AzureServices. If logging or metrics readers need access, I'd add Logging and Metrics to the bypass too. For a service that isn't on the trusted list, I'd use a resource instance rule for that specific resource.
Scenario Contoso wants the storage account reachable only from its app subnet and its head office. Walk me through it in the CLI.
Model answer
az storage account update with --default-action Deny and --bypass AzureServices. Then az storage account network-rule add with --vnet-name and --subnet for the app subnet, after making sure the subnet has the Microsoft.Storage service endpoint. Then network-rule add with --ip-address and the office's public CIDR. Finally I'd test a data call from outside and expect a 403.
SAS Tokens and Stored Access Policies
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why would you give someone a SAS instead of the storage account key?
Model answer
The key gives full control of everything in the account, forever. A SAS gives only the permissions I choose, on the container or blob I choose, until a time I choose, and I can require HTTPS or a specific IP range. If it leaks, the damage is limited.
Intermediate You gave a partner an ad hoc service SAS valid for six months and now need to cut them off. What can you do?
Model answer
An ad hoc SAS carries its own permissions and expiry, so the only way to revoke it early is to regenerate the account key that signed it. That also breaks anything else using that key, so I'd move other apps to the second key first. Next time I'd tie the SAS to a stored access policy so I can just delete the policy.
Experienced developer When would you choose a user delegation SAS?
Model answer
Whenever the data is in Blob Storage and the person creating the SAS has a Microsoft Entra identity. It's signed with a key Entra ID issues, not the account key, so it still works when Shared Key access is disabled, it's capped at seven days and its rights can never exceed what the signer's RBAC role allows. I can revoke all of them with az storage account revoke-delegation-keys.
Scenario Auditors need read access to the invoices container for 30 days, and you might have to end it early. How do you set it up?
Model answer
Create a stored access policy called auditors-read on the invoices container with read and list and a 30-day expiry. Then generate a service SAS with --policy-name auditors-read, HTTPS only. To end access I delete the policy, or change its expiry to the past. The account keys don't change.
Manage and Rotate Storage Access Keys
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why does a storage account have two keys?
Model answer
So you can rotate them without downtime. Apps use one key while you regenerate the other. Then you switch the apps over and regenerate the first. If there were only one key, every rotation would be an outage.
Intermediate A support engineer with the Reader role can't see the access keys. Is that a bug?
Model answer
No. Listing keys needs the listKeys action, which Reader doesn't have. Owner, Contributor, Storage Account Contributor and Storage Account Key Operator Service Role have it. Reader and Data Access is another option if they only need to read data through the portal.
Experienced developer What does a key expiration policy actually do?
Model answer
It records how many days a key may live. The portal shows a rotation reminder and Azure Policy or Azure Monitor can flag accounts whose keys are older than that. It doesn't rotate anything for you. For automatic rotation you'd script it, for example with an Azure Automation runbook or an Event Grid triggered function, and keep the current value in Key Vault.
Scenario A key was pasted into a public chat. Walk me through the next ten minutes.
Model answer
Find out which key it was. If the apps use the other key, regenerate the leaked one straight away. If the apps use the leaked key, swap them to the other key in Key Vault or their settings first, then regenerate. Check that SAS tokens signed with that key are reissued. Then review the storage logs for unusual reads and plan the move to Microsoft Entra ID so this can't happen again.
Identity-Based Access for Azure Files
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why not just mount the share with the storage account key?
Model answer
The key is a superuser credential. Everyone using it has full control of every share in the account, you can't tell who did what, and if one person leaves you'd have to rotate the key for everybody. With identity-based access each user signs in as themselves and gets only the access their roles and ACLs allow.
Intermediate What are the two layers of permission in Azure Files?
Model answer
Share-level permissions decide who can reach the share, using Azure RBAC roles like Storage File Data SMB Share Contributor or a default share-level permission. Then directory and file-level permissions are Windows ACLs, the normal NTFS permissions. A user needs both. The more restrictive one wins.
Experienced developer When would you pick Microsoft Entra Kerberos over AD DS?
Model answer
When users sign in to Entra-joined or hybrid-joined devices and I don't want clients to need line of sight to a domain controller, for example remote workers or Azure Virtual Desktop. The identities are hybrid users synced from AD DS with Entra Connect. If everything is already domain-joined on a corporate network, AD DS works fine too.
Scenario Users get "Access is denied" when mapping a drive, even though AD DS authentication is enabled on the account. What do you check?
Model answer
First, share-level permission: does the user or their group have an SMB Share role on the share, or is a default share-level permission set? If the identity is from AD DS, it must be synced to Microsoft Entra ID for RBAC to apply. Then Windows ACLs on the folder. Then network basics: outbound TCP 445 and the storage firewall.
Create and Configure Storage Accounts and Encryption
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Is data in Azure Storage encrypted if I do nothing?
Model answer
Yes. Every byte written to Azure Storage is encrypted with 256-bit AES before it hits disk, and decrypted when you read it. You can't turn that off. What you can choose is who manages the key: Microsoft by default, or you with a customer-managed key in Key Vault.
Intermediate Which storage account settings can't you change after creation?
Model answer
The name, the performance tier (Standard or Premium) and the premium account type, infrastructure encryption, and whether customer-managed keys can cover tables and queues. Redundancy, access tier, TLS version, network rules and the key source can all be changed later.
Experienced developer What do you need before switching a storage account to a customer-managed key?
Model answer
A key vault or Managed HSM with soft delete and purge protection, an RSA or RSA-HSM key, and an identity for the storage account, system-assigned or user-assigned, with the Key Vault Crypto Service Encryption User role on the key (or get, wrapKey and unwrapKey in an access policy vault). If I leave the key version out, storage picks up new key versions automatically.
Scenario Compliance says the company must be able to make storage data unreadable on demand. What would you set up?
Model answer
A customer-managed key in Key Vault. If the key is disabled or access is removed, storage can't unwrap the data encryption keys, so reads and writes fail until access is restored. I'd add infrastructure encryption on new accounts if they also want double encryption, and protect the vault with purge protection so nobody can destroy the key by accident.
Storage Redundancy and Object Replication
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between ZRS and GRS?
Model answer
ZRS spreads three copies across three availability zones in one region, so it survives a zone or datacenter failure and stays writable. GRS keeps three copies in one datacenter plus three more in the paired region, so it survives losing a whole region, but the secondary copy is asynchronous and you have to fail over to use it.
Intermediate How do you change an LRS account to ZRS?
Model answer
It's a conversion, not a quick setting change, because data has to be spread across zones. In the portal you pick ZRS on the Redundancy blade and Azure starts the conversion, or in the CLI az storage account migration start with --sku Standard_ZRS. The account stays online. LRS to GRS, on the other hand, is a simple update.
Experienced developer What happens during an unplanned customer-managed failover?
Model answer
The secondary region becomes the primary and DNS points there. Because geo-replication is asynchronous, any writes after the Last Sync Time can be lost, so I check that first. After failover the account is LRS in the new primary, and I have to reconfigure geo-redundancy. A planned failover, used for drills, keeps geo-redundancy and loses nothing.
Scenario Users in Europe need low-latency reads of product images stored in an East US account. GRS is already on. Does that help?
Model answer
Not really. GRS goes to the paired region, West US, and the secondary isn't readable unless it's RA-GRS. I'd use object replication to copy the images container to an account in West Europe and point European users at it. That needs versioning on both accounts and the change feed on the source.
Move Data with Azure Storage Explorer and AzCopy
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner When would you use AzCopy instead of the portal?
Model answer
For anything more than a handful of files, or anything I want to repeat. AzCopy runs many transfers in parallel, can resume a job that broke halfway, can sync only changes, and fits in a script or a scheduled task. The portal is fine for uploading three PDFs.
Intermediate You run azcopy login and then azcopy copy, and get a 403 AuthorizationPermissionMismatch, even though you're Owner of the subscription. Why?
Model answer
Owner is a management role. With azcopy login, AzCopy sends my Microsoft Entra token, and Blob Storage checks data roles. I need Storage Blob Data Contributor (or Owner) on the account or container, and it can take a few minutes to apply. Or I can use a SAS on the URL instead.
Experienced developer How do you copy a container between two storage accounts without downloading it?
Model answer
azcopy copy with both URLs, the source with a SAS that allows read and list, the destination with a SAS that allows write and create, or Entra ID on both. AzCopy uses server-to-server APIs, so the data flows between the accounts and my machine only coordinates the job.
Scenario A nightly job must keep a folder of PDFs on a file server mirrored to a blob container, including removing files that were deleted locally. What do you run?
Model answer
azcopy sync from the local folder to the container URL with --delete-destination true, authenticated with a managed identity (azcopy login --identity) that has Storage Blob Data Contributor, or a SAS. Sync compares last-modified times, so each night only the changes move.
Azure File Shares, Snapshots and Soft Delete
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's a share snapshot?
Model answer
A read-only copy of the whole file share at one moment. It's incremental, so it only stores what changed since the previous one. If someone deletes or corrupts a file, you open the snapshot and copy the old version back, or use Previous Versions in Windows.
Intermediate Does share soft delete protect a single deleted file?
Model answer
No. Share soft delete works at the share level: if the whole share is deleted, you can undelete it with its snapshots during the retention period. For a single file you need a snapshot or Azure Backup, which takes snapshots on a schedule.
Experienced developer A team needs NFS 4.1 shares for Linux apps. What do you create?
Model answer
A premium FileStorage account, because NFS isn't available on standard general-purpose v2 accounts. NFS shares are reached through a virtual network (service endpoint or private endpoint), they don't use identity-based SMB auth, and secure transfer has to be off for NFS on that account because NFS encrypts differently.
Scenario Someone deleted the finance share on Friday and the CLI said it had snapshots. How do you get everything back?
Model answer
If share soft delete was on, I list deleted shares with az storage share-rm list --include-deleted, take the deleted version and run az storage share-rm restore. The share comes back with its snapshots. Then I'd add a delete lock on the storage account and make sure Azure Backup is protecting the share.
Blob Containers, Access Tiers and Lifecycle Management
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between Cool and Archive?
Model answer
Cool is online: you can read a blob immediately, you just pay more per read and a bit less per GB than Hot, with a 30-day minimum. Archive is offline: it's the cheapest storage, but you can't read the blob until you rehydrate it, which can take up to 15 hours at Standard priority, and there's a 180-day minimum.
Intermediate You try to create a container with anonymous blob access and get an error. Why?
Model answer
The account setting Allow Blob anonymous access is off, which is the default for new accounts. No container can be made public until that's turned on at account level. I'd only do that for content that really should be public, and keep everything else private and shared with SAS.
Experienced developer How would you write a lifecycle rule for blobs that should go cool once nobody reads them?
Model answer
Turn on last access time tracking for the account, then use daysAfterLastAccessTimeGreaterThan in the tierToCool action, and optionally enableAutoTierToHotFromCool so a blob that gets read again goes back to Hot. Rules based on modification time don't need tracking. I'd filter with a prefix or blob index tags so the rule doesn't touch everything.
Scenario Finance keeps invoices for seven years and rarely opens anything older than a month. Design the storage.
Model answer
A private invoices container in an LRS or GRS account, because Archive isn't available on zone-redundant accounts. A lifecycle rule with prefix invoices/ moving blobs to Cool after 30 days, Cold after 90, Archive after 180, and deleting after about 2,555 days. Finance knows an archived invoice needs rehydrating, and urgent ones can use High priority.
Blob Soft Delete and Versioning
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between soft delete and versioning?
Model answer
Soft delete is about deletes: a deleted blob waits for a set number of days before it's really gone, and you can undelete it. Versioning is about changes: every time a blob is overwritten, the old content is kept as a version. Together they cover both "I deleted it" and "I saved over it".
Intermediate Versioning is on and someone deletes a blob. How do you get it back?
Model answer
With versioning, a delete turns the current version into a previous version; there's no current blob left. I list versions with --include v, find the one I want and copy it back over the blob name with az storage blob copy start using the version ID in the source URL, or in the portal pick the version and select Make current version.
Experienced developer What does versioning cost, and how do you keep it under control?
Model answer
Each version is billed for the data it holds, so a blob that's rewritten hourly can pile up versions fast. I add a lifecycle rule that deletes versions older than, say, 90 days, or moves them to a cooler tier. Versioning also isn't supported on accounts with a hierarchical namespace.
Scenario A container with a year of reports was deleted this morning. Container soft delete was on with 7 days. What do you do?
Model answer
List containers with --include-deleted to get its deleted version, then az storage container restore with the name and version, or Show deleted containers and Undelete in the portal. It comes back with its blobs. If a container with the same name was created since, I'd have to remove or rename that first.
Read and Modify ARM Templates and Bicep Files
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What are the main sections of an ARM template?
Model answer
$schema and contentVersion at the top, then parameters, variables, resources and outputs. Functions is optional too. Resources is the only one that does real work: each entry has a type, an apiVersion, a name, a location and its properties.
Intermediate How would you stop people deploying a Premium storage account from your template?
Model answer
I'd restrict the SKU parameter. In ARM JSON that's allowedValues on the parameter, in Bicep it's the @allowed decorator. Resource Manager rejects any other value during validation, before anything is created. If I need it enforced for everyone, not only people using my template, that's an Azure Policy job.
Experienced developer What's the practical difference between a resource's symbolic name and its name in Bicep?
Model answer
The symbolic name, like st, only exists inside the file. I use it to reference the resource, for example st.id or st.properties.primaryEndpoints.blob, and Bicep works out dependsOn for me. The name property is the real Azure resource name that shows up in the portal.
Scenario A colleague hands you a template and says it creates a VM. How do you check what it really does before you run it?
Model answer
I read the parameters to see what I have to supply and what the defaults are, then the resources section for every type it creates, including the NIC, public IP and NSG. Then I run az deployment group what-if against a test resource group, which lists each create, modify and delete without changing anything.
Deploy, Export and Convert Templates to Bicep
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Which command deploys a Bicep file to a resource group?
Model answer
az deployment group create --resource-group rg-name --template-file main.bicep, with --parameters for the inputs. In PowerShell it's New-AzResourceGroupDeployment with -TemplateFile. There are matching sub, mg and tenant commands for other scopes.
Intermediate What's the difference between Incremental and Complete mode?
Model answer
Incremental is the default. It creates or updates whatever is in the template and doesn't touch anything else in the resource group. Complete makes the group match the template exactly, so anything not in the template gets deleted. I'd only use Complete with what-if first and probably a delete lock on anything precious.
Experienced developer Why shouldn't you redeploy an exported template as it is?
Model answer
Export captures what exists now with names, IDs and values hard-coded. Some resource types and properties can't be exported, and it's capped at a number of resources. So I treat it as a starting point: decompile to Bicep, turn the hard-coded values into parameters, remove read-only properties, then test it with what-if.
Scenario A teammate wants to run a Complete-mode deployment on the production resource group to tidy it up. What do you do?
Model answer
I'd run what-if with --mode Complete first and read every line starting with a minus sign, because those get deleted. If anything there is in use, either it goes into the template or we stay in Incremental mode and remove leftovers deliberately.
Create Virtual Machines and Manage VM Sizes
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What does Standard_D4s_v5 tell you?
Model answer
D is the general-purpose family, 4 is the number of vCPUs, the s means it can use Premium SSD disks, and v5 is the generation. Other letters you'll see are a for AMD, d for a local temp disk, and p for Arm.
Intermediate A size you want is greyed out on a running VM. Why, and what do you do?
Model answer
The VM's current hardware cluster doesn't offer that size. I'd plan a short window, stop the VM from the portal so it's deallocated, then resize. Once it's deallocated every size in the region is available, and it starts on a host that has it.
Experienced developer What's the difference between stopping a VM from inside Windows and stopping it in the portal?
Model answer
Shutting down inside the OS, or az vm stop, leaves the VM Stopped but still allocated, so we keep paying for compute. Stop in the portal, or az vm deallocate, releases the host and compute billing stops. Disks are billed either way, and a dynamic public IP can change after a deallocation.
Scenario A reporting VM runs out of memory every month-end but is idle the rest of the time. What would you suggest?
Model answer
Resize it to a memory-optimised E-series size for the busy days, or move it to a larger size permanently if the window is short anyway. If the workload is really bursty, a B-series burstable size or a scheduled resize with automation could save money. Either way, it's a restart, so I'd schedule it.
VM Disks and Encryption at Host
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between the OS disk, a data disk and the temp disk?
Model answer
The OS disk holds the operating system. Data disks hold application data, and both are managed disks that survive restarts and deallocation. The temp disk sits on the physical host. It's fast but anything on it can disappear when the VM moves hosts, so it's only for page files and scratch data.
Intermediate How do you switch a data disk from Premium SSD to Standard SSD?
Model answer
Deallocate the VM, or detach the disk, then change the SKU on the disk's Size + performance blade or with az disk update --sku StandardSSD_LRS. Then start the VM again. You can't change the type of an attached disk while the VM is running.
Experienced developer Managed disks are already encrypted. Why would you turn on encryption at host?
Model answer
Server-side encryption covers the disks at rest in Storage. It doesn't cover the temp disk or the disk cache that live on the host. Encryption at host encrypts those on the host itself and sends data to Storage already encrypted, which is what auditors usually mean by end-to-end. It doesn't use the VM's CPU, unlike Azure Disk Encryption.
Scenario You try to enable encryption at host on a VM and the option is greyed out. What do you check?
Model answer
First whether the EncryptionAtHost feature is registered on the subscription with az feature register and az provider register. Then whether the VM is deallocated, because the setting can't change while it runs. Then whether the VM size supports it and whether the VM uses Azure Disk Encryption, which blocks it.
Move a VM to Another Resource Group, Subscription or Region
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Does moving a VM to another resource group change its region?
Model answer
No. Moving between resource groups or subscriptions only changes where it's managed and billed. The VM stays in the same region and keeps running. Changing region needs Azure Resource Mover or a rebuild.
Intermediate Your VM move fails validation. What's the usual reason?
Model answer
The VM was selected without its dependent resources. Its OS and data disks and network interface have to move together, and for a subscription move the virtual network as well. I'd select the whole set, or check the error, which lists what's missing.
Experienced developer What breaks after you move a VM to another subscription?
Model answer
Anything that uses the old resource ID: scripts, alerts, dashboards, automation and role assignments made directly on the VM, which don't move. I'd also check that the target subscription has the Microsoft.Compute provider registered and enough quota, and that both subscriptions are in the same tenant.
Scenario A VM in East US must run in West Europe with as little rework as possible. How do you do it?
Model answer
Azure Resource Mover. I'd create the move from the VM's Move menu, let it add the dependencies, prepare and initiate the move, test the copy in West Europe, commit, update DNS, then delete the source. Until I commit I can discard and nothing changes in the source.
Availability Zones, Availability Sets and VM Scale Sets
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between a fault domain and an update domain?
Model answer
A fault domain is about unplanned failures: VMs in different fault domains don't share a rack's power or switch. An update domain is about planned maintenance: Azure reboots one update domain at a time, so not all VMs go down together.
Intermediate Can you add an existing VM to an availability set or move it into a zone?
Model answer
Not by editing it. Both are chosen when the VM is created. To change them you recreate the VM from its disks with the set or zone selected, or use a zone move tool. And one VM can't be in an availability set and a zone at the same time.
Experienced developer Why would you choose a Flexible scale set over Uniform?
Model answer
Flexible is the recommended mode for new deployments. Instances are normal VMs you can manage with the usual VM commands, you can mix sizes and Spot with regular VMs, and it spreads across zones and fault domains for availability. Uniform suits huge fleets of identical instances and some older features, but most new work starts with Flexible.
Scenario Your web tier must survive a datacenter outage and handle Monday-morning peaks. What would you build?
Model answer
A Flexible scale set across zones 1, 2 and 3 behind a zone-redundant load balancer, with autoscale on average CPU, say plus two instances above 70% and minus one below 30%, minimum three so there's one per zone. I might add a scheduled profile to scale out before Monday 8 AM.
Azure Container Registry and Container Instances for Admins
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between Azure Container Registry and Azure Container Instances?
Model answer
ACR stores images and ACI runs them. The registry is like a private shelf of packaged apps. Container Instances takes one of those packages and runs it as a container group, with the CPU and memory I choose, without me building any VM or cluster.
Intermediate Which ACR tier would you choose for a team in the US and Europe that wants fast pulls in both places?
Model answer
Premium, because geo-replication is Premium only. I'd add a replica in the European region so pulls there stay local, and pushes to either region sync to both. If the registry is Standard today, I can upgrade it in place with az acr update --sku Premium, and the images stay where they are.
Experienced developer A container group needs more memory. How do you change it?
Model answer
I can't resize it in place. CPU, memory, the OS type and the restart policy are fixed properties, so I delete the container group and create it again with the new values, usually from the same YAML or ARM template. If it keeps needing more capacity under load, it probably belongs in Container Apps, which scales on rules.
Scenario A nightly ACI job keeps running and costing money after it finishes. What's wrong?
Model answer
The restart policy is almost certainly Always, the default, so ACI restarts the container every time it exits. For a job I'd set OnFailure, so it reruns only if it fails, or Never if a failure should be looked at by a person. Then the group stops after the run and billing stops with it.
Provision and Scale Azure Container Apps
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What does "scale to zero" mean in Container Apps?
Model answer
When nobody is using the app, Container Apps can stop every replica, so you pay nothing for compute. You allow it by setting min replicas to 0. The next request starts a replica again, with a short delay the first time.
Intermediate An API should add replicas as traffic grows, up to 20. How do you set that up?
Model answer
I'd add an HTTP scale rule with a concurrent requests value, say 50 per replica, set max replicas to 20 and min replicas to 0 or 1 depending on whether a cold start is acceptable. In the CLI that's az containerapp update with --scale-rule-type http, --scale-rule-http-concurrency 50 and --max-replicas 20.
Experienced developer Why didn't my container app scale to zero with a CPU rule?
Model answer
CPU and memory rules need at least one replica running to measure anything, so they can't scale to zero. If scale to zero matters, I'd use an HTTP, TCP or event rule, such as an Azure Service Bus queue scaler, and set min replicas to 0.
Scenario The create wizard rejects 0.5 vCPU with 4 Gi of memory. Why?
Model answer
On the Consumption profile CPU and memory come in fixed pairs: memory is twice the vCPU in Gi. 0.5 vCPU goes with 1 Gi. If the app really needs 4 Gi, I'd pick 2 vCPU with 4 Gi, or move it to a dedicated workload profile.
App Service Plans, Scaling and Creating a Web App
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between an App Service plan and a web app?
Model answer
The plan is the hardware: a set of VMs with a tier and an instance count. The web app is my code or container running on that plan. Several apps can share one plan, and they all share its instances and its bill.
Intermediate When do you scale up and when do you scale out?
Model answer
I scale up when each instance is too small, for example memory runs out, or when I need a feature the tier doesn't have, like deployment slots on Basic. I scale out when the load is many requests that can be shared, so more copies help. Autoscale only works on scale out, and only from Standard up.
Experienced developer How would you set up autoscale for an App Service plan?
Model answer
In Scale out I'd pick Rules Based, set minimum, maximum and default instance counts, then add a scale-out rule such as CPU Percentage greater than 70% averaged over 10 minutes, increase by 1, cool down 5 minutes, and a matching scale-in rule like CPU below 30%, decrease by 1. Without the scale-in rule the plan grows and never shrinks. In the CLI that's az monitor autoscale create with --resource-type Microsoft.Web/serverfarms, then az monitor autoscale rule create.
Scenario One noisy app on a shared plan slows the others down. What do you do?
Model answer
Scaling the plan would scale every app on it, which wastes money on the quiet ones. I'd move the noisy app to its own App Service plan in the same region, then size and scale that plan for it alone.
App Service Custom Domains, Certificates and TLS
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why does App Service ask for a TXT record before it accepts my domain?
Model answer
To stop anyone else from claiming it. Only the owner of the domain can add a TXT record named asuid.www with the app's verification ID, so the record proves the domain is mine before App Service starts serving it.
Intermediate How do you map the root domain contoso.com rather than www?
Model answer
DNS doesn't allow a CNAME at the zone apex, so I'd create an A record at @ pointing to the app's inbound IP address, plus a TXT record named asuid with the verification ID. Then I add contoso.com as a custom domain on the app.
Experienced developer When wouldn't you use an App Service managed certificate?
Model answer
When I need a wildcard like *.contoso.com, when I need to export the certificate to use somewhere else, or when the security team wants a specific certificate authority or an EV certificate. Then I'd import a certificate from Key Vault, buy an App Service certificate, or upload a password-protected .pfx. Managed certificates also need the app to be reachable publicly so the issuer can validate it.
Scenario An audit says the site still accepts TLS 1.0 and plain HTTP. What do you change?
Model answer
In Configuration, General settings, I'd set HTTPS Only to On so HTTP gets redirected, and set Minimum Inbound TLS Version to 1.2 or 1.3. In the CLI that's az webapp update --https-only true and az webapp config set --min-tls-version 1.2. Neither change needs a redeploy.
App Service Backup and Networking
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between automatic and custom backups?
Model answer
Automatic backups just happen every hour and are kept for 30 days, with no storage account. I can restore from them but can't download them or pick the schedule. Custom backups go to my own storage container, on the schedule and retention I choose, can include linked databases, and I can download them.
Intermediate The app needs to call a SQL database that only has a private endpoint. What do you configure?
Model answer
VNet integration on the app, into an empty subnet of the VNet that can reach the database, delegated to Microsoft.Web/serverFarms. That's outbound. I'd also make sure DNS resolves the database name to its private IP, usually through a private DNS zone linked to the VNet.
Experienced developer How do access restriction rules work?
Model answer
They're evaluated in priority order, lowest number first, and the first match wins. Each rule allows or denies an IPv4 or IPv6 range, a service tag like AzureFrontDoor.Backend, or a subnet through a service endpoint. Once I add an Allow rule, the unmatched action is deny, so anything not listed gets a 403. The SCM (advanced tool) site can use the main rules or its own.
Scenario The security team says the finance app must not have any public inbound address. What's your plan?
Model answer
I'd add a private endpoint for the app in a subnet of the corporate VNet, link a private DNS zone for privatelink.azurewebsites.net, and set Public network access to Disabled. If the app also calls private resources, it gets VNet integration for outbound. Access restrictions alone still leave a public address, just filtered.
App Service Deployment Slots and Swaps
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why would you deploy to a staging slot instead of straight to production?
Model answer
So I can test the new version on its own URL first, and so the release doesn't cause downtime. When I swap, App Service warms the staging instances up before switching traffic. If something's wrong after the swap, I swap back and the old version is live again in seconds.
Intermediate Which settings stay put during a swap?
Model answer
Anything I mark as a deployment slot setting, plus things that never swap: custom domain names, non-public certificates and TLS settings, scale settings, IP restrictions, Always On, CORS, diagnostic settings, VNet integration and managed identities. App settings and connection strings that aren't slot settings, handler mappings and the code itself all move with the swap.
Experienced developer What actually happens during a swap?
Model answer
App Service applies the target slot's slot settings, connection strings and some config to the source slot's instances, which restarts them. It waits until every instance has restarted and warmed up, including any applicationInitialization paths I've configured. If that all succeeds, it switches the routing rules, so the source becomes production. If warm-up fails, the swap is cancelled and production never changed.
Scenario You need to try a new checkout on 10% of real users before a full release. How?
Model answer
Deploy it to the staging slot, then set traffic routing on production to send 10% to staging, either in the Deployment slots blade or with az webapp traffic-routing set --distribution staging=10. Users get a cookie that keeps them on the same slot. If the numbers look good I swap; if not, I set staging back to 0%.
Virtual Networks, Subnets and Public IP Addresses
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why can't I use all 256 addresses in a /24 subnet?
Model answer
Azure keeps five of them in every subnet. The first is the network address, .1 is the default gateway, .2 and .3 map to Azure DNS, and the last one is the broadcast address. So a /24 gives me 251 usable addresses and a /29 gives me just 3.
Intermediate What changes when you pick a Standard public IP instead of the old Basic one?
Model answer
Standard is always static, it's zone-redundant by default in regions with availability zones, and it's secure by default: nothing comes in until an NSG allows it. It also works with Standard Load Balancer, NAT gateway and Bastion. Basic was retired in September 2025, so in practice every new public IP is Standard.
Experienced developer How do you plan address spaces for a hub and spoke design?
Model answer
I get the on-premises ranges first, then give the hub and each spoke its own block that doesn't overlap anything, for example 10.0.0.0/16 for the hub and 10.1.0.0/16, 10.2.0.0/16 for spokes. I leave room for growth, because peered VNets can't overlap and resizing later means coordinating peerings. Inside each VNet I size subnets for the biggest thing that'll live there, remembering services like Bastion need a /26 and the gateway subnet should be /27 or bigger.
Scenario A team created a subnet of 10.5.1.0/28 for a VM scale set that needs 14 instances. What happens?
Model answer
A /28 has 16 addresses, minus 5 reserved, so only 11 are usable. The scale set will fail to place the last instances. I'd move to a bigger subnet, such as a /27 (27 usable) or a /26, and I'd check nothing else shares it.
Configure Virtual Network Peering and Gateway Transit
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What does VNet peering give you that a VPN between two VNets doesn't?
Model answer
Peering doesn't need gateways at all. The VNets route to each other directly on Microsoft's backbone, with low latency and no bandwidth limit from a gateway SKU. You pay per GB in and out, but there's no hourly gateway charge.
Intermediate Your peering shows Initiated. What's wrong?
Model answer
Only one side has been created. A peering is two links, so I create the link from the other VNet back to the first one. In the portal one form creates both; with the CLI I run az network vnet peering create twice. Then both show Connected.
Experienced developer How do spokes reach on-premises through a hub VPN gateway?
Model answer
On the hub's peering to each spoke I enable allow gateway transit. On each spoke's peering to the hub I enable use remote gateways. The hub must already have the gateway, and the spoke can't have its own. Then the spokes learn the on-premises routes and the hub gateway advertises the spoke ranges.
Scenario Spoke 1 and spoke 2 are both peered to the hub, but VMs in spoke 1 can't ping spoke 2. Fix it.
Model answer
Peering isn't transitive, so that's expected. I can peer the two spokes directly, or keep hub and spoke and put a firewall or NVA in the hub. For the NVA route I add a route table on each spoke subnet sending the other spoke's range to the NVA, turn on IP forwarding on the NVA NIC, and allow forwarded traffic on the spoke peerings.
User-Defined Routes and Route Tables
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between a system route and a user-defined route?
Model answer
Azure creates system routes automatically so a subnet can reach its VNet, peered VNets and the internet. A user-defined route is one I add in a route table to change that, for example sending all internet traffic to a firewall.
Intermediate Two routes match a packet, 10.0.0.0/8 and 10.2.0.0/16. Which one wins?
Model answer
The longest prefix, so 10.2.0.0/16. Only if two routes have exactly the same prefix does the source matter, and then a user-defined route wins over a BGP route, which wins over a system route.
Experienced developer You added 0.0.0.0/0 to a firewall but some subnets lost their VPN routes. Why?
Model answer
Probably the route table has propagate gateway routes turned off, so routes learned from the VPN gateway over BGP don't reach those subnets. Either turn propagation back on, or add explicit routes for the on-premises ranges with next hop virtual network gateway or the firewall.
Scenario Spoke traffic should pass through a firewall at 10.0.2.4 in the hub. Routes are in place, but packets disappear at the firewall. What do you check?
Model answer
IP forwarding on the firewall VM's NIC in Azure, and forwarding inside its operating system. Then the return path: the other spoke needs a route back through the same firewall, otherwise replies take a different path and the firewall drops them as asymmetric. And allow forwarded traffic on the spoke peerings.
NSGs, Application Security Groups and Effective Rules
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Two rules match the same traffic, one allows and one denies. Which wins?
Model answer
The one with the lower priority number. Azure processes rules from the lowest number up and stops at the first match, so priority 100 beats priority 200 regardless of which one allows.
Intermediate You allowed port 443 in the subnet NSG, but traffic is still blocked. Why?
Model answer
There's probably an NSG on the NIC too. Inbound traffic has to pass the subnet NSG and then the NIC NSG, and an NSG with no allow rule for 443 ends at DenyAllInBound. I'd open the NIC's effective security rules or run IP flow verify to see the exact rule.
Experienced developer Why use application security groups instead of IP addresses in rules?
Model answer
Rules then describe roles. "Internet to asg-web on 443, asg-web to asg-db on 1433" stays the same when servers are added, removed or re-addressed; you just put the new NIC in the ASG. The limits are that all NICs in an ASG must be in the same VNet, and ASGs used together in a rule must be in the same VNet too.
Scenario Security asks you to block all RDP from the internet but allow it from the office range 203.0.113.0/24. How do you write it?
Model answer
An allow rule for TCP 3389 from 203.0.113.0/24 at priority 100, and a deny rule for 3389 from Internet at priority 200. The office range matches first. Better still, remove the need entirely with Azure Bastion and only allow 3389 from the Bastion subnet.
Connect to VMs Securely with Azure Bastion
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why use Azure Bastion instead of giving each VM a public IP?
Model answer
With a public IP and port 3389 or 22 open, the VM is exposed to the whole internet and gets brute-force attempts within minutes. Bastion keeps the VMs private. Admins connect to Bastion over HTTPS, and Bastion opens RDP or SSH to the VM's private IP.
Intermediate What does Bastion need to deploy?
Model answer
A subnet named exactly AzureBastionSubnet in the VNet, at least /26, and a Standard static public IP (except the Developer SKU). It's billed per hour plus outbound data, so I usually put one in the hub and let it serve peered spokes.
Experienced developer An admin wants to SSH from their laptop terminal through Bastion. What do you set up?
Model answer
Upgrade Bastion to Standard or Premium and enable native client support. Then the admin runs az network bastion ssh with the VM's resource ID, or az network bastion rdp on Windows. Basic only supports connecting from the portal.
Scenario Bastion is in the hub, but you can't connect to a VM in a spoke. What do you check?
Model answer
That the spoke is peered with the hub and both links are Connected. Then the NSG on the VM's subnet: it must allow 3389 or 22 from the AzureBastionSubnet range. And that the VM is running and the user has Reader on the VM, its NIC and the Bastion resource.
Service Endpoints vs Private Endpoints for PaaS
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the main difference between a service endpoint and a private endpoint?
Model answer
With a service endpoint the storage account still has its public IP; my subnet just reaches it over Microsoft's network and the account's firewall can allow my subnet. With a private endpoint the storage account gets a private IP inside my VNet, so traffic never goes to a public address and I can turn public access off.
Intermediate You created a private endpoint but the app still connects to the public IP. Why?
Model answer
DNS. The storage name has to resolve to the private IP, which needs the privatelink.blob.core.windows.net private DNS zone with an A record for the account, linked to the VNet the app runs in. Usually you let the portal integrate the zone, or add a DNS zone group to the endpoint.
Experienced developer On-premises servers must reach a storage account over ExpressRoute without the internet. Which option and what else is needed?
Model answer
A private endpoint, because service endpoints only work from Azure subnets. On-premises DNS must resolve the account name to the private IP, typically by forwarding the zone to Azure DNS Private Resolver in the hub, which uses the linked privatelink zone.
Scenario Security wants the app subnet to reach only the company's storage accounts, not any storage account in Azure. What can you do?
Model answer
With service endpoints, add a service endpoint policy on the subnet that lists the allowed accounts. With private endpoints it's naturally scoped, because each endpoint maps to one specific account, and I can block outbound to the Storage service tag in the NSG.
Azure DNS: Public and Private Zones and Records
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner You created contoso-shop.com in Azure DNS but nobody can resolve it. What did you forget?
Model answer
Delegation. Azure gives the zone four name servers, and I have to set those as the domain's NS records at the registrar. Until then the internet keeps asking the old name servers.
Intermediate Why can't you put a CNAME on contoso.com itself, and what do you do instead?
Model answer
The apex already holds the SOA and NS records, and a CNAME can't share its name with other records. In Azure DNS I create an alias A record at @ that points to the public IP or Front Door resource. It resolves like an A record and follows the resource if its IP changes.
Experienced developer How do private DNS zones and auto-registration work across a hub and spoke?
Model answer
I create the private zone once, for example contoso.internal, and add a virtual network link from each VNet that needs to resolve it. On the spokes where VMs should register their names I turn auto-registration on. Each VNet can have only one registration zone, but it can be linked to many zones for resolution. Queries go to 168.63.129.16, which knows the linked zones.
Scenario VMs in spoke 2 can't resolve db.contoso.internal, but VMs in spoke 1 can. Fix it.
Model answer
The private zone probably has a link to spoke 1 only. I add a virtual network link from contoso.internal to spoke 2, with registration off if those VMs only need to resolve. Peering alone doesn't share private DNS zones.
Configure and Troubleshoot Azure Load Balancer
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between a public and an internal load balancer?
Model answer
A public load balancer has a public IP frontend, so internet clients can reach it, typically for a web tier. An internal one has a private IP frontend inside a subnet, so only the VNet, peered VNets and on-premises can reach it, which suits app or database tiers.
Intermediate One backend VM is marked unhealthy, but the app works when you browse to it directly. What do you check?
Model answer
What the probe does. Is the probe port the port the app listens on, and for HTTP, does the path return 200? Then the NSGs on that VM's subnet and NIC: a rule that blocks the AzureLoadBalancer tag, or 168.63.129.16, makes the probe fail even though users could connect. I'd look at the Health Probe Status metric and the effective security rules.
Experienced developer What changed when Basic Load Balancer was retired?
Model answer
Everything is Standard now. Standard is secure by default, so backends need an NSG that allows traffic. It supports availability zones, a 99.99% SLA, HTTPS probes, outbound rules and backends of any VM in one VNet, not just an availability set. And it needs Standard public IPs.
Scenario A VM in the backend pool calls the internal load balancer's frontend IP and the call times out. Why?
Model answer
If the flow gets hashed back to the same VM, it fails, because an internal load balancer doesn't support a backend sending traffic to its own frontend and landing on itself. The usual fix is to have the app call the other tier directly or put the client in a different pool.
Troubleshoot Virtual Network Connectivity
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner A VM can't reach another VM. What's the first tool you'd use?
Model answer
Connection troubleshoot in Network Watcher. It tests the real path on the port I care about and tells me whether it's reachable, and if not, which hop failed, which points me at routes or NSGs.
Intermediate What's the difference between IP flow verify and next hop?
Model answer
IP flow verify answers "is this flow allowed?" by checking NSG rules and naming the rule. Next hop answers "where does this packet go?" by checking routes and returning the next hop type, like VirtualAppliance, Internet or None. One is security, the other is routing.
Experienced developer Next hop returns None between two spokes. What does that tell you?
Model answer
There's no route to the destination, so Azure drops the packet. Between spokes that are only peered to a hub, that's non-transitive peering. I'd either peer them directly or add UDRs on both spokes to a hub NVA, turn on IP forwarding on the NVA and allow forwarded traffic on the peerings.
Scenario After adding a firewall in the hub, spoke VMs lost access to each other. Routes point at the firewall. Walk through your checks.
Model answer
Next hop from a spoke VM should say VirtualAppliance with the firewall IP. Then I check IP forwarding on the firewall's NIC if it's an NVA, the return route in the other spoke so traffic is symmetric, allow forwarded traffic on the spoke peerings, and the firewall's own rules. Connection troubleshoot then confirms which hop still fails.
Azure Monitor Metrics and Diagnostic Settings
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between a metric and a log in Azure Monitor?
Model answer
A metric is a number sampled over time, like CPU percentage every minute. It's cheap, fast and great for charts and threshold alerts. A log is a record with lots of fields, like "GetBlob on invoice-12.pdf from 203.0.113.50 returned 403". Logs answer who, what and why, and you query them with KQL in a Log Analytics workspace.
Intermediate A developer says the storage account's logs show nothing. What's your first check?
Model answer
Whether there's a diagnostic setting at all, and whether it's on the right level. Storage resource logs live on the blob, file, queue and table services, not on the account itself. So I'd open Diagnostic settings, pick the blob service, tick allLogs and send it to the workspace. Logs only start flowing from that moment; there's no backfill.
Experienced developer How would you keep the activity log for two years?
Model answer
The activity log itself keeps 90 days. I'd add a subscription-level diagnostic setting that sends the categories I need (Administrative, Security, Policy, ServiceHealth and so on) to a Log Analytics workspace and set that table's retention to two years, or archive it to a storage account if nobody needs to query it often.
Scenario The security team wants Key Vault access logs in their SIEM in real time and the auditors want seven years of copies. How do you do both?
Model answer
One diagnostic setting on the vault with AuditEvent, sending to Event Hubs for the SIEM and to a storage account with a lifecycle rule for the long-term copy. I could add the workspace in the same setting too. A resource can have up to five diagnostic settings, but one with several destinations is usually enough.
Query Azure Monitor Logs with KQL
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner How does a KQL query flow?
Model answer
Top to bottom, like a pipeline. You start with a table, then each line after a pipe takes the rows from the line above and does one thing to them: filter, group, pick columns, sort, chart. Reading it out loud usually tells you what it does.
Intermediate How would you find which VMs stopped sending heartbeats in the last 15 minutes?
Model answer
Heartbeat, summarize the latest TimeGenerated by Computer with max(), then where that last heartbeat is older than ago(15m). That gives one row per silent machine, and I can save it as a log search alert.
Experienced developer Why put where before summarize?
Model answer
Filtering first means fewer rows to group, so the query is faster and cheaper, especially with a time filter on TimeGenerated. It also stops you counting rows you didn't mean to. The same goes for using has instead of contains on big string columns.
Scenario Your manager asks who deleted resources in the production subscription last week. What do you run?
Model answer
If the activity log is exported to a workspace I'd query AzureActivity, where OperationNameValue ends with DELETE and ActivityStatusValue is Success, over the last 7 days, and project the time, Caller, ResourceGroup and the resource. If it isn't exported, I'd use the Activity log blade with a Delete filter, which covers the last 90 days.
Alert Rules, Action Groups and Alert Processing Rules
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between an alert rule and an action group?
Model answer
The alert rule decides when something is wrong, like CPU above 80% for five minutes. The action group decides who hears about it and what happens, like an email to the ops team and a webhook to open a ticket. You build the action group once and reuse it across many rules.
Intermediate Patching every Saturday night reboots servers and pages the on-call engineer. How do you stop that without deleting alerts?
Model answer
An alert processing rule with the suppress notifications type, scoped to the subscription or resource groups, with a recurring weekly schedule for Saturday's window. The alerts still fire and show in the portal, so we have a record, but no action groups are called during the window.
Experienced developer When would you choose a log search alert over a metric alert?
Model answer
When the condition isn't a single metric: counting failed sign-ins, matching an event ID in Windows logs, or combining tables. Metric alerts are near real time and cheaper per rule, so I use them for CPU, memory, availability and queue length. Log search alerts run on a schedule, usually every 5 or 15 minutes, and cost a bit more.
Scenario Security wants every Sev0 and Sev1 alert in the whole subscription to also go to their team. What's the least effort?
Model answer
One alert processing rule scoped to the subscription with a filter on severity Sev0 and Sev1 and the type apply action group, pointing at the security team's action group. No need to edit hundreds of alert rules.
Azure Monitor Insights, Network Watcher and Connection Monitor
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What does VM insights give you that the VM's Metrics blade doesn't?
Model answer
Guest-level data. Host metrics show CPU, disk and network from outside, but VM insights uses the Azure Monitor Agent inside the VM, so you get available memory, logical disk free space, and a map of which processes connect to which servers. It also compares many VMs at once.
Intermediate The app server sometimes can't reach the database and nobody can catch it happening. What would you set up?
Model answer
A Connection monitor with the app VM as the source and the database VM as the destination, a TCP test on 1433 every 30 seconds, thresholds on checks failed and round-trip time, and an alert to the ops action group. The history goes to Log Analytics, so I can see exactly when it failed and which hop dropped it.
Experienced developer Connection monitor says a path is failing at the NSG hop. How do you confirm the rule?
Model answer
IP flow verify with the VM, direction, protocol, local and remote IP and port tells me allowed or denied and names the rule. NSG diagnostics does the same for a wider set of inputs and also checks the subnet NSG. Effective security rules shows the merged rules on the NIC.
Scenario Security wants a record of which IPs talk to the payment subnet. What do you turn on?
Model answer
VNet flow logs on the virtual network, stored in a storage account, with Traffic analytics into a Log Analytics workspace so we can query and chart flows. New NSG flow logs can't be created any more, so VNet flow logs are the current choice.
Recovery Services Vaults, Backup Vaults and Backup Policies
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Which vault do you use for an Azure VM, and which for blob storage?
Model answer
A Recovery Services vault for the VM, and a Backup vault for blobs. Managed disks on their own, PostgreSQL flexible servers and AKS clusters also go to a Backup vault. Recovery Services vaults also host Site Recovery for disaster recovery.
Intermediate You created a vault in West US 2 and it doesn't appear when you configure backup for an East US VM. Why?
Model answer
For Azure VM backup the Recovery Services vault has to be in the same region as the VM. I'd create a vault in East US. If the business wants copies in another region, I'd use geo-redundant storage with Cross Region Restore on that East US vault.
Experienced developer What would you decide before protecting the first item in a new vault?
Model answer
Storage redundancy, because it's locked once items are protected: GRS if we need Cross Region Restore, LRS or ZRS if not and cost matters. Also soft delete and its retention, whether to make soft delete always on, immutability, and multi-user authorization with a Resource Guard for the security-critical settings.
Scenario Finance wants daily VM backups kept 30 days, month-end kept a year, and year-end kept seven years. How do you set the policy?
Model answer
A Standard VM policy with a daily backup at a quiet hour, daily retention 30 days, monthly retention on the last day for 12 months and yearly retention on the last day of December for 7 years. Instant restore at 2 days keeps quick restores fast without paying for long snapshot retention.
Back Up and Restore, Backup Reports and Alerts
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner A user deleted one folder on a file server VM. Do you restore the whole VM?
Model answer
No. I'd use File Recovery: pick yesterday's recovery point, download the script, run it on the VM to mount the backup as a drive, copy the folder back and unmount. The VM keeps running the whole time.
Intermediate When would you pick Restore disks over Create new virtual machine?
Model answer
When I need to change something before the VM exists, like a different size, availability set, network or extra settings, or when I want to attach the disks to an existing VM. Restore disks gives me the disks plus a template I can edit and deploy.
Experienced developer How do you get one report of backup health across 40 vaults?
Model answer
Send each vault's logs to one Log Analytics workspace with a diagnostic setting, using the Addon categories in resource-specific mode. Azure Policy can deploy those settings to every vault. Then Backup reports in Business Continuity Center show summary, items, usage, jobs, policies and optimisation across all of them.
Scenario An attacker with admin rights stopped backup and deleted all recovery points for the ERP VM. What now?
Model answer
If soft delete was on, the data is still there for 14 days, or longer if we set it. I'd undelete the item, resume protection, and restore from a point before the attack. Then I'd make soft delete always on, enable multi-user authorization, and alert on the built-in security alerts so we hear about it the moment it happens.
Azure Site Recovery: Replicate and Fail Over to Another Region
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between Azure Backup and Site Recovery?
Model answer
Backup keeps copies from points in time so you can go back after a deletion or ransomware, but restoring takes hours. Site Recovery keeps a constantly updated replica in another region so a VM can be running there in minutes if the region fails. Most production VMs have both.
Intermediate Where does the Recovery Services vault go for Azure-to-Azure disaster recovery, and why?
Model answer
In the target region. If the source region goes down, the vault and its replication metadata have to survive and be usable to run the failover, so they live where you're failing over to. A cache storage account sits in the source region to buffer changes before they're sent.
Experienced developer Which recovery point would you pick in a real failover?
Model answer
Latest processed if I want the VM up fastest, because the data is already processed. Latest gives the lowest data loss but processes pending data first, which takes longer. Latest app-consistent if the app needs a clean, application-consistent state, like a database server, at the cost of losing up to the snapshot interval.
Scenario The board wants proof every quarter that the ERP system can run in West US 2, without downtime. How?
Model answer
A recovery plan for the ERP VMs with the database group first and the app group second, and a test failover of the plan into an isolated VNet in West US 2 each quarter. We check the app, record the results, then run cleanup test failover. Production keeps running and replicating the whole time.