Rolling Back Automatically When Staging Fails Post-Deployment Health Checks
You are designing a release pipeline for a critical application. The pipeline must automatically roll back to the previous version if the deployment to staging fails health checks. Which deployment strategy should you implement?
Quick Answer
A rolling update paired with post-batch health checks and automatic rollback is the only strategy here that's fully hands-off: it updates instances incrementally, validates health after each batch, and reverts to the previous version the moment a check fails — meeting the requirement for automatic rollback on staging health-check failure with no manual trigger.
⚠ Common exam trap
Watch out — candidates often confuse 'canary' or 'blue-green' with automatic rollback, but those strategies typically require manual promotion or swap, whereas rolling update with health checks and automatic rollback is the only option that fully automates the rollback process.
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
✓
Rolling update with health checks and automatic rollback.
A rolling update with health checks and automatic rollback is the only strategy that fully automates the deployment, validates health after each batch of pods is updated, and automatically reverts to the previous version if health checks fail. This meets the requirement for an automated rollback on staging health check failure without manual intervention.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Canary deployment with manual promotion.
Why it's wrong here
Canary requires manual promotion to full rollout.
- ✗
Blue-green deployment with manual swap.
Why it's wrong here
Manual swap does not provide automatic rollback.
- ✗
Recreate deployment by redeploying the same version.
Why it's wrong here
Redeploying the same version does not revert changes.
- ✓
Rolling update with health checks and automatic rollback.
Why this is correct
Health checks trigger automatic rollback on failure.
Go deeper
Related to this question
Learn chapter
Source Control Strategy Design
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
One of 823 original AZ-400 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on AZ-400
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Your Azure DevOps release pipeline deploys to Azure Kubernetes Service (AKS). You need to ensure that the deployment is rolled back automatically if the health checks fail within 5 minutes after deployment. The AKS cluster uses a canary deployment strategy. What should you use?
hard- A.Use an Azure CLI task to run 'kubectl rollout undo' in a post-deployment script.
- B.Use a Helm upgrade task with --wait and --timeout flags.
- ✓ C.Use the Kubernetes manifest task with 'canary' deployment strategy and configure 'stabilityCheck' and 'rollback' settings.
- D.Use the Kubectl task with a 'rollback' subcommand condition.
Why C: The Kubernetes manifest task in Azure DevOps supports a 'canary' deployment strategy with built-in 'stabilityCheck' and 'rollback' settings. This allows you to define a health check window (e.g., 5 minutes) and automatically trigger a rollback if the canary pods fail the stability checks, meeting the requirement without custom scripting.
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.