exam questions

Exam AZ-500 All Questions

View all questions & answers for the AZ-500 exam

Exam AZ-500 topic 2 question 23 discussion

Actual exam question from Microsoft's AZ-500
Question #: 23
Topic #: 2
[All AZ-500 Questions]

You plan to use Azure Resource Manager templates to perform multiple deployments of identically configured Azure virtual machines. The password for the administrator account of each deployment is stored as a secret in different Azure key vaults.
You need to identify a method to dynamically construct a resource ID that will designate the key vault containing the appropriate secret during each deployment.
The name of the key vault and the name of the secret will be provided as inline parameters.
What should you use to construct the resource ID?

  • A. a key vault access policy
  • B. a linked template
  • C. a parameters file
  • D. an automation account
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
rharbeg
Highly Voted 5 years, 5 months ago
The correct answer should be B https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-keyvault-parameter#reference-secrets-with-dynamic-id
upvoted 106 times
ExamUser
5 years ago
You're correct. The question states the need to retrieve credentials for different deployments, and linked template's the only mechanism for it.
upvoted 4 times
...
vlq
5 years ago
Yep, you are absolutely right!
upvoted 1 times
...
sureshatt
4 years, 2 months ago
100% correct. Answer should be B.
upvoted 11 times
...
kanag1
3 years, 3 months ago
You can't dynamically generate the resource ID in the parameters file because template expressions aren't allowed in the parameters file.Hence the answer is Template.
upvoted 3 times
...
...
shaheer1991
Highly Voted 4 years, 11 months ago
The correct answer is B "a linked template" and I'm backing this up by the below link: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/key-vault-parameter?tabs=azure-cli in the question it says: You need to identify a method to dynamically construct a resource ID that will designate the key vault containing the appropriate secret during each deployment. The name of the key vault and the name of the secret will be provided as inline parameters. ------------- if you check the pictures in the link, you'll find that answer B, supports the dynamic solution and the picture used to describe it contains "inline parameter" unlike the answer in the solution. case closed
upvoted 24 times
ExamStudy68
2 years, 1 month ago
If you use the link Shaheer gave, it explains the dynamic versus static ID clearly - so if you are confused like I was, it is a great explanation. In the link "You can't dynamically generate the resource ID in the parameters file because template expressions aren't allowed in the parameters file." As well as "Reference secrets with static ID - With this approach, you reference the key vault in the parameter file, not the template. " Question states DYNAMIC so it would be "a linked template"
upvoted 1 times
...
...
AZ500Xmen
Most Recent 7 months, 3 weeks ago
Read here: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/key-vault-parameter?tabs=azure-cli you may want to pass parameter values to the template rather than create a reference parameter in the parameter file. The solution is to dynamically generate the resource ID for a key vault secret by using a linked template. You can't dynamically generate the resource ID in the parameters file because template expressions aren't allowed in the parameters file. In your parent template, you add the nested template and pass in a parameter that contains the dynamically generated resource ID.
upvoted 1 times
...
Ivan80
1 year, 3 months ago
In exam 1/28/24
upvoted 4 times
...
yonie
1 year, 4 months ago
Selected Answer: B
Answer is B. Use case is dynamic vs static deployment. https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/key-vault-parameter?tabs=azure-cli#reference-secrets-with-dynamic-id
upvoted 1 times
...
wardy1983
1 year, 7 months ago
https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/key-vault-parameter?tabs=azure-cli
upvoted 1 times
...
[Removed]
1 year, 9 months ago
according to the reference article, the answer is right! In the following parameter file, the key vault secret must already exist, and you provide a static value for its resource ID.
upvoted 1 times
...
ESAJRR
1 year, 9 months ago
Selected Answer: B
B. a linked template
upvoted 1 times
...
d365ppp
2 years, 1 month ago
Selected Answer: B
The solution is to dynamically generate the resource ID for a key vault secret by using a linked template. https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/key-vault-parameter?tabs=azure-cli
upvoted 2 times
...
majstor86
2 years, 2 months ago
Selected Answer: B
B. a linked template
upvoted 2 times
...
sofieejo
2 years, 3 months ago
In exam 29/01/2023 + many questions about Microsoft Sentinel
upvoted 3 times
...
fonte
2 years, 3 months ago
Hi all, Passed my exam (13JAN2023) with 918. 50 questions (45 + 5 of a case study). Around 95% of the questions are here. I've compiled the questions and my answers in a ppt, feel free to check it out and hope it helps. https://www.dropbox.com/s/ay00xp2fnloq1ex/AZ%20500%20-%20Exam%20Topics.pptx?dl=0 Use pass az500prep to open the file. Thanks to all the people that comment on questions, I wouldn't have passed without them :)
upvoted 7 times
shuklabond007
6 months, 3 weeks ago
File got deleted, can get new link?
upvoted 1 times
...
Sakkie02
2 years, 3 months ago
@fonte i downloaded your file and would like to know if i can mail you on some questions about the AZ-500 exam i will writing the exam this week and want to ask you about the file and the exam please?
upvoted 2 times
choy1977
1 year, 5 months ago
file has been deleted can you reshare? Thanks
upvoted 2 times
...
...
deepaksks
2 years, 3 months ago
The file has been deleted, please share it again.
upvoted 2 times
...
...
KaleMu92
2 years, 5 months ago
In Exam 02/12/2022
upvoted 1 times
...
edurakhan
2 years, 5 months ago
On exam today - 11/19/22 - pass A lot of sentinel questions
upvoted 1 times
...
F117A_Stealth
2 years, 6 months ago
Selected Answer: B
B. a linked template
upvoted 1 times
...
Muaamar_Alsayyad
2 years, 6 months ago
Selected Answer: B
he question states the need to retrieve credentials for different deployments, and linked template's the only mechanism for it. Reference secrets with static ID: we use only paramater Reference secrets with dynamic ID: we use nested deployment ( linked template)
upvoted 2 times
...
ArunRavilla
2 years, 9 months ago
Damn! Which is the right answer? :D
upvoted 3 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