Developing Solutions for Microsoft Azure — Question 30

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional deployment slots named Testing and Production. You enable auto swap on the Production deployment slot.
You need to ensure that scripts run and resources are available before a swap operation occurs.
Solution: Disable auto swap. Update the app with a method named statuscheck to run the scripts. Re-enable auto swap and deploy the app to the Production slot.
Does the solution meet the goal?

Answer options

Correct answer: A

Explanation

The solution does not meet the goal because disabling auto swap eliminates the ability to perform a seamless swap, which is essential for ensuring that resources are ready before the swap occurs. Moreover, simply running a method named statuscheck does not guarantee that all necessary resources are prepared in time, especially if the app is already in use in the Production slot. Thus, the correct answer is No.