Question 160
A swapped App Service deployment reaches the wrong database because a staging connection string moved to production. What should the engineer change?
Explanation
Correct Answer
Sticky slot settings remain with the intended environment when application content swaps.
Incorrect Answers
Swap back to the known-good slot and investigate the failed release: swap back to the known-good slot and investigate the failed release: a reverse slot swap can restore the previous content while preserving evidence for diagnosis.
Separate the App Service application settings and environment resources for each deployment stage: separate the App Service application settings and environment resources for each deployment stage: environment isolation prevents development workloads from inheriting production connection values; Mark environment-specific connection settings as deployment-slot settings.
Deploy to a staging slot, validate it, and perform a controlled slot swap: slots support preproduction testing and controlled traffic cutover without rebuilding the same image.





Developing AI Cloud Solutions on Azure (AI-200) Practice Tests