Microsoft Azure Developer Associate AZ-204 Practice Question
You are developing a .NET 8 isolated-process Azure Function that runs on the Consumption plan. The function needs a SQL Database connection string. The value must be changeable without code redeployment and must rotate centrally while remaining inaccessible to other developers. You want to minimize code changes and follow Azure guidance for configuration and secret management. Which approach should you use?
Save the connection string as a plain key-value in Azure App Configuration and load it at runtime with the AzureAppConfiguration client library.
Add the connection string to the local.settings.json file and deploy the file with the function code.
Create an application setting for the function app and paste the connection string as its value.
Store the connection string as a secret in Azure Key Vault and reference it in the function app's application settings by using a Key Vault reference syntax.
A Key Vault reference placed in the application settings of the Function app keeps the actual secret inside Azure Key Vault, where it can be rotated centrally. The reference is resolved by the platform, so your code still reads the value from standard configuration providers with no changes. Using a plain application setting or local.settings.json stores the secret in the Function's configuration, not in a dedicated secret store. Storing the value directly in Azure App Configuration as a key-value keeps it out of Key Vault and requires additional code or policies to handle rotation securely.
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 Azure Key Vault and how does it help with secret management?
Open an interactive chat with Bash
How do Key Vault references in application settings work?
Open an interactive chat with Bash
Why is using local.settings.json or plain application settings not recommended for secret management?
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 .