Question 7 — AZ-104 Practice Exam 4
Which command allows you to configure a default location for deployments in Azure CLI? (Select one answer)
az configure --defaults
az group create
az login
az account list-locations
Correct answers
az configure --defaults
Explanations
Correct:
az configure --defaults – Sets the default location for deployments.
Wrong:
az group create – Creates a resource group, not a default.
az login – Signs into Azure.
az account list-locations – Lists available locations but doesn’t set defaults.