An organization is implementing a multi-tenant event-driven architecture using an Azure Event Grid Event Domain named `marketing-domain`. Each tenant is assigned a unique topic within the domain (for example, `marketing-domain/topics/tenant-alpha`) to isolate their marketing campaign events. You must grant a service principal representing `tenant-alpha` the minimum permissions required to create and manage their own event subscriptions within their topic, while strictly preventing them from managing or viewing subscriptions for other tenants' topics. Which configuration should you implement?
- AAssign the service principal the Event Grid Subscription Contributor role at the scope of the `marketing-domain` Event Domain and apply an advanced subject filter to the subscriptions.
- BConfigure the webhook endpoint for tenant-alpha to perform a manual validation handshake by returning a subscription validation code to the domain-level control plane when subscriptions are requested.
- Assign the service principal the Event Grid Subscription Contributor role at the scope: `/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/domains/marketing-domain/topics/tenant-alpha`Cevap
- DAssign the service principal the Event Grid Contributor role at the resource group scope and define an Azure Policy to block subscription creation for other topics.
Cevap
Assign the service principal the Event Grid Subscription Contributor role at the specific topic scope within the Event Domain.
The correct configuration is to assign the Event Grid Subscription Contributor role at the scope of the specific Event Domain topic. Azure Event Domains support granular RBAC scopes down to the individual topic level. This ensures that the tenant's service principal can only manage event subscriptions for their assigned topic, preventing access to other tenants' topics and satisfying the principle of least privilege.
Adım Adım Çözüm
Anahtar Kavram
Fine-grained role-based access control (RBAC) for Event Domain topics to isolate tenant subscriptions.