A development team creates an Azure resource group and applies a tag named `Department` with a value of `Marketing` directly to the resource group. A developer then deploys a web app inside this resource group. What is the status of the `Department` tag on the newly deployed web app?
- The web app does not have the tag because Azure resources do not inherit tags applied to their resource group.Answer
- BThe web app automatically inherits the tag from the resource group.
- CThe web app inherits the tag and automatically classifies its running costs as Capital Expenditure (CapEx).
- DThe web app does not have the tag initially, but any new Azure Policy created later will retroactively apply the tag to the web app.
Answer
The web app does not have the tag because Azure resources do not inherit tags applied to their resource group.
The correct answer states that the web app does not have the tag because Azure resources do not inherit tags applied to their resource group. In Azure, tag inheritance is not automatic. While you can apply tags at the subscription or resource group level, these tags do not cascade down to the resources within them.
Step-by-Step Solution
Key Concept
Azure Resource Tag Inheritance