exam questions

Exam AZ-500 All Questions

View all questions & answers for the AZ-500 exam

Exam AZ-500 topic 3 question 15 discussion

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

HOTSPOT -
You have an Azure subscription. The subscription contains Azure virtual machines that run Windows Server 2016.
You need to implement a policy to ensure that each virtual machine has a custom antimalware virtual machine extension installed.
How should you complete the policy? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: DeployIfNotExists -
DeployIfNotExists executes a template deployment when the condition is met.

Box 2: Template -
The details property of the DeployIfNotExists effects has all the subproperties that define the related resources to match and the template deployment to execute.
Deployment [required]
This property should include the full template deployment as it would be passed to the Microsoft.Resources/deployment
References:
https://docs.microsoft.com/en-us/azure/governance/policy/concepts/effects

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
gfhbox0083
Highly Voted 3 years, 10 months ago
Answers are correct. DeployIfNotExist / Template
upvoted 51 times
...
lnn_az
Highly Voted 3 years, 10 months ago
Correct Answer. Refer https://docs.microsoft.com/en-us/azure/governance/policy/concepts/effects#deployifnotexists-example
upvoted 14 times
...
wardy1983
Most Recent 5 months, 2 weeks ago
Explanation: Box 1: DeployIfNotExists - DeployIfNotExists executes a template deployment when the condition is met. Box 2: Template - The details property of the DeployIfNotExists effects has all the subproperties that define the related resources to match and the template deployment to execute. Deployment [required] This property should include the full template deployment as it would be passed to the Microsoft.Resources/deployment Reference: https://docs.microsoft.com/en-us/azure/governance/policy/concepts/effects
upvoted 5 times
...
majstor86
1 year, 1 month ago
DeployIfNotExist Template
upvoted 1 times
...
ligu
1 year, 2 months ago
Answers are correct
upvoted 1 times
...
Siblark
1 year, 6 months ago
In Exam Oct 05, 2022. Passed
upvoted 3 times
...
Amit3
1 year, 7 months ago
# In EXAM - 01-Oct-2022
upvoted 3 times
...
MoFami
1 year, 10 months ago
In Exam 01/07/2022
upvoted 3 times
...
WhalerTom
2 years, 4 months ago
In exam Dec 21. 40 questions, 1 case study, no labs.
upvoted 6 times
...
Jco
2 years, 7 months ago
#exam ques # 29 Sep
upvoted 3 times
...
orallony
2 years, 7 months ago
# IN EXAM - 29/9/2021 - Pass!
upvoted 5 times
...
Garry69
2 years, 7 months ago
DeployIfNotExists: deploys a related resource if it doesn't already exist
upvoted 2 times
...
Sandomj55
2 years, 8 months ago
In Exam 8/4/2021
upvoted 4 times
shanti0091
2 years, 8 months ago
Hi @Sandomj55, how was the exam, seems you wrote this recently. Any sim questions?
upvoted 1 times
...
...
johnsm
2 years, 10 months ago
DeployIfNotExist / Template. Have a look at the built in policy created by microsoft: https://github.com/Azure/azure-policy/blob/master/samples/built-in-policy/deploy-default-antimalware-extension-for-windows-server/azurepolicy.json
upvoted 3 times
...
teehex
2 years, 11 months ago
Lol no need to argue about template or resource. This is the policy you need https://github.com/Azure/azure-policy/blob/master/built-in-policies/policyDefinitions/Compute/VMAntimalwareExtension_Deploy.json#L76
upvoted 3 times
...
macco455
3 years, 1 month ago
Answer is correct. In looking at https://docs.microsoft.com/en-us/azure/governance/policy/concepts/effects#deployifnotexists-example, I am only seeing mode in reference to template and not resources. This is not the technical answer but just basic reasoning on the wording each command uses. Just my $.02
upvoted 2 times
...
JohnYinToronto
3 years, 1 month ago
answers correct
upvoted 2 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