An online retail inventory application is hosted on an Azure Virtual Machine (VM) and uses a C# worker service with the Azure.Messaging.EventHubs.Processor library to consume messages from an Azure Event Hub. The application uses a system-assigned managed identity to authenticate and utilizes an Azure Blob Storage container as a checkpoint store for partition load balancing. When the service starts up, it connects to the Event Hub successfully but fails to process partitions, throwing an error indicating that it is unauthorized to perform operations on the blob checkpoint container. You need to configure the minimal permissions required to allow the EventProcessorClient to initialize, manage partition leases, and write checkpoints. Which of the following actions should you perform?
- Assign the Storage Blob Data Contributor role to the VM's system-assigned managed identity at the scope of the checkpoint blob container.Answer
- BAssign the Storage Blob Data Reader role to the VM's system-assigned managed identity, and configure the application to manually manage lease updates via the Blob SDK.
- CCreate a new user-assigned managed identity with the Reader role on the storage account, assign it to the VM, and configure the EventProcessorClient to use it.
- DGrant GET and LIST secrets permissions to the VM's system-assigned managed identity in the Key Vault access policies to retrieve a shared access signature (SAS) token for the storage container.