AZ-400 · Question #193
AZ-400 Question #193: Real Exam Question with Answer & Explanation
Adding a deployment slot in Azure App Service is the correct approach to configure a staging environment because deployment slots are isolated instances of the web app that allow you to deploy and test code before swapping it into production. This enables a CI/CD pipeline to push
Question
SIMULATION You plan to implement a CI/CD strategy for an Azure Web App named az400-11566895-main. You need to configure a staging environment for az400-11566895-main. To complete this task, sign in to the Microsoft Azure portal. Answer: Add a slot 1. In the Azure portal, search for and select App Services and select your app az400-11566895- main. 2. In the left pane, select Deployment slots > Add Slot. 3. In the Add a slot dialog box, give the slot a name, and select whether to clone an app configuration from another deployment slot. Select Add to continue. 4. After the slot is added, select Close to close the dialog box. The new slot is now shown on the Deployment slots page. Reference: https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots
Options
- taskConfigure a staging environment for the Azure Web App named az400-11566895-main by adding a deployment slot.
- prerequisitesSign in to the Microsoft Azure portal.
Explanation
Adding a deployment slot in Azure App Service is the correct approach to configure a staging environment because deployment slots are isolated instances of the web app that allow you to deploy and test code before swapping it into production. This enables a CI/CD pipeline to push builds to the staging slot first, validate them, and then perform a zero-downtime swap to production. The steps outlined - navigating to Deployment slots, adding a named slot, and optionally cloning configuration - follow the exact Azure portal workflow for this feature.
Topics
Community Discussion
No community discussion yet for this question.