exam questions

Exam AZ-900 All Questions

View all questions & answers for the AZ-900 exam

Exam AZ-900 topic 1 question 419 discussion

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

HOTSPOT
-

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

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
Sotobosque
Highly Voted 1 year, 10 months ago
YNY is correct "Azure Policy enables you to define both individual policies and groups of related policies, known as initiatives. Azure Policy evaluates your resources and highlights resources that aren't compliant with the policies you've created. Azure Policy can also prevent noncompliant resources from being created." https://learn.microsoft.com/en-us/training/modules/build-cloud-governance-strategy-azure/6-control-audit-resources-azure-policy
upvoted 13 times
...
Joseeeee
Most Recent 2 months ago
https://learn.microsoft.com/en-us/training/modules/describe-features-tools-azure-for-governance-compliance/3-describe-purpose-azure-policy Azure Policies can be set at each level, enabling you to set policies on a specific resource, resource group, subscription, and so on.
upvoted 1 times
...
cassy2k3
2 months, 3 weeks ago
NNY is correct. Assigning Policies to VMs: Azure policies are assigned to scopes like management groups, subscriptions, or resource groups, not directly to individual resources like virtual machines.
upvoted 2 times
...
Super63
6 months ago
NNY Option 1: NO. I cannot assign a policy directly to a specific resource (Ex, Virtual Machine). The policy is assigned to a resource group that includes the resource, in this case a VM. Policies are assigned at group level - not resource level. Option 2: NO. Non-compliant resources are flagged as such but never automatically removed. They can be remediated later on and will be blocked access until remediated. This happens when the VM was already there when the policy was assigned to the group Option 3: YES. Final answer: Azure Policy prevents the creation of non-compliant resources without manual evaluation. So I cannot create NEW NON-COMPLIEANR resources (in this case a VM) into a group if the Policy is already in place
upvoted 3 times
...
PN60
6 months, 1 week ago
Answer is NNY - CoPilot: You can't assign an Azure Policy directly to a single virtual machine (VM). Instead, you assign policies to the scope of a subscription, resource group, or management group. These policies then enforce rules on all resources within that scope, including VMs.
upvoted 1 times
...
PN60
6 months, 2 weeks ago
Looking at the contents in this link "https://learn.microsoft.com/en-us/azure/governance/policy/concepts/recommended-policies" it appears, Azure policy can be assigned to VM. So, it appears the published answer is correct.
upvoted 1 times
...
zswap
6 months, 3 weeks ago
It should be NNY Azure Policy assignments are typically made at the management group, subscription, or resource group level, not directly to individual resources like virtual machines. Refer - https://learn.microsoft.com/en-us/answers/questions/1086208/assign-policy-to-specific-resource-in-azure
upvoted 1 times
zswap
6 months, 1 week ago
Sorry for confusion. It should be YNY Below document clear states this https://learn.microsoft.com/en-us/training/modules/describe-features-tools-azure-for-governance-compliance/3-describe-purpose-azure-policy?ns-enrollment-type=learningpath&ns-enrollment-id=learn.wwl.describe-azure-management-governance
upvoted 1 times
...
...
Raja96
8 months, 3 weeks ago
You can assign an Azure policy to a virtual machine. Answer: Yes (Azure policies can be assigned to various resources, including virtual machines, to enforce compliance with specific rules.) If an Azure policy is assigned to a resource group, noncompliant resources are removed from the group. Answer: No (Azure policies do not automatically remove noncompliant resources. Instead, they prevent the deployment of new noncompliant resources or can be used to audit existing resources.) If an Azure policy is assigned to a resource group, only compliant resources can be deployed to the group. Answer: Yes (When an Azure policy is assigned to a resource group, it can enforce compliance by preventing the deployment of noncompliant resources.)
upvoted 2 times
...
NoursBear
9 months, 1 week ago
Although Microsoft writes the folowing: Assignments 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. The term scope refers to all the resources, resource groups, subscriptions, or management groups that the definition is assigned to. Assignments are inherited by all child resources. This design means that a definition applied to a resource group is also applied to resources in that resource group. However, you can exclude a subscope from the assignment. It does not mean what we think what it means, when it mentions "resources". Scope has to be understood. A policy is first defined and then assigned to a scope (but not directly a resource e.g. VM) . Only when a resource is created afterwards, will there be an evaluation and if a parameter does not match, the resource will not be created. I spent lots of time on this and I think I kinda get it. I will answer N if I get this question
upvoted 1 times
...
siculoct
10 months, 4 weeks ago
it's NO , NO, YES
upvoted 2 times
...
Nel8
1 year ago
I believe the answer is Y N N.
upvoted 1 times
...
6582fb2
1 year, 1 month ago
you can assign Azure policy to VM directly, the option policy is at the left pane. The A is correct.
upvoted 1 times
...
Arsaidh
1 year, 3 months ago
On January 25th, 2024. 1. Yes. "Azure Policies can be set at each level, enabling you to set policies on a specific resource, resource group, subscription, and so on". 2. No. "In some cases, Azure Policy can automatically remediate noncompliant resources and configurations to ensure the integrity of the state of the resources. [...] However, you still retain full control of your environment." 3. Yes. "For example, if you define a policy that allows only a certain size for the virtual machines (VMs) to be used in your environment, that policy is invoked when you create a new VM and whenever you resize existing VMs." https://learn.microsoft.com/en-us/training/modules/describe-features-tools-azure-for-governance-compliance/3-describe-purpose-of-azure-policy?ns-enrollment-type=learningpath&ns-enrollment-id=learn.wwl.describe-azure-management-governance
upvoted 3 times
...
aitor0405
1 year, 4 months ago
1. It is NO. I have tried to assign to a virtual machine in my private Azure Portal and the section is not there, so it is not possible to assign policies to virtual machines
upvoted 4 times
...
shehanks
1 year, 8 months ago
To restrict VM sizes with Azure Policy, you can create a policy definition that specifies the allowed VM sizes. You can then assign this policy definition to your Azure subscription or resource group. This policy definition denies the deployment of VMs that are not of the allowed sizes. So I think N N Y is the answer.
upvoted 4 times
...
Vibhu123
1 year, 9 months ago
By referring this this paragraph, i see It's Y for A.....Assign the definition to resources To implement your policy definitions, you assign definitions to resources. A policy assignment is a policy definition that takes place within a specific scope. This scope could be a management group (a collection of multiple subscriptions), a single subscription, or a resource group.
upvoted 1 times
Vibhu123
1 year, 9 months ago
I misread i think, it should be NO as per this paragraph...i couldn't find Y for this question
upvoted 1 times
...
...
MrOkay
1 year, 9 months ago
1 is No, you cannot assign a policy definition to a single resource, such as a VM. You can only assign a policy definition to a management group, subscription, or resource group.
upvoted 4 times
jordanmacedo00
1 year, 2 months ago
Number 1 is correct, check following link under the overview: https://learn.microsoft.com/en-us/azure/governance/policy/overview
upvoted 2 times
kevin86
11 months, 1 week ago
It's correct according to the below... 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.
upvoted 1 times
kevin86
11 months, 1 week ago
After all, I found a post under MSFT. https://learn.microsoft.com/en-us/answers/questions/1086208/assign-policy-to-specific-resource-in-azure It says the following: you can't assign a policy at resource level scope. However, you can assign the policy at management group, subscription and resource group level and use exclusions feature to exclude the resource you don't want to include in the policy assignment. The post was back in 2022. I am not sure if that's still the case.
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