All exams← All Microsoft Certified: Azure Solutions Architect Expert notes

Design Compute Solutions: Microsoft Certified: Azure Solutions Architect Expert revision notes

Revision notes

## Design Compute Solutions in Azure

Designing compute solutions in Azure involves selecting the right service based on workload requirements for control, scalability, cost, and management overhead. Azure offers a spectrum from Infrastructure as a Service (IaaS) to Platform as a Service (PaaS) and Function as a Service (FaaS).

## Virtual Machines (IaaS)

Azure Virtual Machines (VMs) provide maximum control over the operating system and software stack. They are ideal for lift-and-shift migrations, custom software, or when specific OS configurations are required.

  • Availability Sets provide fault domain and update domain isolation within a datacenter.
  • Availability Zones offer higher resilience by distributing VMs across physically separate datacenters.
  • Virtual Machine Scale Sets (VMSS) allow automatic scaling and management of identical VMs.
  • Consider Reserved Instances for cost savings on predictable, long-term workloads, and Spot VMs for fault-tolerant, interruptible workloads at a significant discount.

## Azure App Service (PaaS)

Azure App Service is a fully managed PaaS for hosting web applications, REST APIs, and mobile backends. It supports various languages and frameworks.

  • Offers features like deployment slots for staging, A/B testing, and rollback.
  • Provides built-in auto-scaling, load balancing, and high availability.
  • Ideal for modern web applications that need quick deployment and minimal infrastructure management.

## Container Solutions

  • Azure Container Instances (ACI): A serverless solution for running single containers quickly without managing underlying infrastructure. Best for simple, isolated container workloads, burst scenarios, or task automation.
  • Azure Kubernetes Service (AKS): A managed Kubernetes service for orchestrating containerized applications. Ideal for complex microservices architectures, high-scale deployments, and workloads requiring fine-grained control over container orchestration.
  • Azure Container Apps: A serverless platform for microservices and containerized applications, simpler than AKS. It supports event-driven scaling (KEDA) and Dapr for building resilient microservices. Great for modern apps that need serverless benefits without the full complexity of AKS.

## Serverless Compute

  • Azure Functions (FaaS): An event-driven serverless compute service. Functions execute code in response to events (e.g., HTTP requests, timer, database changes) and scale automatically.
  • The Consumption plan is highly cost-effective, billing only for execution time and memory.
  • Premium plan offers pre-warmed instances and VNET integration.
  • Ideal for intermittent, event-driven workloads, APIs, and data processing.

## Specialized Compute

  • Azure VMware Solution (AVS): Enables running native VMware vSphere environments in Azure, facilitating hybrid cloud strategies and large-scale VMware workload migrations with minimal refactoring.
  • Azure Batch: A managed service for running large-scale parallel and high-performance computing (HPC) applications efficiently.

Decision Factors: Consider cost, management overhead, scalability requirements, statefulness, security needs, and existing developer skills when choosing a compute service.

Key facts

Flashcards

What is the primary benefit of using Azure Virtual Machines (VMs)?
Maximum control over the operating system and software stack (IaaS).
tap to reveal
When should you consider Azure App Service for a web application?
When you need a fully managed PaaS solution for web apps, APIs, or mobile backends with built-in scaling and deployment features.
tap to reveal
What is Azure Kubernetes Service (AKS) best suited for?
Orchestrating complex microservices architectures and highly scalable containerized applications.
tap to reveal
Describe the main use case for Azure Functions.
Running event-driven, serverless code for intermittent workloads, APIs, or data processing, billed on consumption.
tap to reveal
How does Azure Container Apps differ from AKS and ACI?
It's a serverless platform for microservices (simpler than AKS) supporting Dapr and KEDA, offering more features than ACI for single containers.
tap to reveal
What is the advantage of using Azure Container Instances (ACI)?
Quickly deploying single containers in a serverless environment without managing underlying infrastructure or orchestration.
tap to reveal
What is the purpose of Azure VMware Solution (AVS)?
To enable lift-and-shift migration and running of native VMware vSphere environments directly in Azure.
tap to reveal
Which Azure compute service would you recommend for a fault-tolerant, interruptible workload to minimize cost?
Azure Spot Virtual Machines.
tap to reveal
Practice questions

