AZ-300 Azure Virtual Machines & Compute 2 — Questions and Answers
Question 1: Which Azure VM feature allows you to run a custom script at VM provisioning time to configure the operating system?
- VM Extensions
- Custom Script Extension
- Cloud-init (Correct answer)
- Azure Automation DSC
Correct answer: Cloud-init
Cloud-init is the industry-standard method for customizing a Linux VM during initial boot, and Azure supports it natively.
Question 2: What is the purpose of Azure Dedicated Host?
- To host containers exclusively
- To provide a physical server dedicated to your organization for compliance (Correct answer)
- To enable faster VM boot times
- To share hardware with multiple tenants at a discount
Correct answer: To provide a physical server dedicated to your organization for compliance
Azure Dedicated Host provides a physical server that is dedicated to your organization, meeting compliance and regulatory isolation requirements.
Question 3: Which VM generation in Azure offers Trusted Launch with vTPM and Secure Boot capabilities?
- Generation 1
- Generation 2 (Correct answer)
- Generation 3
- Generation 4
Correct answer: Generation 2
Generation 2 VMs in Azure support Trusted Launch, which includes Secure Boot and vTPM for enhanced security.
Question 4: Which pricing model offers the deepest discounts for Azure VMs in exchange for accepting possible eviction when Azure needs capacity back?
- Reserved VM Instances
- Azure Spot VMs (Correct answer)
- On-Demand VMs
- Dev/Test pricing
Correct answer: Azure Spot VMs
Azure Spot VMs use unused Azure capacity at up to 90% discount but can be evicted with 30 seconds notice when Azure needs the capacity.
Question 5: What is the maximum number of VMs in a single Azure Virtual Machine Scale Set?
- 100
- 1,000 (Correct answer)
- 10,000
- 100,000
Correct answer: 1,000
A single Azure Virtual Machine Scale Set can scale to a maximum of 1,000 VM instances.
Question 6: Which Azure service should you use to store OS disk images and data disk snapshots for VM backup and disaster recovery?
- Azure Files
- Azure Blob Storage
- Azure Managed Disks
- Azure Backup (Correct answer)
Correct answer: Azure Backup
Azure Backup provides a managed, policy-driven backup solution for VMs including OS and data disks.
Which Azure VM feature allows you to run a custom script at VM provisioning time to configure the operating system?