Developing ASP.NET MVC Web Applications — Question 130
You are developing an ASP.NET Core MVC web application that will be deployed to Microsoft Azure App Services Web App.
Scheduled downtime during deployment of new features is not permitted.
You need to ensure that deployments do not result in downtime.
What should you do?
Answer options
- A. Add additional upgrade domains.
- B. Use deployment slots during deployments.
- C. Convert the Web App to run in a standalone Docker container.
- D. Upgrade to a Premium App Service plan.
Correct answer: B
Explanation
Using deployment slots allows you to deploy your application to a staging environment first, where you can test it before swapping it into production. This method prevents downtime since the production slot remains active while the new version is being prepared. The other options either do not directly address downtime during deployment or involve changes that do not guarantee zero downtime.