exam questions

Exam AZ-301 All Questions

View all questions & answers for the AZ-301 exam

Exam AZ-301 topic 17 question 3 discussion

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

You have an Azure subscription that contains several resource groups. Including a resource group named RG1. RG1 contains several business-critical resources.
A user named admin1 is assigned the Owner role to the subscription.
You need to prevent admin1 from modifying the resources in RG1. The solution must ensure that admin1 can manage the resources in the other resource groups.
What should you use?

  • A. a management group
  • B. an Azure policy
  • C. a custom role
  • D. an Azure blueprint
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Role-based access control (RBAC) focuses on user actions at different scopes. You might be added to the contributor role for a resource group, allowing you to make changes to that resource group.
Incorrect Answers:
A: If your organization has many subscriptions, you may need a way to efficiently manage access, policies, and compliance for those subscriptions. Azure management groups provide a level of scope above subscriptions.
B: There are a few key differences between Azure Policy and role-based access control (RBAC). Azure Policy focuses on resource properties during deployment and for already existing resources. Azure Policy controls properties such as the types or locations of resources. Unlike RBAC, Azure Policy is a default allow and explicit deny system.
D: Azure Blueprints enables cloud architects and central information technology groups to define a repeatable set of Azure resources that implements and adheres to an organization's standards, patterns, and requirements.
Reference:
https://docs.microsoft.com/en-us/azure/role-based-access-control/overview

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
systemofadown
Highly Voted 5 years, 1 month ago
Should be D: It's typically possible for someone with appropriate role-based access control (RBAC) on the subscription, such as the 'Owner' role, to be allowed to alter or delete any resource. This access isn't the case when Azure Blueprints applies locking as part of a deployed assignment. If the assignment was set with the Read Only or Do Not Delete option, not even the subscription owner can perform the blocked action on the protected resource. https://docs.microsoft.com/en-us/azure/governance/blueprints/concepts/resource-locking
upvoted 32 times
ssrr
4 years, 11 months ago
but the requirement is to block only one Admin user to a specific group, why should we use a blueprint to inherit to all users and other groups also?
upvoted 6 times
0532
4 years, 11 months ago
deny assignment can be applied to specific user as part of RBAC through blueprint https://docs.microsoft.com/en-us/azure/role-based-access-control/deny-assignments Azure Blueprints and Azure managed apps are the only way that deny assignments can be created.
upvoted 2 times
dev2dev
4 years, 10 months ago
RBAC can deny access to the RG, its only for one user on one RG, why create az blueprints?
upvoted 4 times
tartar
4 years, 7 months ago
D is ok
upvoted 3 times
...
...
...
...
ExamWynner
4 years, 9 months ago
Answer is C - assign admin1 to custom role instead of owner. The reason is Blueprint lock is not applied to existing resources which not deployed by Blueprint.
upvoted 8 times
...
...
learnazure63
Highly Voted 4 years, 10 months ago
Is D. Checked with lap. When you go to IAM of a given rg click on deny assignment. You will see below note Deny assignments block users from performing specific actions even if a role assignment grants them access. At this time, the only way you can add your own deny assignments is by using Azure Blueprints. Learn more https://docs.microsoft.com/en-us/azure/role-based-access-control/deny-assignments-portal
upvoted 10 times
...
JohnnyBG
Most Recent 4 years, 1 month ago
Azure Blueprint does not block by itself, it will enforce Azure policy. Blueprint are templates, nothing more ... I would go for Azure policy
upvoted 2 times
...
Sunny486
4 years, 2 months ago
Resource locks deployed by Azure Blueprints are only applied to resources deployed by the blueprint assignment. Existing resources, such as those in resource groups that already exist, don't have locks added to them.
upvoted 1 times
...
milind8451
4 years, 3 months ago
C seems right ans as Azure Blueprints doesn't works on pre-existed resources.
upvoted 1 times
...
sanketshah
4 years, 4 months ago
D is correct answer.
upvoted 1 times
...
macco455
4 years, 7 months ago
https://docs.microsoft.com/en-us/azure/role-based-access-control/deny-assignments Answer is D Blueprints as stated in this article, Blueprints and managed apps are the only 2 ways to create den assignments to protect system-managed resources
upvoted 1 times
...
fullmoonhwi
4 years, 7 months ago
Should be D
upvoted 1 times
...
Rooh
4 years, 8 months ago
Should be D
upvoted 1 times
...
Andy2k0
4 years, 8 months ago
The only possibility to achieve this is by using Azure Blueprints, the correct answer is D
upvoted 1 times
...
ercank
4 years, 8 months ago
I can fulfill the requirement with Blueprint not only for the new resources but for the already existing one. I wonder whoever defends the Custom Role how you can make this happen. You can exclude RG1 from AssignableScopes but this time it will loose all its access to RG1. As I know there is no such thing like give Owner role to these RGs and give Reader role to those RGs. So I would go for Blueprint which I already applied and working as expected.
upvoted 2 times
...
denkes
4 years, 8 months ago
The answer C: Custom role, is correct from my point of view, because, the described case states: ... a user admin1 ..., this is a very specific case which we should handle and solve. We do not need a gereral solution, which can be applied multiple times. We just need a solution for this specific user. The Blue print is more general: D: Azure Blueprints enables cloud architects and central information technology groups to define a repeatable set of Azure resources that implements and adheres to an organization's standards, patterns, and requirements. Reference: https://docs.microsoft.com/en-us/azure/role-based-access-control/overview
upvoted 1 times
...
Test_Taker_1
4 years, 8 months ago
A. a management group - doesn't make sense in this context B. an Azure policy - doesn't take individual users into account C. a custom role - Seems the correct answer D. an Azure blueprint - doesn't work on preexisting resources References: https://docs.microsoft.com/en-us/azure/governance/blueprints/concepts/resource-locking https://docs.microsoft.com/en-us/azure/azure-australia/azure-policy
upvoted 3 times
...
KCjoe
4 years, 9 months ago
cannot be blueprint. The reason is RG1 already exist, assuming it is not created by blueprint. "Resource locks deployed by Azure Blueprints are only applied to resources deployed by the blueprint assignment. Existing resources, such as those in resource groups that already exist, don't have locks added to them."
upvoted 5 times
...
jivom
4 years, 9 months ago
My choice would still be option C. For answer C to work the admin should be given a custom role at the subscription level (interesting note: if the admin gets e.g. a contributor role at the resource group level, that admin will still have an owner role inherited from the subscription and will also at the same time have a contributor role for that resource group; so adding a custom role for an admin to a resource group itself won't do any good due to inheritance). First off, you should the admin the required access he needs on resource group level. Then, you simply go into your subscription, click on 'create a custom role' and identify your role assignment details and you basically identify to which scope(s) you give that person access. In this case, you are giving yourself Owner rights on all the subscription except for that one resource group for which you just assigned that owner a lower permission level. Nobody denies blueprints won't work, but what I'm writing more is potentially a more fail-proof solution for reasons already mentioned in various comments here.
upvoted 1 times
...
[Removed]
4 years, 9 months ago
The answer should be D) Azure Blueprints. Have a look at the tutorial in the link below. Quote: "With Azure Blueprints resource locks, you can protect newly deployed resources from being tampered with, even by an account with the Owner role." https://docs.microsoft.com/en-us/azure/governance/blueprints/tutorials/protect-new-resources
upvoted 2 times
...
aMaineCloud
4 years, 9 months ago
I guess the question is outdated. C and D are valid. RBAC feature update supports deny assignments that take precedence over role assignments.
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