Microsoft Azure Developer Associate AZ-204 Practice Question
An Azure App Service web app named contoso-api uses two deployment slots: production and staging. The configuration contains an app setting APPINSIGHTS_INSTRUMENTATIONKEY and a connection string DefaultConnection that currently points to the production database. You plan to swap staging with production. After the swap, each slot must continue using its existing database. What should you do before starting the swap?
Mark the DefaultConnection connection string as a slot setting.
Configure traffic routing to send 20 % of traffic to the staging slot.
Enable auto-swap on the staging slot.
Mark the APPINSIGHTS_INSTRUMENTATIONKEY app setting as a slot setting.
Connection strings or app settings that are marked as slot settings stay with the slot during a swap. By marking the DefaultConnection connection string as a slot setting, the value that points to the test database remains in the staging slot after the swap, while the production slot retains the production database connection string. Enabling auto-swap or traffic routing does not affect configuration persistence, and marking the APPINSIGHTS_INSTRUMENTATIONKEY setting does not address the database 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 an Azure App Service deployment slot?
Open an interactive chat with Bash
What does marking a connection string as a slot setting do?
Open an interactive chat with Bash
What is auto-swap in Azure App Service?
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 .