SynfraCore
Synfracore
Start Learning
Navigation

Academies

Platform

RoadmapsLabsCertificationsInterviewPYQsAI AssistantCareer
Start Learning Free🗺️ Learning Roadmaps

Virtual MachinesInterview Q&A

Most asked interview questions with detailed answers

💬
Verified by practitioners with 5+ years production experience· Updated 2025 · SynfraCore Virtual Machines Team
Expert Content

Azure Virtual Machines Interview Questions

Core Concepts

Q: Azure VM series — how do you choose the right size?

SeriesUse CaseExamples

|---|---|---|

B (Burstable)Dev/test, low steady-state CPUB2s, B4ms
D (General Purpose)Most workloads, balanced CPU/RAMD4s_v5, D8s_v5
E (Memory Optimised)Databases, in-memory analyticsE8s_v5, E32s_v5
F (Compute Optimised)CPU-heavy batch, gamingF8s_v2
L (Storage Optimised)High disk throughput, CassandraL8s_v3
N (GPU)ML training, graphics renderingNC6s_v3, ND96asr
H (HPC)MPI workloads, simulationsHB120rs_v3

Naming convention: D4s_v5 = D series, 4 vCPUs, s=premium SSD capable, v5=version 5.

Cost optimisation:

Spot VMs: significant discount vs. pay-as-you-go, can be evicted (use for batch/stateless) (needs verification — exact discount range against current Azure pricing)
Reserved Instances: 1 or 3 year commitment, meaningful savings vs. pay-as-you-go (needs verification — exact savings percentage against current Azure pricing)
Hybrid Benefit: Bring your own Windows Server/SQL license

---

Q: Azure VM availability options.

Availability Sets: Group VMs across fault domains (different racks) and update domains (patching groups).

Protects from hardware failure (rack-level)
Protects from planned maintenance (rolling updates)
Single datacenter — no protection from datacenter failure

Availability Zones: Deploy VMs to physically separate datacenters within a region.

Each zone has independent power, cooling, networking
Higher published SLA than Availability Sets (needs verification — exact current SLA percentages for each against Azure's published SLA page)
Best practice for production workloads

VM Scale Sets (VMSS): Identical VMs with auto-scaling. Load balancer in front.

Manual, scheduled, or metric-based scaling (CPU %, custom metrics)
Supports Spot VMs (mixed instances)
Use for: web tiers, batch processing, microservices

---

Q: Azure VM disk types.

Disk TypeLatencyIOPSUse Case

|---|---|---|---|

Ultra Disk<1msHighest of all Azure disk tiersDatabases, latency-sensitive
Premium SSD v2~2msHigh, below UltraProduction databases
Premium SSD (P-series)<10msModerate-highMost production workloads
Standard SSD~10msModerateDev/test, web servers
Standard HDDHigherLowBackups, archival

(needs verification — exact IOPS/throughput ceilings per disk tier against Azure's current managed disk documentation; these figures change as Azure introduces new disk tiers.)

bash
# Attach premium SSD to VM
az vm disk attach --resource-group myrg --vm-name myvm   --name myDisk --new --size-gb 128 --sku Premium_LRS

# Enable accelerated networking (reduces latency, required for high-perf)
az network nic update --name myNIC --resource-group myrg   --accelerated-networking true

---

Q: VM extensions and custom script extension.

VM Extensions add post-deployment configuration:

Custom Script Extension: Run scripts on VM after deployment
DSC: PowerShell Desired State Configuration
Azure Monitor Agent: Metrics and log collection
Key Vault VM Extension: Automatically refresh certificates from Key Vault
Disk Encryption: Enable Azure Disk Encryption (ADE with BitLocker/dm-crypt)
json
// Custom Script Extension via ARM template
{
  "type": "extensions",
  "name": "CustomScriptExtension",
  "properties": {
    "publisher": "Microsoft.Compute",
    "type": "CustomScriptExtension",
    "settings": {
      "fileUris": ["https://mystorageaccount.blob.core.windows.net/scripts/setup.ps1"],
      "commandToExecute": "powershell -ExecutionPolicy Unrestricted -File setup.ps1"
    }
  }
}

Revision Notes

VM SERIES: B(burstable) D(general) E(memory) F(compute) L(storage) N(GPU)
D4s_v5: D series, 4 vCPU, s=premium SSD, v5=generation

AVAILABILITY:
Availability Sets: same DC, different fault+update domains (99.95% SLA)
Availability Zones: separate DCs in region (99.99% SLA) — use for production
VM Scale Sets: auto-scaling group of identical VMs

DISKS: Ultra(<1ms) > Premium SSD v2 > Premium SSD > Standard SSD > HDD
Premium SSD = P-series (required for most production workloads)

COST: Spot (60-90% off, evictable) | Reserved (40-72% off, 1-3yr commit) | Hybrid Benefit (BYOL)

EXTENSIONS: Custom Script (run scripts) | AMA (monitoring) | Key Vault (cert rotation) | ADE (encryption)
Share:
Join our Community
Daily tips, job alerts, interview help — join engineers learning together
Quick Check — Virtual Machines
1 / 2

What is the most important concept to understand about Virtual Machines for interviews?

Up Next
🔧
Virtual MachinesTroubleshooting
Debug common issues with root cause analysis
Also Worth Exploring
← Back to all Virtual Machines modules
ProjectsTroubleshooting