A company is planning to migrate its applications to Azure and has defined the following architectural requirements:
- A legacy database that cannot be clustered must handle temporary CPU and memory spikes during end-of-month reporting.
- A stateless web application must automatically scale its compute instances in real time to match fluctuating user demand while minimizing costs.
- The web application must remain operational even if a physical power outage affects an entire datacenter facility within the hosting region.
Which configuration strategy correctly addresses these requirements by applying the appropriate cloud concepts?
- AImplement horizontal scaling for the database, configure elasticity through horizontal autoscaling for the web application, and replicate the database across multiple Azure regions to provide high availability.
- BImplement vertical scaling for both the database and the web application, and configure the web application to replicate to a secondary Azure region to protect against the datacenter outage.
- Implement vertical scaling for the database, configure elasticity through horizontal autoscaling for the web application, and deploy the web application across multiple Availability Zones.Answer
- DImplement horizontal scaling for the database, configure vertical scaling for the web application, and rely on resource group replication across multiple Availability Zones to ensure high availability.
Answer
Implement vertical scaling for the database, configure elasticity through horizontal autoscaling for the web application, and deploy the web application across multiple Availability Zones.
The configuration strategy that implements vertical scaling for the database, horizontal autoscaling for the web application, and Availability Zones for the web application is correct. Since the database cannot be clustered, it must be scaled vertically (adding CPU and memory to a single instance) to handle peak workloads. The stateless web application can scale horizontally, and configuring elasticity allows it to automatically add and remove instances based on demand, which optimizes costs. Deploying the web application across multiple Availability Zones within the region provides high availability, protecting against a power outage in a single datacenter facility.
Step-by-Step Solution
Key Concept
Understanding the differences between vertical scaling, horizontal scaling, elasticity, and high availability, and how to apply them to specific application constraints.