Question

Difficulty: HardImplement Azure Event Grid Solutions

You are configuring an Azure Event Grid system topic to route system events to an Azure Function. To prevent event loss, you must configure dead-lettering to a secured Azure Storage account. The storage account has its firewall enabled, restricting access to virtual networks and trusted Microsoft services. Which configuration must you implement to authorize Event Grid to write the dead-letter events?

  1. A
    Generate a Shared Access Signature (SAS) token at the container level with write permission, and append this SAS token to the dead-letter destination container URL in the event subscription.
  2. B
    Configure an Azure Key Vault access policy that grants the Event Grid service principal GET permission to retrieve the storage account access keys.
  3. Enable a system-assigned managed identity on the Event Grid topic, assign the identity the Storage Blob Data Contributor role on the storage account, and configure the event subscription to use this identity for dead-letter delivery.Answer
  4. D
    Configure a user-assigned managed identity on the storage account, and assign it the Event Grid EventSubscription Writer role on the Event Grid topic.

Answer

Enable a system-assigned managed identity on the Event Grid topic, assign the identity the Storage Blob Data Contributor role on the storage account, and configure the event subscription to use this identity for dead-letter delivery.
To write dead-letter events to an Azure Storage account protected by a firewall, Event Grid must be recognized as a trusted Microsoft service. This requires enabling a system-assigned (or user-assigned) managed identity on the Event Grid topic, granting that identity the Storage Blob Data Contributor role on the destination storage account, and configuring the event subscription to use the managed identity when delivering dead-letter events.

Step-by-Step Solution

1
Enable Managed Identity on the Event Grid Resource
A system-assigned managed identity is generated for the Event Grid system or custom topic.
This establishes an identity in Microsoft Entra ID that Event Grid can use to authenticate with other Azure resources.
2
Grant RBAC Permissions on the Destination Storage Account
The Storage Blob Data Contributor role is assigned to the Event Grid managed identity.
This role provides the necessary write permissions to deposit dead-letter blobs into the container.
3
Configure the Event Subscription to Use the Identity
The event subscription is updated to include a dead-letter destination and configured to use the system-assigned managed identity for delivery.
This instructs Event Grid to present its managed identity token when attempting to write dead-letter events to the secured storage account.

Key Concept

Configuring Event Grid dead-lettering with managed identities to write to secured storage accounts.
Rate this question