Design Compute Solutions: 5 practice questions

Q1. You are designing a solution that requires running multiple, stateful microservices with complex networking and service discovery. The solution must provide full control over the container orchestration plane and integrate with Azure Policy for governance. Which compute service should you recommend?
  • A.  Azure Container Instances (ACI)
  • B.  Azure Container Apps (ACA)
  • C.  Azure App Service with Docker
  • D.  Azure Kubernetes Service (AKS)
Show answer & explanation
✓ Answer: D. Azure Kubernetes Service (AKS)
AKS provides a fully managed Kubernetes service, offering maximum control over orchestration, networking (via CNI), and deep integration with tools like Azure Policy, which is ideal for complex, stateful microservices.
Q2. A company needs to deploy a web application that requires high availability across different physical locations within an Azure region to protect against a datacenter-level failure. The underlying virtual machines must be updated without downtime. Which configuration should you recommend?
  • A.  A single VM with Premium SSD and a backup policy.
  • B.  Multiple VMs in an Availability Zone.
  • C.  A Virtual Machine Scale Set configured for a single placement group.
  • D.  Multiple VMs in an Availability Set with multiple update domains.
Show answer & explanation
✓ Answer: B. Multiple VMs in an Availability Zone.
Availability Zones are physically separate locations within an Azure region, providing the highest level of protection against datacenter failures. Availability Sets only protect against rack-level failures within a single datacenter.
Q3. You are architecting a solution for processing uploaded images. The processing should start immediately upon an image being added to a Blob Storage container. The workload is sporadic and unpredictable. You need the most cost-effective solution that minimizes idle resource costs. Which compute option is the best fit?
  • A.  An Azure App Service plan set to the Basic tier.
  • B.  An Azure Kubernetes Service (AKS) cluster with the Horizontal Pod Autoscaler.
  • C.  An Azure Virtual Machine with a custom script.
  • D.  Azure Functions with a Consumption plan and a Blob trigger.
Show answer & explanation
✓ Answer: D. Azure Functions with a Consumption plan and a Blob trigger.
Azure Functions on a Consumption plan is ideal for event-driven, sporadic workloads. You only pay for execution time, and it scales automatically, making it the most cost-effective choice for this scenario.
Q4. A financial services company wants to migrate a legacy web application to Azure. A key requirement is that the application must be hosted in a fully isolated, single-tenant network environment with dedicated resources for maximum security and performance. Which Azure App Service offering meets this requirement?
  • A.  App Service Plan - Standard Tier
  • B.  App Service Plan - Premium v3 Tier
  • C.  App Service with VNet Integration
  • D.  App Service Environment (ASE) v3
Show answer & explanation
✓ Answer: D. App Service Environment (ASE) v3
An App Service Environment (ASE) provides a fully isolated and dedicated environment for securely running App Service apps at high scale. It is deployed into a customer's virtual network, meeting the single-tenant and network isolation requirements.
Q5. You need to deploy a containerized application to Azure Kubernetes Service (AKS). Each pod must get a dedicated IP address from the virtual network (VNet) to allow direct communication with other Azure services in the VNet without NAT. Which network model should you configure for the AKS cluster?
  • A.  Kubenet
  • B.  Flannel
  • C.  Calico
  • D.  Azure CNI
Show answer & explanation
✓ Answer: D. Azure CNI
Azure CNI (Container Networking Interface) assigns each pod an IP address directly from the VNet's subnet. This allows pods to be directly addressable and interact with other VNet resources like VMs or PaaS services with private endpoints.
Test yourself
See the Microsoft Certified: Azure Solutions Architect Expert page

More Microsoft Certified: Azure Solutions Architect Expert topics