Your Azure App Service web app stores connection strings for a database. You need to ensure the connection string value is different between your staging and production deployment slots. Which approach is correct?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Mark the connection string as a 'slot setting' (sticky setting) in the App Service configuration

Slot settings (sticky settings) are configuration values that do not move with a deployment slot swap. Each slot retains its own value for that setting, making it ideal for connect...

๐Ÿ“‹Part of Microsoft Certified: Azure Developer Associate (AZ-204) ยท Azure Certification Practice
Real Exam ScenarioAzure App Service

Your Azure App Service web app stores connection strings for a database. You need to ensure the connection string value is different between your staging and production deployment slots. Which approach is correct?

โœ“ Correct Answer & ExplanationAzure App Service

Correct Answer

Mark the connection string as a 'slot setting' (sticky setting) in the App Service configuration

Why This Answer Is Correct

Slot settings (sticky settings) are configuration values that do not move with a deployment slot swap. Each slot retains its own value for that setting, making it ideal for connection strings that differ between staging (pointing to test DB) and production (pointing to prod DB).

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Azure App Service โ€” a core concept tested in Microsoft Certified: Azure Developer Associate (AZ-204). Understanding Azure App Service is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.