Prepare and test your skills

Prepare and test your skills

Free sample question, answered and explained below. The AZ-900 Microsoft Azure Fundamentals Exam practice bank has 688 more like it. Try 10 free: instant score, no account.
An IT administrator needs to automate the creation of a dedicated resource container for a new project using administrative scripts. The team plans to manage the entire lifecycle of all project components together and requires a script that runs specifically in an Azure PowerShell environment.
Which command should the administrator use to create the new resource group?
New-AzResourceGroupDeployment is an Azure PowerShell cmdlet used to execute the deployment of Azure Resource Manager (ARM) templates or Bicep files into an existing resource group.
This cmdlet deploys individual infrastructure resources (such as virtual machines, databases, or networking components) into a target resource group that has already been created. It cannot create the parent resource group itself; running this command requires referencing a pre-existing resource group via the -ResourceGroupName parameter.
This option would be correct if the requirement were to deploy an ARM template or Bicep template containing application resources into an already established resource group.
New-AzResourceLock is an Azure PowerShell cmdlet used to apply a management lock to an Azure subscription, resource group, or individual resource. Management locks prevent unauthorized or accidental modifications and deletions.
New-AzResourceLock does not provision a resource group; instead, it enforces protection settings (CanNotDelete or ReadOnly) on an existing container or resource. Attempting to run this command before a resource group exists will result in an error because there is no target container to lock.
CanNotDelete (authorized users can read/modify but not delete) and ReadOnly (users can only read).This option would be correct if the administrator needed to protect an existing resource group from accidental deletion by team members.
New-AzResourceGroup is the official Azure PowerShell cmdlet within the Az module used to provision a new Azure resource group. A resource group serves as a logical container that aggregates related Azure resources—such as virtual networks, virtual machines, and storage accounts—so they can be managed, secured, and monitored as a single administrative unit.
When writing automation scripts in Azure PowerShell, the administrator needs a cmdlet that specifically initializes a resource group container by specifying essential parameters such as -Name and -Location:
New-AzResourceGroup -Name "myProject-RG" -Location "eastus"
By executing this cmdlet, Azure Resource Manager creates the container metadata in the selected Azure region, establishing the logical boundary needed to group project assets together.
New-AzResourceGroup is the exact, standard command designed for creating resource groups natively within Azure PowerShell. It directly fulfills the requirement to provision a resource group container using PowerShell syntax without requiring external shells or template deployment steps.
az group create is a command belonging to the Azure Command-Line Interface (Azure CLI). Like its PowerShell equivalent, it provisions a logical resource group container inside an Azure subscription using parameters such as --name and --location.
The scenario specifically requires automation using Azure PowerShell. az group create uses the Azure CLI syntax (POSIX style arguments with double dashes) rather than the standard PowerShell verb-noun cmdlet format (New-AzResourceGroup). While Azure CLI can be executed inside a PowerShell terminal if installed, native PowerShell scripts rely on the Az module cmdlets.
az --parameter value).This option would be correct if the scenario stated that the administrator was writing a Bash script or using the Azure CLI toolset across platforms.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated