AZ-104 · Exam Weight: 20–25%

AZ-104 — Deploy & Manage Azure Compute (VMs, Containers, App Service)

Automate deployments with ARM/Bicep, scale VMSS across Availability Zones, configure App Service Plans, Container Instances, and AKS.

Key Exam Objectives Tested

  • ✓ Availability Sets vs Availability Zones & VMSS autoscaling
  • ✓ ARM templates & Bicep parameters/modules
  • ✓ Azure App Service deployment slots, TLS & scaling rules
  • ✓ Azure Container Instances (ACI) & AKS node pools

Real Exam Scenarios & Verified Explanations

AZ-104 · Scenario #1

You need to enable secure administrative management (RDP and SSH) to Azure virtual machines in a virtual network without assigning public IP addresses to the VMs and without establishing a site-to-site VPN. You decide to deploy Azure Bastion. What TWO requirements must be met before deploying Azure Bastion? (Choose two

CORRECT: Options A and D. - Azure Bastion requires a dedicated subnet named exactly AzureBastionSubnet with at least /26 subnet mask. - Bastion requires a dedicated Standard SKU Public IP address for inbound browser TLS 443 connectivity. INCORRECT DISTRACTORS: - Option B negates the purpose of Bastion (VMs do not need public IPs). - Options C and E are false.

Microsoft Learn Reference ↗
AZ-104 · Scenario #2

You are deploying an Azure Virtual Machine Scale Set (VMSS) running a web application behind an Azure Load Balancer. You need to configure automatic scaling based on load. Which TWO autoscale rules should you configure in Azure Monitor? (Choose two.)

CORRECT: Options A and D. - Automatic scaling requires a scale-out condition to expand capacity during high load and a reciprocal scale-in condition to reduce cost during low demand. INCORRECT DISTRACTORS: - Options B, C, and E are destructive and nonsensical.

Microsoft Learn Reference ↗
AZ-104 · Scenario #3

You need to create a custom Azure Role-Based Access Control (RBAC) role named "VM Restart Operator" that allows support engineers to restart and deallocate virtual machines in an Azure subscription, without granting permissions to delete VMs or alter network configurations. Which TWO properties must be configured in th

CORRECT: Options B and E. - Actions must specify the exact control plane operations for restart, deallocate, and read. - AssignableScopes must declare the valid subscription or resource group resource ID where the role can be assigned. INCORRECT DISTRACTORS: - Option A grants full admin access (violating least privilege). - Option C is an invalid scope URI. - Option D would negate the compute permissions.

Microsoft Learn Reference ↗