Q01 - Question
You deploy an App Service update. You must validate it first and restore the previous version quickly if problems appear. What should you use?
Domain: Deploy and manage Azure compute resources (20–25%) Type: Single choice
- A. Scheduled autoscale rules
- B. A custom domain name
- C. A staging deployment slot with swap
- D. Backup and restore of the production slot
C is correct.
Explanation: You can validate changes to your app in a staging deployment slot before swapping with the production slot. If the changes aren't as expected, you can perform the same swap immediately to return to your last known good site.
A is incorrect: Scheduled autoscale rules adjust the number of instances based on time, not deployment versions.
B is incorrect: A custom domain name changes the web address, not the deployment version.
D is incorrect: Restoring a backup replaces all content on the site and is not as quick or seamless as a slot swap.
Q02 - Question
You create a scale set in a region where fewer than five fault domains are available. Which setting lets the deployment complete?
Domain: Deploy and manage Azure compute resources (20–25%) Type: Single choice
- A. Max spreading
- B. Fixed spreading
- C. Uniform orchestration mode
- D. Flexible orchestration mode
A is correct.
Explanation: In the case where fewer than five fault domains are available, a scale set using Max spreading completes, while a scale set using Fixed spreading fails.
B is incorrect: Fixed spreading fails when fewer than five fault domains are available.
C is incorrect: Uniform orchestration mode dictates that all VM instances are created from the same base image, not how they are spread across fault domains.
D is incorrect: Flexible orchestration mode allows VMs to use different images or sizes, but is not a spreading algorithm.
Q03 - Question
A production VM must run continuously for at least three years. Finance needs predictable compute costs. Which compute payment option should you choose?
Domain: Deploy and manage Azure compute resources (20–25%) Type: Single choice
- A. Pay as you go
- B. Reserved Virtual Machine Instances
- C. Auto-shutdown on a daily schedule
- D. Stop and deallocate the VM every night
B is correct.
Explanation: The Reserved Virtual Machine Instances option is an advance purchase for one or three years that provides budget predictability.
A is incorrect: Pay as you go has no long-term commitment or upfront payments.
C is incorrect: Auto-shutdown is used to save costs by ensuring VMs are not running when not needed, but does not provide predictable compute costs for continuously running VMs.
D is incorrect: Stopping and deallocating the VM releases the hardware but does not provide predictable compute costs for continuously running VMs.
Q04 - Question
You plan to back up an Azure App Service app to an Azure storage account. The target storage account has a firewall enabled. What is the result?
Domain: Deploy and manage Azure compute resources (20–25%) Type: Single choice
- A. Backups bypass the firewall automatically.
- B. Only the production slot is backed up.
- C. Backups have no size limit.
- D. You can't use that storage account as the backup destination.
D is correct.
Explanation: If your storage account is enabled with a firewall, you can't use the storage account as the destination for your backups.
A is incorrect: Backups do not automatically bypass the storage account firewall.
B is incorrect: The limitation of backing up only the production slot applies to the Basic tier, not to storage accounts with firewalls.
C is incorrect: Backups can hold up to 10 GB of app and database content.
Q05 - Question
An App Service plan uses autoscale with only a scale-out rule. What should you add to avoid unnecessary costs when load drops?
Domain: Deploy and manage Azure compute resources (20–25%) Type: Single choice
- A. A scale-in rule
- B. A higher maximum instance count
- C. A custom domain name
- D. A staging deployment slot
A is correct.
Explanation: Always use a scale-out and scale-in rule combination. If you don't set a scale-in rule, you can experience unnecessary and extensive costs when the load decreases.
B is incorrect: A higher maximum instance count limits the total possible hourly cost but does not scale in when load drops.
C is incorrect: A custom domain name maps a domain to your app and does not affect scaling.
D is incorrect: A staging deployment slot is used to validate app changes, not to scale instances.
Q06 - Question
A two-container group must accept external traffic on port 8080 and forward it to container port 80. What applies to Azure Container Instances?
Domain: Deploy and manage Azure compute resources (20–25%) Type: Single choice
- A. Configure port mapping on the group's public IP address.
- B. Port mapping isn't supported because containers share a port namespace.
- C. Each container receives its own public IP address.
- D. Each container runs on a separate host machine.
B is correct.
Explanation: Port mapping isn't supported because containers in a group share a port namespace.
A is incorrect: Port mapping is not supported in Azure Container Instances.
C is incorrect: Container groups share an external-facing IP address; containers do not receive their own public IP address.
D is incorrect: A container group is a collection of containers that get scheduled on the same host machine.
Q07 - Question
A container app must send 25 percent of requests to a new v2 revision and 75 percent to the current revision. What must you configure first?
Domain: Deploy and manage Azure compute resources (20–25%) Type: Single choice
- A. A scale rule with 10,000 concurrent requests
- B. A user-assigned managed identity for the app
- C. Multiple revision mode
- D. A private endpoint on PESubnet
C is correct.
Explanation: To configure traffic splitting between two labeled revisions, you must first set the revision mode to multiple.
A is incorrect: A scale rule with concurrent requests triggers autoscaling, not traffic splitting between revisions.
B is incorrect: A user-assigned managed identity is used for authentication, not traffic splitting.
D is incorrect: A private endpoint provides a secure connection to resources, not traffic splitting between revisions.
Q08 - Question
You need to run an App Service application that requires network isolation and the maximum scale-out capabilities. Which pricing tier should you choose?
Domain: Deploy and manage Azure compute resources (20–25%) Type: Single choice
- A. Free
- B. Standard
- C. PremiumV3
- D. IsolatedV2
D is correct.
Explanation: The Isolated and IsolatedV2 tiers run dedicated Azure VMs on dedicated Azure virtual networks, providing network isolation and the maximum scale-out capabilities.
A is incorrect: The Free tier runs on shared resources and does not provide network isolation or scale-out.
B is incorrect: The Standard tier runs on dedicated VMs but does not provide network isolation.
C is incorrect: The PremiumV3 tier provides enhanced scale and performance but does not provide network isolation.
Q09 - Question
You resize a running production VM to a size that is available in its current hardware cluster. What should you expect?
Domain: Deploy and manage Azure compute resources (20–25%) Type: Single choice
- A. The VM stays online with no interruption.
- B. The VM reboots automatically, which can cause a temporary outage.
- C. You must delete and recreate the VM.
- D. Only the attached data disks are resized.
B is correct.
Explanation: Changing a running VM size automatically reboots the machine to complete the request, which can cause a temporary outage.
A is incorrect: The VM does not stay online; it reboots automatically.
C is incorrect: You do not need to delete and recreate the VM if the new size is available in the current hardware cluster.
D is incorrect: Resizing changes the VM's compute size, not the attached data disks.
Q10 - Question
An existing VM must become a member of an availability set. Which action is the supported way to achieve this?
Domain: Deploy and manage Azure compute resources (20–25%) Type: Single choice
- A. Select the availability set in VM settings while the VM runs
- B. Stop the VM, then add it to the availability set
- C. Assign the VM to an update domain directly
- D. Delete the VM and recreate it in the availability set
D is correct.
Explanation: A virtual machine can only be added to an availability set when the virtual machine is created. To change the availability set for a virtual machine, you need to delete and then recreate the virtual machine.
A is incorrect: You cannot select or change the availability set for a virtual machine while it runs.
B is incorrect: Stopping the VM does not allow you to add it to an availability set.
C is incorrect: You cannot assign a VM to an update domain directly; it is placed in one automatically when added to an availability set.