Microsoft Azure Developer Associate AZ-204 Practice Question
An Azure Storage account named contosoimages hosts a container for customer uploads. You are developing an ASP.NET Core Web API that must return a six-hour SAS URL so clients can upload one blob. Security requires Azure AD authentication only, no storage account keys, and the token must be revocable by disabling the API's identity. Which approach should you implement?
Generate a service SAS by signing BlobSasBuilder with the storage account key.
Generate an account SAS in the Azure portal and store it in Azure Key Vault.
Set the container access level to Blob and return the blob URL without a SAS.
Generate a user delegation SAS by calling GetUserDelegationKey and building the SAS with BlobSasBuilder.
A user delegation SAS is created by first obtaining a user delegation key through an Azure AD authenticated call to GetUserDelegationKey, then constructing the signature with BlobSasBuilder (or equivalent). Because the SAS is tied to the Azure AD principal, disabling that identity or revoking the delegation key immediately invalidates the token. A service or account SAS is signed with a storage account key; revoking it later would require regenerating the account keys, which the scenario forbids. Making the container public would not meet the security constraints.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a User Delegation SAS in Azure Storage?
Open an interactive chat with Bash
How does BlobSasBuilder help create a SAS token?
Open an interactive chat with Bash
Why is Azure AD authentication preferred over storage account keys for SAS tokens?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Implement Azure security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .