Microsoft Azure Developer Associate AZ-204 Practice Question
You run an Azure App Service web app in a production slot and create a staging slot for the next release. During a swap, the connection string that points to the production database must remain in the production slot, but an app setting named Logging__Level should follow the code and swap into the production slot. How should you configure the settings to meet these requirements?
Mark the production database connection string as a deployment slot setting and leave Logging__Level unmarked.
Enable auto-swap on the production slot and leave all settings unmarked.
Mark Logging__Level as a deployment slot setting and leave the connection string unmarked.
Reference the production database connection string from Azure Key Vault in both slots without marking it as a slot setting.
When a setting is marked as a deployment slot setting, its value stays with the slot during a swap. By marking only the production database connection string as a slot setting, it remains bound to the production slot, while any unmarked setting-such as Logging__Level-travels with the swapped code. Marking Logging__Level as a slot setting, leaving all settings unmarked, or relying solely on Key Vault references would cause either the wrong setting to become sticky or all settings to swap, violating the requirement.
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 deployment slot in Azure App Service?
Open an interactive chat with Bash
How do deployment slot settings behave during a slot swap in Azure?
Open an interactive chat with Bash
Why would you mark only the production database connection string as a deployment slot setting?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Develop Azure compute solutions
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 .