nerdexam
Microsoft

AZ-104 · Question #622

Hotspot Question You have an Azure subscription that contains a resource group named RG1. You plan to use an Azure Resource Manager (ARM) template named template1 to deploy resources. The solution…

The correct answer is params.json: -ResourceGroupName; RG1 -Mode: Complete. This question tests knowledge of ARM template deployment commands and deployment modes, specifically how to use 'Complete' mode to remove existing resources before deploying new ones.

Submitted by luis.pe· Mar 4, 2026Deploy and manage Azure compute resources

Question

Hotspot Question You have an Azure subscription that contains a resource group named RG1. You plan to use an Azure Resource Manager (ARM) template named template1 to deploy resources. The solution must meet the following requirements: - Deploy new resources to RG1. - Remove all the existing resources from RG1 before deploying the new resources. How should you complete the command? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer:

Exhibit

AZ-104 question #622 exhibit

Answer Area

  • params.json-ResourceGroupName
    -Name-QueryString-ResourceGroupName-Tag
  • RG1 -ModeComplete
    AllCompleteIncremental

Explanation

This question tests knowledge of ARM template deployment commands and deployment modes, specifically how to use 'Complete' mode to remove existing resources before deploying new ones.

Approach. The correct command uses 'New-AzResourceGroupDeployment' (PowerShell) or 'az deployment group create' (Azure CLI) with the '-Mode Complete' parameter. The 'Complete' deployment mode tells Azure Resource Manager to delete resources that exist in the resource group but are NOT defined in the template, effectively clearing out old resources before deploying new ones. The command would look like: New-AzResourceGroupDeployment -ResourceGroupName RG1 -TemplateFile template1.json -Mode Complete. The key selections are: (1) 'New-AzResourceGroupDeployment' as the cmdlet to deploy to a resource group, and (2) 'Complete' as the Mode parameter value, since 'Incremental' mode (the default) would only add/update resources without removing existing ones.

Concept tested. ARM template deployment modes (Incremental vs Complete) and the correct PowerShell/CLI cmdlet for resource group-scoped deployments. The 'Complete' mode is critical here because it ensures existing resources not in the template are deleted, while 'Incremental' mode would leave existing resources intact.

Reference. https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deployment-modes

Topics

#ARM templates#Complete deployment mode#Azure CLI#Resource group management

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice