exam questions

Exam AZ-305 All Questions

View all questions & answers for the AZ-305 exam

Exam AZ-305 topic 1 question 61 discussion

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

HOTSPOT
-

You have an Azure subscription that contains 50 Azure SQL databases.

You create an Azure Resource Manager (ARM) template named Template1 that enables Transparent Data Encryption (TDE).

You need to create an Azure Policy definition named Policy1 that will use Template1 to enable TDE for any noncompliant Azure SQL databases.

How should you configure Policy1? 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
OrangeSG
Highly Voted 1 year, 4 months ago
Box 1: DeployIfNotExists DeployIfNotExists policy definition executes a template deployment when the condition is met. Policy assignments with effect set as DeployIfNotExists require a managed identity to do remediation. Box 2: The role-based access control (RABC) roles required to perform the remediation task The question is what you have to "Include in the definition:" of the policy. Refer to list of DeployIfNotExists properties, among them is roleDefinitionIds (required) - This property must include an array of strings that match role-based access control role ID accessible by the subscription. https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effects#deployifnotexists
upvoted 49 times
profesorklaus
12 months ago
This is true what you are saying!
upvoted 1 times
...
kl8585
1 year, 3 months ago
Correct!
upvoted 1 times
SDiwan
1 year ago
Correct for Box 2, Scope is optional so it is wrong. Managed identity is not part of definition so its wrong. roleDefinitionId is required field in the definition, so it is right answer.
upvoted 2 times
...
...
...
paridao
Highly Voted 1 year, 4 months ago
The question is what you have to "Include in the definition:" of the policy. The Managed Identity is linked after, during the remediation process phase, it's not included in the definition. That restrict the possible answers two the scope or the RBAC Roles (roleDefinitionIds). Because the "roleDefinitionIds" field is required while "scope" is optional, the correct answer is "roleDefinitionIds". In detail, for the specific question, the property to be include is as follows: "roleDefinitionIds": [ "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/{roleGUID}", "/providers/Microsoft.Authorization/roleDefinitions/{builtinroleGUID}" ] Correctly mentioned by the other guys at the link: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effects#deployifnotexists-example
upvoted 12 times
c_h_r_i_s_
4 months, 1 week ago
Yeah, you're right. The first answer is definitely DeployIfNotExists and therefore the second has to be RBAC. The below is from: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-deploy-if-not-exists "roleDefinitionIds (required) - This property must include an array of strings that match role-based access control role ID accessible by the subscription. For more information, see remediation - configure the policy definition."
upvoted 1 times
...
...
rhamilton
Most Recent 1 week, 1 day ago
on todays exam
upvoted 3 times
...
ZK2000
1 month, 3 weeks ago
2. Should be RBAC. I've checked it in the Azure portal - you can try to assign any "Enable [feature] on [resource]" policy. On the remediation tab, you will see an error box if the definition doesn't include a role. The managed identity type is selected later during policy assignment, not as part of the definition.
upvoted 1 times
...
iceberg649
2 months, 3 weeks ago
Identity required to perform remediation tasks: Azure Policy requires a managed identity or user-assigned identity to apply remediation tasks like deploying an ARM template to enforce TDE. The identity will execute the deployment defined in the policy for non-compliant resources. Role-Based Access Control (RBAC) roles are not defined directly in the policy definition but are assigned to the managed identity separately. so the box 2 is : The identity required to perform the remediation task.
upvoted 2 times
...
shaiketisalat
3 months, 1 week ago
Today's exam question
upvoted 2 times
...
[Removed]
3 months, 1 week ago
WRONG 1. DeployIfNotExists 2. The role-based access control (RABC) roles required to perform the remediation task
upvoted 1 times
...
Thanveer
3 months, 2 weeks ago
1 box . DeployIfNotExists 2 box . The role-based access control (RBAC) roles required to perform the remediation task
upvoted 1 times
...
Len83
6 months, 2 weeks ago
This question was in the exam, August 2024. I answered Box1 with DeployIfNotExists and I answered box 2 with The role-based access control (RABC) roles required to perform the remediation task. I scored 870
upvoted 3 times
...
23169fd
8 months ago
DeployIfNotExists: This effect checks if the resource (in this case, TDE) exists and if it does not, it deploys it using the specified ARM template. RBAC roles required to perform the remediation task: Ensures that the necessary permissions are in place to allow the policy to remediate noncompliant resources by enabling TDE.
upvoted 2 times
23169fd
8 months ago
Why Not Other Options: EnforceRegoPolicy: Only audits and ensures compliance but does not automatically enable TDE. Modify: Used to change properties of existing resources but is not typically used for deploying configurations like TDE. The identity required to perform the remediation task: Only identifies the required identity but does not ensure the right permissions. The scopes of the policy assignments: Specifies where the policy is applied but does not impact the ability to perform remediation tasks directly.
upvoted 4 times
...
...
MHguy
9 months, 4 weeks ago
in the Exam April 2024
upvoted 6 times
...
Lazylinux
10 months ago
I would agree with given answer is correct as per below findings Here is from this article => see image of create managed identity and you can test yourself on Azure portal as i did "Policies with deployIfNotExists and modify effect types need ability to deploy resources and edit tags on existing resources respectively" If the managed identity does not have the permissions needed to execute the required remediation task, it will be granted permissions automatically only through the portal. You may skip this step if creating a managed identity through the portal. https://learn.microsoft.com/en-us/azure/governance/policy/how-to/remediate-resources?tabs=azure-portal
upvoted 2 times
...
varinder82
10 months, 3 weeks ago
Final Answer: 1. DeployIfNotExists 2. The role-based access control (RABC) roles required to perform the remediation task
upvoted 1 times
...
MelKr
11 months ago
correct answers: 1. DeployIfNotExists 2. The role-based access control (RABC) roles required to perform the remediation task The question is asking for the policy definition and not the policy assignment. The article clearly states, that for the policy definition the "roleDefinitionIds" are required whereas the policy assignment will require a Managed Identity for the remediation task having the required permissions. https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effects#deployifnotexists
upvoted 2 times
...
Ma_Lez
11 months, 1 week ago
Provided answers are correct. 1. DeployifNotExists 2. The required identity RERENCE: " Exam Ref AZ-305 Designing Microsoft Azure Infrastructure Solutions by Ashish Agrawal" Page 71 DeployIfNotExists This effect is similar to AuditIfNotExists, except that this effect executes a template to deploy needed resources for the identified noncompliant resource rather than marking the resource as noncompliant. The policy assignment of a policy having the DeployIfNotExists effect requires managed identity to take remediation action.
upvoted 1 times
...
K_yamini
12 months ago
What is the correct answer for Second Point?
upvoted 1 times
...
WeepingMaplte
1 year ago
EnforceRegoPolicy (deprecated): configures the Open Policy Agent admissions controller with Gatekeeper v2 in Azure Kubernetes Service
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