exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 6 discussion

Actual exam question from Microsoft's AZ-204
Question #: 6
Topic #: 2
[All AZ-204 Questions]

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional deployment slots named Testing and Production. You enable auto swap on the Production deployment slot.
You need to ensure that scripts run and resources are available before a swap operation occurs.
Solution: Enable auto swap for the Testing slot. Deploy the app to the Testing slot.
Does the solution meet the goal?

  • A. No
  • B. Yes
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
GMartinez
Highly Voted 2 years, 5 months ago
Would say "No"
upvoted 16 times
TonyMel
1 year, 7 months ago
correct, in 2023Mar24, score: 904/1000
upvoted 9 times
...
Mousavi
2 years, 4 months ago
I think the given answer is correct https://www.pragimtech.com/blog/azure/azure-deployment-slots-auto-swap/
upvoted 3 times
...
...
Spartaco
Highly Voted 2 years, 4 months ago
Selected Answer: A
I vote A, No, because for me the solution is updating the web.config file to include the applicationInitialization configuration element.
upvoted 8 times
...
pjatx
Most Recent 7 months ago
Selected Answer: B
Sure Yes is the answer. Enabling auto-swap for Testing slow will do the work "When auto swap is enabled from a slot into production, every time you push your code changes to that slot, App Service automatically swaps the app into production after it's warmed up in the source slot."
upvoted 1 times
...
jessica__
7 months, 3 weeks ago
The answer is "yes" Deploying an app to a slot first and swapping it into production makes sure that all instances of the slot are warmed up before being swapped into production. This eliminates downtime when you deploy your app. The traffic redirection is seamless, and no requests are dropped because of swap operations. You can automate this entire workflow by configuring auto swap when pre-swap validation isn't needed. https://learn.microsoft.com/en-us/azure/app-service/deploy-staging-slots?tabs=portal
upvoted 3 times
...
Isoldhe
8 months, 1 week ago
Selected Answer: A
Copilot AI: The solution you proposed does not meet the goal. Enabling auto swap for the Testing slot will only swap the Testing and Production slots when a new app is deployed to the Testing slot1. It will not ensure that the scripts run and the resources are available before the swap operation occurs. To achieve that, you need to use the slot swap operation API2 and specify a swap operation id3 that can be used to monitor the progress and status of the swap. Alternatively, you can also disable auto swap, update the app with a method named statuscheck to run the scripts, re-enable auto swap and deploy the app to the Production slot4.
upvoted 3 times
...
AbhishekSinha
9 months, 2 weeks ago
Answer is No, only enabling the auto swap will not solve the problem, Question is asking for warm up action like ensure resource before the swap for that we need to provide some configuration in web.config. This configuration part is not in the solution statement
upvoted 3 times
...
Ciupaz
9 months, 2 weeks ago
Selected Answer: A
No. Also the explanation says so.
upvoted 1 times
...
manopeydakon
9 months, 3 weeks ago
B, Enabling auto swap for the Testing slot and deploying the app to that slot ensures that the scripts run and resources are available in the Testing environment before swapping to Production. This allows you to validate the changes in a staging environment before they are applied to the Production slot.
upvoted 1 times
...
dddddd111
11 months, 2 weeks ago
Selected Answer: B
I think the answer is "Yes". I found a very useful information about this question in this link https://learn.microsoft.com/en-us/azure/app-service/deploy-staging-slots?tabs=portal#troubleshoot-swaps. Search this part "Deploying your application to a nonproduction slot has the following benefits" I know this is a series of question, but I think both this option and applicationInitialization are "Yes".
upvoted 1 times
...
Tarajee
1 year, 1 month ago
Got this on 2023sept10
upvoted 2 times
...
Vladimir_Gajinov
1 year, 1 month ago
Selected Answer: A
My vote goes to 'No'. In the "How to configure auto swap" section, step 3 "Navigate to the **source slot**, in our case staging slot." gives us an answer. https://www.pragimtech.com/blog/azure/azure-deployment-slots-auto-swap/
upvoted 1 times
...
basquiat
1 year, 2 months ago
All the respect for you guys commenting here, but just left: "The correct answer is X" without saying why or providing documentation kinda sucks.
upvoted 8 times
...
MakMao
1 year, 2 months ago
Given answer is correct: 'Before you configure auto swap for the production slot, consider testing auto swap on an nonproduction target slot' https://learn.microsoft.com/en-us/azure/app-service/deploy-staging-slots?tabs=portal
upvoted 5 times
dddddd111
11 months, 2 weeks ago
Seen that note on the link and updated year 2023. So confirmed that the answer is YES.
upvoted 1 times
...
VijayNarayanan
1 year, 2 months ago
Thanks MakMao. Confusion is cleared.
upvoted 2 times
...
...
JH81
1 year, 3 months ago
Selected Answer: A
Got this on 6/28/2023 and passed with 850. Went with No.
upvoted 3 times
...
red0400
1 year, 8 months ago
B. Yes Enabling auto swap for the Testing slot and deploying the app to the Testing slot will ensure that the app is fully tested and resources are available before the swap occurs to the Production slot. This way, any issues that arise during testing can be addressed before the app is made live in Production.
upvoted 7 times
...
Mike5
1 year, 8 months ago
Selected Answer: A
To meet the goal of ensuring that scripts run and resources are available before a swap operation occurs, you should update the web.config file to include the application Initialization configuration element, as described in my previous answer.
upvoted 1 times
...
mdg3501
1 year, 10 months ago
got this on 2022-12-7
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago