nerdexam
Microsoft

DP-300 · Question #467

Hotspot Question You have an Azure subscription. You have a Bicep file named File1.bicep that deploys an Azure SQL database. You need to perform the following actions: - Create a new resource group…

This question tests knowledge of Azure CLI commands for creating a resource group and deploying a Bicep file to a specific resource group scope.

Submitted by ahmad_uae· Mar 6, 2026Plan and implement data platform resources

Question

Hotspot Question You have an Azure subscription. You have a Bicep file named File1.bicep that deploys an Azure SQL database. You need to perform the following actions: - Create a new resource group named RG1. - Deploy the database to RG1 by using File1.bicep. How should you complete the Azure Command-Line Interface (CLI) script? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer:

Exhibit

DP-300 question #467 exhibit

Answer Area

  • --name RG1 --location westus
    az config setaz group createaz resource create
  • --resource-group RG1 --template-file file1.bicep
    az deployment group createaz deployment operation groupaz deployment sub

Explanation

This question tests knowledge of Azure CLI commands for creating a resource group and deploying a Bicep file to a specific resource group scope.

Approach. To create a new resource group, you use 'az group create --name RG1 --location <location>'. To deploy a Bicep file to that resource group, you use 'az deployment group create --resource-group RG1 --template-file File1.bicep'. The 'az deployment group create' command is specifically used for resource-group-scoped deployments, while 'az deployment sub create' would be for subscription-scoped deployments. The '--template-file' parameter specifies the Bicep file to use for the deployment, and '--resource-group' targets the newly created RG1.

Concept tested. Azure CLI commands for resource group creation (az group create) and Bicep/ARM template deployment at resource group scope (az deployment group create --resource-group --template-file). Key distinction is knowing the correct deployment scope command: 'deployment group' for resource group scope vs 'deployment sub' for subscription scope.

Reference. https://learn.microsoft.com/en-us/cli/azure/deployment/group?view=azure-cli-latest#az-deployment-group-create

Topics

#Azure CLI#Bicep#resource deployment#resource groups

Community Discussion

No community discussion yet for this question.

Full DP-300 Practice