You can assign a policy to any scope that you have access to, such as a management group, subscription, or resource group. However, you cannot assign a policy directly to an individual resource.
You can assign a lock on every Azure resource that you have access to. You can apply a lock at different levels of scope: subscription, resource group, or individual resource.
So, the right answer is "Lock"!
The Azure Policy documentations says otherwise. We can apply policies to individual resources. https://learn.microsoft.com/en-us/azure/governance/policy/overview#overview
I think the key point here is "every resource". Policy can be applied with a certain scope(conditional), however the lock can be applied irrespective of scope.
The answer should be Policy instead of Lock, These locks apply to all users and roles, but do not apply to all resources. but Policy could be applied to all resources
Policy it is. "Once your business rules have been formed, the policy definition or initiative is assigned to any scope of resources that Azure supports, such as management groups, subscriptions, resource groups, or individual resources."
https://learn.microsoft.com/en-us/azure/governance/policy/overview
F*ck those who say not applicable to individual resources
https://learn.microsoft.com/en-us/azure/governance/policy/overview
Once your business rules have been formed, the policy definition or initiative is assigned to any scope of resources that Azure supports, such as management groups, subscriptions, resource groups, or individual resources
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json
As an administrator, you can lock an Azure subscription, resource group, or resource to protect them from accidental user deletions and modifications. The lock overrides any user permissions.
Seems both Lock and Policy are right answers
No it doesn't.
"An assignment is a policy definition or initiative that has been assigned to a specific scope. This scope could range from a management group to an INDIVIDUAL RESOURCE."
Azure Policies can be set at each level, enabling you to set policies on a specific resource, resource group, subscription, and so on.
reference: https://learn.microsoft.com/en-us/training/modules/describe-features-tools-azure-for-governance-compliance/3-describe-purpose-of-azure-policy
Resource locks can be applied to individual resources, resource groups, or even an entire subscription.
reference:https://learn.microsoft.com/en-us/training/modules/describe-features-tools-azure-for-governance-compliance/4-describe-purpose-of-resource-locks
both policy and resource lock can be applied to individual resource. either this question is a multiple choice or I would say policy. why not the lock? because it is just lock and not precised enough as "resource lock"
This comment thread seems to be fairly new...
There doesn't seem to be any Microsoft resource online that suggests that either POLICIES or LOCKS cannot be applied to every resource.
This may have originally been a multi-choice question.
So, LOCK and POLICY are both correct...?
Unless I'm proven wrong - provide a source.
Source? Did you just make this up? Probably. Can't just believe one person on the internet, can you?
There doesn't seem to be any Microsoft resource online that suggests that either POLICIES or LOCKS cannot be applied to every resource.
So, LOCK and POLICY are both correct...?
Unless I'm proven wrong - provide a source.
"Lock" seems to be correct here, from what I can tell
"To view, add, or delete locks in the Azure portal, go to the Settings section of any resource's Settings pane in the Azure portal."
Sauce: https://learn.microsoft.com/en-us/training/modules/describe-features-tools-azure-for-governance-compliance/4-describe-purpose-of-resource-locks
"Policy"
The correct answer is "Azure Policy". Azure Policies can be assigned to every resource in Azure to enforce rules and effects, helping you prevent IT issues. Other options like Azure Locks, Azure Blueprints, and Azure Service Endpoints have certain limitations or specific use cases and cannot be assigned to absolutely every resource in Azure.
Como administrador, puede bloquear una suscripción, un grupo de recursos o un recurso de Azure para protegerlos de eliminaciones y modificaciones accidentales del usuario
From Google Translate: As an administrator, you can lock an Azure subscription, resource group, or resource to protect it from accidental user deletions and modifications
this guy just makes me laugh every time)
I've passed lots of AWS exams and prepared here as well and have never seen anything like this)
upvoted 1 times
...
...
This section is not available anymore. Please use the main Exam Page.AZ-900 Exam Questions
Log in to ExamTopics
Sign in:
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.
dgerok
Highly Voted 1 year, 6 months agoAgmenus
2 months, 3 weeks agoUser12345_nerd
2 months agoalphilla
1 year, 6 months agoDjibsonx7
Highly Voted 1 year, 3 months agoNoursBear
9 months, 3 weeks agodcdcdcdcdc
Most Recent 2 months, 2 weeks agotsshin73
6 months agoniceguysfinishlast
8 months agoDingMeisong
10 months, 1 week agoNoursBear
9 months, 3 weeks agoskyshan
1 year, 2 months agointentando
1 year, 5 months ago3cc17f1
1 year, 5 months agovombat186
2 months, 2 weeks agoRishi037
1 year, 6 months agodcdcdcdcdc
2 months, 2 weeks agoNovia
1 year, 6 months ago[Removed]
1 year, 6 months agoApoorvaaaaa
1 year, 7 months ago[Removed]
1 year, 6 months agocschivaz
1 year, 7 months agoLeonardSnart
1 year, 7 months agoDesolater
1 year, 7 months agoalemaradona86
1 year, 7 months agojwhhh
1 year, 7 months agoSinaRamzi
1 year, 7 months agobobsmith2000
1 year, 6 months ago