exam questions

Exam AZ-300 All Questions

View all questions & answers for the AZ-300 exam

Exam AZ-300 topic 1 question 64 discussion

Actual exam question from Microsoft's AZ-300
Question #: 64
Topic #: 1
[All AZ-300 Questions]

SIMULATION -
Click to expand each objective. To connect to the Azure portal, type https://portal.azure.com in the browser address bar.






When you are finished performing all the tasks, click the "˜Next' button.
Note that you cannot return to the lab once you click the "˜Next' button. Scoring occur in the background while you complete the rest of the exam.

Overview -
The following section of the exam is a lab. In this section, you will perform a set of tasks in a live environment. While most functionality will be available to you as it would be in a live environment, some functionality (e.g., copy and paste, ability to navigate to external websites) will not be possible by design.
Scoring is based on the outcome of performing the tasks stated in the lab. In other words, it doesn't matter how you accomplish the task, if you successfully perform it, you will earn credit for that task.
Labs are not timed separately, and this exam may have more than one lab that you must complete. You can use as much time as you would like to complete each lab. But, you should manage your time appropriately to ensure that you are able to complete the lab(s) and all other sections of the exam in the time provided.
Please note that once you submit your work by clicking the Next button within a lab, you will NOT be able to return to the lab.

To start the lab -
You may start the lab by clicking the Next button.
You need to add a deployment slot named staging to an Azure web app named [email protected]. The solution must meet the following requirements:
- When new code is deployed to staging, the code must be swapped automatically to the production slot.
- Azure-related costs must be minimized.
What should you do from the Azure portal?

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
Step 1:
Locate and open the [email protected] web app.
1. In the Azure portal, on the left navigation panel, click Azure Active Directory.
2. In the Azure Active Directory blade, click Enterprise applications.
Step 2:
Open your app's resource blade and Choose the Deployment slots option, then click Add Slot.

Step 3:
In the Add a slot blade, give the slot a name, and select whether to clone app configuration from another existing deployment slot. Click the check mark to continue.
The first time you add a slot, you only have two choices: clone configuration from the default slot in production or not at all.
References:
https://docs.microsoft.com/en-us/azure/app-service/web-sites-staged-publishing

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Oz
Highly Voted 5 years, 7 months ago
The published answer is just part of the solution. There is another requirement to publish new changes automatically. Here are the steps: 1) From the web apps blade, open a newly created staging slot 2) Go to Settings section, then Configuration, then General Settings tab from the menu on top. 3) Scroll down to Deployment Slot section and change Auto Swap Enabled option to ON. 4) Save changes.
upvoted 82 times
JatinA
5 years, 6 months ago
Thanks a lot Oz !
upvoted 4 times
...
praveen97
4 years, 11 months ago
I have tested it in the lab. It works exactly same as Oz mentioned. Ensure to select lower cost tier app service plan (S1) while creating the app service.
upvoted 1 times
...
Bart78
4 years, 9 months ago
Was there an update because whatever I try I don't get an outswap option. (webapp, based upon >net WIndows)
upvoted 1 times
...
...
Ekramy_Elnaggar
Highly Voted 5 years, 6 months ago
1) Create Staging slot 2) From Staging slot > Configuration > General Settings > Auto swap enabled = "On" & Auto swap deployment slot = "Production"
upvoted 19 times
tibor21
5 years, 3 months ago
I don't find Auto Swap
upvoted 1 times
Mathai
5 years, 3 months ago
While creating deployment slot,you have to select "do not clone.. "
upvoted 3 times
...
PassForSure007
4 years, 9 months ago
Most probably you have a Linux web app. Unfortunately, auto swap isn't supported in web apps on Linux. https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots#Auto-Swap
upvoted 2 times
...
...
...
nabylion
Most Recent 4 years, 9 months ago
Note Auto swap isn't supported in web apps on Linux.
upvoted 1 times
...
[Removed]
4 years, 11 months ago
I just don't get why the suggested solution wants me to navigate via the Azure AD blade to the application ...
upvoted 1 times
...
TYT
5 years, 1 month ago
Go to the App, Create a staging slot (if it doesn't exist), and go to configuration and enable Auto Swap with Production. PeterWL brought a good point about costs, but I am not sure if we want to change the plan because we didn't create the Web App or the service plan. Costs can be reduced in other ways too, may be it is just to trick I guess.
upvoted 3 times
...
Avanade2023
5 years, 3 months ago
And we also should change the App Service Plan to Standard(S1) because there is a requirement as bellow: "Azure-related costs must be minimized"
upvoted 5 times
...
[Removed]
5 years, 4 months ago
DevOps exam
upvoted 2 times
...
Oz
5 years, 7 months ago
Reference: https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots#Auto-Swap
upvoted 6 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...