🏗️

Domain 2: Architecture and Services

35 to 40% of the exam العربية

Domain 2 of 3, and the largest at 35 to 40 percent. It is broad: architecture, compute, networking, storage, and identity. Focus on "which service would you use when," not just names.

Core architectural components

Regions, region pairs, and availability zones

Management hierarchy (top to bottom)

  1. Management groups: containers to organize multiple subscriptions and apply governance (like policy) across them.
  2. Subscriptions: a billing and access boundary that holds resources. Costs are reported and limits are applied per subscription.
  3. Resource groups: logical containers that hold related resources for an application. A resource lives in exactly one resource group, and deleting the group deletes everything in it.
  4. Resources: the individual services you create, such as a VM, a database, or a storage account.

Azure Resource Manager (ARM) is the deployment and management layer that all requests pass through, whether from the portal, CLI, PowerShell, or templates. It enforces access control and lets you deploy resources together as a group using ARM templates (infrastructure as code).

Compute services

Rule of thumb: VM for full control, App Service for web apps, Containers to package and scale, Functions for small event driven tasks.

What a virtual machine needs

When you create a VM, Azure also creates or attaches the resources it depends on: a size (how much CPU and memory), an operating system disk and optional data disks, a network interface, a virtual network and subnet, an optional public IP address, and a network security group that controls what traffic is allowed in and out.

Choosing where to host an application

Networking services

VPN Gateway goes over the internet and is encrypted, ExpressRoute is a private line that does not. That contrast is a common exam point.

Storage services

Everything lives in a storage account. The main data services are: - Blob storage: massive amounts of unstructured data such as images, video, backups, and logs. - Azure Files: fully managed file shares you can mount like a network drive. - Queue storage: messages between application components. - Table storage: large amounts of structured, non relational (NoSQL) data. - Disk storage: virtual disks attached to VMs.

Storage account types

Most data lives in a general purpose v2 account, which supports blobs, files, queues, and tables. Performance comes in two tiers: Standard (on hard disks, for most workloads) and Premium (on solid state disks, for low latency needs such as busy databases).

Blob access tiers (by how often you read the data)

Tier Use for Cost profile
Hot Frequently accessed data Higher storage cost, lowest access cost
Cool Infrequently accessed, kept 30+ days Lower storage, higher access cost
Cold Rarely accessed, kept 90+ days Even lower storage, higher access cost
Archive Rarely accessed, offline, kept 180+ days Lowest storage, highest access and retrieval time

Redundancy (how many copies, and where)

Moving data into Azure

Identity, access, and security

Role based access control (RBAC)

RBAC grants the least privilege each person needs by assigning roles at a scope (management group, subscription, resource group, or resource). A role plus a person plus a scope makes a role assignment, and access inherits down the hierarchy.

Zero Trust and defense in depth

Domain 2 quick recap

← Back to all sections