You are developing a containerized background service that will be deployed to Azure Container Instances (ACI). The service must retrieve messages from an Azure Queue Storage queue, process the data, and write output files to an Azure Blob Storage container. You need to configure security and handle message payloads that may occasionally exceed 64 KB. Which configuration should you implement to meet these requirements securely while ensuring operational reliability?
- AGenerate an Account SAS token with full read, write, and delete permissions valid for two years, configure it as an environment variable in the ACI deployment, and send all message payloads directly to the queue.
- BConfigure a user-assigned managed identity on the ACI container group because system-assigned managed identities cannot be assigned RBAC roles, assign it the Storage Queue Data Reader role, and send all message payloads directly to the queue.
- Enable a system-assigned managed identity on the ACI container group, assign it the Storage Queue Data Message Processor and Storage Blob Data Contributor roles, and store payloads larger than 64 KB in Blob Storage while sending only the URI reference in the queue message.Cevap
- DEnable a system-assigned managed identity on the ACI container group, assign it the Storage Blob Data Contributor role, and send all message payloads directly to the queue.
Cevap
Enable a system-assigned managed identity on the ACI container group, assign it the Storage Queue Data Message Processor and Storage Blob Data Contributor roles, and store payloads larger than 64 KB in Blob Storage while sending only the URI reference in the queue message.
To securely connect the containerized service to Azure storage resources without managing credentials, a system-assigned managed identity should be enabled on the container group. The identity can then be granted the specific Azure RBAC roles required (Storage Queue Data Message Processor for queue operations and Storage Blob Data Contributor for blob operations). Furthermore, because Azure Queue Storage enforces a strict 64 KB size limit per message, payloads exceeding this threshold must be stored in Blob Storage, with only the reference URI placed in the queue.
Adım Adım Çözüm
Anahtar Kavram
Securing Azure Container Instances using managed identities and handling Queue Storage limits for large payloads.