Soru

Zorluk: OrtaAzure Resources, Resource Groups, Subscriptions, and Management Groups

An administrator plans to deploy a new solution consisting of an Azure Virtual Machine in the East US region and an Azure SQL Database in the West US region. Both resources must share the same lifecycle, and they must both be labeled with the tag 'Environment: Production' for billing analysis. The administrator creates a resource group named App-Prod-RG in the East US region and applies the 'Environment: Production' tag to it.

Which of the following is the correct configuration and behavior for deploying these resources?

  1. Deploy both the virtual machine and the database into App-Prod-RG, and manually apply the 'Environment: Production' tag to both resources.Cevap
  2. B
    Deploy both resources into App-Prod-RG, and the virtual machine and database will automatically inherit the 'Environment: Production' tag.
  3. C
    Create App-Prod-RG in East US, then nest a secondary resource group inside it in West US for the database to ensure the tag is inherited.
  4. D
    Deploy both resources into App-Prod-RG, but the database must be redeployed to the East US region to match the resource group's location.

Cevap

Deploy both the virtual machine and the database into App-Prod-RG, and manually apply the 'Environment: Production' tag to both resources.
The correct option is correct because Azure resources can reside in a different region than their containing resource group, and resource group tags are not inherited by the resources inside them.

Adım Adım Çözüm

1
Determine the resource group placement for resources in different regions.
Both the East US virtual machine and the West US database can be placed in the same App-Prod-RG resource group.
Azure resource groups are logical containers, and resources within a resource group do not have to share the same region/location as the resource group itself.
2
Verify if resource groups can be nested.
Resource groups cannot be nested.
Azure does not support hierarchical nesting of resource groups; they exist as flat containers directly under a subscription.
3
Determine how tag application works between resource groups and resources.
Tags must be manually applied to the individual resources.
Resources do not inherit tags from the resource group they belong to.

Anahtar Kavram

Azure resource groups are logical containers that can hold resources from different regions, cannot be nested, and do not pass down their tags to contained resources through inheritance.
Bu soruyu puanla