Microsoft Azure Developer Associate AZ-204 Practice Question
A back-end Azure Function authenticates by using its system-assigned managed identity and obtains an OAuth 2.0 token for Azure Storage. The function must return a URL that lets a client application upload a single blob to the "uploads" container for the next 30 minutes, without exposing any storage account keys. Which type of shared access signature should the function generate?
Generate an account SAS that grants write permission to the Blob service.
Generate a user delegation SAS signed with the Azure Function's Azure AD credentials.
Generate a service SAS scoped to the "uploads" container and signed with the storage account key.
Create a stored access policy on the "uploads" container and send its identifier to the client.
Because the Azure Function is authenticated with Azure AD rather than a storage account key, it can request a user delegation key for the storage account and use that key to create a user delegation SAS. A user delegation SAS is signed with Azure AD credentials, so no account keys are required, and it can be scoped to allow write access to one blob for a specific time window. Service SAS and account SAS tokens must be signed with an account key, and a stored access policy alone does not grant access unless it is referenced by a valid SAS.
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?
Open an interactive chat with Bash
How is a user delegation key obtained in Azure Storage?
Open an interactive chat with Bash
Why is it better to use a user delegation SAS instead of a service SAS for this task?
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 .