AZ-400 Practice Question: Design and implement build and release pipelines
Your release pipeline uses Azure Kubernetes Service (AKS) and Helm charts. You need to roll back to a previous release quickly if the new release fails health checks. What is the BEST approach?
⚠ Common exam trap
A common mix-up: candidates confuse Kubernetes-native rollback (`kubectl rollout undo`) with Helm's release-level rollback, forgetting that Helm manages releases as a unit and that using `kubectl` directly breaks Helm's revision history and can leave the release in a broken state.
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 Helm rollback command.
Helm provides a built-in `helm rollback <release> <revision>` command that reverts a release to a previous revision in a single, atomic operation. This is the fastest and most reliable method for rolling back a failed Helm-based deployment on AKS, as it directly restores the exact Kubernetes manifests and configuration from the specified revision 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.
- ✗
Manually redeploy the previous Helm chart version.
Why it's wrong here
Manually redeploying the previous Helm chart version is error-prone because you must locate the exact chart archive and the precise `values.yaml` that was used, then construct a new `helm upgrade` command that recreates the prior state. This approach bypasses Helm's versioned release history and can introduce unintended changes if the chart's defaults or dependent charts have drifted since the original deployment. It also consumes more time and human attention than a single-built-in rollback command, and it does not guarantee that the re-rendered manifests match the previously successful release. In contrast, Helm's rollback operates directly on the stored release revision, restoring the exact manifests and values that were applied at that revision.
- ✗
Use a canary deployment strategy.
Why it's wrong here
A canary deployment strategy is fundamentally a progressive delivery technique for validating a new version by gradually shifting traffic while monitoring metrics; it is not designed as a rollback mechanism. If the canary detects a regression, the standard practice is to halt traffic to the new version, but the existing healthy version remains in place—it does not actively restore the cluster to a prior desired state. In a scenario where the current release is already broken and you need an immediate, clean revert, a canary approach adds unnecessary lead time and does not automatically replace the faulty deployment. Helm rollback, by contrast, performs a direct, atomic restoration of the previous release revision without needing to orchestrate traffic splitting or wait for observation windows.
- ✓
Use Helm rollback command.
Why this is correct
The Helm rollback command is the correct approach because Helm maintains an ordered release history for each release name, with every deployment sequence stored as an immutable revision that includes the rendered manifests, values, and metadata. Executing `helm rollback <RELEASE> <REVISION>` instructs Helm to perform an in-place upgrade using the exact templates and values from that prior revision, thereby reinstating the known-good configuration atomically and quickly. This operation is fully tracked by Helm, incrementing to a new revision, so the release state and history remain internally consistent for subsequent upgrades or further rollbacks. Unlike manual redeployments or kubectl-level actions, Helm rollback does not require reconstructing old charts or reconciling drift—it simply reapplies the previously successful applied state.
- ✗
Use a Kubernetes Deployment rollout undo.
Why it's wrong here
Using `kubectl rollout undo` on a Kubernetes Deployment is tempting because it can quickly revert the Pod template to the previous ReplicaSet, but it bypasses Helm's release tracking entirely. When you modify a Deployment directly with kubectl, Helm is unaware of that change; its release history still records the original (faulty) revision as the latest applied state. On the next `helm upgrade` or `helm rollback`, Helm will compare its stored manifests against the cluster and may attempt to overwrite or confuse the drift, leading to unpredictable behavior or forcing manual reconciliation. Moreover, `kubectl rollout undo` only operates on Deployment resources, whereas Helm manages a chart as a whole—including Services, ConfigMaps, Secrets, and Ingress—so it cannot restore the complete release state that a Helm rollback accomplishes.
Visual reference
Go deeper
Related to this question
Learn chapter
Introduction to DevOps and Azure DevOps
Key term
Anthos
Anthos is a Google Cloud platform that lets you run applications consistently across different computing environments, like on-premises data centers and multiple public clouds.
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.