AZ-104 Question 170
Single answerYour organization runs a production web application on an Azure App Service configured on the Standard tier. You need to test new features with minimal downtime and easily roll back if necessary. Which approach should you use?
- A
Scale up the existing App Service plan to a higher pricing tier
- B
Configure a separate deployment slot for staging and swap when ready
- C
Create a new App Service resource for testing in a different resource group
- D
Enable continuous integration (CI) in the production App Service
Show answer and explanation
Correct answer: B
Explanation
Deployment slots are designed for no-downtime testing and deployment, letting you swap from staging to production instantly. This approach reduces downtime and simplifies rolling back changes if issues arise.
- A. Incorrect.
Scaling up the App Service plan only increases resources but does not facilitate a separate environment for staging or rollback.
- B. Correct.
Deployment slots allow you to maintain separate staging and production environments on the same App Service plan, minimizing downtime and enabling quick rollbacks.
- C. Incorrect.
Creating a new App Service resource is less efficient and can be more costly than using deployment slots in the same plan.
- D. Incorrect.
CI is valuable for automating code pushes, but it doesn't provide the isolation and quick swap capability that a separate slot does.