Courseiva
Develop Azure compute solutionseasyMultiple ChoiceObjective-mapped

AZ-204 Develop Azure compute solutions Practice Question

A company deploys a web application to Azure App Service. They want to deploy a new version of the app with zero downtime and the ability to quickly roll back if needed. Which deployment feature should they use?

⚠ Common exam trap

Many candidates confuse Traffic Manager (a global load balancer) with deployment slots, thinking DNS-level routing provides the same zero-downtime swap within a single App Service, but Traffic Manager cannot swap application versions or configurations within the same app.

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

Deployment slots

Deployment slots are separate, live environments within Azure App Service that allow you to stage a new version of your app, perform validation, and then swap it into production with zero downtime. The swap operation ensures all traffic is redirected instantly, and if issues arise, you can immediately swap back to the previous slot for a quick rollback.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Auto-scaling

    Why it's wrong here

    Auto-scaling dynamically adjusts the number of Azure App Service instances (scale-out/scale-in) based on predefined metrics like CPU usage or HTTP queue length to maintain performance and cost efficiency. While crucial for handling variable load, it operates at the infrastructure level, managing instance count, and has no inherent functionality for deploying new application versions or reverting to previous ones. It's about capacity, not code lifecycle.

  • Deployment slots

    Why this is correct

    Deployment slots in Azure App Service provide distinct environments for different versions of your application, such as staging and production. They allow you to deploy a new version to a non-production slot, warm it up, and then instantly swap it with the production slot, effectively achieving zero-downtime deployments. If issues arise post-swap, an immediate rollback to the previous production version is possible by swapping back, making them ideal for safe, continuous delivery.

  • Traffic Manager

    Why it's wrong here

    Azure Traffic Manager is a DNS-based traffic load balancer that distributes incoming web traffic across multiple endpoints, typically different Azure regions or external services, based on various routing methods like performance, priority, or geographic location. Its purpose is to enhance application availability and responsiveness by directing users to the optimal endpoint, but it does not facilitate the deployment of new application code or manage version rollbacks within a single App Service instance.

  • Application Insights

    Why it's wrong here

    Application Insights, a feature of Azure Monitor, provides comprehensive Application Performance Management (APM) for live web applications. It collects telemetry data such as request rates, response times, failures, and user behavior, enabling developers to diagnose performance issues and understand usage patterns. While critical for observing the impact of deployments, it is purely a monitoring and diagnostic tool and offers no direct capabilities for deploying new application versions or initiating rollbacks.

About these practice questions

This AZ-204 question is part of Courseiva's 881-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 →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-204 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-204 exam.