Courseiva
Design and implement build and release pipelineshardMultiple SelectObjective-mapped

AZ-400 Practice Question: Design and implement build and release pipelines

Which THREE steps should you take to implement a blue-green deployment strategy for an Azure App Service using Azure Pipelines? (Choose three.)

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

Create a deployment slot named 'staging' for the App Service.

In a blue-green deployment for Azure App Service using Azure Pipelines, the three key steps are: create a staging deployment slot (A), enable 'Auto swap' on the staging slot (B), and deploy the new version to the staging slot (C). Auto-swap ensures that after the new version is deployed and validated, the staging slot automatically swaps with the production slot, enabling zero-downtime updates. Option D (deleting the production slot after swapping) is incorrect because the production slot continues to hold the previous version for potential rollback. Option E (routing 100% of traffic to the staging slot) is incorrect because traffic routing is handled by the swap operation, not by manually directing traffic.

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 a deployment slot named 'staging' for the App Service.

    Why this is correct

    Create a deployment slot named 'staging' for the App Service: This creates a separate live app slot that acts as the 'green' environment, allowing you to deploy and validate a new build without affecting the 'blue' production slot. The staging slot gets its own hostname and app settings, and you can later swap it with the production slot to promote the new version.

  • Enable 'Auto swap' on the staging slot.

    Why this is correct

    Enable 'Auto swap' on the staging slot: Auto-swap automatically promotes the staging slot to production once a deployment to the staging slot succeeds and the slot has been warmed up. This reduces manual intervention and ensures the new version is swapped exactly after validation, but you must configure the auto-swap target to the production slot in the slot settings.

  • Deploy the new version to the staging slot.

    Why this is correct

    Deploy the new version to the staging slot: This is the core action in blue-green deployment: you release the new code to the 'green' (staging) slot first, leaving the current production slot untouched. You can then run integration tests against the staging slot's hostname before swapping, so any issues are caught without impacting live users.

  • Delete the production slot after swapping.

    Why it's wrong here

    Delete the production slot after swapping: This is incorrect because blue-green deployments retain both slots; after a swap, the old production build becomes the new staging slot, which is kept for quick rollback if needed. Deleting the production slot would remove the live, active application and break availability, so you never delete it during a swap.

  • Route 100% of traffic to the staging slot.

    Why it's wrong here

    Route 100% of traffic to the staging slot: This is not the recommended blue-green approach; instead, you either swap the slots to promote the staging build or use a small percentage of traffic for canary validation. Routing all traffic directly to staging would make staging the de facto production without a swap, bypassing the warm-up and rollback benefits of the slot swap mechanism, and any misconfigured staging settings would immediately affect production users.

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.