Question 50
Two App Service deployment slots use different database connection strings; the production connection must never move into the staging environment during a swap. How should the settings be configured?
Explanation
Correct Answer
Slot settings stick to their original slot during swap operations. This prevents environment-specific secrets and endpoints from moving with the application content.
Incorrect Answers
Non-sticky settings may move with the application during swaps. This risks pointing staging code to the production database.
Non-slot-sticky settings can move during a swap. Mark environment-specific connection strings as deployment slot settings.
The production secret also needs to remain with its intended slot; marking only one side can still move the production configuration.