AZ-204 Develop Azure compute solutions Practice Question
You are deploying a critical application on Azure App Service. The application must be highly available across two Azure regions. You need to implement a disaster recovery strategy that meets the following requirements: automatic failover with minimal data loss, and the ability to test failover without affecting production. Which THREE actions should you perform?
⚠ Common exam trap
Candidates often confuse deployment slots with actual cross-region failover, but slots are for in-place staging/testing within a single region, not for disaster recovery across regions—however, they are correctly used here to test the failover behavior before making it active.
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 deployment slots to test failover before making it active.
Deployment slots in Azure App Service allow you to create separate environments (e.g., staging) that can be swapped to production. This enables testing failover scenarios (like pointing Traffic Manager to the staging slot) without affecting the live production traffic, meeting the requirement for non-disruptive failover testing.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Use deployment slots to test failover before making it active.
Why this is correct
Deployment slots in Azure App Service provide a robust mechanism for staging new application versions, including configuration changes, in a non-production environment. Before swapping the staged slot into production, you can thoroughly test its functionality and performance, effectively simulating a failover scenario for the new version. This enables validation of the application's behavior in the new deployment without impacting the live user experience, ensuring a smooth transition and reducing downtime risk.
- ✗
Configure the app to use active-passive database replication.
Why it's wrong here
Active-passive database replication is a high availability and disaster recovery strategy applied specifically to data stores, such as Azure SQL Database or PostgreSQL, where a secondary replica remains synchronized but inactive until a failover event. This concept is entirely unrelated to configuring the Azure App Service application itself for failover. App Service instances handle application code execution and scaling, not the underlying database replication mechanisms.
- ✓
Configure Azure Traffic Manager with priority routing to fail over automatically.
Why this is correct
Azure Traffic Manager is a DNS-based traffic load balancer that distributes user traffic to service endpoints in different Azure regions or external locations. With priority routing, you define a primary endpoint and one or more lower-priority secondary endpoints. If the primary endpoint becomes unhealthy or unavailable, Traffic Manager automatically directs traffic to the next available healthy endpoint based on the configured priority, providing seamless application failover without manual intervention.
- ✗
Deploy both instances in the same App Service Plan.
Why it's wrong here
Deploying both application instances within the same Azure App Service Plan means they share the same underlying compute resources and are confined to a single Azure region and availability zone. While this might offer some intra-zone redundancy if the plan has multiple instances, it provides no protection against regional outages or failures affecting the entire availability zone or region. For true high availability and disaster recovery, instances must be deployed across separate, geographically dispersed regions.
- ✓
Deploy the app to two Azure App Service instances in paired regions.
Why this is correct
Deploying an application to two Azure App Service instances in paired regions is a robust strategy for disaster recovery and high availability. Azure paired regions are geographically separate but maintain a direct, low-latency network connection, facilitating efficient data replication and ensuring that at least one region remains operational during a widespread outage. This setup allows for rapid failover to the secondary region, minimizing downtime and data loss for critical applications.
Go deeper
Related to this question
About these practice questions
Courseiva writes every AZ-204 question from scratch — 881 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-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.