Soru

Zorluk: OrtaAzure Cost Management, Billing, and Resource Tags

An administrator creates a resource group named `rg-finance-prod` and applies a tag with the key `CostCenter` and value `Finance-12` to the resource group. The administrator then deploys several Azure Virtual Machines and Azure SQL databases into this resource group. To track spending, the administrator runs a query in Azure Cost Management filtered by the `CostCenter: Finance-12` tag.

Which of the following describes the outcome of this query?

  1. The query will return zero costs for the virtual machines and databases because resources do not automatically inherit tags from their parent resource group.Cevap
  2. B
    The query will automatically include the costs of the virtual machines and databases because resources inherit tags from their parent resource group.
  3. C
    The query will display the costs of the virtual machines and databases classified as Capital Expenditure (CapEx) instead of Operational Expenditure (OpEx).
  4. D
    The query will display the costs of the virtual machines and databases only if an Azure Role-Based Access Control (RBAC) role is assigned to the resources to allow tag inheritance.

Cevap

The query will return zero costs for the virtual machines and databases because resources do not automatically inherit tags from their parent resource group.
In Azure, resources do not automatically inherit tags that are applied to their parent resource group. Because the virtual machines and databases do not have the tag applied directly to them, a query filtered by the tag key and value applied to the resource group will return zero costs for those resources.

Adım Adım Çözüm

1
Analyze the tag assignment behavior between a resource group and its child resources.
Identify that tags applied directly to a resource group are not automatically inherited by the resources deployed inside it.
Azure Resource Manager treats tags as flat, non-inheriting metadata at the individual resource boundary by default.
2
Determine the impact of this behavior on Azure Cost Management queries.
Since the resources do not inherit the 'CostCenter' tag, they do not possess this metadata, and a cost query filtered by this tag will yield zero results for these resources.
Cost Management filters cost data based on the metadata actually present on the resources at the time of billing.

Anahtar Kavram

Azure Resource Tag Inheritance
Tahmini Süre:1m 0s
Bu soruyu puanla