Developing Solutions for Microsoft Azure (AZ-204) Practice Exam

Disable ads (and more) with a membership for a one time $2.99 payment

Developing Solutions for Microsoft Azure Exam. Prepare with flashcards and multiple choice questions, get hints and explanations for each question. Ace your test prep!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which of the following components are swapped during a deployment slot swap?

  1. Publishing endpoints

  2. WebJobs content

  3. WebJobs schedulers

  4. Connection strings

The correct answer is: WebJobs content

During a deployment slot swap in Azure App Service, the primary components that are exchanged between the production and staging slots include the application content and configuration settings. This is designed to facilitate seamless updates and quick rollbacks, ensuring that the production environment is updated with new code that has been thoroughly tested in the staging slot. WebJobs content is particularly relevant here because WebJobs are tied to the application code and are deployed as part of the web application's files. When a swap occurs, the web application files along with their associated WebJobs are effectively swapped, allowing you to deploy a tested version of your application while ensuring that the running version in production is stable until the swap is completed. On the other hand, publishing endpoints, WebJobs schedulers, and connection strings typically remain constant during the slot swap. Publishing endpoints are defined independently of the application instances within slots, meaning they do not change when performing a swap. Similarly, WebJobs schedulers, which manage the execution of scheduled jobs, are not swapped to avoid issues related to job execution while transitioning to a new app version. Connection strings can be configured separately for each slot, and it is common practice to set production-specific connection strings in the production slot to ensure sensitive data remains secure. Hence, they are not