AZ-305 Azure Compute Solutions Design 2 — Questions and Answers
Question 1: Your application experiences unpredictable traffic spikes and requires compute to scale out in seconds to handle bursts. Which Azure Functions plan provides this with the lowest base cost?
- App Service Plan (Dedicated)
- Premium Plan
- Consumption Plan (Correct answer)
- Kubernetes-hosted Functions
Correct answer: Consumption Plan
The Consumption Plan auto-scales within seconds based on trigger rate and charges only for actual execution time with no reserved capacity costs.
Question 2: You need Azure Functions to run within your VNet to access private resources, with no cold starts and pre-warmed instances. Which plan should you choose?
- Consumption Plan
- Premium Plan (Correct answer)
- Dedicated App Service Plan with Always On
- Docker container on ACI
Correct answer: Premium Plan
Azure Functions Premium Plan supports VNet integration, pre-warmed instances to eliminate cold starts, and unlimited execution duration.
Question 3: You are migrating a monolithic application to Azure VMs. To achieve high availability within a single region against datacenter failure, how should you deploy the VMs?
- Deploy all VMs in the same Availability Set
- Deploy VMs across Availability Zones in the same region (Correct answer)
- Deploy VMs in separate regions with Traffic Manager
- Deploy VMs in a Virtual Machine Scale Set with single zone
Correct answer: Deploy VMs across Availability Zones in the same region
Availability Zones are physically separate datacenters within a region; deploying across zones protects against full datacenter outages with a 99.99% SLA.
Question 4: You need to run a containerized workload on Azure that has a maximum execution time of 10 minutes and requires no persistent orchestration. Which is the simplest and cheapest option?
- Azure Kubernetes Service
- Azure Container Instances (Correct answer)
- Azure App Service with containers
- Azure Container Apps with scale-to-zero
Correct answer: Azure Container Instances
Azure Container Instances run containers on-demand without orchestration infrastructure, billing per second of CPU and memory, ideal for short-lived tasks.
Question 5: Your organization needs to reduce Azure VM costs by up to 72% for workloads that can tolerate interruptions. Which pricing model should you use?
- Reserved VM Instances (1-year)
- Azure Spot Virtual Machines (Correct answer)
- On-demand VMs with auto-shutdown
- Dev/Test pricing
Correct answer: Azure Spot Virtual Machines
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 back.
Question 6: A workload requires a specific number of VMs to be available at all times even during Azure planned maintenance events. Which availability configuration achieves this?
- Availability Set with 2 fault domains
- Availability Zones pinning VMs to specific zones (Correct answer)
- Virtual Machine Scale Sets with uniform orchestration
- Proximity Placement Groups
Correct answer: Availability Zones pinning VMs to specific zones
Pinning VMs to different Availability Zones ensures they are in separate physical datacenters, so planned maintenance in one zone does not impact the others.
Your application experiences unpredictable traffic spikes and requires compute to scale out in seconds to handle bursts.
Which Azure Functions plan provides this with the lowest base cost?