Microsoft DevOps Engineer Expert AZ-400 Practice Question
You manage a mission-critical .NET API running on Azure App Service. An Azure Pipelines YAML release deploys a new container image nightly to the production slot. Leadership requires that deployments cause zero client downtime and that, if post-deployment health probes fail, the previous version can be restored instantly without performing another build. Which modification to the pipeline will meet these resiliency requirements?
Add a Helm upgrade step with the --atomic flag to combine upgrade and automatic rollback.
Deploy the image to a staging deployment slot, warm it up, and use the AzureWebApp task to swap the slot with production.
Insert tasks that stop the App Service before deployment and start it again after the container image update.
Enable Run-From-Package and deploy the ZIP package directly to the production slot.
Deploying to a staging deployment slot and then swapping the slot with production provides both required resiliency capabilities. Because the staging slot runs on the same App Service plan, traffic continues to reach the current production instances while the new version is warmed up. The swap operation is atomic at the load-balancer level, so client requests experience no interruptions. If health checks detect a problem, performing another swap immediately returns the original slot to production, avoiding a redeployment. Direct deployments with Run-From-Package or stop-start tasks interrupt traffic and require redeployment to roll back. A Helm upgrade with the --atomic flag applies only to Kubernetes workloads and does not help App Service deployments.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is an Azure App Service deployment slot?
Open an interactive chat with Bash
Why is a staging deployment slot beneficial for zero-downtime deployments?
Open an interactive chat with Bash
How does an AzureWebApp task facilitate slot swapping in Azure Pipelines YAML?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Design and implement build and release pipelines
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .