hardMultiple ChoiceObjective-mapped
AZ-400 Practice Question: The lead DevOps engineer for a large e-commerce…
You are the lead DevOps engineer for a large e-commerce company. The company has a multi-region Azure Kubernetes Service (AKS) cluster deployment for its microservices. The current CI/CD pipeline uses Azure DevOps to build Docker images and deploy to AKS via Helm charts. Recently, the team noticed that after a deployment to the West Europe region, the application experienced a 5-minute downtime due to a configuration error where the new pods couldn't connect to the database because the connection string was pointing to a staging database instead of production. The issue was detected manually after a customer reported the outage. The team wants to implement a mechanism to automatically detect such misconfigurations before they affect production traffic. They also want to ensure that if a deployment fails health checks, the previous version is automatically rolled back. The pipeline currently runs all stages in sequence: build, deploy to West Europe, then deploy to East US. The team has a small budget for additional resources. Which approach should the team implement?
⚠ Common exam trap
A common mix-up: candidates confuse blue-green or test environment strategies with automated detection and rollback, but these options lack the real-time health monitoring and automatic traffic shifting that canary deployments provide for catching configuration errors in production.
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
✓
Implement a canary deployment strategy with automated health checks and automatic rollback on failure.
A canary deployment strategy with automated health checks and automatic rollback directly addresses the need to detect misconfigurations before they affect all production traffic. By routing a small percentage of traffic to the new pods and monitoring health probes (e.g., liveness and readiness probes in Kubernetes), the pipeline can automatically roll back if the canary fails, preventing the 5-minute downtime scenario. This approach is cost-effective as it leverages existing AKS features without requiring additional infrastructure.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Implement a canary deployment strategy with automated health checks and automatic rollback on failure.
Why this is correct
A canary deployment with automated health checks and automatic rollback is the correct choice because it incrementally routes a small percentage of production traffic to the new release, say 5%, then gradually increases it only if health checks pass. Automated checks monitor key signal like HTTP 5xx error rate, request latency, and custom application health endpoints, and if a threshold is breached, the release pipeline automatically reverts the routing to the previous stable version. This catches misconfigurations and regressions early with a minimal blast radius, preventing full-scale downtime. Unlike blue-green or a staged test deploy, it validates against real production load and configuration while keeping the majority of users on the safe version.
- ✗
Use a blue-green deployment strategy with deployment slots in AKS.
Why it's wrong here
A blue-green deployment with AKS doesn't map cleanly because AKS has no native 'deployment slots' like Azure App Service; you'd manage two full environments yourself. More importantly, blue-green switches all production traffic to the new version at once, so if a health check fails after the switch, you've already exposed 100% of users to the broken configuration. Without additional automation (e.g., a separate watch dog that reverts the service selector), there's no automatic rollback on health check failure, meaning downtime until manual intervention. Canary avoids this by shifting only a small percentage of traffic first, so the bad release is caught before widespread impact.
- ✗
Add a manual approval gate before the deployment to East US, requiring a tester to verify the deployment in West Europe.
Why it's wrong here
Requiring a manual approval gate after a deployment to West Europe does not protect a different region like East US, because configuration issues are often region-specific (e.g., Azure SQL firewall rules, regional key vaults, or CDN endpoints). A single tester manually verifying a deployment in West Europe is slow and can miss automated checks like load testing, error-rate spikes, or subtle logic errors that only manifest under real traffic. Moreover, this gate happens before the East US deployment, so it can't react to health issues that appear after traffic is shifted; there's no automatic rollback mechanism. Automated canary health checks provide continuous, objective validation on the actual East US environment and trigger rollback without human delay or regional blind spots.
- ✗
Deploy to a separate test environment first, run integration tests, then deploy to production.
Why it's wrong here
A separate test environment often suffers from configuration drift, especially connection strings, feature flags, and environment-specific variables, which is exactly the type of misconfiguration that caused past incidents. Integration tests passing in test give false confidence because the production environment may have different secrets, network policies, or cluster-scoped settings. Even if tests pass, this approach doesn't add any post-deployment safety net; after deploying to production, there is no automated health check or rollback if the app fails with the actual production configuration. The canary strategy directly tests the real production environment with a subset of live traffic, so config mismatches are caught under authentic conditions.
Go deeper
Related to this question
Learn chapter
Introduction to DevOps and Azure DevOps
Key term
Pipeline
A pipeline is an automated series of steps that takes code from development to production, ensuring quality and speed.
Key term
DevOps
DevOps is a set of practices that combines software development (Dev) and IT operations (Ops) to shorten the development lifecycle and deliver high-quality software continuously.
About these practice questions
Courseiva writes every AZ-400 question from scratch — 823 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.