Courseiva
mediumMultiple ChoiceObjective-mapped

AZ-400 Practice Question: A company uses Azure Pipelines to deploy a web…

A company uses Azure Pipelines to deploy a web app to Azure App Service. They want to ensure that the deployment is first validated in a staging slot before swapping to production. What should they configure?

⚠ Common exam trap

A common mix-up: candidates confuse deployment slots with separate pipelines or scaling, not realizing that slots provide a built-in, zero-downtime validation mechanism within the same App Service.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use deployment slots in the App Service and configure auto-swap

Azure App Service deployment slots allow you to deploy a web app to a staging slot, validate it, and then swap it to production with zero downtime. Auto-swap automates this process by swapping the staging slot into production after a successful deployment, ensuring validation occurs before the production slot receives the new code.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Create two separate pipelines for staging and production

    Why it's wrong here

    Creating two separate pipelines for staging and production duplicates pipeline configuration, requiring parallel changes for any deployment logic update and increasing maintenance overhead. It also lacks the built-in ability to automatically swap the validated staging deployment into production, so it doesn't provide the streamlined, zero-downtime promotion that deployment slots offer.

  • Use Azure Traffic Manager to route traffic

    Why it's wrong here

    Azure Traffic Manager operates at the DNS level to load-balance traffic across globally distributed endpoints, but it does not manage deployment slots or provide the staged validation and automatic swap workflows needed for safe application releases. It simply routes users to backends, so it cannot replace the slot-based staging environment in App Service.

  • Use deployment slots in the App Service and configure auto-swap

    Why this is correct

    Deployment slots are separate, warm environments in the same App Service plan that allow you to deploy and validate a build without affecting the production slot. Configuring auto-swap promotes the verified staging slot to production instantly with zero downtime, making it the recommended pattern for Azure Pipelines deployments to App Service.

  • Use an App Service plan with multiple instances

    Why it's wrong here

    Adding multiple instances to an App Service plan increases scale-out capacity and provides high availability, but it does not create a separate environment for testing or validation before production. Every instance runs the same application code, so without a slot, a faulty deployment would go directly to production, offering no staging or rollback safety.

About these practice questions

This AZ-400 question is part of Courseiva's 823-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-400 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-400 exam.