AZ-400 Practice Question: Design and implement build and release pipelines
Your release pipeline deploys to Azure App Service using slots. You need to ensure that after swapping, the warmup request is sent to the production slot before traffic is fully routed. What should you configure?
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
✓
Enable auto swap for the deployment slot and configure a custom warmup path.
Enabling auto swap with a custom warmup path sends a warmup request to the target slot before the swap completes, ensuring the production slot is warmed up. Option B is incorrect because a health check is used for monitoring instance health, not for warmup before swap. Option C is incorrect because a manual swap does not include automatic warmup; you would need to implement custom logic. Option D is incorrect because slot-specific app settings are sticky and not swapped; they do not enable warmup.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Enable auto swap for the deployment slot and configure a custom warmup path.
Why this is correct
Enabling auto swap with a custom warmup path ensures the Azure App Service performs a request against the staging slot's specified path before the swap completes, loading application caches and verifying readiness so end users never hit uninitialized code during the swap operation.
- ✗
Add a health check to the App Service.
Why it's wrong here
A health check in App Service is a monitoring and instance-remediation feature that removes unhealthy instances from rotation, but it does not send a pre-swap warmup request to the deployment slot; therefore it cannot prepare the app for a seamless swap and does not address cold-start latency.
- ✗
Perform a manual swap and then send a warmup request via a script.
Why it's wrong here
A manual swap executes the swap immediately without any automatic warmup, so the staging slot may be cold and any subsequent scripted warmup request occurs after traffic has already moved, causing users to encounter slow or unresponsive requests before the script runs.
- ✗
Configure slot-specific app settings to enable warmup.
Why it's wrong here
Slot-specific app settings (or connection strings) are sticky to the slot and follow the slot across swaps, but they do not influence warmup behavior; the warmup request is controlled by the swap configuration, not by application settings, so this does not enable or trigger pre-swap warmup.
Go deeper
Related to this question
Learn chapter
Introduction to DevOps and Azure DevOps
Key term
Check
A Check in Azure DevOps is a gating mechanism that evaluates predefined conditions before allowing a pipeline deployment to proceed to a specific environment.
Key term
Pipeline
A pipeline is an automated series of steps that takes code from development to production, ensuring quality and speed.
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 →
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.