exam questions

Exam AZ-500 All Questions

View all questions & answers for the AZ-500 exam

Exam AZ-500 topic 4 question 1 discussion

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

HOTSPOT -
You have an Azure subscription that contains the resources shown in the following table.

Transparent Data Encryption (TDE) is disabled on SQL1.
You assign policies to the resource groups as shown in the following table.

You plan to deploy Azure SQL databases by using an Azure Resource Manager (ARM) template. The databases will be configured as shown in the following table.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Reference:
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
Kelly8023
Highly Voted 2 years, 1 month ago
The answer should be No, Yes, No. Reference: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effects After the Resource Provider returns a success code on a Resource Manager mode request, AuditIfNotExists and DeployIfNotExists evaluate to determine whether additional compliance logging or action is required. So overall order of evaluation: Disabled -> Append/Modify -> Deny -> Audit -> AuditIfNotExists/DeployIfNotExists. 1st: No. DeployIfNotExists will be triggered after a configurable delay when a Resource Provider handles a create or update subscription or resource request and has returned a success code. In this scenario, because SQL1 is already deployed so it can not be enabled automatically. 2nd: Yes. Deny is processed first so can't be deployed 3rd: No. Deny is processed first
upvoted 26 times
somenick
2 years ago
No - Policy2 will not enable TDE on SQL1 AUTOMATICALLY. You need to start remediation task. Yes - Deny is processed first No - Deny is processed first
upvoted 11 times
...
...
dfranco76
Highly Voted 1 year, 10 months ago
Correcting typo in fonte explanation: #1: SQL1 belongs in RG3, Policy #2, but DeployIfNotExists no apply (SQL1 was running before the policies were deployed.). SQL will be marked as not compliante. #2: SQL2 is to be deployed in RG2, Policy #1 will apply, SQL2 will not be deployed. #3: SQL3 is to be deployed in RG1, Policy #1 will apply, SQL3 will not be deployed. FYI: The order in which policies are applied is: Disabled Append and Modify Deny Audit AuditIfNotExists and DeployIfNotExists https://joefecht.com/posts/azure-policy-effects-and-paramters/
upvoted 8 times
fonte
1 year, 10 months ago
Thanks for the correction... It was a clear mistake on my side.
upvoted 1 times
...
...
randy0077
Most Recent 1 month, 2 weeks ago
yny : https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-basics#policy-rule-evaluation
upvoted 1 times
randy0077
1 month, 2 weeks ago
correction: nyn : https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-basics#policy-rule-evaluation
upvoted 1 times
...
...
yonie
10 months ago
Deny is processed first No Yes No
upvoted 1 times
...
flafernan
11 months, 2 weeks ago
NO, YES, NO
upvoted 1 times
...
wardy1983
1 year ago
After the Resource Provider returns a success code on a Resource Manager mode request, AuditIfNotExists and DeployIfNotExists evaluate to determine whether additional compliance logging or action is required. So overall order of evaluation: Disabled -> Append/Modify -> Deny -> Audit -> AuditIfNotExists/DeployIfNotExists. 1st: No. DeployIfNotExists will be triggered after a configurable delay when a Resource Provider handles a create or update subscription or resource request and has returned a success code. In this scenario, because SQL1 is already deployed so it can not be enabled automatically. 2nd: Yes. Deny is processed first so can't be deployed 3rd: No. Deny is processed first
upvoted 1 times
...
majstor86
1 year, 8 months ago
NO YES NO
upvoted 3 times
...
ltjones12
1 year, 10 months ago
@fonte, SQL1 belongs in RG3, not RG1.
upvoted 4 times
fonte
1 year, 10 months ago
Yep, my bad. It's one of those cases where at least I would still chose the same answer despite the mistake. Btw, I have no memory of having commented on this question. Sleep deprivation is a serious thing :|
upvoted 1 times
...
...
fonte
1 year, 10 months ago
No, Yes, No. #1: SQL1 belongs in RG1, Policy #1 and #3 apply, but the deny is not retroactive. SQL will be marked as not compliante. #2: SQL2 is to be deployed in RG2, Policy #1 will apply, SQL2 will not be deployed. #3: SQL3 is to be deployed in RG1, Policy #1 will apply, SQL3 will not be deployed.
upvoted 1 times
...
JohnBentass
1 year, 10 months ago
Correct answer is No, Yes, No
upvoted 1 times
...
Muaamar_Alsayyad
2 years ago
No Yes No Policy will not be applied to already created resources, it might mark them as incopliant for SQL1 we need to run remediation task to add TDE
upvoted 2 times
Muaamar_Alsayyad
2 years ago
Sorry after testing in the lab answer is Yes YEs NO, plicy evaluaiton order Disabled append/moidfy Deny audit auditIfNotExist and DeployIfNotExist
upvoted 6 times
kabooze
1 year, 11 months ago
I don't understand why you changed your mind on #1 ? It says here that "Existing non-compliant resources can be remediated with a remediation task." https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effects#deployifnotexists-evaluation
upvoted 2 times
...
...
...
dakasa
2 years, 1 month ago
Y - Deny will not take effect, but "deployifnotexist" will. Y - Will not be created "Deny" will be evaluated N - Will not be created "Deny" will be evaluated https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effects
upvoted 8 times
...
sivva
2 years, 1 month ago
So what is the correct answer
upvoted 1 times
...
joanjcanals
2 years, 1 month ago
All answers are wrong: 1st: SQL1 is already deployed so cannot be denied, then deployifNotExist enables TDE 2nd: Deny is processed first so no chance to be deployed (end) 3rd: Deny again, same reason of the 2nd
upvoted 1 times
joanjcanals
2 years, 1 month ago
sorry, 2nd was OK. LOL
upvoted 1 times
kabooze
1 year, 11 months ago
Existing non-compliant resources can be remediated with a remediation task. so that's not automatically for #1
upvoted 2 times
...
...
joanjcanals
2 years, 1 month ago
My 1st was partially wrong: Deny does not apply to SQL1, so deployifnotexist enables TDE anyway
upvoted 1 times
...
...
charlesr1700
2 years, 1 month ago
I was confused about SQL1, at an initial glance I thought it looked liked it should be enabled automatically. However deployifNotExist policies are not retroactive. They only apply to resources that are created after the policy is assigned When creating a DINE policy assignment in the Az Portal a pop up reads: "By default, this assignment will only take effect on newly created resources. Existing resources can be updated via a remediation task after the policy is assigned"
upvoted 2 times
...
haitao1234
2 years, 5 months ago
SQL3 should be denied, since it falls under deny and audit policy. Definitely deny is more restrictive..
upvoted 2 times
...
haitao1234
2 years, 5 months ago
Each assignment is individually evaluated. As such, there isn't an opportunity for a resource to slip through a gap from differences in scope. The net result of layering policy definitions is considered to be cumulative most restrictive. As an example, if both policy 1 and 2 had a deny effect, a resource would be blocked by the overlapping and conflicting policy definitions.
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