New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft AZ-204 Exam - Topic 15 Question 22 Discussion

Actual exam question for Microsoft's AZ-204 exam
Question #: 22
Topic #: 15
[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: Update the web.config file to include the applicationInitialization configuration element. Specify custom initialization actions to run the scripts.

Does the solution meet the goal?

Show Suggested Answer Hide Answer
Suggested Answer: B

Specify custom warm-up.

Some apps might require custom warm-up actions before the swap. The applicationInitialization configuration element in web.config lets you specify custom initialization actions. The swap operation waits for this custom warm-up to finish before swapping with the target slot. Here's a sample web.config fragment.

<system.webServer>

</system.webServer>


https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots#troubleshoot-swaps

Contribute your Thoughts:

0/2000 characters
Marsha
4 months ago
Not sure if web.config is enough for complex scripts.
upvoted 0 times
...
Frederica
5 months ago
Definitely a good approach for resource readiness.
upvoted 0 times
...
Pete
5 months ago
Surprised that auto swap needs this setup!
upvoted 0 times
...
Avery
5 months ago
I think it might not cover all scenarios.
upvoted 0 times
...
Nan
5 months ago
Yes, that makes sense for initialization!
upvoted 0 times
...
Viola
5 months ago
I think this solution could work, but I have a nagging feeling that there might be a better way to ensure everything is ready before the swap happens.
upvoted 0 times
...
Freida
5 months ago
I believe the applicationInitialization element is useful, but I wonder if there are other factors we need to consider for the swap to be successful.
upvoted 0 times
...
Raul
5 months ago
I remember a practice question where we had to ensure resources were ready before a swap, and I feel like this might be part of that, but I can't recall the specifics.
upvoted 0 times
...
Bobbie
5 months ago
I think updating the web.config file makes sense for initialization, but I'm not sure if it fully addresses the swap operation requirements.
upvoted 0 times
...
Eliz
5 months ago
Okay, let's see here. Using in-house auditors, sending staff to public courses, or hiring consultants - those are the main choices. I'll need to evaluate the cost, time, and expertise factors for each to decide which one is the strongest approach.
upvoted 0 times
...
Nana
5 months ago
This question seems straightforward. I'll focus on the key elements of effective cross-functional team management and eliminate the options that don't fit.
upvoted 0 times
...
Dahlia
5 months ago
I'm pretty sure we're supposed to use the "and" logic here. Option D sounds like it covers both criteria, but it feels a bit complex for what we practiced.
upvoted 0 times
...
Sharan
6 months ago
I'm a bit confused. I want to say something about ProLiant servers, but I can't remember if they were specifically for WAN routers.
upvoted 0 times
...

Save Cancel