AZ-104 Deploy and manage Azure compute resources: 169 practice questions
12 of the 169 Deploy and manage Azure compute resources questions in the Certsqill AZ-104 bank, shown in full below. Each one carries an explanation for every option, not just the correct one — the wrong answers are where the marks go.
Preparing for AZ-104? Take the free 5-min readiness check →
1. Incremental deployment mode: Which deployment mode should the administrator use?
- Assign an Azure Policy in audit mode before deployingAudit policy reports compliance state; it does not select the ARM deployment behavior or preserve omitted resources.
- Apply a CanNotDelete resource lock to the resource group before deployingA CanNotDelete lock blocks control-plane deletion but does not provide the required deployment mode and is not the mechanism for retaining omitted resources.
- Complete deployment modeComplete mode can delete resources omitted from the template, so it risks removing the manually managed resources.
- Incremental deployment mode ✓Incremental mode leaves resources omitted from the template in place while deploying the resources declared in the template.
Use incremental mode because resources absent from the template remain in the resource group.
2. Update the Bicep template so the virtual machine satisfies: What should you do?
- Change the deployment to complete mode so the resource is created despite the policy assignment.Deployment mode does not bypass policy evaluation. Complete mode can also delete resources omitted from the template, so it is not a solution to this denial.
- Update the Bicep template so the virtual machine satisfies the policy requirements, then redeploy it. ✓Policy evaluates resource properties and a deny effect blocks a noncompliant new or updated resource operation. Correcting the template addresses the effective policy decision.
- Grant the administrator an additional Azure RBAC role at the resource-group scope and redeploy the unchanged template.RBAC authorizes user actions, but it does not make resource properties compliant with Azure Policy. The inherited deny still applies.
- Assign an audit policy at the resource-group scope and redeploy the unchanged template.An audit assignment reports noncompliance but does not replace or neutralize the inherited deny assignment. The unchanged operation remains blocked.
Update the template to comply with the inherited policy, then redeploy. RBAC and deployment mode do not override a policy deny.
3. Apply CanNotDelete to the storage account: Which action is still required?
- Assign an audit policy requiring deletion protection to the resource group.An audit policy reports compliance state; it does not itself block a control-plane deletion. Azure Policy and locks provide different controls.
- Apply a ReadOnly lock to the storage account.This would block updates as well as deletion, exceeding the stated requirement. It is also unnecessary when CanNotDelete is sufficient.
- Change the deployment mode to complete.Complete mode can delete resources omitted from the template, contradicting the requirement that the omitted storage account remain.
- Apply CanNotDelete to the storage account. ✓The VM lock does not protect the storage account. A CanNotDelete lock at the storage account or inherited resource-group scope blocks control-plane deletion while allowing authorized updates.
The VM's CanNotDelete lock does not protect the separate storage account. Add a CanNotDelete lock at the storage account or an inherited resource-group scope.
4. Include the required non-default property value: What should be changed?
- Switch to complete deployment mode without adding the property.Complete mode is not a property-preservation mechanism and can delete omitted resources.
- Include the required non-default property value in the resource definition before redeployment. ✓Properties on declared resources are reapplied; explicitly including the desired non-default value avoids a reset to its default.
- Apply an audit policy without changing the resource definition.An audit policy reports compliance but does not supply the missing desired property value.
- Leave the property omitted because incremental mode preserves every unspecified property.Incremental mode preserves omitted resources, not necessarily omitted properties of declared resources.
Properties on declared resources are reapplied; explicitly including the desired non-default value avoids a reset to its default.
5. Deploy application VMs across availability zones: Which action should the administrator take?
- Deploy application VMs across availability zones in the region. ✓Availability zones isolate datacenter failures within a supported region, and multiple VM instances should be placed in different zones.
- Enable Azure VM backup using a Recovery Services vault in the VM's region.VM backup can provide recovery points after protection is configured and a recovery point exists, but it does not keep the workload available during a datacenter failure.
- Resize the existing VM to a larger VM size.Resizing one VM is scale-up; it does not add another instance or isolate the workload across datacenters.
- Place multiple VM instances in an availability set in the same region.An availability set provides infrastructure fault and update separation, but it does not provide the stated datacenter-failure isolation offered by different zones.
Use multiple VM instances in different availability zones. Zones isolate datacenter failures within a supported region; availability sets, resizing, and backup do not meet this availability requirement.
6. Create or use a Recovery Services vault in East US: What should you do to establish valid VM backup protection
- Keep the West US Recovery Services vault and wait for the daily policy to create the first recovery point.Waiting does not correct the vault’s region: VM backup uses a Recovery Services vault in the same region as the VM.
- Create or use a Recovery Services vault in East US, configure the backup policy, and verify a completed backup job and recovery point. ✓Azure VM backup requires a Recovery Services vault in the VM’s region, and configured protection is not proof that a recovery point exists.
- Place the VM in an availability zone in East US so its disks are protected against future failures.Availability zones provide infrastructure-failure isolation; they do not establish VM backup or create recovery points.
- Create a Backup vault in East US and move the existing VM backup policy to that vault.A Backup vault is a different resource type; the supplied VM backup requirement is a Recovery Services vault.
Use a same-region Recovery Services vault and confirm an actual recovery point; configuration alone is insufficient.
7. Add a VM in another local availability zone and distribute: Which action should the administrator take?
- Add a VM in another local availability zone and distribute application traffic. ✓This places multiple VM instances in separate zones, isolating them from a datacenter failure within the supported region.
- Resize the existing VM to a larger size with more compute capacity.Resizing changes the capacity of one VM; it does not add another instance or isolate instances across datacenters.
- Enable Azure VM backup by selecting a Recovery Services vault in the same region.A same-region Recovery Services vault is required for VM backup, but configuring backup provides recovery points rather than continuous availability during a datacenter failure.
- Deploy a second VM in the same availability set as the existing VM.An availability set separates VMs across infrastructure fault and update domains, but it does not provide the stated datacenter-isolation guarantee of different availability zones.
Use multiple VM instances in different availability zones within the supported region. Availability sets, backup, and resizing address different concerns.
8. Use an East US Recovery Services vault: What is the smallest corrective action that establishes valid VM backu
- Leave the current vault configuration unchanged because assigning the policy proves that AppVM has a usable backup.A policy defines schedule and retention, but assigning protection is not proof that a recovery point has completed.
- Use an East US Recovery Services vault; set the required policy and confirm an AppVM recovery point. ✓Use the correct regional vault and configure its own policy; then verify a completed backup rather than assuming that configuration proves recovery-point availability.
- Associate AppVM with the existing West US Recovery Services vault and verify the next recovery point.The vault is in a different region from AppVM, so it does not satisfy the stated regional requirement for Azure VM backup.
- Create a Backup vault in East US and associate AppVM with the existing backup policy.A Backup vault is a different resource type from the Recovery Services vault required for Azure VM backup in this scenario.
Use a same-region Recovery Services vault, apply the policy, and verify a completed recovery point.
9. Configure a Virtual Machine Scale Set with scheduled: Which configuration should it use?
- Place the existing VMs in an availability set without scaling rules.Availability placement does not by itself adjust the VM count on a schedule.
- Configure a Virtual Machine Scale Set with scheduled autoscale rules. ✓A scale set can adjust instance count according to a schedule, directly meeting the requested scale-out and scale-in behavior.
- Configure a VM backup policy with a daily schedule.Backup scheduling creates recovery points, not compute scaling.
- Resize one VM to a larger size before each peak.Resizing changes one instance’s capacity rather than automatically changing the number of instances.
A scale set can adjust instance count according to a schedule, directly meeting the requested scale-out and scale-in behavior.
10. Review the vault’s backup jobs and confirm a completed: Which action should the administrator take?
- Review the backup policy’s schedule and retention settings.The policy describes when backups should run and how long they should be retained; it does not verify an actual completed recovery point.
- Verify that the Recovery Services vault exists in the same region as the VM.Matching regions satisfy the vault placement requirement, but vault existence alone does not verify backup completion or recoverability.
- Review the vault’s backup jobs and confirm a completed recovery point exists for the VM. ✓Completed backup jobs and recovery points directly verify that backup produced recoverable data.
- Confirm that the VM is listed as protected in the Recovery Services vault.Protection configuration shows that backup is configured, but it does not prove that a backup has completed.
Check completed backup jobs and recovery points, not merely protection configuration, policy settings, or vault placement.
11. Set the ACI restart policy to OnFailure: Which configuration should the administrator use?
- Deploy the container to Azure Container Apps and configure a minimum replica count of one.A minimum replica count maintains a baseline of replicas; it does not configure ACI-style retries based on the container process exit status.
- Set the ACI restart policy to Never.Never does not provide the required restart after a nonzero process exit.
- Set the ACI restart policy to OnFailure. ✓OnFailure restarts the container after a nonzero process exit and does not restart it after successful completion.
- Set the ACI restart policy to Always.Always restarts the container after termination, including successful completion, so it does not meet the requirement.
Use the ACI OnFailure restart policy because the required retry condition is a nonzero process exit, while successful completion must not trigger a restart.
12. Add an HTTP concurrency scale rule: Which change should the administrator make to enable HTTP-based scaling wh
- Keep the replica range at 1 to 1 and increase the container's CPU allocation.Increasing CPU changes capacity per replica, but a maximum of one prevents replica-count scaling and no HTTP scale rule is configured.
- Set the container restart policy to OnFailure so the platform creates another instance when the current one is overloaded.OnFailure is an ACI restart-policy behavior for nonzero process exits; it is not the Container Apps mechanism for HTTP-based replica scaling.
- Change the maximum replicas to 5 while leaving the minimum at 0 and leaving scale rules unset.Raising the maximum only permits additional replicas; without an HTTP or supported event-driven scale rule, the desired traffic-based scaling trigger is absent.
- Add an HTTP concurrency scale rule, and set minimum replicas to 1 and maximum replicas to 5. ✓This configures Container Apps to scale declaratively from HTTP concurrency and keeps one baseline replica running.
Use a Container Apps HTTP concurrency scale rule with minimum replicas set to 1 and a higher maximum.
157 more Deploy and manage Azure compute resources questions
The remaining 157 questions in this domain are part of the full AZ-104 bank — 722 questions, every option explained. Start with the free five-minute check and see your score per domain.
Test your AZ-104 readiness — freeOther AZ-104 domains
- Manage Azure identities and governance — 186 questions →
- Implement and manage storage — 141 questions →
- Implement and manage virtual networking — 130 questions →
- Monitor and maintain Azure resources — 96 questions →
- All 722 AZ-104 questions →