exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 4 question 101 discussion

Actual exam question from Microsoft's AZ-104
Question #: 101
Topic #: 4
[All AZ-104 Questions]

You have an Azure subscription that contains a resource group named RG1.

You plan to create a storage account named storage1.

You have a Bicep file named File1.

You need to modify File1 so that it can be used to automate the deployment of storage1 to RG1.

Which property should you modify?

  • A. kind
  • B. scope
  • C. sku
  • D. location
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Ahkhan
Highly Voted 1 year, 4 months ago
The answer is scope. We would use scope to target the resource group for storage account. https://ochzhen.com/blog/create-resource-group-azure-bicep
upvoted 24 times
...
moadabdou
Highly Voted 11 months, 1 week ago
Selected Answer: B
The correct answer is: B. scope. Here's why: kind: This property defines the type of resource within the storage account (e.g., BlobStorage, FileStorage, etc.). It's unlikely you need to modify this in your scenario as Bicep likely already has the correct type defined. scope: This property specifies the location where the resource will be deployed. In your case, you want to deploy it to the resource group "RG1", so modifying the scope property to reference "RG1" is necessary. sku: This property defines the performance tier of the storage account. While you might adjust this depending on your needs, it's not directly related to deployment location. location: This property can also define the deployment location, but it's generally recommended to use the scope property with resource groups for clarity and consistency. Bicep might already have the location set within the resource definition.
upvoted 11 times
...
[Removed]
Most Recent 5 months, 2 weeks ago
Selected Answer: B
it´s B
upvoted 1 times
...
Pcservices
5 months, 3 weeks ago
Selected Answer: D
he correct property to modify in the Bicep file to automate the deployment of the storage account to RG1 is: D. location Explanation: When deploying an Azure resource using infrastructure-as-code tools like Bicep, it is essential to specify the location where the resource should be created. The location property defines the Azure region in which the resource (in this case, the storage account) will be deployed. Without specifying this, Azure won’t know in which data center to provision the storage account.
upvoted 2 times
...
LaurentiuM
9 months, 3 weeks ago
Selected Answer: B
The correct answer is: B. scope.
upvoted 3 times
...
WeepingMaplte
10 months, 1 week ago
Selected Answer: B
To deploy resources to a resource group that isn't the target resource group, add a module. Use the resourceGroup function to set the scope property for that module. https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/deploy-to-resource-group?source=recommendations&tabs=azure-cli#scope-to-target-resource-group:~:text=to%20set%20the-,scope%20property,-for%20that%20module
upvoted 2 times
...
tashakori
1 year ago
B is correct
upvoted 2 times
...
Salam_Pioneer
1 year, 1 month ago
Selected Answer: B
The correct answer is B. scope. Here's why: scope property explicitly specifies the resource group where the storage account will be deployed. It's essential to align this with the desired target resource group, RG1, in this case. kind property already indicates the type of resource being deployed (a storage account), so it doesn't need alteration. sku property defines the performance and pricing tier, but it's not directly related to deployment targeting. location property specifies the Azure region for deployment, but it can be set as a variable or input parameter, not necessarily within the scope property itself. To ensure successful deployment of storage1 to RG1, modify the scope property in File1 to reference RG1
upvoted 6 times
adilkhan
1 year ago
To modify the Bicep file (File1) to automate the deployment of storage1 to RG1, you should modify the "scope" property. The "scope" property in Bicep files specifies the resource group where the resource should be deployed. By default, when you create a resource in a Bicep file, it's deployed to the current resource group. However, if you want to deploy the resource to a different resource group, you need to specify the "scope" property accordingly. So, the correct answer is: B. scope ChatGPT has changed his mind :P
upvoted 1 times
...
...
Mysystemad
1 year, 1 month ago
i was have this question in my exam 26/12/2023
upvoted 2 times
...
SkyZeroZx
1 year, 1 month ago
Selected Answer: B
The answer is scope. We would use scope to target the resource group for storage account. https://ochzhen.com/blog/create-resource-group-azure-bicep
upvoted 2 times
...
bhadrisn
1 year, 2 months ago
The answer is scope. We would use scope to specify which resource group we are deploying to. Location would give the location such as east us, west us, or central US, etc... So, correct answer is B, Scope
upvoted 1 times
bhadrisn
1 year, 2 months ago
https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/file
upvoted 2 times
...
...
[Removed]
1 year, 2 months ago
Selected Answer: D
To automate the deployment of a storage account using a Bicep file, you typically need to specify properties such as sku, kind, and location. However, the specific property related to the resource group and its deployment is the location property. In this scenario, you should modify the location property in File1 to specify the Azure region where the storage account (storage1) should be deployed. Therefore, the correct answer is D.
upvoted 2 times
...
amsioso
1 year, 2 months ago
Selected Answer: B
Target scope possible values are: -resourceGroup (default) -subscription -managementGroup -tenant https://ochzhen.com/blog/create-resource-group-azure-bicep
upvoted 2 times
...
SgtDumitru
1 year, 3 months ago
Kind: Type of execution environment (f.e. Azure Powershell) Sku: Service level(Premium, Standard) So we left only with 2: Location and Scope. Since only Location a required property, it fits the answer
upvoted 2 times
SgtDumitru
1 year, 3 months ago
I cross checked, and is scope. Location is actually Geo Location, not resource location.
upvoted 4 times
...
...
Andreas_Czech
1 year, 3 months ago
Selected Answer: B
kind, sku and location are required https://learn.microsoft.com/en-us/azure/templates/microsoft.storage/storageaccounts?pivots=deployment-language-bicep#storageaccounts kind: Specify the type of script. Currently, Azure PowerShell and Azure CLI scripts are supported. The values are AzurePowerShell and AzureCLI https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/deployment-script-bicep#sample-bicep-files
upvoted 5 times
...
PrepaCertif
1 year, 3 months ago
in answer to 01111010 , the logical answer is A : KIND location is the region where you deploy storage
upvoted 1 times
...
gswar
1 year, 3 months ago
Correct answer: B "so that it can be used to automate the deployment of storage1 to RG1" - Per this requirement we can automate the deployment to RG1 if the scope is defined.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago