exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 1 question 34 discussion

Actual exam question from Microsoft's AZ-204
Question #: 34
Topic #: 1
[All AZ-204 Questions]

HOTSPOT
-

You are authoring a set of nested Azure Resource Manager templates to deploy Azure resources. You author an Azure Resource Manager template named mainTemplate.json that contains the following linked templates: linkedTemplate1.json, linkedTemplate2.json.

You add parameters to a parameters template file named mainTemplate.parameters,json. You save all templates on a local device in the C:\templates\ folder.

You have the following requirements:

• Store the templates in Azure for later deployment.
• Enable versioning of the templates.
• Manage access to the templates by using Azure RBAC.
• Ensure that users have read-only access to the templates.
• Allow users to deploy the templates.

You need to store the templates in Azure.

How should you complete the command? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

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
narenazure
Highly Voted 2 years, 3 months ago
correct https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-specs-create-linked?tabs=azure-cli
upvoted 16 times
Esward
2 years, 3 months ago
I agree
upvoted 1 times
...
Dotar
2 years, 3 months ago
I agree the second option is because it needs the path to main template no to the parameters.
upvoted 2 times
...
...
ReyPirata
Highly Voted 1 year, 8 months ago
This was on the exam (08/20/2023). Went with proposed. Scored 925
upvoted 11 times
...
TheFivePips
Most Recent 8 months, 1 week ago
The ts create command creates a Template Spec. Template Specs in Azure allow you to create, manage, and reuse Azure Resource Manager (ARM) templates as reusable artifacts. They provide a way to standardize and streamline the deployment of Azure resources across your organization by encapsulating ARM templates in a versioned, reusable format.
upvoted 3 times
...
1CY1
10 months, 1 week ago
Deploy template spec https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-cli#deploy-template-spec Instead of deploying a local or remote template, you can create a template spec. The template spec is a resource in your Azure subscription that contains an ARM template. az ts create --name storageSpec --version "1.0" --resource-group templateSpecRG --location "westus2" --template-file "./mainTemplate.json"
upvoted 1 times
...
[Removed]
1 year, 9 months ago
Why not use az storage account create? We need to create a storage account first before mentioning the name of the template file..
upvoted 1 times
macobuzi
1 year, 8 months ago
Because the code is not about creating a storage account. Pay attention to the part: --name TemplateStore
upvoted 6 times
...
...
viking2
1 year, 9 months ago
Correct. The parameters given to the command match those of the az ts command, but not those of az blueprint, so the "ts create" and the main template file are correct answers.
upvoted 2 times
...
nedlo
2 years, 1 month ago
No, the az ts command is not for managing Azure Blueprints. The az ts command is used for managing Azure Time Series Insights, which is a service that allows you to store, visualize, and query large amounts of time-series data in the cloud. With az ts command, you can create and manage Azure Time Series Insights environments, as well as interact with the data stored in those environments. Azure Blueprints, on the other hand, is a service that allows you to define a repeatable set of Azure resources that adhere to organizational standards, patterns, and requirements. With Azure Blueprints, you can create a blueprint that specifies the resources and configurations needed to meet your organization's standards and deploy it to multiple subscriptions and environments. To manage Azure Blueprints, you can use the Azure portal, Azure PowerShell, Azure CLI, or Azure REST API. The Azure CLI command for managing Azure Blueprints is az blueprint, which allows you to create, manage, and assign blueprints to Azure environments.
upvoted 1 times
rgullini
2 years ago
This whole text is wrong. Please, ignore this answer
upvoted 17 times
...
Mattt
2 years ago
It looks like the wrong generated answer by ChatGPT
upvoted 3 times
...
SprintingLlama
2 years, 1 month ago
This Microsoft article contradicts your point https://learn.microsoft.com/en-us/cli/azure/ts?view=azure-cli-latest 'az ts' allows you to manage template specs at subscription or resource group scope.
upvoted 4 times
...
...
ucskips
2 years, 1 month ago
Just a question. Could account storage have been used instead?
upvoted 1 times
...
chettir01
2 years, 3 months ago
correct https://learn.microsoft.com/en-us/cli/azure/ts?view=azure-cli-latest
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