AZ-400 Question 170
Select 2Your company hosts a mission-critical web application on Azure App Service. To minimize downtime and enable rapid rollback if a new version causes issues, you plan to implement a deployment approach leveraging deployment slots. Which two actions should you take to ensure a resilient deployment strategy?
- A
Use a blue-green deployment model by creating an additional deployment slot and swapping slots after verification.
- B
Rely on forced updates to the production slot to ensure immediate release of new features.
- C
Run performance and functional tests against a staging slot before promoting the slot to production.
- D
Include manual approval steps in the pipeline to bypass slot swapping for direct production deployment.
Show answer and explanation
Correct answers: A, C
Explanation
By using multiple Azure App Service slots and swapping them after verifying the new release in a staging slot, organizations minimize downtime and ensure a quick rollback path if needed. The blue-green approach�combined with thorough testing in a pre-production slot�enhances overall resiliency and reduces deployment risks. For more details, refer to Microsoft� documentation on 'Azure App Service Deployment Slots' (https://docs.microsoft.com/azure/app-service/deploy-staging-slots).
- A. Correct.
Option 1 is correct: In a blue-green deployment, you deploy new changes to a separate environment (an additional slot), validate them, and then swap slots. This approach ensures minimal downtime and allows quick rollback if problems arise.
- B. Incorrect.
Option 2 is incorrect: Forcing updates directly to production minimizes verification time and increases risk, which is not recommended for resilient deployments.
- C. Correct.
Option 3 is correct: Running tests on a staging slot before swapping to production ensures that the build is verified in an environment that closely resembles production, reducing the likelihood of failures in the live environment.
- D. Incorrect.
Option 4 is incorrect: Although manual approvals can be used for additional safeguards, bypassing slot swapping defeats the purpose of having a validated environment to test new changes before exposing them to production.