VOOZH about

URL: https://nerdexam.com/exams/az-104/questions/42

⇱ Hotspot Question You have an Azure subscription that contains the... | AZ-104 Q#42 Answer | NerdExam


Question

Hotspot Question You have an Azure subscription that contains the resources shown in the following table: You assign a policy to RG6 as shown in the following table: To RG6, you apply the tag: RGroup: RG6. You deploy a virtual network named VNET2 to RG6. Which tags apply to VNET1 and VNET2? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer:

Exhibits

Answer Area

  • VNET1:Department: D1 only
    NoneDepartment: D1 onlyDepartment: D1, and RGroup: RG6 onlyDepartment: D1, and Label: Value1 onlyDepartment: D1, RGroup: RG6, and Label: Value1
  • VNET2:Label: Value1 only
    NoneRGroup: RG6 onlyLabel: Value1 onlyRGroup: RG6, and Label: Value1

Explanation

For VNET1: The official explanation states that "Resources created before policy creation will not inherit the policy rules." VNET1 was an existing resource with the tag "Department: D1" before the policy was applied to RG6. Therefore, it retains its original tag and does not inherit any new tags from the policy or the tag applied to its resource group.

For VNET2: The official explanation states that the built-in policy definition "Append a tag and its value to resources" applies the specified tag and value when any resource missing that tag is created or updated within the policy's scope. VNET2 is a new virtual network deployed to RG6 after the policy was assigned. The policy assigned to RG6 has parameters "Tag name: Label" and "Tag value: Value1". As VNET2 is a newly deployed resource within the policy's scope and would not have the 'Label' tag initially, the policy appends "Label: Value1" to it.

Topics

#Azure Tags#Azure Policies#Resource Groups#Tag Application

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice