A browser client must upload a blob directly to Azure Storage for the next 30 minutes with write access to only one container, and the token must be signed with Microsoft Entra credentials rather than the storage account key. What should your service generate for the client?
- AAn account-key shared access signature using the account key with no expiry
- BThe storage account access key
- CA user-delegation shared access signature scoped to the container
- DA connection string containing the account key
A user-delegation shared access signature is signed with Microsoft Entra credentials and can be scoped to a single container with write access and a 30-minute expiry, which is exactly what the client needs. Account-key signatures, the account key, and connection strings rely on or expose the key.
Why each option is right or wrong.
- C (correct). A user-delegation shared access signature is signed with Microsoft Entra credentials, can be scoped to one container with write permission, and can expire in 30 minutes.
- A. An account-key shared access signature is signed with the account key, which the requirement rules out, and no expiry is unsafe.
- B. Handing over the account key grants full access and is not a scoped, time-limited token.
- D. A connection string exposes the account key directly.
Reference: user-delegation shared access signatures; AI-200 Domain 4 (Secure, monitor, and troubleshoot Azure solutions).