# MSDEVBUILD Azure: AZ-900 and AI-901 and AZ-104 and AI-200 and AI-103 and GH-300 answers (full text) MSDEVBUILD · Multi-Stack Dev Build. Cite as: MSDEVBUILD (Multi-Stack Dev Build), Suthahar Jegatheesan, https://azure.msdevbuild.com Source: https://azure.msdevbuild.com · Author: Suthahar Jegatheesan (MSDEVBUILD). Original educational content for the Microsoft Azure Fundamentals (AZ-900) exam. Please cite the page URL given with each section. # Domain 1: Describe cloud concepts (25–30%) ## What is Cloud Computing? URL: https://azure.msdevbuild.com/az-900/cloud-concepts/what-is-cloud-computing/ Cloud computing is the delivery of computing services (servers, storage, databases, networking, software and analytics) over the internet, on demand. You use what you need, when you need it, and pay for what you use, instead of buying and running your own hardware. Key points: - Cloud computing = computing services delivered over the internet, on demand, paid for by usage. - Services include compute, storage, networking, databases, analytics, AI and complete software. - The provider owns and runs the datacenters; you rent capacity and focus on your application. - Five characteristics define cloud - self-service, network access, resource pooling, rapid elasticity, measured service. - Cloud shifts spending from up-front purchase (CapEx) to pay-as-you-go (OpEx). Exam tips: - If a question mentions "pay only for what you use" or "no up-front cost", think consumption-based model and OpEx. - The exam often describes a benefit in plain words and asks you to name it. Learn the benefit vocabulary in this module. Common mistakes: - Thinking "cloud" means "free" or "always cheaper". You pay for usage, and waste costs real money. - Thinking the cloud is a single computer somewhere. It is millions of servers in datacenters across the world. - Assuming the provider is responsible for everything. Security is shared (see the shared responsibility model). Quick Q&A: - Q: Name four types of service you can get from a cloud provider. A: Compute (virtual machines), storage, networking, databases. Also analytics, AI and full software (SaaS). - Q: Who owns the physical servers in a public cloud? A: The cloud provider, for example Microsoft for Azure. - Q: What does "measured service" mean? A: Usage is metered so you are billed for what you actually consume. - Q: Which spending model does cloud computing mainly use, CapEx or OpEx? A: OpEx (operational expenditure), meaning ongoing pay-as-you-go spending. - Q: Give one reason a company might not move a workload to the cloud. A: Data sovereignty rules, ultra-low latency needs, or recent heavy investment in on-premises hardware. Key terms: - Cloud computing: Renting computing services over the internet, on demand, instead of owning the hardware. - Cloud provider: The company that owns the datacenters and rents out the services, for example Microsoft (Azure). - On-demand self-service: You can create resources yourself in minutes through a portal or API, without raising a purchase order. - Resource pooling: The provider shares huge pools of hardware between many customers, keeping each customer isolated. - Measured service: Usage is metered (per second, per GB, per request) so you are billed for what you actually consume. ## What is Microsoft Azure? URL: https://azure.msdevbuild.com/az-900/cloud-concepts/what-is-microsoft-azure/ Microsoft Azure is Microsoft's public cloud platform: a constantly growing set of more than 200 cloud services, including virtual machines, databases, storage, networking, AI and developer tools. Microsoft runs them from datacenters in regions around the world, and you use them on demand and pay for what you consume. Key points: - Azure is Microsoft's public cloud platform with more than 200 services. - Services cover compute, storage, networking, databases, AI, security, DevOps and management. - Azure runs in many regions worldwide, so you can deploy close to your users. - You manage Azure with the portal, Azure CLI, Azure PowerShell, SDKs or infrastructure as code. - You pay for what you use, with discounts for commitments (covered in Cloud Pricing Models). Exam tips: - Questions about "which tool to manage Azure from a browser" point to the Azure portal. Scripting points to CLI or PowerShell. - Remember the hierarchy words for Module 2. Resources live in resource groups, which live in subscriptions. Common mistakes: - Confusing Azure (a cloud platform) with Microsoft 365 (a SaaS productivity suite that runs on Microsoft's cloud). - Thinking Azure only runs Windows. A large share of Azure VMs run Linux. Quick Q&A: - Q: What type of cloud is Microsoft Azure - public, private or hybrid? A: A public cloud, although it also supports hybrid scenarios. - Q: Name three categories of Azure service. A: For example compute, storage, networking (also databases, AI, security, management). - Q: What is the browser-based console for Azure called? A: The Azure portal. - Q: Can Azure run Linux virtual machines? A: Yes. Azure supports many Linux distributions as well as Windows. - Q: Why does Azure have regions all over the world? A: So you can run services close to users for low latency, meet data residency needs and design for resilience. Key terms: - Microsoft Azure: Microsoft's public cloud platform offering compute, storage, networking, databases, AI, security and management services. - Azure region: A geographic area containing one or more Azure datacenters, for example West Europe or Southeast Asia. - Azure account: The identity you sign in with to use Azure. Resources are created inside subscriptions linked to it. - Azure portal: The browser-based console at portal.azure.com for creating and managing Azure resources. ## Why Companies Use the Cloud URL: https://azure.msdevbuild.com/az-900/cloud-concepts/why-companies-use-cloud/ Companies use the cloud to move faster, spend smarter and scale without limits. They avoid big up-front hardware purchases, get capacity in minutes, scale up and down with demand, reach users worldwide, and inherit the provider's investment in reliability and security, so their own teams can focus on the product. Key points: - Speed and agility: resources in minutes, faster time to market. - Cost: no up-front CapEx, pay for consumption, economies of scale. - Scale: grow or shrink with demand, globally. - Reliability and security: inherit the provider's redundancy and security investment. - Focus: stop doing undifferentiated heavy lifting and build what customers value. Exam tips: - The exam names benefits precisely. Learn the difference between scalability, elasticity, availability and reliability in the following lessons. - "No need to buy hardware up front" usually maps to OpEx / consumption-based model. Common mistakes: - Saying cloud is always cheaper. It is cheaper when managed well and used appropriately. - Forgetting that the customer still has security responsibilities in the cloud. Quick Q&A: - Q: What does "time to market" mean? A: How long it takes to get a product or feature to customers. - Q: Why can large cloud providers offer low prices? A: Economies of scale, because they buy hardware, power and bandwidth in huge volumes. - Q: Name one risk of moving to the cloud. A: Uncontrolled costs, provider dependency, or new skills required. - Q: What is undifferentiated heavy lifting? A: Necessary infrastructure work, like patching hardware, that does not make your product better. - Q: Which benefit lets you reach users in other countries quickly? A: Global reach, by deploying to cloud regions near those users. Key terms: - Agility: The ability to try, launch and change things quickly because resources are available in minutes. - Time to market: How long it takes to get a new product or feature in front of customers. - Economies of scale: Large providers buy hardware and power so cheaply that they can offer lower unit costs than one company could achieve. - Undifferentiated heavy lifting: Work that is necessary but does not make your product special, such as racking servers or patching hardware. ## On-premises vs Cloud URL: https://azure.msdevbuild.com/az-900/cloud-concepts/on-premises-vs-cloud/ On-premises means you buy, house and run your own servers in your own building or leased datacenter, so you control everything and are responsible for everything. In the cloud you rent computing resources from a provider over the internet. The provider runs the hardware, you pay for what you use, and capacity changes in minutes. Key points: - On-premises = you own the hardware, the building concerns and all of the maintenance. - Cloud = you rent capacity; the provider runs the physical infrastructure. - On-prem is CapEx-heavy with fixed capacity; cloud is OpEx with on-demand capacity. - On-prem gives maximum physical control; cloud gives speed, scale and global reach. - Many organisations run a mix of both (hybrid). Exam tips: - If a scenario stresses "complete control over physical hardware", the answer is usually on-premises or private cloud. - If it stresses "no up-front cost" or "scale quickly", the answer is usually cloud. Common mistakes: - Comparing only server purchase price with a monthly cloud bill. Compare total cost of ownership. - Assuming on-premises is automatically more secure. Security depends on how well it is run. Quick Q&A: - Q: Who maintains the physical servers on-premises? A: The organisation itself. - Q: What is a hardware refresh? A: Replacing ageing servers every few years, a recurring capital cost on-premises. - Q: Which model gives more physical control? A: On-premises. - Q: What does "lift and shift" mean? A: Moving an application to the cloud with minimal changes, usually onto VMs. - Q: Which spending type dominates on-premises - CapEx or OpEx? A: CapEx (capital expenditure). Key terms: - On-premises (on-prem): IT infrastructure owned and operated by the organisation itself, in its own building or a leased facility. - Datacenter: A building that houses servers, storage and networking with power, cooling and physical security. - Hardware refresh: Replacing ageing servers, typically every 3–5 years, which is a major recurring capital cost on-premises. - Lift and shift: Moving an application to the cloud with as few changes as possible, usually onto virtual machines. ## Public Cloud URL: https://azure.msdevbuild.com/az-900/cloud-concepts/public-cloud/ A public cloud is cloud infrastructure owned and operated by a third-party provider, such as Microsoft Azure, and offered to anyone over the internet. Many customers share the provider's hardware but are isolated from each other. There's no hardware to buy, you scale on demand, and you pay for what you use. Key points: - Public cloud = provider-owned infrastructure available to anyone over the internet. - Multi-tenant. Customers share hardware but are logically isolated. - No CapEx, pay-as-you-go, rapid scaling, global reach. - Less control over physical infrastructure; security is shared. - Azure, AWS and Google Cloud are public clouds. Exam tips: - "No capital expenditure" + "no hardware to maintain" + "available to anyone" = public cloud. - Know a typical use case for each model. Public cloud suits new apps, variable demand and start-ups. Common mistakes: - Thinking "public" means data is publicly visible. - Believing the public cloud has no options for dedicated or isolated hardware. Quick Q&A: - Q: Who owns the infrastructure in a public cloud? A: The cloud provider. - Q: What is multi-tenancy? A: Many customers sharing the same infrastructure while being isolated from each other. - Q: Does public cloud require up-front hardware purchases? A: No. - Q: Name one disadvantage of public cloud. A: Less physical control and possible difficulty meeting some very specific compliance requirements. - Q: Give an example of a public cloud provider. A: Microsoft Azure (also AWS, Google Cloud). Key terms: - Public cloud: Cloud services owned and run by a provider and available to any organisation or person over the internet. - Multi-tenancy: Many customers (tenants) share the same physical infrastructure while remaining logically isolated. - Tenant: A customer's isolated slice of a shared service, such as their own Microsoft Entra directory. - Dedicated host: An option to run your VMs on a physical server not shared with other customers, still inside the public cloud. ## Private Cloud URL: https://azure.msdevbuild.com/az-900/cloud-concepts/private-cloud/ A private cloud is cloud computing infrastructure used exclusively by one organisation. It offers cloud-style self-service, automation and scaling, but on dedicated hardware, usually in the organisation's own datacenter or hosted for it by a third party. You get maximum control and pay the full cost of owning and running it. Key points: - Private cloud = cloud capabilities on infrastructure dedicated to one organisation. - Can be on-premises or hosted by a third party, but always single-tenant. - Maximum control, privacy and customisation. - Requires CapEx, in-house skills and maintenance; capacity is limited. - Not every server room is a private cloud. Self-service and automation make the difference. Exam tips: - "Single organisation", "complete control", "dedicated hardware" all point to private cloud. - The organisation is responsible for hardware maintenance in a private cloud. Common mistakes: - Assuming private cloud must be in your own building. A third party can host it. - Assuming private cloud scales like public cloud. It is limited by the hardware bought. Quick Q&A: - Q: How many organisations use a private cloud's infrastructure? A: One. - Q: Can a private cloud be hosted by a third party? A: Yes, as long as the infrastructure is dedicated to that one organisation. - Q: Who maintains the hardware in a private cloud? A: The organisation (or the hosting provider it pays), not shared with other customers. - Q: What is the main advantage of a private cloud? A: Maximum control over infrastructure, security and location. - Q: What is the main disadvantage? A: High cost (CapEx and operations) and limited scalability. Key terms: - Private cloud: Cloud infrastructure dedicated to a single organisation, on-premises or hosted by a third party. - Single-tenant: Infrastructure serving only one customer, the opposite of multi-tenant. - Self-service portal: A catalogue where internal teams request resources themselves, the "cloud-like" part of a private cloud. - Azure Local: Microsoft's solution (formerly Azure Stack HCI) for running virtualised workloads on validated hardware in your own location, managed through Azure. ## Hybrid and Multi-cloud URL: https://azure.msdevbuild.com/az-900/cloud-concepts/hybrid-cloud/ A hybrid cloud combines a public cloud with a private cloud or on-premises infrastructure and lets data and applications move between them, so each workload runs where it fits best. Multi-cloud means using two or more public cloud providers, for example Azure and AWS. Azure Arc lets you manage resources across all of these from Azure. Key points: - Hybrid = public cloud + private cloud/on-premises, connected and working together. - Multi-cloud = more than one public cloud provider. - Hybrid gives flexibility. Keep what must stay; move what benefits from cloud. - Connectivity options are VPN Gateway (over the internet, encrypted) and ExpressRoute (private, dedicated). - Azure Arc manages servers, Kubernetes and data services anywhere from Azure. Exam tips: - "Keep some data on-premises for compliance while using the cloud for the rest" = hybrid cloud. - "Manage on-premises and other-cloud servers from Azure" = Azure Arc. - Use cases. Public for new and variable workloads, private for strict control, hybrid when you need both. Common mistakes: - Treating hybrid and multi-cloud as the same thing. - Forgetting that hybrid adds complexity and needs unified identity, security and monitoring. Quick Q&A: - Q: What two environments does a hybrid cloud combine? A: Public cloud and private cloud/on-premises infrastructure. - Q: What does multi-cloud mean? A: Using services from more than one public cloud provider. - Q: What is cloud bursting? A: Running on-premises normally and sending extra peak demand to the public cloud. - Q: Which Azure service manages servers running outside Azure as if they were Azure resources? A: Azure Arc. - Q: Which Azure service provides a private, dedicated connection that does not use the public internet? A: Azure ExpressRoute. Key terms: - Hybrid cloud: A combination of public cloud with private cloud or on-premises infrastructure, connected so workloads and data can interact. - Multi-cloud: Using services from two or more public cloud providers. - Cloud bursting: Running normally on-premises and "bursting" extra demand into the public cloud during peaks. - Azure Arc: Extends Azure management, governance and security to servers, Kubernetes and data services running anywhere. - ExpressRoute: A private, dedicated connection between your network and Azure that does not travel over the public internet. ## IaaS – Infrastructure as a Service URL: https://azure.msdevbuild.com/az-900/cloud-concepts/iaas/ Infrastructure as a Service (IaaS) is the cloud service type where the provider gives you raw infrastructure (virtual machines, storage and networking) and you manage everything from the operating system upwards. It offers the most control and flexibility of the cloud service types, and the most management responsibility. Azure Virtual Machines are the classic example. Key points: - IaaS = provider manages physical hardware, network, datacenter and virtualisation; you manage OS and above. - Most control and flexibility, most management responsibility of the three service types. - Azure examples include Virtual Machines, VM Scale Sets, Managed Disks and Virtual Networks. - Typical use cases are lift-and-shift migration, test/dev, custom software, and HPC. - You pay for VMs while they are running (allocated). Deallocated VMs stop compute charges. Exam tips: - "Full control over the operating system" = IaaS. - "Migrate with minimal changes" or "lift and shift" = IaaS. Common mistakes: - Thinking Microsoft patches the OS on your IaaS VMs. That is your job, though Azure offers tools to automate it. - Choosing IaaS by default when a PaaS service would remove most of the work. Quick Q&A: - Q: What does IaaS stand for? A: Infrastructure as a Service. - Q: Who installs operating system updates on an Azure VM? A: The customer (you), optionally using Azure automation tools. - Q: Which Azure service is the classic IaaS example? A: Azure Virtual Machines. - Q: Which service type offers the most control? A: IaaS. - Q: What is "lift and shift"? A: Moving an application to cloud VMs with minimal changes. Key terms: - IaaS: Infrastructure as a Service. Rent VMs, storage and networks; you manage the OS, runtime, apps and data. - Virtual machine (VM): A software-based computer running on a physical host, with its own OS, CPU, memory and disks. - Hypervisor: Software that runs multiple isolated VMs on one physical server. - Lift and shift (rehost): Moving an existing application to cloud VMs with minimal changes. ## PaaS – Platform as a Service URL: https://azure.msdevbuild.com/az-900/cloud-concepts/paas/ Platform as a Service (PaaS) is the cloud service type where the provider manages the infrastructure and the platform (operating system, runtime, middleware, patching, often scaling and backups), and you bring your application and data. Developers focus on code, not servers. Azure App Service and Azure SQL Database are typical examples. Key points: - PaaS = provider manages infrastructure and OS, runtime, middleware; you manage apps and data. - Built-in features usually include scaling, high availability, patching and backups. - Azure examples are App Service, Azure SQL Database, Azure Cosmos DB, Azure Functions and Azure Container Apps. - Ideal for developers who want to focus on code. - Trade-off is less control over the environment than IaaS. Exam tips: - "Developers focus on code, not managing servers or OS" = PaaS. - "Managed database with automatic patching and backups" = PaaS (for example Azure SQL Database). Common mistakes: - Thinking PaaS means zero responsibility. You still own your code, data, identities and access settings. - Assuming any software can run on PaaS. You cannot install arbitrary OS-level components. Quick Q&A: - Q: What does PaaS stand for? A: Platform as a Service. - Q: Who patches the operating system in PaaS? A: The cloud provider. - Q: Name two Azure PaaS services. A: Azure App Service and Azure SQL Database (also Cosmos DB, Functions, Container Apps). - Q: What is the main trade-off of PaaS compared with IaaS? A: Less control over the underlying OS and environment. - Q: Who is responsible for the application code in PaaS? A: The customer. Key terms: - PaaS: Platform as a Service. The provider runs the OS, runtime and middleware; you deploy apps and manage data and access. - Runtime: The environment your code needs to run, such as .NET, Node.js, Java or Python. - Middleware: Software between the OS and your app, such as web servers or database engines. - Managed service: A service where the provider handles operations like patching, backups and high availability for you. ## SaaS – Software as a Service URL: https://azure.msdevbuild.com/az-900/cloud-concepts/saas/ Software as a Service (SaaS) is the cloud service type where you use a complete, ready-made application over the internet, usually by subscription. The provider runs everything: infrastructure, platform, application, updates. You just sign in and use it, and you remain responsible for your data, users, devices and access settings. Microsoft 365, Outlook.com and Dynamics 365 are examples. Key points: - SaaS = complete application delivered over the internet; provider manages almost everything. - Least control and least management effort of the three service types. - Usually subscription-based, per user or per month. - You still own your data, accounts, identities and devices. - Microsoft examples include Microsoft 365, Dynamics 365 and Outlook.com. Exam tips: - "Users only need to sign in and use the software" = SaaS. - "Email, office apps, CRM delivered over the internet" = SaaS. Common mistakes: - Thinking the customer has no security responsibility in SaaS. - Calling Azure itself SaaS. Azure is a platform offering IaaS, PaaS and serverless services. Quick Q&A: - Q: What does SaaS stand for? A: Software as a Service. - Q: Give a Microsoft SaaS example. A: Microsoft 365 (also Dynamics 365, Outlook.com). - Q: Which service type has the least customer management effort? A: SaaS. - Q: In SaaS, who is responsible for user accounts and data? A: The customer. - Q: What is a typical SaaS pricing model? A: Subscription, often per user per month. Key terms: - SaaS: Software as a Service. A finished application delivered over the internet, fully run by the provider. - Subscription licensing: Paying per user or per month for software instead of buying perpetual licences. - Configuration vs customisation: SaaS lets you configure settings and workflows, but you cannot change the vendor's underlying code. ## Choosing IaaS, PaaS or SaaS URL: https://azure.msdevbuild.com/az-900/cloud-concepts/choosing-iaas-paas-saas/ Choose IaaS when you need full control of the operating system or must migrate existing servers unchanged. Choose PaaS when you're building or running your own application and want the provider to manage the platform. Choose SaaS when a ready-made application already does the job. Moving from IaaS to SaaS, control decreases and so does your management effort. Key points: - Control and responsibility are highest in IaaS, then PaaS, then SaaS (lowest). - IaaS suits OS control, lift-and-shift, custom software, test/dev and HPC. - PaaS suits building apps and APIs, managed databases and development speed. - SaaS suits standard business needs such as email, CRM and collaboration. - Real solutions mix all three. Exam tips: - Look for the keyword in the scenario. "Control of OS" means IaaS, "focus on code" means PaaS, "just use the app" means SaaS. - Azure Functions is PaaS and serverless; Azure VMs are IaaS; Microsoft 365 is SaaS. Common mistakes: - Picking one service type for a whole company. Decide per workload. - Defaulting to VMs out of habit when PaaS would remove most operational work. Quick Q&A: - Q: Which service type gives the most control? A: IaaS. - Q: Which service type suits building a custom web app without managing servers? A: PaaS. - Q: Which service type is Microsoft 365? A: SaaS. - Q: Which service type fits a lift-and-shift migration? A: IaaS. - Q: Can one organisation use IaaS, PaaS and SaaS at the same time? A: Yes. Most organisations do. Key terms: - Control vs convenience: The core trade-off. IaaS gives the most control, SaaS the most convenience. - Rehost / refactor / replace: Migration strategies that roughly map to IaaS (rehost), PaaS (refactor) and SaaS (replace). ## Shared Responsibility Model URL: https://azure.msdevbuild.com/az-900/cloud-concepts/shared-responsibility-model/ The shared responsibility model defines which security and management tasks belong to the cloud provider and which belong to the customer. Microsoft is always responsible for the physical datacenter, hosts and network. The customer is always responsible for its data, devices, and accounts and identities. Everything in between shifts depending on whether you use IaaS, PaaS or SaaS. Key points: - Always Microsoft: physical datacenter, physical network, physical hosts. - Always customer: information and data, devices, accounts and identities. - Varies: identity infrastructure, applications, network controls, operating system. - The more managed the service (IaaS → PaaS → SaaS), the more Microsoft takes on. - Most breaches come from customer-side misconfiguration or weak identity. Exam tips: - If an answer option says the customer is responsible for physical security in the public cloud, it is wrong. - If an option says the provider is responsible for your data or user accounts, it is wrong in every model. Common mistakes: - Believing SaaS moves all responsibility to the provider. - Forgetting the OS is the customer's job in IaaS. Quick Q&A: - Q: Who is responsible for physical datacenter security in Azure? A: Microsoft. - Q: Name the three things that are always the customer's responsibility. A: Information and data, devices, and accounts and identities. - Q: Who manages the operating system in PaaS? A: Microsoft (the provider). - Q: Who manages the operating system in IaaS? A: The customer. - Q: In which model does the customer have the most responsibility? A: On-premises (in the cloud, IaaS). Key terms: - Shared responsibility model: The division of security and operational duties between the cloud provider and the customer. - Security OF the cloud: The provider's job, which covers physical facilities, hardware, the hypervisor and the provider's own services. - Security IN the cloud: The customer's job, which covers data, identities, access, configuration and (in IaaS) the OS and apps. - Always customer-owned: Information and data, devices (mobile and PCs), and accounts and identities, in every model. ## Serverless Computing URL: https://azure.msdevbuild.com/az-900/cloud-concepts/serverless/ Serverless computing lets you run code or workflows without provisioning or managing servers. The provider allocates resources automatically when an event occurs, scales from zero to many instances, and typically bills only for the time your code actually runs. Servers still exist, you just never see or manage them. Azure Functions and Azure Logic Apps are examples. Key points: - Serverless = no server management; provider handles provisioning, scaling and maintenance. - Event-driven. Code runs when triggered (HTTP, timer, queue, file upload). - Scales automatically, including to zero. - Pay for execution (on consumption-style plans), not for idle servers. - Azure examples are Azure Functions (code) and Azure Logic Apps (low-code workflows). Exam tips: - "Run code in response to events without managing infrastructure" = Azure Functions / serverless. - "Automate a workflow with connectors and little or no code" = Azure Logic Apps. Common mistakes: - Thinking serverless means there are no servers. - Assuming serverless is always cheapest. Constant heavy load can cost more than an always-on service. Quick Q&A: - Q: Are there servers in serverless computing? A: Yes, but the provider manages them and you never see them. - Q: What starts a serverless function? A: A trigger, which is an event such as an HTTP request, a timer, a queue message or a file upload. - Q: Name the Azure service for running event-driven code without servers. A: Azure Functions. - Q: What is a cold start? A: The extra delay when an idle function must start a new instance. - Q: How are you usually billed in a serverless consumption plan? A: For executions and the resources used while code runs, not for idle time. Key terms: - Serverless: A model where the provider manages all infrastructure and scaling; you supply code or workflows triggered by events. - Event-driven: Code runs in response to something happening, such as an HTTP request, a new file, a queue message or a timer. - Trigger: The event that starts a function, for example an HTTP call or a blob upload. - Cold start: Extra delay when a function runs after being idle and a new instance must start. - Scale to zero: When nothing is happening, no instances run and (on consumption plans) you pay nothing for compute. ## Consumption-Based Model URL: https://azure.msdevbuild.com/az-900/cloud-concepts/consumption-based-model/ The consumption-based model means you pay only for the cloud resources you use, measured by time, quantity or transactions, instead of buying capacity up front. There's no up-front cost, nothing to pay for unused capacity, and you can stop paying by removing resources. It's the pricing foundation of cloud computing and turns IT spending into operating expenditure (OpEx). Key points: - Pay only for what you use. No up-front cost, no charge for capacity you do not consume. - Resources are metered by time, quantity or transactions. - Delete or deallocate resources to stop most charges. Storage still costs while it exists. - Turns IT spending into OpEx. - Needs active cost management (budgets, tags, alerts). Exam tips: - "No up-front costs" + "pay for what you use" + "stop paying when you stop using" = consumption-based model. - Inbound data transfer to Azure is generally free; outbound data transfer is generally charged. Common mistakes: - Assuming a stopped (but not deallocated) VM is free. - Forgetting that disks, public IPs and backups keep billing after a VM is deleted unless removed too. Quick Q&A: - Q: What do you pay for in a consumption-based model? A: Only the resources you actually use. - Q: Is there an up-front cost in the consumption model? A: No. - Q: Which expenditure type does the consumption model represent? A: OpEx (operational expenditure). - Q: Is inbound data transfer into Azure usually charged? A: No, ingress is generally free. Egress is charged. - Q: Name one tool to avoid surprise bills. A: Budgets and alerts in Microsoft Cost Management. Key terms: - Consumption-based model: Paying for actual usage of resources rather than for fixed capacity bought in advance. - Pay-as-you-go: The default Azure pricing option, billed for usage with no commitment. - Meter: The unit Azure uses to measure a resource's usage, such as VM hours, GB stored per month or millions of executions. - Egress: Data transferred out of an Azure region or out to the internet, which is usually charged. Inbound data (ingress) is generally free. ## Cloud Pricing Models URL: https://azure.msdevbuild.com/az-900/cloud-concepts/cloud-pricing-models/ Azure offers several ways to pay for the same resource. Pay-as-you-go charges full price for actual usage with no commitment. Reservations and the savings plan for compute give big discounts in exchange for a one- or three-year commitment. Spot pricing uses spare capacity at deep discounts but can be interrupted. Azure Hybrid Benefit lets you reuse existing Windows Server and SQL Server licences. Key points: - Pay-as-you-go: no commitment, standard price, maximum flexibility. - Reservations: 1 or 3-year commitment to specific resources, large discount. - Savings plan for compute: 1 or 3-year hourly spend commitment, flexible discount. - Spot: deep discount on spare capacity, can be evicted, only for interruptible work. - Azure Hybrid Benefit: reuse eligible Windows Server and SQL Server licences. Exam tips: - "Commit for one or three years to save money" = reservations (or savings plan). - "Unused capacity, can be evicted" = Spot. - "Reuse existing on-premises licences" = Azure Hybrid Benefit. Common mistakes: - Using Spot VMs for production workloads that cannot tolerate interruption. - Buying reservations for workloads that will be resized or retired soon. Quick Q&A: - Q: What are the two reservation terms available? A: One year or three years. - Q: What is the main risk of Spot VMs? A: Azure can evict them when it needs the capacity back. - Q: Which pricing option needs no commitment? A: Pay-as-you-go. - Q: What does Azure Hybrid Benefit let you do? A: Use existing eligible Windows Server and SQL Server licences to reduce Azure costs. - Q: Which is more flexible, a reservation or a savings plan? A: A savings plan. Key terms: - Pay-as-you-go: No commitment; pay the standard rate for usage, billed monthly. - Azure Reservations: Commit to a specific resource type, size and region for 1 or 3 years for a significant discount. - Azure savings plan for compute: Commit to a fixed hourly spend on compute for 1 or 3 years; discount applies flexibly across eligible services and regions. - Spot VMs: Unused Azure capacity at large discounts that Azure can evict when it needs the capacity back. - Azure Hybrid Benefit: Use existing on-premises Windows Server and SQL Server licences (with Software Assurance or qualifying subscriptions) to reduce Azure costs. ## CapEx vs OpEx URL: https://azure.msdevbuild.com/az-900/cloud-concepts/capex-vs-opex/ Capital expenditure (CapEx) is spending money up front on physical assets, such as servers or a datacenter, that you own and depreciate over several years. Operational expenditure (OpEx) is ongoing spending on services or products as you use them, billed and deducted in the same period. Cloud computing mostly turns IT from CapEx into OpEx. Key points: - CapEx = up-front spending on physical assets you own; value depreciates over time. - OpEx = ongoing spending on services as you use them; expensed in the same period. - On-premises IT is mainly CapEx; cloud is mainly OpEx. - OpEx improves flexibility and cash flow; it needs active cost management. - The consumption-based model is what makes cloud spending OpEx. Exam tips: - "Buying servers", "building a datacenter", "up-front" all point to CapEx. - "Pay as you go", "monthly bill", "no up-front cost" all point to OpEx. Common mistakes: - Thinking OpEx is automatically cheaper. It is more flexible, not always cheaper. - Mixing up which one cloud represents. Cloud is OpEx. Quick Q&A: - Q: Is buying servers CapEx or OpEx? A: CapEx. - Q: Is a monthly Azure bill CapEx or OpEx? A: OpEx. - Q: What is depreciation? A: Spreading an asset's cost over its useful life as its value declines. - Q: Which model requires a large up-front payment? A: CapEx. - Q: Which cloud concept turns IT spending into OpEx? A: The consumption-based (pay-as-you-go) model. Key terms: - CapEx: Capital expenditure. Up-front spending on physical assets that are owned and depreciated over time. - OpEx: Operational expenditure. Ongoing spending on services or products, expensed in the period it occurs. - Depreciation: Spreading the cost of an asset over its useful life in the accounts, because its value declines. - Cash flow: The timing of money going out and coming in. Big CapEx purchases hit cash flow immediately. ## High Availability URL: https://azure.msdevbuild.com/az-900/cloud-concepts/high-availability/ High availability means designing a system so it stays accessible and running for the maximum possible time, even when individual components fail. In Azure you achieve it with redundancy (multiple instances, availability zones, load balancers). Microsoft expresses the expected uptime of a service as a percentage in its Service Level Agreement (SLA), such as 99.9% or 99.99%. Key points: - High availability = maximise uptime despite component failures. - Achieved with redundancy, removing single points of failure. - Azure tools include multiple instances, availability zones, availability sets, load balancers and zone-redundant services. - Uptime is promised in SLAs as a percentage. - Composite SLA: multiply SLAs of components that all must work. Exam tips: - "Ensure the app remains available if a datacenter fails" = availability zones / high availability. - High availability is about uptime. Scalability is about capacity. Do not mix them up. Common mistakes: - Thinking a single VM is highly available. It is a single point of failure. - Adding SLAs together instead of multiplying them. Quick Q&A: - Q: What does high availability aim to maximise? A: Uptime, meaning the time the service is available. - Q: What document defines Microsoft's uptime commitment for a service? A: The Service Level Agreement (SLA). - Q: About how much downtime per month does 99.9% allow? A: About 43.8 minutes. - Q: What is a single point of failure? A: A component whose failure stops the whole system. - Q: How do you calculate a composite SLA for two services that both must work? A: Multiply their SLAs, for example 0.9995 × 0.9999. Key terms: - High availability (HA): Keeping a service accessible with minimal downtime, despite failures of individual components. - Uptime: The percentage of time a service is available. - SLA: Service Level Agreement. Microsoft's formal commitment to a level of uptime or connectivity, often with service credits if missed. - Redundancy: Running duplicate components so one failure does not take the service down. - Single point of failure: Any component whose failure stops the whole system. - Availability zone: A physically separate group of datacenters within an Azure region, with independent power, cooling and networking. ## Scalability URL: https://azure.msdevbuild.com/az-900/cloud-concepts/scalability/ Scalability is the ability to adjust resources to meet demand. If demand grows, you add resources; if it falls, you remove them. There are two directions. Vertical scaling (scale up or down) makes a resource bigger or smaller, for example more CPU and RAM. Horizontal scaling (scale out or in) adds or removes instances. In the cloud you pay only for the resources you're using at the time. Key points: - Scalability = adjust resources to meet demand, up or down. - Vertical = scale up/down: bigger or smaller resource (CPU, RAM). - Horizontal = scale out/in: more or fewer instances. - In the cloud you pay only for resources currently in use, so scaling down saves money. - Horizontal scaling needs stateless app design and also adds redundancy. Exam tips: - "Add more virtual machines" = scale out (horizontal). - "Increase the VM size / add CPU and memory" = scale up (vertical). Common mistakes: - Mixing up the words. Up/down = vertical, out/in = horizontal. - Confusing scalability (capacity) with availability (uptime). Quick Q&A: - Q: Adding more RAM to a VM is which type of scaling? A: Vertical scaling (scale up). - Q: Going from 3 to 8 web server instances is which type? A: Horizontal scaling (scale out). - Q: Why is horizontal scaling popular in the cloud? A: No single-machine size limit, it adds redundancy, and it usually needs no downtime. - Q: What app design property makes scaling out easy? A: Being stateless. - Q: Do you keep paying for capacity after scaling down? A: No. You pay for what is in use. Key terms: - Scalability: The ability to increase or decrease resources to handle changes in workload. - Vertical scaling (scale up/down): Changing the size of a single resource, such as adding CPUs or memory to a VM. - Horizontal scaling (scale out/in): Changing the number of instances, such as going from 2 web servers to 10. - Stateless: An app instance that keeps no user-specific data locally, so any instance can handle any request. This is essential for scaling out. ## Elasticity URL: https://azure.msdevbuild.com/az-900/cloud-concepts/elasticity/ Elasticity is the ability of a cloud system to automatically add or remove resources in real time as demand changes, so capacity closely tracks actual usage. It's scalability made automatic and fast. In Azure, elasticity comes from autoscale features in services such as Virtual Machine Scale Sets, App Service, Azure Functions and AKS. Key points: - Elasticity = automatic, rapid scaling in both directions as demand changes. - It is a specific kind of scalability; all elastic systems are scalable, but not all scalable systems are elastic. - In Azure, implemented through autoscale (Scale Sets, App Service, Functions, AKS, Container Apps). - Saves money by removing capacity automatically when demand drops. - Needs good rules, a minimum and maximum, and cool-down periods. Exam tips: - "Automatically" + "based on demand" + "add and remove resources" = elasticity. - If the scenario only says "can be increased", without automatic, think scalability. Common mistakes: - Treating any scaling as elasticity. Manual scaling is scalability, not elasticity. - Forgetting scale-in rules, so capacity never shrinks. Quick Q&A: - Q: What makes elasticity different from scalability? A: Elasticity is automatic and happens in real time based on demand. - Q: Which Azure feature provides elasticity for VMs? A: Virtual Machine Scale Sets with autoscale. - Q: Why do autoscale rules need a cool-down period? A: To avoid flapping, meaning rapid repeated scale-out and scale-in. - Q: Which part of autoscale saves money? A: The scale-in rules that remove unused instances. - Q: Name a workload that needs elasticity. A: Ticket sales, flash sales, exam result days, which are all sudden unpredictable spikes. Key terms: - Elasticity: Automatically and rapidly matching resources to current demand, up and down. - Autoscale: Rules or metrics that automatically change the number of instances (for example, add 2 instances when CPU > 70%). - Scale-in rule: The rule that removes instances when demand drops, which is the part that saves money. - Cool-down: A waiting period after a scale action before the next one, to avoid flapping up and down. ## Reliability URL: https://azure.msdevbuild.com/az-900/cloud-concepts/reliability/ Reliability is the ability of a system to recover from failures and continue to function correctly. The cloud improves reliability because its decentralised design (many regions and availability zones around the world) lets you deploy resources in multiple places, so if one location has a problem, another can take over, sometimes automatically. Key points: - Reliability = ability to recover from failures and keep functioning. - The cloud's decentralised design (regions, zones) makes reliable architectures easier. - Key tools include availability zones, region pairs, geo-redundant storage, Azure Backup and Azure Site Recovery. - RTO = how fast you recover; RPO = how much data you can lose. - Reliability must be tested (failover drills, restore tests, chaos experiments). Exam tips: - "Recover from failures" / "continue to function" / "decentralised design" = reliability. - "Maximum uptime" / "SLA percentage" = high availability. Common mistakes: - Treating backups as a disaster recovery plan without ever testing restores. - Confusing reliability (recover and keep working) with predictability (consistent performance and cost). Quick Q&A: - Q: What does reliability allow a system to do? A: Recover from failures and continue to function. - Q: What does RTO stand for? A: Recovery Time Objective, the maximum time to restore service. - Q: What does RPO stand for? A: Recovery Point Objective, the maximum acceptable data loss measured in time. - Q: Which Azure service replicates VMs to another region for disaster recovery? A: Azure Site Recovery. - Q: Why does the cloud's global footprint help reliability? A: You can deploy in multiple regions and zones, so a failure in one place does not stop the service. Key terms: - Reliability: The ability of a system to recover from failures and keep functioning correctly. - Disaster recovery (DR): The plans and tooling to restore service after a major incident, such as a regional outage. - RTO: Recovery Time Objective. The maximum acceptable time to restore service after a failure. - RPO: Recovery Point Objective. The maximum acceptable amount of data loss, measured in time. - Failover: Switching to a standby component or location when the primary fails. ## Predictability URL: https://azure.msdevbuild.com/az-900/cloud-concepts/predictability/ Predictability in the cloud means you can move forward with confidence, knowing roughly how your system will perform and what it will cost. Performance predictability comes from autoscaling, load balancing and high availability, so users get a consistent experience. Cost predictability comes from tools like the pricing calculator, budgets and cost analysis, which let you forecast and track spend. Key points: - Predictability has two parts, performance and cost. - Performance: autoscaling, load balancing, high availability give a consistent experience. - Cost: pricing calculator (estimate), Cost Management (track, forecast, budgets, alerts). - Reservations and savings plans make steady spend more predictable. - The Well-Architected Framework provides guidance for both. Exam tips: - "Forecast costs" / "budget" / "consistent performance" = predictability. - Remember the two types, performance predictability and cost predictability. Common mistakes: - Thinking predictability means "costs never change". It means costs are forecastable and controlled. - Confusing predictability with reliability. Quick Q&A: - Q: What are the two kinds of predictability in the cloud? A: Performance predictability and cost predictability. - Q: Which tool estimates Azure costs before you deploy? A: The Azure pricing calculator. - Q: Which tool tracks actual spend and sends budget alerts? A: Microsoft Cost Management. - Q: Name a feature that improves performance predictability. A: Autoscaling (also load balancing, high availability). - Q: Which Microsoft framework gives best-practice guidance across reliability, security, cost, operations and performance? A: The Azure Well-Architected Framework. Key terms: - Performance predictability: Confidence that the system will deliver a consistent user experience under expected load. - Cost predictability: Confidence in what the cloud will cost, through forecasting, monitoring and controls. - Azure Well-Architected Framework: Microsoft's guidance built around five pillars (reliability, security, cost optimization, operational excellence, performance efficiency). - Budget: A spending threshold in Microsoft Cost Management that triggers alerts when actual or forecast cost approaches it. ## Security in the Cloud URL: https://azure.msdevbuild.com/az-900/cloud-concepts/security/ The cloud improves security because providers invest in protections few organisations could build themselves: physically secured datacenters, network protection such as DDoS defence, encryption, and automatic patching of managed services. You choose how much control you want. IaaS lets you manage OS-level security yourself, while PaaS and SaaS hand more patching to Microsoft. Your data and identities stay your responsibility. Key points: - Providers deliver security few companies can match, including physical security, DDoS protection, encryption and expert teams. - Choose your level of control. IaaS = you patch the OS; PaaS/SaaS = Microsoft patches the platform. - Data, identities and devices remain the customer's job (shared responsibility). - Key tools are Entra ID, Defender for Cloud, Key Vault, NSGs, Azure Firewall and DDoS Protection. - Defense in depth layers controls so one failure does not expose everything. Exam tips: - "Protection from distributed denial of service attacks" = Azure DDoS Protection. - "Security posture, secure score, threat protection across hybrid and multi-cloud" = Microsoft Defender for Cloud. Common mistakes: - Assuming "in the cloud" means "secure by default for everything I configure". - Leaving storage or databases publicly accessible and blaming the provider. Quick Q&A: - Q: Who secures the physical Azure datacenters? A: Microsoft. - Q: What does DDoS stand for? A: Distributed Denial of Service. - Q: In which service type do you patch the operating system yourself? A: IaaS. - Q: Which Azure service stores secrets, keys and certificates securely? A: Azure Key Vault. - Q: What is defense in depth? A: Layered security controls so a single failure does not compromise the whole system. Key terms: - Defense in depth: Layered security (physical, identity, perimeter, network, compute, application, data) so one failed control does not expose everything. - DDoS attack: Distributed Denial of Service. Flooding a service with traffic from many sources to make it unavailable. - Encryption at rest: Data stored on disk is encrypted. It is enabled by default for Azure Storage and Azure SQL Database. - Microsoft Defender for Cloud: Azure's security posture management and threat protection service for Azure, hybrid and multi-cloud workloads. ## Governance in the Cloud URL: https://azure.msdevbuild.com/az-900/cloud-concepts/governance/ Governance in the cloud is the set of rules, processes and tools that keep your cloud use compliant with company and regulatory standards. The cloud makes governance easier because rules can be applied in software, with templates for standards, automatic auditing that flags non-compliant resources, and enforcement that can block or fix them automatically, using tools such as Azure Policy and resource locks. Key points: - Governance = rules and processes to keep cloud usage compliant and under control. - The cloud enables templates, automatic auditing and automatic enforcement. - Azure tools: Azure Policy, resource locks, management groups, tags, Microsoft Purview, Cost Management. - Policies can audit, deny, or remediate (deploy missing settings). - Good governance is guardrails that keep teams safe while letting them move fast. Exam tips: - "Ensure resources comply with company standards" / "audit and enforce rules" = governance / Azure Policy. - "Prevent accidental deletion" = resource locks. Common mistakes: - Confusing governance (rules and compliance) with security (protecting against threats). They overlap but are different. - Thinking Azure Policy controls who can do things. That is Azure RBAC. Policy controls what resources may look like. Quick Q&A: - Q: What is cloud governance? A: The rules, processes and tools that keep cloud usage compliant with organisational and regulatory standards. - Q: Which Azure service audits and enforces rules on resources? A: Azure Policy. - Q: What prevents a critical resource from being deleted accidentally? A: A resource lock (CanNotDelete). - Q: How does the cloud make auditing easier? A: Resources are continuously evaluated and non-compliant ones are flagged automatically. - Q: What is the difference between Azure Policy and Azure RBAC? A: Policy controls what resources can look like; RBAC controls who can perform actions. Key terms: - Governance: Policies and processes that ensure cloud resources meet organisational and regulatory standards. - Compliance: Meeting the requirements of laws, regulations and industry standards (for example GDPR, ISO 27001, PCI DSS). - Azure Policy: A service that evaluates resources against rules and can audit, deny or remediate non-compliant ones. - Guardrails: Automated controls that keep teams within safe boundaries without slowing them down. ## Manageability URL: https://azure.msdevbuild.com/az-900/cloud-concepts/manageability/ Manageability in the cloud has two sides. Management *of* the cloud means managing your resources themselves: autoscaling, deploying from templates, monitoring health and replacing failed resources automatically, and receiving alerts. Management *in* the cloud means how you do the managing: through the Azure portal, the command line (Azure CLI and Azure PowerShell), APIs and infrastructure as code. Key points: - Management of the cloud: autoscale, deploy from templates, monitor health, auto-replace failed resources, alerts. - Management in the cloud: Azure portal, Azure CLI, Azure PowerShell, Cloud Shell, APIs, SDKs. - Infrastructure as code (Bicep, ARM templates, Terraform) makes management repeatable and auditable. - All management tools go through Azure Resource Manager, so results are consistent. - Manage from anywhere with a browser or a terminal. Exam tips: - "Manage resources from a browser with a GUI" = Azure portal. - "Scripting / command line" = Azure CLI or Azure PowerShell; "browser-based shell" = Cloud Shell. - Know the two sides, management of the cloud vs management in the cloud. Common mistakes: - Thinking the portal is the only way to manage Azure. - Doing production changes by hand with no record or review. Quick Q&A: - Q: What are the two aspects of cloud manageability? A: Management of the cloud and management in the cloud. - Q: Give two examples of management of the cloud. A: Autoscaling, deploying from templates, monitoring and alerts, automatic replacement of failed resources. - Q: Give three tools for management in the cloud. A: Azure portal, Azure CLI, Azure PowerShell (also APIs, SDKs, Cloud Shell). - Q: What is infrastructure as code? A: Defining infrastructure in code files so it can be versioned and deployed repeatably. - Q: What is Azure Cloud Shell? A: A browser-based shell with Azure CLI and PowerShell preinstalled and authenticated. Key terms: - Management of the cloud: Managing your cloud resources, such as scaling, deploying from templates, monitoring and alerting, and automatic replacement of failed resources. - Management in the cloud: The interfaces used to manage resources, such as the Azure portal, CLI, PowerShell, APIs and SDKs. - Infrastructure as code (IaC): Defining infrastructure in files (Bicep, ARM templates, Terraform) so it can be versioned and deployed repeatably. - Azure Cloud Shell: A browser-based shell with Azure CLI and Azure PowerShell preinstalled and already authenticated. # Domain 2: Describe Azure architecture and services (35–40%) ## Azure Regions, Region Pairs and Sovereign Regions URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/regions-and-region-pairs/ An Azure region is a geographical area containing one or more datacenters connected by a low-latency network, such as West Europe or Southeast Asia. Many regions are grouped into region pairs in the same geography for disaster recovery. Sovereign regions, such as Azure Government and Azure operated by 21Vianet in China, are isolated instances of Azure for specific compliance or legal needs. Key points: - A region = one or more datacenters in a geographic area, connected with low latency. - Choose regions for latency, data residency, service availability and price. - Region pairs give sequential updates, prioritised recovery and replication targets for some services. - Some newer regions have no pair and rely on availability zones. - Sovereign regions (Azure Government, Azure operated by 21Vianet) are isolated from public Azure. Exam tips: - "Physically isolated instance for US government agencies" = Azure Government. - "Updates applied to one region at a time" and "prioritised recovery" = region pairs. Common mistakes: - Assuming every service exists in every region. - Thinking region pairs automatically replicate all your resources. Replication depends on the service and your settings. Quick Q&A: - Q: What is an Azure region? A: A geographic area containing one or more datacenters connected by a low-latency network. - Q: Name two benefits of region pairs. A: Sequential updates and prioritised recovery during a broad outage. - Q: Name a sovereign region. A: Azure Government (US) or Azure operated by 21Vianet (China). - Q: Why might two regions have different prices? A: Costs such as power, land and taxes differ by location, so prices vary by region. - Q: Do all regions have a pair? A: No. Some newer regions have no pair and rely on availability zones. Key terms: - Region: A geographic area with one or more datacenters networked together with low latency. - Geography: A larger area, usually a country or market, containing one or more regions and respecting data residency boundaries. - Region pair: Two regions in the same geography linked for resilience, with sequential updates and prioritised recovery. - Sovereign region: An isolated instance of Azure for government or legal requirements, such as Azure Government or Azure in China. ## Availability Zones URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/availability-zones/ Availability zones are physically separate locations within an Azure region. Each zone is made up of one or more datacenters with independent power, cooling and networking. Regions that support zones have at least three, so spreading your app across zones keeps it running even if one whole datacenter fails. Key points: - Availability zones are separate datacenter groups inside one region. - Each zone has independent power, cooling and networking. - Zone-enabled regions have at least three zones. - Zonal = you pick the zone; zone-redundant = Azure replicates across zones. - Not every region supports availability zones. Exam tips: - "Protect against a datacenter failure within a region" = availability zones. - Minimum number of zones in a zone-enabled region = three. Common mistakes: - Thinking zones protect against a whole-region disaster. They do not; use another region for that. - Assuming every region has zones. Quick Q&A: - Q: How many availability zones does a zone-enabled region have at minimum? A: Three. - Q: What does each zone have independently? A: Power, cooling and networking. - Q: What is a zone-redundant service? A: A service Azure automatically replicates across zones. - Q: Do zones protect against a regional outage? A: No. Use a second region for that. - Q: Give an example of a zonal resource. A: A virtual machine deployed to a specific zone. Key terms: - Availability zone: A physically separate group of one or more datacenters within a region, with independent power, cooling and networking. - Zonal service: A resource pinned to a zone you choose, such as a VM in zone 1. - Zone-redundant service: A service Azure automatically replicates across zones, such as zone-redundant storage (ZRS). - Non-regional service: A service that is always available across Azure geographies and is not tied to a region, such as Microsoft Entra ID. ## Azure Datacenters URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/datacenters/ Azure datacenters are the physical buildings around the world that house the servers, storage and networking equipment running Azure. You never pick an individual datacenter. Datacenters are grouped into availability zones, and zones are grouped into regions, which is the level you choose. Key points: - Datacenters are the physical buildings that run Azure. - Datacenter → availability zone → region. - Customers choose regions (and zones), never individual datacenters. - Microsoft is always responsible for physical datacenter security. Exam tips: - "Physical security of the building" is always Microsoft's responsibility. Common mistakes: - Thinking you can pick a specific datacenter for your resources. Quick Q&A: - Q: Can you choose an individual Azure datacenter? A: No. You choose a region and optionally an availability zone. - Q: What do one or more datacenters with independent power, cooling and networking form? A: An availability zone. - Q: Who secures Azure datacenters? A: Microsoft. - Q: Where can you find Azure compliance audit reports? A: The Microsoft Service Trust Portal. - Q: What is in a datacenter? A: Servers, storage, networking equipment, power and cooling systems. Key terms: - Datacenter: A secure building with racks of servers, power, cooling and networking. - Rack: A frame holding many servers and network switches inside a datacenter. - Physical security: Controls such as fences, guards, cameras and multi-step access checks that protect the building and hardware. ## Resources and Resource Groups URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/resources-and-resource-groups/ An Azure resource is anything you create in Azure, such as a virtual machine, storage account, database or virtual network. A resource group is a logical container that holds related resources so you can manage, secure and delete them together. Every resource must be in exactly one resource group, and resource groups can't be nested. Key points: - A resource is any item you create in Azure. - A resource group is a logical container for related resources. - Each resource is in exactly one group; groups cannot be nested. - Deleting a group deletes all its resources. - Access (RBAC) and policies set on a group are inherited by its resources. Exam tips: - "Delete all resources for a project at once" = put them in one resource group and delete the group. - Resource groups cannot be nested. Common mistakes: - Believing resources must be in the same region as their resource group. - Forgetting that deleting a resource group deletes everything inside. Quick Q&A: - Q: How many resource groups can one resource belong to at a time? A: One. - Q: Can resource groups be nested? A: No. - Q: What happens when you delete a resource group? A: All the resources inside it are deleted too. - Q: Must resources be in the same region as their resource group? A: No. - Q: What is the best way to group resources? A: By shared lifecycle, owner or purpose, for example one app per environment. Key terms: - Resource: A manageable item you create in Azure, such as a VM, storage account or web app. - Resource group: A logical container for resources that share a lifecycle, owner or purpose. - Lifecycle: When resources are created, updated and deleted. Resources with the same lifecycle belong in the same group. ## Azure Subscriptions URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/subscriptions/ An Azure subscription is a logical unit that links your Azure account to billing, and acts as both a billing boundary and an access control boundary. All resource groups and resources live inside a subscription. Organisations often create several subscriptions to separate environments, departments or billing. Key points: - A subscription links Azure usage to billing. - It is a billing boundary and an access control boundary. - Resource groups and resources live inside subscriptions. - One account can have multiple subscriptions. Exam tips: - "Separate invoices for different departments" = use separate subscriptions. - The two boundaries are billing and access control. Common mistakes: - Confusing subscriptions with resource groups. Subscriptions contain resource groups. Quick Q&A: - Q: What two boundaries does a subscription provide? A: A billing boundary and an access control boundary. - Q: What does a subscription contain? A: Resource groups, which contain resources. - Q: Can one account have several subscriptions? A: Yes. - Q: Why separate production and development into different subscriptions? A: To isolate access, policies, quotas and costs. - Q: What groups several subscriptions for shared governance? A: A management group. Key terms: - Subscription: A container for resources that is a billing boundary and an access control boundary. - Billing boundary: Each subscription gets its own invoices and cost reports. - Access control boundary: Permissions and policies can be applied at the subscription level for everything inside. - Azure account: The identity (in a Microsoft Entra tenant) used to sign in and own subscriptions. ## Management Groups URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/management-groups/ Management groups are containers that organise multiple subscriptions so you can apply governance, such as Azure Policy and role-based access control, once and have it inherited by every subscription, resource group and resource beneath them. They can be nested to mirror your organisation, under a single root management group. Key points: - Management groups organise subscriptions. - Policy and RBAC on a management group are inherited by everything below. - They can be nested (up to six levels below the root). - One root management group per directory; each child has one parent. Exam tips: - "Apply a policy to many subscriptions at once" = management group. Common mistakes: - Thinking management groups contain resources directly. They contain subscriptions (and other management groups). Quick Q&A: - Q: What do management groups contain? A: Subscriptions and other management groups. - Q: How deep can management groups be nested? A: Up to six levels, not counting the root and subscription levels. - Q: How many parents can a subscription have? A: One. - Q: What sits at the top of every hierarchy? A: The root management group. - Q: Why use management groups? A: To apply governance such as policy and access across many subscriptions at once. Key terms: - Management group: A container above subscriptions used to apply policy and access across many subscriptions. - Root management group: The single top-level management group for a Microsoft Entra tenant. - Inheritance: Settings applied at a higher level automatically apply to everything below. ## The Azure Management Hierarchy URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/management-hierarchy/ Azure organises everything in four levels: management groups contain subscriptions, subscriptions contain resource groups, and resource groups contain resources. Policies and access applied at a higher level are inherited by everything below it. Key points: - Management groups → subscriptions → resource groups → resources. - Settings flow down (inheritance). - Apply broad rules high up, specific rules low down. Exam tips: - Memorise the order. MG → Sub → RG → Resource. Common mistakes: - Putting the levels in the wrong order on the exam. Quick Q&A: - Q: What is the top level of the Azure hierarchy? A: Management groups (under the root management group). - Q: What is directly below a subscription? A: Resource groups. - Q: Where do resources live? A: In resource groups. - Q: Do settings flow up or down the hierarchy? A: Down. - Q: Where should company-wide policies be assigned? A: At a high-level management group. Key terms: - Scope: The level where you apply a setting, such as a management group, subscription, resource group or resource. - Inheritance: Settings at a parent scope automatically apply to child scopes. ## Compute Types: VMs, Containers and Functions URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/compute-types/ Azure offers three main compute types. Virtual machines virtualise hardware and give you a full operating system to control. Containers package an app with its dependencies and share the host OS kernel, so they're lightweight and start in seconds. Functions run small pieces of event-driven code with no servers to manage, billed per execution. Key points: - VMs = full OS control, most management (IaaS). - Containers = lightweight, portable, fast start, share the host OS kernel. - Functions = event-driven, serverless, pay per execution. - Container services include Container Instances, Container Apps and AKS. Exam tips: - "Run code when an event happens, no servers" = Azure Functions. - "Package an app with dependencies, start in seconds" = containers. Common mistakes: - Saying containers include a full OS like a VM. Quick Q&A: - Q: Which compute type gives full control of the OS? A: Virtual machines. - Q: What do containers share with their host? A: The operating system kernel. - Q: Which compute type is event-driven and serverless? A: Azure Functions. - Q: Which Azure service orchestrates many containers with Kubernetes? A: Azure Kubernetes Service (AKS). - Q: Which is the quickest way to run a single container? A: Azure Container Instances. Key terms: - Virtual machine: Software emulation of a physical computer with its own full OS (IaaS). - Container: A lightweight package of an app and its dependencies that shares the host's OS kernel. - Azure Functions: Serverless, event-driven compute that runs code on demand. - Orchestration: Automatically deploying, scaling and healing many containers, for example with Kubernetes. ## Azure Virtual Machines URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/virtual-machines/ Azure Virtual Machines are IaaS computers in the cloud. You pick an operating system image and a size (CPU and memory), and Azure runs it on its hardware. A VM needs supporting resources: a disk, a network interface in a virtual network, and optionally a public IP address and a network security group. You manage the OS, software and patches. Key points: - VMs are IaaS. You manage the OS and everything on it. - Choose an image (OS) and a size (CPU/RAM). - A VM needs a disk, NIC and virtual network; often a public IP and NSG too. - Deallocate to stop compute charges; disks still cost money. - Use multiple VMs across zones or availability sets for high availability. Exam tips: - "Resources required for a VM": disk, NIC, virtual network (subnet); optional public IP and NSG. Common mistakes: - Assuming a VM shut down from inside the OS stops billing. - Opening RDP or SSH to the whole internet. Quick Q&A: - Q: Which cloud service type is an Azure VM? A: IaaS. - Q: Name three resources a VM needs. A: A disk, a network interface and a virtual network. - Q: How do you stop paying for VM compute? A: Deallocate it (Stop in the portal or az vm deallocate). - Q: What does the VM size control? A: The amount of vCPU, memory and related capacity. - Q: Who patches the VM's operating system? A: You, the customer. Key terms: - VM size: The amount of vCPU, memory and other capacity, such as Standard_B1s or Standard_D4s_v5. - Image: The template the VM starts from, such as Ubuntu Server or Windows Server. - Managed disk: Block storage attached to a VM for its OS and data. - Network interface (NIC): Connects a VM to a virtual network subnet. - Deallocated: A stopped VM whose hardware is released, so compute billing stops. ## VM Scale Sets and Availability Sets URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/vm-scale-sets-and-availability-sets/ Virtual Machine Scale Sets let you create and manage a group of identical, load-balanced VMs that can scale out and in automatically based on demand. Availability sets spread your VMs across fault domains (separate power and network hardware) and update domains (separate maintenance groups), so one hardware failure or update doesn't take all of them down. Key points: - Scale sets = identical VMs with automatic scaling. - Availability sets = spread VMs across fault and update domains. - Fault domain = shared power/network hardware; update domain = maintenance group. - Availability sets are free; you pay only for the VMs. Exam tips: - "Automatically increase the number of identical VMs" = VM Scale Sets. - "Protect against rack failure and planned maintenance" = availability set. Common mistakes: - Mixing up scale sets (scaling) with availability sets (resilience). Quick Q&A: - Q: What does a VM Scale Set add? A: Automatic scaling of identical VMs. - Q: What is a fault domain? A: A group of hardware sharing power and network, like a rack. - Q: What is an update domain? A: A group of VMs rebooted together during planned maintenance. - Q: Do availability sets cost extra? A: No. You pay only for the VMs. - Q: Which protects against a whole datacenter failure, availability sets or zones? A: Availability zones. Key terms: - Virtual Machine Scale Set: A group of identical VMs that can scale automatically. - Availability set: Places VMs in different fault and update domains within a datacenter. - Fault domain: A group of hardware sharing a power source and network switch, like a rack. - Update domain: A group of VMs that can be rebooted together during planned maintenance. ## Azure Virtual Desktop URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-virtual-desktop/ Azure Virtual Desktop is a desktop and application virtualisation service that runs Windows desktops and apps in Azure. Users connect from almost any device, while company data stays in the cloud. It supports Windows multi-session, so several users can share one VM, which lowers cost. Key points: - AVD runs Windows desktops and apps in Azure. - Users connect from many devices; data stays in the cloud. - Windows multi-session lets several users share one VM. - Secured with Entra ID, MFA and Conditional Access. Exam tips: - "Users need a Windows desktop from any device, data must stay in Azure" = Azure Virtual Desktop. Common mistakes: - Thinking AVD installs apps on the user's own device. Quick Q&A: - Q: What does Azure Virtual Desktop deliver? A: Windows desktops and applications running in Azure. - Q: Where does company data stay with AVD? A: In Azure, not on the user's device. - Q: What is Windows multi-session? A: Several users sharing one Windows VM at the same time. - Q: Name one AVD security feature. A: Entra ID sign-in with MFA and Conditional Access. - Q: Name a good AVD use case. A: Contractors or remote staff using personal devices. Key terms: - Desktop virtualisation: Running a user's desktop in a datacenter and streaming it to their device. - Windows multi-session: Windows 10/11 Enterprise editions that allow several users on one VM at once, available on Azure Virtual Desktop. - Host pool: A group of VMs that serve desktops to users. ## Azure App Service URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/app-service/ Azure App Service is a fully managed PaaS for hosting web apps, REST APIs and mobile back ends. You deploy your code (.NET, Java, Node.js, Python, PHP) or a container, and Microsoft manages the servers, operating system, patching and load balancing. Built-in features include autoscale, deployment slots, custom domains and HTTPS. Key points: - App Service = PaaS for web apps, APIs and mobile back ends. - Microsoft manages servers, OS, patching and load balancing. - You pay for the App Service plan; several apps can share one. - Features include autoscale, deployment slots, custom domains and HTTPS. Exam tips: - "Host a web app without managing servers" = Azure App Service. Common mistakes: - Thinking you manage the VMs behind App Service. Quick Q&A: - Q: Which cloud service type is App Service? A: PaaS. - Q: What do you pay for in App Service? A: The App Service plan (instance size and count). - Q: What is a deployment slot? A: A staging copy of an app that can be swapped into production with no downtime. - Q: Name three app types App Service can host. A: Web apps, REST APIs and mobile back ends. - Q: Who patches the OS behind App Service? A: Microsoft. Key terms: - App Service plan: The set of compute resources (size and number of instances) your apps run on, and what you pay for. - Deployment slot: A live staging copy of your app you can swap into production with no downtime. - Web app: An App Service app that hosts a website or web API. ## Azure Functions URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-functions/ Azure Functions is Azure's serverless compute service. You write small pieces of code that run in response to triggers such as HTTP requests, timers, queue messages or new files. Azure provides and scales the compute automatically, and on consumption-style plans you pay only while your code runs. Key points: - Functions = serverless, event-driven code. - Triggers start functions; bindings connect data. - Scales automatically, including to zero. - Pay per execution on consumption-style plans. Exam tips: - "Run code in response to an event, without managing servers" = Azure Functions. Common mistakes: - Using Functions for long-running, CPU-heavy processing without Durable Functions or a suitable plan. Quick Q&A: - Q: What starts an Azure Function? A: A trigger. - Q: How many triggers does a function have? A: Exactly one. - Q: What are bindings? A: Declarative connections to input or output data. - Q: How are you usually billed on a consumption-style plan? A: Per execution and resources used while running. - Q: What adds stateful workflows to Functions? A: Durable Functions. Key terms: - Trigger: The event that starts a function, such as an HTTP call, a timer or a new blob. - Binding: A declarative connection to input or output data, such as writing to a queue, without extra code. - Stateless: A function keeps no data between runs unless you store it elsewhere; Durable Functions adds stateful workflows. ## Container Instances, Container Apps and AKS URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/container-instances-and-aks/ Azure offers three main ways to run containers. Azure Container Instances (ACI) runs individual containers on demand with no servers to manage. Azure Container Apps runs containerised microservices with serverless scaling, including to zero. Azure Kubernetes Service (AKS) is managed Kubernetes for orchestrating many containers with full control. Key points: - ACI = run single containers quickly, no orchestration. - Container Apps = serverless microservices on containers. - AKS = managed Kubernetes, full orchestration and control. - Containers start fast and run the same everywhere. Exam tips: - "Quickest way to run a container without managing VMs" = Azure Container Instances. - "Orchestrate many containers" = AKS. Common mistakes: - Choosing AKS for one simple container. ACI is far simpler. Quick Q&A: - Q: Which service runs a single container with no orchestration? A: Azure Container Instances. - Q: Which service is managed Kubernetes? A: Azure Kubernetes Service (AKS). - Q: Which service offers serverless microservices with scale to zero? A: Azure Container Apps. - Q: Where are private container images stored? A: Azure Container Registry. - Q: Why are containers portable? A: They package the app with its dependencies, so they run the same everywhere. Key terms: - Container image: A packaged, versioned app plus its dependencies, stored in a registry such as Azure Container Registry. - Kubernetes: An open-source system for deploying, scaling and healing containers automatically. - Azure Container Registry (ACR): A private registry for storing container images. ## Virtual Networks and Subnets URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/virtual-networks-and-subnets/ An Azure virtual network (VNet) is your own private network in Azure. It lets Azure resources, such as VMs, talk securely to each other, to the internet and to your on-premises network. A VNet has an address space (for example 10.0.0.0/16) that you divide into subnets to group and isolate resources, such as a web subnet and a database subnet. Key points: - A VNet is a private, isolated network in Azure, scoped to one region. - Address space is defined in CIDR, such as 10.0.0.0/16. - Subnets segment the VNet to group and secure resources. - VNets connect to the internet, other VNets (peering) and on-premises (VPN, ExpressRoute). Exam tips: - "Isolate and segment Azure resources" = virtual network and subnets. Common mistakes: - Thinking one VNet automatically spans multiple regions. - Using overlapping address ranges you later need to connect. Quick Q&A: - Q: What is a VNet? A: A private, isolated network for Azure resources. - Q: What is a subnet? A: A segment of a VNet's address space. - Q: Is a VNet regional or global? A: Regional. - Q: How do you filter traffic between subnets? A: With network security groups. - Q: How many IP addresses does Azure reserve in each subnet? A: Five. Key terms: - Virtual network (VNet): A logically isolated private network in Azure, scoped to one region. - Address space: The private IP range of a VNet, written in CIDR notation such as 10.0.0.0/16. - Subnet: A segment of a VNet's address space used to group and isolate resources. - CIDR: Classless Inter-Domain Routing notation for IP ranges, such as /16 or /24. ## Virtual Network Peering URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/vnet-peering/ Virtual network peering connects two Azure virtual networks so resources in both can communicate using private IP addresses. Traffic travels over Microsoft's private backbone network, never the public internet. Peering works within a region and across regions (global peering). Key points: - Peering connects VNets privately. - Traffic uses Microsoft's backbone, not the internet. - Works in the same region and across regions (global peering). - Peering is non-transitive. Exam tips: - "Connect two Azure VNets privately over the Microsoft backbone" = VNet peering. Common mistakes: - Assuming peered VNets can overlap in address space. They cannot. Quick Q&A: - Q: What does VNet peering connect? A: Two Azure virtual networks. - Q: Does peered traffic cross the public internet? A: No, it uses Microsoft's backbone. - Q: What is global peering? A: Peering between VNets in different regions. - Q: Is peering transitive? A: No. - Q: Can peered VNets have overlapping address spaces? A: No. Key terms: - VNet peering: A private connection between two virtual networks. - Global VNet peering: Peering between virtual networks in different Azure regions. - Non-transitive: If A peers with B and B with C, A cannot reach C unless A and C are also peered (or a hub routes the traffic). ## Network Security Groups URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/network-security-groups/ A network security group (NSG) is a basic firewall for Azure virtual networks. It contains security rules that allow or deny inbound and outbound traffic based on source, destination, port and protocol. You attach an NSG to a subnet or a network interface, and rules are evaluated in priority order. Key points: - NSGs filter traffic with allow and deny rules. - Rules use source, destination, port, protocol and priority. - Attach to subnets or network interfaces. - Lower priority numbers are evaluated first. Exam tips: - "Allow or deny inbound traffic to VMs by port" = network security group. Common mistakes: - Opening RDP (3389) or SSH (22) to the whole internet. Quick Q&A: - Q: What does an NSG do? A: Allows or denies network traffic with rules. - Q: Where can you attach an NSG? A: To a subnet or a network interface. - Q: Which rule is evaluated first, priority 100 or 200? A: 100. - Q: Name four rule properties. A: Source, destination, port and protocol (plus priority and action). - Q: Is inbound internet traffic allowed by default? A: No, default rules deny it unless you add an allow rule. Key terms: - NSG: A set of allow and deny rules that filter network traffic to and from Azure resources. - Security rule: A rule with priority, source, destination, port, protocol and action (allow or deny). - Priority: A number from 100 to 4096; lower numbers are processed first. ## Azure VPN Gateway URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/vpn-gateway/ Azure VPN Gateway sends encrypted traffic between an Azure virtual network and another location over the public internet. Common uses are site-to-site (connect your office network), point-to-site (connect individual laptops) and VNet-to-VNet connections. Key points: - VPN Gateway encrypts traffic over the public internet. - Site-to-site = office network; point-to-site = individual devices; VNet-to-VNet also supported. - One VPN gateway per virtual network. - Can be made highly available (active-active, zone-redundant). Exam tips: - "Encrypted connection over the public internet" = VPN Gateway. Common mistakes: - Confusing VPN Gateway (internet, encrypted) with ExpressRoute (private, not internet). Quick Q&A: - Q: Does VPN Gateway traffic go over the internet? A: Yes, encrypted. - Q: What connects a whole office to Azure? A: A site-to-site VPN. - Q: What connects one laptop to Azure? A: A point-to-site VPN. - Q: How many VPN gateways can a VNet have? A: One. - Q: What is the private, non-internet alternative? A: ExpressRoute. Key terms: - VPN gateway: A virtual network gateway that creates encrypted IPsec/IKE tunnels over the internet. - Site-to-site: Connects an entire on-premises network to Azure. - Point-to-site: Connects individual devices, such as a laptop, to Azure. - Route-based VPN: Uses routes to decide which traffic goes into the tunnel; the most common and flexible type. ## Azure ExpressRoute URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/expressroute/ Azure ExpressRoute extends your on-premises network into the Microsoft cloud over a private, dedicated connection provided by a connectivity partner. Traffic doesn't travel over the public internet, giving more reliability, faster speeds, consistent latency and higher security than typical internet connections. Key points: - ExpressRoute = private, dedicated connection to Microsoft cloud. - Does not use the public internet. - More reliable, faster, consistent latency, higher security. - Provided through connectivity partners. Exam tips: - "Private connection that does not go over the internet" = ExpressRoute. Common mistakes: - Saying ExpressRoute is encrypted VPN over the internet. That describes VPN Gateway. Quick Q&A: - Q: Does ExpressRoute use the public internet? A: No. - Q: Who provides the physical connection? A: A connectivity provider (partner). - Q: Name two benefits of ExpressRoute. A: Consistent latency and higher reliability (also speed and security). - Q: Which feature connects on-premises sites to each other via Microsoft? A: ExpressRoute Global Reach. - Q: What is a common backup for ExpressRoute? A: A site-to-site VPN. Key terms: - ExpressRoute circuit: The logical private connection between your network and Microsoft through a provider. - Connectivity provider: A telecom or exchange partner that provides the physical connection. - ExpressRoute Global Reach: Connects your on-premises sites to each other through the Microsoft network. ## Azure DNS URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-dns/ Azure DNS is a hosting service for DNS domains that provides name resolution using Microsoft's global infrastructure. It turns names like shop.contoso.com into IP addresses. You manage DNS records with the same tools, access control and billing as your other Azure resources. You can't buy a domain name through Azure DNS itself. Key points: - Azure DNS hosts DNS domains and records on Microsoft's global network. - Managed with Azure tools, RBAC, locks and logs. - Private DNS zones resolve names inside VNets. - You cannot buy domain names in Azure DNS. Exam tips: - "Host DNS domains in Azure" = Azure DNS. Common mistakes: - Thinking Azure DNS sells domain names. Quick Q&A: - Q: What does DNS do? A: Translates names into IP addresses. - Q: Can you buy a domain name through Azure DNS? A: No, it hosts domains you already own. - Q: What is a private DNS zone? A: A DNS zone that resolves names only within your virtual networks. - Q: What is an alias record? A: A record that points directly to an Azure resource and updates automatically. - Q: How is Azure DNS secured? A: With Azure RBAC, activity logs and resource locks. Key terms: - DNS: Domain Name System, the internet's phone book that turns names into IP addresses. - DNS zone: A container for the DNS records of one domain, such as contoso.com. - Private DNS zone: A DNS zone that resolves names only inside your virtual networks. - Alias record: A DNS record that points directly to an Azure resource and updates if its IP changes. ## Public and Private Endpoints URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/public-and-private-endpoints/ A public endpoint is a service's address reachable over the internet, using a public IP or URL. A private endpoint is a network interface with a private IP address from your virtual network that connects you privately to an Azure service such as Storage or SQL Database, using Azure Private Link. Traffic stays on the Microsoft network, and you can turn off public access completely. Key points: - Public endpoint = reachable over the internet. - Private endpoint = private IP in your VNet, via Private Link. - Private endpoints keep traffic on the Microsoft network. - You can disable public access once private endpoints are in place. Exam tips: - "Access a PaaS service using a private IP from your VNet" = private endpoint. Common mistakes: - Forgetting DNS configuration for private endpoints. Quick Q&A: - Q: What is a public endpoint? A: An internet-reachable address for a service. - Q: What does a private endpoint use? A: A private IP address from your virtual network. - Q: Which technology powers private endpoints? A: Azure Private Link. - Q: Can you block public access after adding a private endpoint? A: Yes. - Q: What usually needs to be configured with private endpoints? A: Private DNS zones. Key terms: - Public endpoint: An internet-reachable address for a service. - Private endpoint: A network interface with a private IP in your VNet that connects to a PaaS service. - Azure Private Link: The technology behind private endpoints that keeps traffic on the Microsoft backbone. ## Load Balancer, Application Gateway and Front Door URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/load-balancer-application-gateway-front-door/ All three spread traffic across servers, at different layers. Azure Load Balancer works at layer 4 (TCP/UDP) within a region. Application Gateway is a regional layer-7 web load balancer with URL-based routing, TLS termination and an optional Web Application Firewall. Azure Front Door is a global layer-7 entry point that routes users to the nearest healthy region, with caching and WAF. Key points: - Load Balancer = layer 4, regional, TCP/UDP. - Application Gateway = layer 7, regional, URL routing, TLS, WAF. - Front Door = layer 7, global, nearest healthy region, caching, WAF. - All use health probes to avoid unhealthy backends. Exam tips: - These are not listed in the current AZ-900 outline but are common in interviews and real projects. Common mistakes: - Using Load Balancer when you need URL-based routing. Quick Q&A: - Q: Which works at layer 4? A: Azure Load Balancer. - Q: Which offers URL-based routing in one region? A: Application Gateway. - Q: Which routes users globally to the nearest healthy region? A: Azure Front Door. - Q: What protects web apps from SQL injection? A: A Web Application Firewall (WAF). - Q: What removes failed servers from rotation? A: Health probes. Key terms: - Layer 4: Transport layer (TCP/UDP). Routing by IP address and port only. - Layer 7: Application layer (HTTP/HTTPS). Routing can use URLs, headers and cookies. - Web Application Firewall (WAF): Protects web apps from common attacks such as SQL injection and cross-site scripting. - Health probe: A regular check that removes unhealthy backends from rotation. ## Azure Virtual WAN URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/virtual-wan/ Azure Virtual WAN is a networking service that brings many networking, security and routing features together in one place. Microsoft-managed hubs connect your branch offices (VPN or SD-WAN), remote users, ExpressRoute circuits and virtual networks, so everything can reach everything through the Microsoft global network without you building and maintaining the hub yourself. Key points: - Virtual WAN = managed hubs connecting branches, users, ExpressRoute and VNets. - Any-to-any connectivity through the Microsoft network. - Best for large, multi-site, multi-region networks. Exam tips: - Not in the current AZ-900 outline, but useful context for networking interviews. Common mistakes: - Using Virtual WAN for a tiny network where peering is enough. Quick Q&A: - Q: What does Virtual WAN provide? A: Managed hubs connecting branches, users, ExpressRoute and VNets. - Q: Who manages the Virtual WAN hub? A: Microsoft. - Q: What is transit traffic? A: Traffic passing through a hub between other networks. - Q: When is Virtual WAN most useful? A: Large networks with many branches or regions. - Q: What is a simpler alternative for small estates? A: Hub-and-spoke with VNet peering. Key terms: - Virtual WAN hub: A Microsoft-managed virtual network that acts as the central connection point in a region. - Branch: A remote office connected through VPN or SD-WAN. - Transit: Traffic passing through a hub between other networks, such as branch to branch. ## Storage Accounts and Storage Types URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/storage-accounts/ An Azure storage account is a container that provides a unique namespace for your Azure Storage data: blobs, files, queues and tables. Its name must be globally unique (3–24 lowercase letters and numbers) because it becomes part of each service's URL. Standard general-purpose v2 is recommended for most scenarios; premium accounts offer low-latency SSD storage for specific needs. Key points: - A storage account holds blobs, files, queues and tables. - Names are 3–24 lowercase letters and numbers, unique across Azure. - Standard general-purpose v2 is recommended for most uses. - Premium types use SSDs for low-latency workloads. - Redundancy is chosen per account. Exam tips: - "Recommended for most scenarios" = Standard general-purpose v2. Common mistakes: - Using capital letters, hyphens or symbols in storage account names. Quick Q&A: - Q: How long can a storage account name be? A: 3 to 24 characters. - Q: Which characters are allowed? A: Lowercase letters and numbers only. - Q: Why must the name be globally unique? A: It forms part of public service URLs. - Q: Which account type is recommended for most scenarios? A: Standard general-purpose v2. - Q: What does a premium account use? A: SSD storage for low latency. Key terms: - Storage account: A uniquely named container for Azure Storage services and their settings. - Standard general-purpose v2: The recommended account type, supporting blobs, files, queues and tables with all redundancy options. - Premium account: SSD-backed accounts for block blobs, file shares or page blobs that need low latency. - Service endpoint URL: The address of each service, such as https://name.blob.core.windows.net. ## Blob Storage and Access Tiers URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/blob-storage-and-tiers/ Azure Blob Storage is object storage for massive amounts of unstructured data, such as images, videos, documents, logs and backups. Access tiers let you balance storage cost against access cost: Hot for frequently used data, Cool (stored at least 30 days), Cold (at least 90 days) and Archive (at least 180 days, offline, must be rehydrated before reading). Key points: - Blob Storage = object storage for unstructured data. - Hot → Cool → Cold → Archive gets cheaper to store and more expensive to access. - Minimum durations are Cool 30 days, Cold 90 days, Archive 180 days. - Archive is offline; rehydrate before reading. - Lifecycle management moves blobs between tiers automatically. Exam tips: - "Cheapest storage, rarely accessed, can wait hours to read" = Archive tier. Common mistakes: - Choosing Archive for data that must be read immediately. Quick Q&A: - Q: What kind of data is Blob Storage for? A: Unstructured data such as images, videos, documents and backups. - Q: Which tier has the lowest storage cost? A: Archive. - Q: What is the minimum storage duration for the Cool tier? A: 30 days. - Q: Can you read Archive data immediately? A: No. It must be rehydrated first. - Q: What moves blobs between tiers automatically? A: Lifecycle management rules. Key terms: - Blob: Binary large object. Any file stored in Blob Storage. - Container: A folder-like grouping of blobs inside a storage account. - Access tier: Hot, Cool, Cold or Archive, which trades storage price against access price. - Rehydration: Moving an archived blob back to an online tier so it can be read, which can take hours. ## Azure Files, Queues, Tables and Managed Disks URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/files-queues-tables-disks/ Besides Blob Storage, Azure Storage offers Azure Files (fully managed file shares over SMB and NFS), Queue Storage (large numbers of messages between application components), Table Storage (NoSQL key/attribute data) and Managed Disks (block-level storage volumes for virtual machines). Key points: - Azure Files = managed SMB/NFS file shares. - Queues = messages between components (asynchronous processing). - Tables = NoSQL key/attribute data. - Managed Disks = VM block storage. Exam tips: - "Replace an on-premises file server with SMB shares" = Azure Files. - "Decouple components with messages" = Queue Storage. Common mistakes: - Confusing Queue Storage (messages) with Table Storage (data). Quick Q&A: - Q: Which service provides SMB file shares? A: Azure Files. - Q: Which service stores messages between app components? A: Queue Storage. - Q: Which service stores NoSQL key/attribute data? A: Table Storage. - Q: What provides storage volumes for VMs? A: Managed Disks. - Q: How big can a queue message be? A: Up to 64 KB. Key terms: - Azure Files: Managed file shares accessible over SMB or NFS, like a network drive. - Queue Storage: Stores messages (up to 64 KB each) so app components can work asynchronously. - Table Storage: Schemaless NoSQL storage of structured key/attribute data. - Managed Disk: A block storage volume attached to an Azure VM. ## Storage Redundancy: LRS, ZRS, GRS, GZRS URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/storage-redundancy/ Azure Storage always keeps multiple copies of your data. LRS keeps three copies in one datacenter. ZRS keeps three copies across three availability zones. GRS keeps three copies locally plus three in a secondary region. GZRS combines ZRS in the primary region with a copy in a secondary region. RA-GRS and RA-GZRS also let you read from the secondary region. Key points: - LRS = 3 copies, 1 datacenter (cheapest). - ZRS = 3 copies across 3 zones. - GRS = LRS + secondary region. - GZRS = ZRS + secondary region (highest protection). - RA- variants allow reading from the secondary. Exam tips: - "Survive a datacenter failure but stay in one region" = ZRS. - "Survive a regional outage" = GRS or GZRS. Common mistakes: - Thinking LRS protects against a datacenter fire. It does not. Quick Q&A: - Q: How many copies does LRS keep? A: Three, in one datacenter. - Q: Which option spreads copies across availability zones? A: ZRS (and GZRS in the primary region). - Q: Which options copy data to a secondary region? A: GRS and GZRS (and their RA- variants). - Q: What does RA- add? A: Read access to the secondary region. - Q: Is replication to the secondary region synchronous? A: No, it is asynchronous. Key terms: - LRS: Locally redundant storage. 3 copies in one datacenter. - ZRS: Zone-redundant storage. 3 copies across 3 availability zones. - GRS: Geo-redundant storage. LRS plus asynchronous copy to a secondary region. - GZRS: Geo-zone-redundant storage. ZRS plus asynchronous copy to a secondary region. - RA-: Read access to the secondary region at all times (RA-GRS, RA-GZRS). ## AzCopy, Storage Explorer and Azure File Sync URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/moving-files/ Azure offers three main tools for moving files. AzCopy is a command-line utility that copies blobs or files to and from storage accounts. Azure Storage Explorer is a free desktop app with a graphical interface for managing storage, and it uses AzCopy behind the scenes. Azure File Sync keeps Windows file servers in sync with Azure Files and can cache frequently used files locally. Key points: - AzCopy = command line, scripting. - Storage Explorer = desktop GUI (uses AzCopy). - Azure File Sync = sync Windows file servers with Azure Files, with cloud tiering. Exam tips: - "Command-line copy to storage" = AzCopy. - "GUI to manage storage" = Storage Explorer. - "Keep an on-premises file server in sync with the cloud" = Azure File Sync. Common mistakes: - Using File Sync for blobs. It works with Azure Files. Quick Q&A: - Q: Which tool is command-line? A: AzCopy. - Q: Which tool provides a graphical interface? A: Azure Storage Explorer. - Q: What does Storage Explorer use underneath? A: AzCopy. - Q: Which tool syncs Windows Server with Azure Files? A: Azure File Sync. - Q: What is cloud tiering? A: Keeping hot files locally while the rest stay in Azure. Key terms: - AzCopy: A command-line tool for copying data to, from and between storage accounts. - Azure Storage Explorer: A cross-platform desktop GUI for managing Azure Storage. - Azure File Sync: Synchronises Windows Server file shares with Azure Files, with optional cloud tiering. - Cloud tiering: Keeps frequently used files on the local server and leaves the rest in Azure. ## Azure Migrate and Azure Data Box URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-migrate-and-data-box/ Azure Migrate is a central hub of tools to discover, assess and migrate on-premises servers, databases, web apps and virtual desktops to Azure, and to track progress in one place. Azure Data Box is a rugged physical device Microsoft ships to you. You load it with large amounts of data and send it back, so you can move terabytes when the network is too slow or expensive. Key points: - Azure Migrate = discover, assess and migrate workloads, in one hub. - Includes tools for servers, databases, web apps and data. - Azure Data Box = physical device for offline bulk data transfer. - Data Box also works for exporting data out of Azure. Exam tips: - "Move huge amounts of data when the network is too slow" = Azure Data Box. - "Discover and assess on-premises servers before migration" = Azure Migrate. Common mistakes: - Thinking Data Box is a network service. Quick Q&A: - Q: What are the three main jobs of Azure Migrate? A: Discover, assess and migrate. - Q: What is Azure Data Box? A: A physical device for offline transfer of large data to or from Azure. - Q: When would you use Data Box instead of the network? A: When the data is too large or the network too slow or costly. - Q: Can Data Box export data from Azure? A: Yes. - Q: What happens to a Data Box after the data is uploaded? A: Microsoft securely erases it. Key terms: - Azure Migrate: A unified hub for discovery, assessment and migration of workloads to Azure. - Assessment: Analysis of readiness, right-sizing and estimated cost before migrating. - Azure Data Box: A physical storage device for offline transfer of large data sets to or from Azure. ## Azure SQL, SQL Managed Instance and Cosmos DB URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-databases/ Azure offers databases from most control to most managed. SQL Server on Azure VMs (IaaS) gives full control. Azure SQL Managed Instance (PaaS) offers near-complete SQL Server compatibility for easy migrations. Azure SQL Database (PaaS) is a fully managed modern database. Azure Cosmos DB is a globally distributed NoSQL database with very low latency. Key points: - SQL on VM = IaaS, full control. - SQL Managed Instance = PaaS, near-full SQL Server compatibility. - SQL Database = fully managed PaaS. - Cosmos DB = global, low-latency NoSQL. Exam tips: - Databases are not in the current AZ-900 outline, but they appear often in interviews. Common mistakes: - Using Cosmos DB for heavily relational, join-based workloads. Quick Q&A: - Q: Which option gives full control of SQL Server? A: SQL Server on Azure VMs. - Q: Which PaaS option is best for lift-and-shift of SQL Server? A: Azure SQL Managed Instance. - Q: Which option is a globally distributed NoSQL database? A: Azure Cosmos DB. - Q: Which cloud service type is Azure SQL Database? A: PaaS. - Q: Who patches Azure SQL Database? A: Microsoft. Key terms: - Azure SQL Database: Fully managed PaaS relational database based on the SQL Server engine. - SQL Managed Instance: PaaS with near-100% SQL Server compatibility, ideal for lift-and-shift. - Azure Cosmos DB: Globally distributed, multi-model NoSQL database with low latency and elastic scale. ## Microsoft Entra ID and Entra Domain Services URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/microsoft-entra-id/ Microsoft Entra ID (formerly Azure Active Directory) is Microsoft's cloud-based identity and access management service. It signs users in to Azure, Microsoft 365 and thousands of other apps, and provides single sign-on, MFA, app and device management. Microsoft Entra Domain Services provides managed domain services, such as domain join, Group Policy, LDAP and Kerberos, for legacy apps without you running domain controllers. Key points: - Entra ID = cloud identity and access management (formerly Azure AD). - Provides authentication, SSO, app management and device management. - Entra Connect syncs on-premises AD to Entra ID. - Entra Domain Services = managed domain join, Group Policy, LDAP and Kerberos. Exam tips: - "Legacy app needs domain join and Kerberos, no domain controllers to manage" = Entra Domain Services. Common mistakes: - Calling Entra ID a direct replacement for on-premises AD Domain Services. They work differently. Quick Q&A: - Q: What was Microsoft Entra ID previously called? A: Azure Active Directory (Azure AD). - Q: What does Entra Connect do? A: Syncs on-premises Active Directory identities to Entra ID. - Q: Name two services Entra ID provides. A: Authentication and single sign-on (also app and device management). - Q: What does Entra Domain Services provide? A: Managed domain join, Group Policy, LDAP and Kerberos/NTLM. - Q: Do you manage domain controllers with Entra Domain Services? A: No, Microsoft manages them. Key terms: - Microsoft Entra ID: Cloud identity and access management service (formerly Azure AD). - Tenant: A dedicated instance of Microsoft Entra ID representing an organisation. - Microsoft Entra Connect: Synchronises users and groups from on-premises Active Directory to Entra ID. - Microsoft Entra Domain Services: Managed domain join, Group Policy, LDAP and Kerberos/NTLM without managing domain controllers. ## Authentication: SSO, MFA and Passwordless URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/authentication-methods/ Authentication proves who you are. Single sign-on (SSO) lets you sign in once to access many apps. Multifactor authentication (MFA) requires two or more kinds of proof: something you know, something you have, something you are. Passwordless methods, such as Windows Hello for Business, the Microsoft Authenticator app and FIDO2 security keys (passkeys), replace passwords with stronger, easier options. Key points: - SSO = sign in once, access many apps. - MFA = two or more factors (know, have, are). - Passwordless options are Windows Hello for Business, Microsoft Authenticator and FIDO2 keys. - Authentication ≠ authorization. Exam tips: - "Something you know, have, are" = MFA. - "Sign in once for many apps" = SSO. Common mistakes: - Mixing up authentication (who) and authorization (what). Quick Q&A: - Q: What does SSO stand for? A: Single sign-on. - Q: What are the three MFA factor types? A: Something you know, something you have, something you are. - Q: Name two passwordless methods. A: Windows Hello for Business and FIDO2 security keys (also Microsoft Authenticator). - Q: Is a password plus a security question MFA? A: No, both are something you know. - Q: Authentication or authorization? Deciding which files you can open. A: Authorization. Key terms: - Authentication: Proving who you are (AuthN). - Authorization: Deciding what you are allowed to do (AuthZ). - MFA: Requiring two or more of something you know, have or are. - Passwordless: Signing in without a password, using biometrics, a device or a security key. ## External Identities URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/external-identities/ External identities let people outside your organisation, such as partners, suppliers and customers, access your apps using their own identities (their work account, a Microsoft account, Google and others). B2B collaboration invites partners as guests. Microsoft Entra External ID lets customers sign up and sign in to your consumer-facing apps. Key points: - External identities let outsiders use their own accounts. - B2B collaboration = partner guests. - B2B direct connect = trust with another Entra organisation (Teams shared channels). - Entra External ID for customers = sign-up/sign-in for consumer apps. Exam tips: - "Partners sign in with their own work accounts" = B2B collaboration (external identities). Common mistakes: - Creating internal accounts with passwords for every partner. Quick Q&A: - Q: What do external users sign in with? A: Their own identities, such as their work or social accounts. - Q: What are invited partners called in your directory? A: Guest users. - Q: Which option is for consumers of a public app? A: Microsoft Entra External ID for customers. - Q: Name one way to control guest access. A: Access reviews (also Conditional Access with MFA). - Q: What is B2B direct connect used for? A: Trust with another Entra organisation, for example Teams shared channels. Key terms: - External identity: An identity from outside your organisation used to access your resources. - B2B collaboration: Inviting external users as guests who sign in with their own credentials. - B2B direct connect: A trust with another Entra organisation, used for Teams shared channels. - Microsoft Entra External ID (customers): Customer identity and access management for public-facing apps. ## Conditional Access URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/conditional-access/ Microsoft Entra Conditional Access is a tool that uses signals, such as who the user is, their location, device, the app they want and sign-in risk, to make an access decision: allow access, require MFA or another control, or block access. It works like an "if this, then that" policy for sign-ins. Key points: - Conditional Access = if signals, then decision. - Signals are user/group, location, device, app and risk. - Decisions are allow, require MFA or another control, or block. - Part of Microsoft Entra ID. Exam tips: - "Require MFA only when users sign in from outside the office" = Conditional Access. Common mistakes: - Confusing Conditional Access (sign-in decisions) with Azure RBAC (permissions on resources). Quick Q&A: - Q: What does Conditional Access use to decide? A: Signals such as user, location, device, app and risk. - Q: Name three possible decisions. A: Allow, require MFA (or another control), block. - Q: Which service provides Conditional Access? A: Microsoft Entra ID. - Q: What mode lets you test a policy without enforcing it? A: Report-only mode. - Q: Give an example policy. A: Require MFA for all administrators. Key terms: - Conditional Access policy: An if-then rule combining signals and an access decision. - Signal: Information used in the decision, such as user, location, device, app or risk. - Grant control: The requirement or decision, such as require MFA, require a compliant device, or block. ## Azure Role-Based Access Control (RBAC) URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-rbac/ Azure role-based access control (RBAC) manages who can do what on which Azure resources. You create a role assignment combining a security principal (user, group or app), a role definition (such as Owner, Contributor or Reader) and a scope (management group, subscription, resource group or resource). Permissions are inherited by child scopes. Key points: - RBAC = who (principal) + what (role) + where (scope). - Scopes are management group, subscription, resource group or resource. - Permissions inherit down the hierarchy. - Built-in roles include Owner, Contributor, Reader and User Access Administrator. - Follow least privilege. Exam tips: - "Allow a user to view but not change resources" = assign the Reader role. Common mistakes: - Giving everyone Owner to "save time". - Confusing RBAC (who) with Policy (what resources look like). Quick Q&A: - Q: What three things make up a role assignment? A: A security principal, a role definition and a scope. - Q: Which role can create resources but not grant access? A: Contributor. - Q: Which role can only view? A: Reader. - Q: Do permissions assigned at a subscription apply to its resource groups? A: Yes, through inheritance. - Q: What is least privilege? A: Giving only the minimum access needed. Key terms: - Security principal: A user, group, service principal or managed identity that receives access. - Role definition: A collection of permissions, such as Reader or Contributor. - Scope: Where the access applies: management group, subscription, resource group or resource. - Least privilege: Giving only the minimum permissions needed to do the job. ## Zero Trust URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/zero-trust/ Zero Trust is a security model that assumes the worst and trusts nothing by default, not even requests from inside the corporate network. Its three guiding principles are verify explicitly (always authenticate and authorise using all available signals), use least privilege access (just-in-time and just-enough access) and assume breach (minimise blast radius and segment access). Key points: - Zero Trust = never trust, always verify. - Verify explicitly, least privilege, assume breach. - Replaces the old "trusted internal network" model. Exam tips: - Learn the three principles word for word. Common mistakes: - Thinking Zero Trust is a single product you can buy. Quick Q&A: - Q: What is the Zero Trust motto? A: Never trust, always verify. - Q: Name the three principles. A: Verify explicitly, use least privilege access, assume breach. - Q: Does Zero Trust trust the internal network? A: No. - Q: Which principle limits access to just-in-time and just-enough? A: Least privilege access. - Q: Name an Azure tool that helps verify explicitly. A: Conditional Access (with MFA). Key terms: - Zero Trust: A model where every access request is fully verified, regardless of where it comes from. - Verify explicitly: Always authenticate and authorise using identity, location, device, service and risk. - Least privilege: Limit access with just-in-time and just-enough-access. - Assume breach: Design as if attackers are already inside. Segment, encrypt and monitor. ## Defense in Depth URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/defense-in-depth/ Defense in depth protects information with multiple layers of security, so if one layer is breached, the next one still stops the attacker. The layers, from outside in, are physical security, identity and access, perimeter, network, compute, application and data at the centre. Key points: - Multiple layers, so one failure does not expose data. - Physical → identity → perimeter → network → compute → application → data. - Data is at the centre. Exam tips: - Know the order of layers and that data is in the middle. Common mistakes: - Thinking a single strong firewall is enough. Quick Q&A: - Q: What is at the centre of defense in depth? A: Data. - Q: What is the outermost layer? A: Physical security. - Q: Which layer includes DDoS protection? A: Perimeter. - Q: Which layer includes NSGs? A: Network. - Q: Why use many layers? A: So that if one fails, others still protect the data. Key terms: - Defense in depth: A layered security strategy with protections at every level. - Perimeter layer: Protection at the edge of the network, such as DDoS protection and firewalls. - Blast radius: How much damage one breach can cause. Layers keep it small. ## Microsoft Defender for Cloud URL: https://azure.msdevbuild.com/az-900/azure-architecture-and-services/microsoft-defender-for-cloud/ Microsoft Defender for Cloud is a monitoring tool for security posture management and threat protection. It assesses your resources against security best practices, shows a secure score with recommendations to fix issues, and detects and alerts on threats. It protects Azure, on-premises (through Azure Arc) and other clouds such as AWS and Google Cloud. Key points: - Defender for Cloud = posture management + threat protection. - Secure score and recommendations show what to fix. - Protects Azure, on-premises (Arc) and multi-cloud (AWS, GCP). - Defender plans add workload threat protection. Exam tips: - "Secure score and security recommendations across hybrid and multi-cloud" = Defender for Cloud. Common mistakes: - Thinking it only works for Azure resources. Quick Q&A: - Q: What does secure score measure? A: Your security posture. - Q: Can Defender for Cloud protect AWS resources? A: Yes. - Q: How does it protect on-premises servers? A: Through Azure Arc. - Q: What are the two main capabilities? A: Security posture management and threat protection. - Q: What does it give you to improve security? A: Recommendations. Key terms: - Secure score: A measurement of your security posture; higher is better. - Cloud security posture management (CSPM): Continuously assessing configuration against best practices. - Cloud workload protection (CWP): Threat detection for workloads such as servers, containers, storage and databases (Defender plans). # Domain 3: Describe Azure management and governance (30–35%) ## Factors That Affect Azure Costs URL: https://azure.msdevbuild.com/az-900/management-and-governance/factors-affecting-cost/ Azure costs depend on several factors: the resource type and its settings (size, tier, redundancy), consumption (how much and how long you use it), maintenance (cleaning up unused resources), geography (prices differ by region), network traffic (outbound data transfer), the subscription type and any Azure Marketplace purchases. Key points: - Resource type and settings drive cost. - Consumption = how much and how long. - Prices vary by region. - Outbound data transfer is charged; inbound is generally free. - Clean up unused resources (maintenance). Exam tips: - Know the list. Resource type, consumption, maintenance, geography, network traffic, subscription type, Marketplace. Common mistakes: - Forgetting orphaned disks and IPs after deleting VMs. Quick Q&A: - Q: Do Azure prices vary by region? A: Yes. - Q: Is inbound data transfer usually charged? A: No. Outbound (egress) usually is. - Q: What is an orphaned resource? A: A leftover resource, such as a disk after its VM is deleted, that still costs money. - Q: How are Marketplace products billed? A: Through your Azure subscription. - Q: Name two settings that change a storage account's cost. A: Access tier and redundancy (also performance). Key terms: - Resource type: The kind of service and its settings, such as VM size, storage tier or redundancy. - Egress: Data leaving Azure or moving between regions, which is usually charged. - Orphaned resource: A resource left behind after its parent is deleted, such as a disk after a VM, which still costs money. - Azure Marketplace: A store of third-party solutions, billed through your Azure subscription. ## Pricing Calculator URL: https://azure.msdevbuild.com/az-900/management-and-governance/pricing-calculator/ The Azure pricing calculator is a free web tool that estimates the cost of provisioning Azure resources before you deploy them. You add services such as VMs, storage and databases, choose options like region, size, tier and hours, and it shows an estimated monthly cost you can save, share and export. It doesn't create any resources. Key points: - Estimates costs before you deploy. - Choose services, region, size, tier and usage. - Estimates can be saved, shared and exported. - It does not create resources. Exam tips: - "Estimate the monthly cost of planned Azure services" = pricing calculator. Common mistakes: - Confusing the pricing calculator with the TCO calculator. Quick Q&A: - Q: What does the pricing calculator do? A: Estimates the cost of Azure services before deployment. - Q: Does it create any resources? A: No. - Q: Name two options you can choose. A: Region and size (also tier, hours, redundancy). - Q: Can you share an estimate? A: Yes, estimates can be saved, shared and exported. - Q: Which tool compares on-premises and Azure costs? A: The TCO calculator. Key terms: - Pricing calculator: A web tool that estimates the cost of Azure services before deployment. - Estimate: A saved list of services and options with a predicted monthly cost. ## Total Cost of Ownership (TCO) URL: https://azure.msdevbuild.com/az-900/management-and-governance/tco-calculator/ Total cost of ownership (TCO) is everything a workload costs over its life: hardware, software, power, cooling, space, networking and staff. The Azure TCO calculator compares running workloads on-premises versus in Azure. For a deeper analysis based on discovered servers, Azure Migrate's business case estimates TCO, savings and cash flow. Key points: - TCO includes hardware, software, facilities and staff costs. - TCO calculator compares on-premises vs Azure. - Azure Migrate business case gives a detailed TCO from real discovery data. Exam tips: - "Compare on-premises costs with Azure" = TCO calculator. (Not listed in the current outline, but classic exam vocabulary.) Common mistakes: - Comparing only server prices with monthly Azure bills. Quick Q&A: - Q: What does TCO stand for? A: Total cost of ownership. - Q: Which tool compares on-premises and Azure costs? A: The TCO calculator. - Q: Name three on-premises costs in a TCO. A: Hardware, power and cooling, staff (also space and licences). - Q: Which Azure Migrate feature estimates TCO from discovered servers? A: The business case. - Q: Does the pricing calculator compare on-premises costs? A: No, it estimates Azure costs only. Key terms: - Total cost of ownership: All direct and indirect costs of a system over its lifetime. - TCO calculator: A tool comparing on-premises and Azure costs for a workload. - Business case (Azure Migrate): A TCO and savings report built from discovery data of your real servers. ## Microsoft Cost Management URL: https://azure.msdevbuild.com/az-900/management-and-governance/cost-management/ Microsoft Cost Management helps you track, analyse and control Azure spending after you deploy. Use cost analysis to see where money goes, budgets to set spending limits, alerts to be warned before you overspend, and recommendations to find savings. It's built into the Azure portal. Key points: - Cost analysis shows where money goes. - Budgets and alerts warn before overspending. - Recommendations (from Advisor) find savings. - Group costs by tags, resource groups or subscriptions. Exam tips: - "Be notified when spending reaches 80% of a limit" = budget alert in Cost Management. Common mistakes: - Thinking budgets automatically stop spending. Quick Q&A: - Q: Which tool tracks actual Azure spending? A: Microsoft Cost Management. - Q: What do budgets do? A: Set spending limits and trigger alerts at thresholds. - Q: Do budgets stop resources automatically? A: No, they alert. Automation can be added with action groups. - Q: How can you split costs by department? A: Use tags or separate subscriptions and group cost analysis by them. - Q: Name a type of cost alert. A: Budget alert (also credit and department spending quota alerts). Key terms: - Cost analysis: Interactive charts of spending by service, resource group, tag, region and time. - Budget: A spending limit with alerts at chosen percentages of actual or forecast cost. - Cost alert: A notification, such as a budget alert, credit alert or department spending quota alert. ## Resource Tags URL: https://azure.msdevbuild.com/az-900/management-and-governance/resource-tags/ Resource tags are name-value pairs (such as env = production or costCenter = 1234) that you attach to Azure resources, resource groups and subscriptions. They add metadata that helps with cost reporting, resource management, operations and automation, security and governance and compliance. Tags aren't inherited by default. Key points: - Tags = name-value metadata on resources. - Used for cost reporting, ownership, automation, security and governance. - Not inherited by default; Azure Policy can enforce and inherit. Exam tips: - "Group costs by department across resource groups" = tags. Common mistakes: - Assuming tags on a resource group automatically appear on its resources. Quick Q&A: - Q: What is a tag made of? A: A name and a value. - Q: Are tags inherited by default? A: No. - Q: How can you enforce tags? A: With Azure Policy. - Q: Give two uses of tags. A: Cost reporting and identifying owners (also automation and governance). - Q: Can you tag resource groups and subscriptions? A: Yes. Key terms: - Tag: A name-value pair of metadata on a resource. - Tag inheritance: Resources do not inherit tags from their group by default; Azure Policy can enforce or copy them. ## Microsoft Purview URL: https://azure.msdevbuild.com/az-900/management-and-governance/microsoft-purview/ Microsoft Purview is a family of data governance, risk and compliance solutions that gives you a single view of your data. It helps you discover, classify and map data across on-premises, multi-cloud and SaaS sources, track data lineage, and protect sensitive information, so you know what data you have, where it's and who uses it. Key points: - Purview = data governance, risk and compliance. - Discovers and classifies data across on-premises, multi-cloud and SaaS. - Data map, catalogue and lineage. - Helps protect sensitive data and meet regulations. Exam tips: - "Discover and classify sensitive data across sources" = Microsoft Purview. Common mistakes: - Confusing Purview (data governance) with Azure Policy (resource rules). Quick Q&A: - Q: What is Microsoft Purview for? A: Data governance, risk and compliance. - Q: Where can Purview find data? A: On-premises, multi-cloud and SaaS sources. - Q: What is data lineage? A: Tracking where data comes from and where it flows. - Q: What does classification do? A: Automatically labels data types such as personal or financial data. - Q: Purview or Azure Policy? Enforcing allowed VM sizes. A: Azure Policy. Key terms: - Data governance: Knowing and managing what data you have, where it is and how it is used. - Data map: An automatically built inventory of data sources and assets. - Classification: Labelling data, such as credit card numbers or personal data, automatically. - Data lineage: Tracking where data comes from and where it flows. ## Azure Policy URL: https://azure.msdevbuild.com/az-900/management-and-governance/azure-policy/ Azure Policy helps you create, assign and manage rules that keep resources compliant with your organisation's standards. Policies evaluate resource properties and can audit, deny, modify or deploy settings automatically. Group related policies into initiatives, assign them at any scope, and see compliance in one dashboard. Key points: - Azure Policy enforces rules on resource properties. - Effects include Audit, Deny, Modify and DeployIfNotExists. - Initiatives group related policies. - Assign at management group, subscription or resource group scope; inherited downward. - Can remediate existing resources. Exam tips: - "Only allow resources in specific regions" = Azure Policy. Common mistakes: - Confusing Policy (what resources look like) with RBAC (who can act). Quick Q&A: - Q: What does Azure Policy enforce? A: Rules on resource properties, such as allowed regions or required tags. - Q: What is an initiative? A: A group of related policy definitions. - Q: Name two policy effects. A: Audit and Deny (also Modify, DeployIfNotExists). - Q: Can Azure Policy fix existing resources? A: Yes, with remediation tasks. - Q: Policy or RBAC? Controlling who can create VMs. A: RBAC. Key terms: - Policy definition: A rule describing a condition and an effect, such as "deny VMs outside allowed sizes". - Initiative: A group of related policy definitions assigned together. - Effect: What happens when a rule matches, such as Audit, Deny, Modify or DeployIfNotExists. - Remediation: Fixing existing non-compliant resources automatically. ## Resource Locks URL: https://azure.msdevbuild.com/az-900/management-and-governance/resource-locks/ Resource locks prevent resources from being accidentally deleted or changed. A Delete lock (CanNotDelete) allows changes but blocks deletion. A ReadOnly lock blocks both changes and deletion. Locks can be applied to subscriptions, resource groups or individual resources, are inherited by child resources, and apply to everyone, even Owners, until the lock is removed. Key points: - Locks prevent accidental deletion or modification. - Delete (CanNotDelete) vs ReadOnly. - Apply at subscription, resource group or resource; inherited downward. - Locks apply to all users, including Owners. - Remove the lock first to make the change. Exam tips: - "Prevent accidental deletion but allow changes" = Delete (CanNotDelete) lock. Common mistakes: - Thinking Owners can bypass locks. Quick Q&A: - Q: Which lock allows changes but blocks deletion? A: Delete (CanNotDelete). - Q: Which lock blocks changes and deletion? A: ReadOnly. - Q: Can an Owner delete a locked resource? A: Not until the lock is removed. - Q: Are locks inherited? A: Yes, by resources within the locked scope. - Q: Where can locks be applied? A: Subscriptions, resource groups and resources. Key terms: - Delete lock (CanNotDelete): Users can read and modify a resource but cannot delete it. - ReadOnly lock: Users can read a resource but cannot modify or delete it. - Lock inheritance: A lock on a resource group or subscription applies to everything inside. ## Azure Portal URL: https://azure.msdevbuild.com/az-900/management-and-governance/azure-portal/ The Azure portal is a web-based, unified console at portal.azure.com for building, managing and monitoring everything in Azure, from simple web apps to complex deployments, using a graphical interface. You can create customisable dashboards, set access controls, and open Azure Cloud Shell right from the portal. It's designed to be resilient and is available in every Azure datacenter. Key points: - The portal is a web-based GUI for Azure. - Build, manage and monitor resources. - Customisable dashboards. - Cloud Shell is available from the portal. Exam tips: - "Manage Azure through a web browser with a graphical interface" = Azure portal. Common mistakes: - Thinking the portal is the only way to manage Azure. Quick Q&A: - Q: What is the address of the Azure portal? A: portal.azure.com - Q: Is the portal graphical or command-line? A: Graphical (web-based). - Q: What can you customise in the portal? A: Dashboards. - Q: Which shell can you open from the portal? A: Azure Cloud Shell. - Q: Is the portal good for repeatable production deployments? A: Not ideal. Use infrastructure as code for those. Key terms: - Azure portal: The browser-based graphical console for Azure. - Dashboard: A customisable view of tiles showing the resources and metrics you care about. - Blade: A panel in the portal that opens to show a resource or setting. ## Cloud Shell, Azure CLI and Azure PowerShell URL: https://azure.msdevbuild.com/az-900/management-and-governance/cloud-shell-cli-powershell/ Azure CLI (az commands) and Azure PowerShell (cmdlets such as New-AzVM) are command-line tools for managing Azure through scripts. Azure Cloud Shell is a browser-based shell, launched from the portal, that already has both tools installed and is already signed in. You can choose a Bash or PowerShell experience. Key points: - Azure CLI = az commands. - Azure PowerShell = cmdlets like New-AzVM. - Cloud Shell = browser shell with both tools, already authenticated. - Cloud Shell offers Bash or PowerShell. Exam tips: - "Browser-based shell with Azure tools preinstalled" = Azure Cloud Shell. Common mistakes: - Thinking you must install anything to use Cloud Shell. Quick Q&A: - Q: What prefix do Azure CLI commands use? A: az - Q: Give an Azure PowerShell cmdlet example. A: New-AzVM (or Get-AzResourceGroup). - Q: Do you need to install anything for Cloud Shell? A: No, it runs in the browser. - Q: Which shells does Cloud Shell offer? A: Bash and PowerShell. - Q: Why prefer scripts over clicking for repeated tasks? A: They are repeatable, automatable and reviewable. Key terms: - Azure CLI: Cross-platform command-line tool using az commands, popular with Bash users. - Azure PowerShell: A set of PowerShell cmdlets (the Az module) for managing Azure. - Azure Cloud Shell: A browser-based, authenticated shell with Azure CLI and PowerShell preinstalled. ## Azure Arc URL: https://azure.msdevbuild.com/az-900/management-and-governance/azure-arc/ Azure Arc extends Azure management and governance to resources outside Azure: on-premises servers, servers in other clouds, Kubernetes clusters and data services. Once connected, they appear in Azure Resource Manager, so you can organise them with resource groups and tags, govern them with Azure Policy, secure them with Defender for Cloud, monitor them with Azure Monitor and control access with RBAC. Key points: - Azure Arc manages resources outside Azure. - Covers servers, Kubernetes, data services, SQL Server and VMs in VMware/SCVMM. - Use Azure Policy, Defender for Cloud, Monitor, tags and RBAC on them. - Enables consistent hybrid and multi-cloud management. Exam tips: - "Manage on-premises and multi-cloud servers from Azure" = Azure Arc. Common mistakes: - Thinking Arc migrates workloads into Azure. It manages them where they are. Quick Q&A: - Q: What does Azure Arc do? A: Extends Azure management to resources outside Azure. - Q: Name three resource types Arc can manage. A: Servers, Kubernetes clusters and data services (also SQL Server). - Q: Does Arc move workloads into Azure? A: No, it manages them where they run. - Q: Which Azure governance tool can apply rules to Arc servers? A: Azure Policy. - Q: Can Arc manage servers in another public cloud? A: Yes. Key terms: - Azure Arc: Extends Azure management to resources running outside Azure. - Arc-enabled server: A non-Azure Windows or Linux machine connected to Azure through the Arc agent. - Arc-enabled Kubernetes: A Kubernetes cluster anywhere, managed and governed from Azure. ## Infrastructure as Code (IaC) URL: https://azure.msdevbuild.com/az-900/management-and-governance/infrastructure-as-code/ Infrastructure as code (IaC) means managing infrastructure, such as networks, VMs and databases, by writing code files instead of clicking. The files can be version-controlled, reviewed and deployed repeatedly, so every environment is consistent. On Azure, common IaC tools are Bicep, ARM templates and Terraform, which are mostly declarative: you describe the end state, and the tool works out how to reach it. Key points: - IaC = infrastructure defined in code files. - Repeatable, consistent, version-controlled, reviewable. - Declarative (desired state) vs imperative (step by step). - Azure tools include Bicep, ARM templates and Terraform. Exam tips: - "Deploy identical environments repeatedly from files" = infrastructure as code. Common mistakes: - Thinking IaC means only shell scripts. Declarative templates are the norm. Quick Q&A: - Q: What is infrastructure as code? A: Managing infrastructure through code files. - Q: Name two Azure IaC tools. A: Bicep and ARM templates (also Terraform). - Q: What does declarative mean? A: Describing the desired end state rather than the steps. - Q: Why store IaC in source control? A: For history, review and collaboration. - Q: What does Bicep compile to? A: ARM templates. Key terms: - Infrastructure as code: Defining and deploying infrastructure through code files. - Declarative: Describe what you want; the tool decides how to create it. - Imperative: Write step-by-step commands, as in a script. - Bicep: A concise Azure language that compiles to ARM templates. ## Azure Resource Manager and ARM Templates URL: https://azure.msdevbuild.com/az-900/management-and-governance/azure-resource-manager/ Azure Resource Manager (ARM) is the deployment and management service for Azure. Every request, from the portal, CLI, PowerShell, SDKs or templates, goes through ARM, which authenticates and authorises it and then creates, updates or deletes resources. ARM templates are declarative JSON files that describe the resources to deploy. Bicep is a simpler language that compiles to ARM templates. Key points: - ARM processes every Azure management request. - Provides consistent authentication, RBAC, policy and tagging. - ARM templates = declarative JSON. - Templates are idempotent and handle dependencies. - Bicep compiles to ARM templates. Exam tips: - "Deployment and management service for Azure" = Azure Resource Manager. - "Declarative JSON template" = ARM template. Common mistakes: - Thinking the portal and CLI use different back ends. They both use ARM. Quick Q&A: - Q: Which service processes all Azure management requests? A: Azure Resource Manager. - Q: In what format are ARM templates written? A: JSON. - Q: Are ARM templates declarative or imperative? A: Declarative. - Q: What does idempotent mean? A: Deploying the same template repeatedly gives the same result. - Q: Which language compiles to ARM templates? A: Bicep. Key terms: - Azure Resource Manager: The deployment and management layer that processes every Azure management request. - ARM template: A declarative JSON file that defines Azure resources and their configuration. - Idempotent: Deploying the same template many times gives the same result. ## Azure Advisor URL: https://azure.msdevbuild.com/az-900/management-and-governance/azure-advisor/ Azure Advisor evaluates your deployed Azure resources and gives personalised recommendations to improve them. Recommendations are grouped into five categories: Reliability, Security, Performance, Operational Excellence and Cost. Each one explains the problem and how to fix it, and many can be fixed with one click. Key points: - Advisor analyses deployed resources and recommends improvements. - Five categories are Reliability, Security, Performance, Operational Excellence and Cost. - Free, personalised and actionable. Exam tips: - "Recommendations to reduce cost and improve reliability" = Azure Advisor. Common mistakes: - Confusing Advisor (recommendations) with Service Health (Azure platform issues). Quick Q&A: - Q: What does Azure Advisor provide? A: Personalised recommendations to improve your resources. - Q: Name the five Advisor categories. A: Reliability, Security, Performance, Operational Excellence, Cost. - Q: Does Advisor estimate costs before deployment? A: No, that's the pricing calculator. Advisor analyses deployed resources. - Q: Give an example Advisor recommendation. A: Resize or shut down an underused VM to save money. - Q: Which framework do Advisor's categories align with? A: The Azure Well-Architected Framework. Key terms: - Azure Advisor: A free service that analyses your resources and recommends improvements. - Advisor score: A score showing how well you follow Advisor's best-practice recommendations. - Well-Architected Framework: Microsoft's best-practice guidance; Advisor's categories align with its pillars. ## Azure Service Health and Azure Status URL: https://azure.msdevbuild.com/az-900/management-and-governance/service-health-and-azure-status/ Azure Service Health keeps you informed about the health of Azure itself. It has three parts. Azure status is a global view of the health of all Azure services in all regions. Service Health is a personalised view of incidents, planned maintenance and advisories that affect *your* services and regions. Resource Health shows the health of *your individual* resources, such as a specific VM. Key points: - Azure status = global, all services, all regions. - Service Health = personalised to your services and regions. - Resource Health = your individual resources. - Set up Service Health alerts. Exam tips: - "Notified about planned maintenance affecting my regions" = Service Health. - "Is my specific VM healthy?" = Resource Health. Common mistakes: - Using Azure Advisor to find out about Azure outages. Quick Q&A: - Q: Which view shows the health of all Azure services globally? A: Azure status. - Q: Which view is personalised to your services and regions? A: Service Health. - Q: Which view shows the health of one specific VM? A: Resource Health. - Q: Name two event types in Service Health. A: Service issues and planned maintenance (also health advisories). - Q: How do you get notified automatically? A: Create Service Health alerts with action groups. Key terms: - Azure status: A public, global page showing the health of all Azure services across regions. - Service Health: A personalised view of service issues, planned maintenance and advisories affecting your subscriptions. - Resource Health: The current and past health of your individual resources. ## Azure Monitor, Log Analytics, Alerts and Application Insights URL: https://azure.msdevbuild.com/az-900/management-and-governance/azure-monitor/ Azure Monitor collects, analyses and acts on metrics and logs from your Azure resources, applications, operating systems and on-premises sources. Log Analytics lets you query log data using KQL. Azure Monitor alerts notify you or run automation when conditions are met. Application Insights monitors your web applications' performance, failures and usage. Key points: - Azure Monitor collects metrics and logs from many sources. - Log Analytics queries logs with KQL. - Alerts notify or automate through action groups. - Application Insights monitors application performance and usage. Exam tips: - "Query log data with KQL" = Log Analytics. - "Monitor web app response times and failures" = Application Insights. Common mistakes: - Confusing Azure Monitor (your resources) with Service Health (Azure platform issues). Quick Q&A: - Q: What two main types of data does Azure Monitor collect? A: Metrics and logs. - Q: Which tool runs KQL queries on logs? A: Log Analytics. - Q: What delivers alert notifications such as email or SMS? A: Action groups. - Q: Which feature monitors application performance? A: Application Insights. - Q: Can Azure Monitor collect data from on-premises? A: Yes, with agents (and Azure Arc). Key terms: - Metrics: Numeric values collected at regular intervals, such as CPU percentage. - Logs: Records of events and data, queried with KQL in Log Analytics. - KQL: Kusto Query Language, used to query logs. - Action group: A set of notification and automation actions (email, SMS, webhook, Logic App) triggered by alerts. - Application Insights: Application performance monitoring (APM) feature of Azure Monitor. ## SLAs and the Service Lifecycle URL: https://azure.msdevbuild.com/az-900/management-and-governance/slas-and-service-lifecycle/ A Service Level Agreement (SLA) is Microsoft's formal commitment to a level of uptime or connectivity for a service, usually as a percentage such as 99.9%, with service credits if it's missed. The service lifecycle describes how services are released: private preview, then public preview (usually no SLA), then general availability (GA), which is fully supported with an SLA. Key points: - SLAs are uptime commitments with service credits. - Composite SLA = multiply SLAs of dependent services. - Lifecycle is private preview → public preview → general availability. - Preview services usually have no SLA. Exam tips: - SLAs and lifecycle are not listed in the current outline, but they underpin high availability and are common interview topics. Common mistakes: - Running production on preview features without understanding the risk. Quick Q&A: - Q: What is a service credit? A: A refund percentage when an SLA is missed. - Q: Do public preview services usually have an SLA? A: No. - Q: What does GA stand for? A: General availability. - Q: How do you combine SLAs of services that all must work? A: Multiply them. - Q: Which has less downtime, 99.9% or 99.99%? A: 99.99%. Key terms: - SLA: A formal commitment to uptime or connectivity, with service credits if it is not met. - Service credit: A percentage of fees refunded when an SLA is missed. - Public preview: A service available to all customers for testing, usually without an SLA. - General availability (GA): A fully released, supported service, normally covered by an SLA. # Comparisons ## Azure Blob vs Files vs Disk Storage URL: https://azure.msdevbuild.com/az-900/compare/blob-vs-files-vs-disk/ Use Blob Storage for files your apps read over HTTP (images, backups, data lakes). Use Azure Files for a shared network drive many machines mount over SMB or NFS. Use Managed Disks for the hard drive of a single virtual machine. | | Blob Storage | Azure Files | Managed Disks | | --- | --- | --- | --- | | Storage type | Object storage | File shares (folders and files) | Block storage (a virtual hard disk) | | How you access it | HTTPS / REST API, SDKs, AzCopy | SMB or NFS, mapped like a network drive | Attached to a VM as a drive (C:, /dev/sdc) | | Shared by many machines? | Yes, by any app with access | Yes, many machines mount the same share | Normally one VM (shared disks are a special case) | | Typical use | Images, video, backups, logs, data lakes, static websites | Lift-and-shift file servers, shared config, team folders | OS disk and data disks of VMs, databases on VMs | | Access tiers | Hot, Cool, Cold, Archive | Transaction optimized, Hot, Cool (Premium uses SSD) | Standard HDD, Standard SSD, Premium SSD, Ultra Disk | | Price feel (illustrative) | ≈ $0.02 per GB/month (Hot, LRS) | ≈ $0.06 per GB/month (Transaction optimized) | 128 GiB Premium SSD ≈ $19.71/month | | Lives in | A storage account (container) | A storage account (file share) | Its own managed disk resource | - Pick Blob Storage when your app or users fetch files over the web, or you need cheap long-term storage. - Pick Azure Files when several servers or people need the same folders, or you are replacing an on-premises file server. - Pick Managed Disks when a VM needs a drive for its operating system or data. - Exam tip: If the question mentions SMB, a mapped drive or "replace a file server", the answer is Azure Files. Unstructured data over HTTP is Blob. - Q: Can a VM use Blob Storage directly? A: Yes, through the SDK, REST API or tools like AzCopy, but it is not a drive letter. For a drive, use a managed disk or mount an Azure Files share. - Q: Is Azure Files the same as OneDrive? A: No. OneDrive is a SaaS product for people. Azure Files is infrastructure: a file share your servers and apps mount over SMB or NFS. - Q: Which is cheapest for backups? A: Blob Storage in the Cool, Cold or Archive tier. ## Azure VM vs App Service vs Functions vs AKS URL: https://azure.msdevbuild.com/az-900/compare/vm-vs-app-service-vs-functions/ Pick a VM when you need full control of the operating system. Pick App Service to host a web app or API without managing servers. Pick Functions for small pieces of code that run on events and scale to zero. Pick AKS to run many containers with Kubernetes. | | Virtual Machines | App Service | Azure Functions | AKS (Kubernetes) | | --- | --- | --- | --- | --- | | Model | IaaS | PaaS | Serverless (FaaS) | Managed container orchestration | | You manage | OS, patches, runtime, app | Code and settings | Just the function code | Containers, node pools, cluster config | | Scaling | Manual or with scale sets | Scale up/out, autoscale | Automatic, per event, down to zero | Pod and node autoscaling | | Billing | Per hour while running | Per App Service plan per hour | Per execution and memory-second (Consumption / Flex) | Per node VM (+ optional cluster tier fee) | | Price feel (illustrative) | B2s ≈ $35/month | Basic B1 ≈ $13/month | Free grant, then cents per million runs | Nodes like any VM; free control plane tier | | Good for | Legacy apps, custom software, full control | Websites, REST APIs, mobile back ends | Event processing, schedules, glue code | Microservices, portable container workloads | - Pick Virtual Machines when you need a specific OS, admin access or software that cannot run on a platform. - Pick App Service when you have a web app or API and want deployments, scaling and TLS handled for you. - Pick Azure Functions when code should run only when something happens (a file arrives, a timer fires, an HTTP call). - Pick AKS when you already package apps as containers and need orchestration at scale. - Exam tip: "No servers to manage, pay only when code runs" = Azure Functions. "Full control of the operating system" = Virtual Machines. - Q: Is App Service cheaper than a VM? A: For a web app, often yes: one small plan can host several apps and you save the time spent patching an OS. - Q: Can Azure Functions run for hours? A: Consumption plans have time limits per run. For long jobs use Premium or Flex Consumption plans, Durable Functions, or containers. - Q: Is AKS serverless? A: Not by default: you pay for node VMs. Azure Container Apps is the serverless container option. ## LRS vs ZRS vs GRS vs GZRS (Azure Storage Redundancy) URL: https://azure.msdevbuild.com/az-900/compare/lrs-vs-zrs-vs-grs-vs-gzrs/ LRS keeps 3 copies in one datacenter. ZRS keeps 3 copies across 3 availability zones. GRS adds 3 more copies in the paired region. GZRS combines zones and a paired region. RA- versions let you read the secondary copy at any time. | | LRS | ZRS | GRS | GZRS | | --- | --- | --- | --- | --- | | Copies | 3 | 3 | 6 | 6 | | Where | One datacenter | Three zones in one region | One datacenter + paired region | Three zones + paired region | | Survives a disk/server failure | ✅ | ✅ | ✅ | ✅ | | Survives a datacenter/zone outage | ❌ | ✅ | ⚠️ after failover | ✅ | | Survives a region outage | ❌ | ❌ | ✅ after failover | ✅ after failover | | Read the secondary anytime | — | — | With RA-GRS | With RA-GZRS | | Price feel, 1 TB Hot (illustrative) | ≈ $20.48/month | ≈ $25.60/month | ≈ $40.96/month | ≈ $46.08/month | - Pick LRS when data can be recreated, or for dev/test, at the lowest price. - Pick ZRS when you need high availability inside one region (e.g. data residency). - Pick GRS when you need disaster recovery to another region. - Pick GZRS when you need both zone resilience and regional disaster recovery. - Exam tip: Only the G options copy data to another region. Only the Z options use availability zones. Geo-replication is asynchronous. - Q: What is the default redundancy? A: The portal suggests GRS for many new standard accounts, but you choose. LRS is the cheapest. - Q: Can I change redundancy later? A: Yes for most combinations, from the Redundancy blade or by requesting a conversion. - Q: How many copies does GRS keep? A: Six: three in the primary region (LRS) and three in the secondary region. ## Azure vs AWS: service name map URL: https://azure.msdevbuild.com/az-900/compare/azure-vs-aws/ Most AWS services have an Azure equivalent with a different name: EC2 → Virtual Machines, S3 → Blob Storage, Lambda → Azure Functions, VPC → Virtual Network, CloudFormation → ARM/Bicep, CloudWatch → Azure Monitor. | You need… | Azure | AWS | Category | | --- | --- | --- | --- | | Compute | Virtual Machines | EC2 | Compute | | VM scaling | VM Scale Sets | EC2 Auto Scaling | Compute | | Web apps (PaaS) | App Service | Elastic Beanstalk | Compute | | Serverless functions | Azure Functions | Lambda | Compute | | Kubernetes | AKS | EKS | Containers | | Serverless containers | Container Apps / Container Instances | App Runner / Fargate | Containers | | Container registry | Container Registry | ECR | Containers | | Virtual desktops | Azure Virtual Desktop | WorkSpaces | Compute | | Object storage | Blob Storage | S3 | Storage | | Archive storage | Blob Archive tier | S3 Glacier | Storage | | File shares | Azure Files | EFS / FSx | Storage | | VM disks | Managed Disks | EBS | Storage | | Offline data transfer | Data Box | Snowball | Storage | | Backup | Azure Backup | AWS Backup | Storage | | Relational database | Azure SQL Database | RDS / Aurora | Databases | | NoSQL database | Cosmos DB | DynamoDB | Databases | | Open-source databases | Database for PostgreSQL / MySQL | RDS for PostgreSQL / MySQL | Databases | | In-memory cache | Azure Cache for Redis / Managed Redis | ElastiCache | Databases | | Private network | Virtual Network (VNet) | VPC | Networking | | Network peering | VNet peering | VPC peering | Networking | | Firewall rules on a subnet/NIC | Network security group (NSG) | Security groups / NACLs | Networking | | Managed firewall | Azure Firewall | Network Firewall | Networking | | Layer-4 load balancer | Load Balancer | Network Load Balancer | Networking | | Layer-7 load balancer | Application Gateway | Application Load Balancer | Networking | | Global edge / CDN | Front Door | CloudFront (+ Global Accelerator) | Networking | | DNS | Azure DNS / Traffic Manager | Route 53 | Networking | | Site-to-site VPN | VPN Gateway | Site-to-Site VPN | Networking | | Private dedicated line | ExpressRoute | Direct Connect | Networking | | Hub networking | Virtual WAN | Transit Gateway / Cloud WAN | Networking | | Private access to PaaS | Private Link / private endpoints | PrivateLink / VPC endpoints | Networking | | DDoS protection | DDoS Protection | Shield | Security | | Web application firewall | Azure WAF | AWS WAF | Security | | Identity directory | Microsoft Entra ID | IAM Identity Center | Identity | | Customer identity | Entra External ID | Cognito | Identity | | Access control | Azure RBAC | IAM policies | Identity | | Secrets and keys | Key Vault | Secrets Manager / KMS | Security | | Cloud security posture | Defender for Cloud | Security Hub / GuardDuty | Security | | Data governance | Microsoft Purview | DataZone / Macie | Security | | Monitoring | Azure Monitor | CloudWatch | Management | | Application tracing | Application Insights | X-Ray / Application Signals | Management | | Infrastructure as code | ARM templates / Bicep | CloudFormation | Management | | Governance rules | Azure Policy | AWS Config rules / SCPs | Management | | Account hierarchy | Management groups → subscriptions | Organizations OUs → accounts | Management | | Cost tools | Cost Management + Billing | Cost Explorer / Budgets | Management | | Best-practice advisor | Azure Advisor | Trusted Advisor | Management | | Service health | Service Health | AWS Health Dashboard | Management | | Browser shell | Cloud Shell | CloudShell | Management | | Hybrid management | Azure Arc | Systems Manager (hybrid) / EKS Anywhere | Hybrid | | Migration | Azure Migrate | Application Migration Service | Migration | | Disaster recovery | Azure Site Recovery | Elastic Disaster Recovery | Migration | | Generative AI models | Azure AI Foundry / Azure OpenAI | Bedrock | AI | | Messaging queue | Queue Storage / Service Bus | SQS | Integration | | Event routing | Event Grid | EventBridge | Integration | | Streaming ingestion | Event Hubs | Kinesis Data Streams | Integration | - Pick Know AWS already? when learn the Azure name, then the differences: Azure groups resources in resource groups and subscriptions; AWS uses accounts and tags. - Pick Exam focus when AZ-900 never asks about AWS, but mapping what you know speeds up learning. - Exam tip: Azure organises everything in a hierarchy: management groups → subscriptions → resource groups → resources. There is no exact AWS equivalent of a resource group. - Q: What is the Azure equivalent of EC2? A: Azure Virtual Machines. - Q: What is the Azure equivalent of S3? A: Azure Blob Storage. - Q: What is the Azure equivalent of Lambda? A: Azure Functions. - Q: What is the Azure equivalent of an AWS account? A: Roughly a subscription: a billing and access boundary. ## Load Balancer vs Application Gateway vs Front Door vs Traffic Manager URL: https://azure.msdevbuild.com/az-900/compare/load-balancer-vs-application-gateway-vs-front-door/ Load Balancer spreads TCP/UDP traffic inside a region. Application Gateway routes HTTP(S) inside a region and can add a WAF. Front Door is a global HTTP(S) entry point at Microsoft’s edge with CDN and WAF. Traffic Manager routes users globally using DNS. | | Load Balancer | Application Gateway | Front Door | Traffic Manager | | --- | --- | --- | --- | --- | | OSI layer | 4 (TCP/UDP) | 7 (HTTP/HTTPS) | 7 (HTTP/HTTPS) | DNS | | Scope | Regional (global tier exists) | Regional | Global | Global | | Web application firewall | — | ✅ (WAF SKU) | ✅ | — | | URL path / host routing | — | ✅ | ✅ | — | | TLS termination | — | ✅ | ✅ | — | | Caching / CDN | — | — | ✅ | — | | Typical use | VMs behind one IP, any protocol | Web apps in one region with WAF | Global websites, fast and protected | Failover/geo routing for any endpoint | - Pick Load Balancer when non-HTTP traffic, or simple high-performance distribution in one region. - Pick Application Gateway when HTTP apps in one region that need path routing, TLS offload or WAF. - Pick Front Door when users are worldwide and you want one global URL, caching and WAF. - Pick Traffic Manager when you need DNS-level failover or geo-routing, including non-HTTP endpoints. - Exam tip: Global + HTTP = Front Door. Regional + HTTP + WAF = Application Gateway. Any TCP/UDP in a region = Load Balancer. DNS-based = Traffic Manager. - Q: Can I use Front Door and Application Gateway together? A: Yes: Front Door at the global edge, Application Gateway in each region in front of the app. - Q: Does Load Balancer understand URLs? A: No. It works at layer 4 and only sees IP addresses and ports. ## VPN Gateway vs ExpressRoute URL: https://azure.msdevbuild.com/az-900/compare/vpn-gateway-vs-expressroute/ A VPN Gateway connects your network to Azure through an encrypted tunnel over the public internet. ExpressRoute is a private connection through a connectivity provider that never uses the internet, giving more predictable speed and latency. | | VPN Gateway | ExpressRoute | | --- | --- | --- | | Path | Public internet, IPsec/IKE encrypted | Private circuit via a connectivity provider | | Bandwidth | Hundreds of Mbps up to several Gbps by SKU | 50 Mbps to 10 Gbps (100 Gbps with ExpressRoute Direct) | | Latency and reliability | Varies with the internet | Predictable, with an SLA on the circuit | | Setup time | Hours (gateway takes ~30+ min to deploy) | Weeks (provider provisioning) | | Price feel (illustrative) | VpnGw1 ≈ $139/month + data out | 1 Gbps Standard metered ≈ $436/month + provider fees | | Also covers | Point-to-site VPN for individual laptops | Microsoft 365 and Azure public services (Microsoft peering) | | Use as backup for the other? | Yes, VPN is a common ExpressRoute backup | — | - Pick VPN Gateway when you need a quick, low-cost, encrypted connection, or a backup link. - Pick ExpressRoute when you move a lot of data, need consistent latency, or policy forbids the internet. - Exam tip: "Does not go over the public internet" = ExpressRoute. "Encrypted tunnel over the internet" = VPN Gateway. - Q: Is ExpressRoute encrypted? A: Not by default: it is private, not encrypted. You can add MACsec (Direct) or run IPsec over it. - Q: Can I use both? A: Yes. Many companies use ExpressRoute as the main link and a site-to-site VPN as failover. ## IaaS vs PaaS vs SaaS URL: https://azure.msdevbuild.com/az-900/compare/iaas-vs-paas-vs-saas/ IaaS rents you infrastructure (VMs): you manage the OS and everything above. PaaS gives you a platform (App Service, Azure SQL): you bring code and data. SaaS gives you finished software (Microsoft 365): you just use it and manage your data and users. | | IaaS | PaaS | SaaS | | --- | --- | --- | --- | | Azure examples | Virtual Machines, Managed Disks, VNets | App Service, Azure SQL Database, Functions | Microsoft 365, Dynamics 365 | | You manage | OS, runtime, apps, data, access | Apps, data, access | Data, users, devices | | Microsoft manages | Hardware, datacenter, network, hypervisor | + OS, runtime, patching, scaling | Almost everything | | Control | Most | Medium | Least | | Speed to start | Slowest | Fast | Fastest | | Always yours | Data, accounts, devices | Data, accounts, devices | Data, accounts, devices | - Pick IaaS when you need full control or are lifting and shifting existing servers. - Pick PaaS when you build apps and don’t want to manage servers. - Pick SaaS when a ready-made product already does the job. - Exam tip: In every model you are responsible for your data, identities/accounts and devices. The datacenter is always Microsoft’s. - Q: Is Azure Functions PaaS or serverless? A: Serverless, which is usually treated as a form of PaaS. - Q: Is Azure SQL Database IaaS? A: No, it is PaaS. SQL Server running on a VM is IaaS. ## Availability Sets vs Availability Zones vs Scale Sets URL: https://azure.msdevbuild.com/az-900/compare/availability-sets-vs-zones-vs-scale-sets/ Availability sets spread VMs across racks in one datacenter (99.95% SLA). Availability zones spread VMs across separate datacenters in a region (99.99%). Scale sets create and autoscale identical VMs, and can themselves span zones. | | Availability set | Availability zones | VM scale set | | --- | --- | --- | --- | | Protects against | Rack failure, planned maintenance | A whole datacenter/zone failing | Overload (scales) + failures if spread | | Placement | Fault domains + update domains in one datacenter | Zones 1, 2, 3 in a region | Across fault domains or zones | | VM SLA | 99.95% | 99.99% (2+ zones) | Depends on placement | | Autoscale | — | — | ✅ | | Identical VMs | Not required | Not required | ✅ from one image/model | | Extra cost | Free (pay for VMs) | Free (pay for VMs + cross-zone data) | Free (pay for VMs) | - Pick Availability set when the region has no zones, or the app needs very low latency between VMs. - Pick Availability zones when you need to survive a datacenter failure. - Pick VM scale set when demand changes and you want Azure to add and remove VMs. - Exam tip: Zones protect against datacenter failure; availability sets protect against rack failure. Scale sets are about scaling. - Q: Can I combine availability sets and zones? A: No, a VM is in one or the other. Scale sets can span zones. - Q: Are availability sets being retired? A: Microsoft recommends zones and scale sets for new deployments, but availability sets remain supported. ## Azure RBAC vs Azure Policy vs Resource Locks URL: https://azure.msdevbuild.com/az-900/compare/rbac-vs-azure-policy-vs-resource-locks/ RBAC controls who can do what. Azure Policy controls what resources and settings are allowed, whoever creates them. Resource locks stop anyone, even owners, from deleting or changing a resource. | | Azure RBAC | Azure Policy | Resource locks | | --- | --- | --- | --- | | Question it answers | Who can do what, where? | Is this resource allowed / compliant? | Can this be deleted or changed at all? | | Example | Ben = VM Contributor on rg-shop | Only West Europe and North Europe allowed | CanNotDelete on the production RG | | Applies to | Users, groups, apps, identities | Resources and their properties | Everyone, including Owners | | Default | Deny (no access unless granted) | Allow (unless a policy says otherwise) | No lock | | Inherited down the hierarchy | ✅ | ✅ | ✅ | | Also reports existing problems | — | ✅ compliance view + remediation | — | - Pick RBAC when you are deciding people’s permissions. - Pick Azure Policy when you are enforcing organisation rules (regions, tags, SKUs). - Pick Resource locks when you want to protect critical resources from accidental deletion. - Exam tip: RBAC = who. Policy = what. Locks = don’t touch. Locks apply even to Owners. - Q: Can an Owner delete a locked resource? A: Not until the lock is removed. Owners can remove locks, which makes deletion a deliberate two-step action. - Q: Does Azure Policy stop an admin? A: Yes. A Deny policy blocks non-compliant resources no matter who creates them. ## Blob Access Tiers: Hot vs Cool vs Cold vs Archive URL: https://azure.msdevbuild.com/az-900/compare/hot-vs-cool-vs-cold-vs-archive/ Store frequently used data in Hot, data used every month or so in Cool (30+ days), rarely used data in Cold (90+ days), and data you almost never read in Archive (180+ days, offline, hours to restore). Cheaper storage means more expensive access. | | Hot | Cool | Cold | Archive | | --- | --- | --- | --- | --- | | Use for | Active data | Infrequent: backups, older files | Rarely accessed | Long-term retention, compliance | | Minimum storage period | None | 30 days | 90 days | 180 days | | Online / offline | Online | Online | Online | Offline (rehydrate first) | | Time to first byte | Milliseconds | Milliseconds | Milliseconds | Hours (up to ~15 h standard) | | Storage price feel per GB/month (illustrative) | ≈ $0.02 | ≈ $0.01 | ≈ $0.0036 | ≈ $0.002 | | Access price | Lowest | Higher | Higher still | Highest + rehydration | - Pick Hot when data is read or written often. - Pick Cool when data is kept at least 30 days and read occasionally. - Pick Cold when data is kept at least 90 days and rarely read. - Pick Archive when data must be kept for years and can wait hours to be read. - Exam tip: Archive is offline: you must rehydrate to Hot or Cool before reading. Use lifecycle management to move data between tiers automatically. - Q: What happens if I delete Cool data after 10 days? A: You pay an early deletion charge for the remaining 20 days of the 30-day minimum. - Q: Can a whole storage account be Archive? A: No. Archive is set per blob; the account default can be Hot, Cool or Cold. ## Microsoft Entra ID vs Active Directory URL: https://azure.msdevbuild.com/az-900/compare/entra-id-vs-active-directory/ Active Directory Domain Services (AD DS) runs on your own domain controllers and uses Kerberos, LDAP, OUs and Group Policy. Microsoft Entra ID is a cloud identity service for web sign-in (OAuth, OpenID Connect, SAML), MFA and Conditional Access. Many companies sync AD DS to Entra ID. | | Active Directory (AD DS) | Microsoft Entra ID | | --- | --- | --- | | Where it runs | Your domain controllers (servers) | Microsoft’s cloud (SaaS) | | Protocols | Kerberos, NTLM, LDAP | OAuth 2.0, OpenID Connect, SAML, SCIM | | Structure | Forests, domains, OUs, Group Policy | Flat tenant with users, groups, apps | | Best for | Domain-joined PCs and servers on-premises | Microsoft 365, SaaS apps, Azure, modern apps | | Security extras | Group Policy | MFA, Conditional Access, passwordless, Identity Protection | | Connect them with | Entra Connect / Cloud Sync | Entra Connect / Cloud Sync | - Pick AD DS when you run legacy apps and servers that need Kerberos/LDAP. - Pick Entra ID when you sign people in to cloud and SaaS apps with SSO and MFA. - Pick Entra Domain Services when you need domain join, LDAP or Kerberos in Azure without running domain controllers. - Exam tip: Entra ID is not "AD in the cloud". It does not have OUs or Group Policy. For managed domain services in Azure, the answer is Microsoft Entra Domain Services. - Q: Was Entra ID called Azure AD? A: Yes. Azure Active Directory was renamed Microsoft Entra ID in 2023. - Q: Do I need both? A: Only if you still have on-premises systems that need AD DS. Cloud-only companies can use Entra ID alone. ## NSG vs Azure Firewall URL: https://azure.msdevbuild.com/az-900/compare/nsg-vs-azure-firewall/ A network security group (NSG) is a free list of allow/deny rules by IP, port and protocol on a subnet or NIC. Azure Firewall is a paid, managed, stateful firewall that adds FQDN filtering, threat intelligence and central logging across many networks. Most designs use both. | | Network security group | Azure Firewall | | --- | --- | --- | | Layer | 3–4 (IP, port, protocol) | 3–7 (adds FQDNs, URLs, TLS inspection in Premium) | | Where | Each subnet or network interface | Central, usually in a hub VNet | | Threat intelligence | — | ✅ block known-bad IPs/domains | | Outbound filtering by domain name | — | ✅ e.g. allow *.windowsupdate.com | | Logging | Flow logs | Rich logs and workbooks | | Price feel (illustrative) | Free | Standard ≈ $912/month + data processed | - Pick NSG when always, as the basic filter on every subnet. - Pick Azure Firewall when you need central, inspected, domain-aware control for many VNets and on-premises. - Exam tip: Filtering traffic to a subnet or VM by port = NSG. Central, stateful, managed firewall service = Azure Firewall. - Q: Is an NSG stateful? A: Yes: return traffic for an allowed connection is allowed automatically. - Q: Does Azure Firewall replace NSGs? A: No. They complement each other: NSGs inside each subnet, the firewall at the hub. ## Service Health vs Azure Status vs Resource Health URL: https://azure.msdevbuild.com/az-900/compare/service-health-vs-azure-status-vs-resource-health/ The Azure status page is public and shows only wide outages. Service Health (in the portal) shows incidents, maintenance and advisories that affect your subscriptions and regions, with alerts. Resource Health tells you whether one specific resource is healthy. | | Azure status | Service Health | Resource Health | | --- | --- | --- | --- | | Audience | Everyone (public web page) | Your subscriptions | One resource | | Shows | Widespread incidents | Incidents, planned maintenance, health/security advisories | Available / Unavailable / Degraded + history | | Personalised | ❌ | ✅ | ✅ | | Alerts | — | ✅ service health alerts | ✅ resource health alerts | | Root-cause reports | Major incidents | ✅ for events that affected you | — | - Pick Azure status when you can’t sign in to the portal, or want a quick global view. - Pick Service Health when you want to know if Azure issues affect your services, and be alerted. - Pick Resource Health when one VM or database is misbehaving and you need to know if it’s the platform. - Exam tip: "Personalised view of Azure issues affecting your resources" = Service Health. - Q: Is Service Health free? A: Yes, including alerts (you may pay for SMS/voice notifications). ## Azure Monitor vs Azure Advisor vs Defender for Cloud URL: https://azure.msdevbuild.com/az-900/compare/azure-monitor-vs-advisor-vs-defender-for-cloud/ Azure Monitor collects metrics and logs and raises alerts. Azure Advisor gives free best-practice recommendations across cost, security, reliability, performance and operations. Defender for Cloud focuses on security: secure score, recommendations and threat protection. | | Azure Monitor | Azure Advisor | Defender for Cloud | | --- | --- | --- | --- | | Main job | Observe: metrics, logs, alerts | Advise: what to improve | Protect: security posture + threats | | Output | Charts, KQL queries, alerts, workbooks | Recommendations with impact | Secure score, recommendations, alerts | | Covers | Any Azure resource, apps (App Insights) | 5 pillars: cost, security, reliability, performance, operations | Azure, other clouds, on-premises (with Arc) | | Price | Pay for data ingested/retained | Free | Free posture; paid Defender plans | - Pick Azure Monitor when you need to see what is happening now and get alerted. - Pick Azure Advisor when you want a checklist to save money and improve reliability. - Pick Defender for Cloud when you want to harden security and detect attacks. - Exam tip: "Recommendations to reduce cost" = Advisor. "Secure score" = Defender for Cloud. "Metrics and logs, alerts" = Monitor. - Q: Does Advisor include security? A: Yes, its security recommendations come from Defender for Cloud. ## Public vs Private vs Hybrid Cloud URL: https://azure.msdevbuild.com/az-900/compare/public-vs-private-vs-hybrid-cloud/ In the public cloud a provider like Microsoft owns the hardware and many customers share it. A private cloud is used by one organisation only. A hybrid cloud connects both, so workloads and data can move between them. | | Public cloud | Private cloud | Hybrid cloud | | --- | --- | --- | --- | | Who owns hardware | Provider (e.g. Microsoft) | You (or a host, dedicated to you) | Both | | Cost model | OpEx, pay as you go | Mostly CapEx | Mix | | Scaling | Near-unlimited, minutes | Limited by your hardware | Burst to public when needed | | Control and compliance | Shared responsibility | Full control | Keep sensitive parts private | | Example | Azure, Microsoft 365 | On-premises VMware/Azure Local | Office datacenter + Azure via VPN/ExpressRoute, managed with Arc | - Pick Public when you want speed, scale and no hardware. - Pick Private when strict rules require dedicated hardware you control. - Pick Hybrid when you have existing investments or data that must stay on-premises. - Exam tip: Public cloud = no CapEx, pay for what you use. Hybrid = flexibility to choose where each workload runs. - Q: Is multi-cloud the same as hybrid? A: No. Multi-cloud uses several public clouds; hybrid combines public and private. ## Pay-as-you-go vs Reserved Instances vs Savings Plans vs Spot URL: https://azure.msdevbuild.com/az-900/compare/pay-as-you-go-vs-reserved-vs-spot/ Pay-as-you-go is flexible, with no commitment. Reserved instances cut the price for 1 or 3 years on a specific VM size and region. A savings plan commits to an hourly spend across many services. Spot uses spare capacity at a deep discount, but Azure can evict it. | | Pay-as-you-go | Reserved instance | Savings plan | Spot | | --- | --- | --- | --- | --- | | Commitment | None | 1 or 3 years, specific size/region | 1 or 3 years, hourly spend | None | | Typical saving | 0% | Up to ~72% | Up to ~65% | Up to ~90% | | Can be interrupted | No | No | No | Yes (eviction) | | Flexibility | Highest | Lower (exchanges allowed) | High across sizes/regions | High, but unreliable | | D4s v5 feel (illustrative) | ≈ $140/month | ≈ $56/month (3-year) | ≈ $70/month | ≈ $20/month | | Best for | Short or unpredictable work | Steady 24/7 workloads | Steady spend, changing VM types | Batch, tests, interruptible jobs | - Pick Pay-as-you-go when you are experimenting or usage is unpredictable. - Pick Reserved when a VM will run all day, every day, for years. - Pick Savings plan when you will keep spending but your mix of compute changes. - Pick Spot when the work can stop and restart without harm. - Exam tip: Add Azure Hybrid Benefit to reuse your Windows Server/SQL Server licences. Spot = interruptible. - Q: Can I cancel a reservation? A: Exchanges and limited refunds are possible under Microsoft’s current policy; check it before buying. ## Management Groups vs Subscriptions vs Resource Groups URL: https://azure.msdevbuild.com/az-900/compare/management-groups-vs-subscriptions-vs-resource-groups/ Management groups organise subscriptions so you can apply policies and access once. A subscription is a billing and access boundary with its own limits. A resource group is a folder for resources that share a lifecycle. Everything set higher up flows down. | | Management group | Subscription | Resource group | | --- | --- | --- | --- | | Contains | Subscriptions and other management groups | Resource groups | Resources | | Main purpose | Governance at scale | Billing + access boundary + quotas | Lifecycle and organisation | | Bill | — | ✅ one bill per subscription | Cost can be filtered by RG | | Policy / RBAC inherited down | ✅ | ✅ | ✅ | | Limits | Up to 6 levels below the root | Quotas per subscription | A resource is in exactly one RG | | Delete it | Must be empty | Cancel the subscription | Deletes everything inside | - Pick Management group when you have several subscriptions to govern together. - Pick Subscription when you need a separate bill, separate access or separate limits (e.g. prod vs dev). - Pick Resource group when you want resources that live and die together kept together. - Exam tip: Order from top: Management group → Subscription → Resource group → Resource. A resource belongs to one resource group. - Q: Can a resource group span regions? A: Yes. The group has a location for its metadata, but its resources can be in any region. ## Regions vs Availability Zones vs Datacenters URL: https://azure.msdevbuild.com/az-900/compare/regions-vs-availability-zones-vs-datacenters/ A datacenter is a physical building. One or more datacenters with independent power, cooling and networking form an availability zone. A region is a geographic area with (usually) three or more zones. You choose regions and zones, never individual datacenters. | | Datacenter | Availability zone | Region | | --- | --- | --- | --- | | What it is | A physical building with servers | One or more datacenters, independent power/cooling/network | A set of datacenters in one geographic area | | Can you choose it? | ❌ Never | ✅ For zonal/zone-redundant services | ✅ Always | | Protects against | — | A datacenter failing | A whole region failing (use 2 regions / pairs) | | Example | A building near Amsterdam | West Europe Zone 2 | West Europe | - Pick Choose a region when close to your users and within your data-residency rules. - Pick Use zones when for high availability inside the region. - Pick Use a second region when for disaster recovery. - Exam tip: Datacenter → zone → region → geography. Microsoft always secures the physical datacenter. - Q: Does every region have availability zones? A: No, most major regions do, but not all. # Azure services in 60 seconds ## Azure Virtual Machines URL: https://azure.msdevbuild.com/az-900/services/virtual-machines/ Category: Compute · Model: IaaS · AWS equivalent: EC2 On-demand Windows or Linux computers in Azure. You choose the image, size and region; Microsoft runs the hardware, you run the operating system and everything on it. Use it when: Lift-and-shift of existing servers; Software that needs full OS control; Custom or legacy applications. Not the best fit when: A plain website or API (App Service is less work); Short event-driven code (use Functions). Price feel (illustrative): B2s (2 vCPU, 4 GiB) ≈ $35/month running 24/7; billed per hour while running. ## Virtual Machine Scale Sets URL: https://azure.msdevbuild.com/az-900/services/vm-scale-sets/ Category: Compute · Model: IaaS · AWS equivalent: EC2 Auto Scaling A group of identical VMs that Azure can add and remove automatically with autoscale rules, spread across fault domains or availability zones. Use it when: Web tiers with changing traffic; Batch processing that needs many identical workers; High availability across zones. Not the best fit when: A single special-purpose server; Apps that can move to PaaS. Price feel (illustrative): Free service; you pay for each VM instance (e.g. 3 × B2s ≈ $105/month). ## Azure App Service URL: https://azure.msdevbuild.com/az-900/services/app-service/ Category: Compute · Model: PaaS · AWS equivalent: Elastic Beanstalk A fully managed platform for web apps and REST APIs in .NET, Java, Node.js, Python or PHP, with built-in scaling, deployment slots, TLS and CI/CD. Use it when: Websites and web APIs; Mobile back ends; Apps that should scale without managing servers. Not the best fit when: Software needing OS-level changes; Event-only code that idles most of the day. Price feel (illustrative): Free tier for testing; Basic B1 ≈ $13/month; production Premium v3 from ≈ $80/month. ## Azure Functions URL: https://azure.msdevbuild.com/az-900/services/azure-functions/ Category: Compute · Model: Serverless · AWS equivalent: Lambda Run small pieces of code in response to events (HTTP requests, timers, queue messages, new files) without managing servers. Scales automatically, even to zero. Use it when: Event processing and automation; Scheduled jobs; Lightweight APIs with spiky traffic. Not the best fit when: Long-running, always-busy workloads; Apps needing full OS control. Price feel (illustrative): Consumption plans include a monthly free grant (about 1 million executions); beyond that, cents per million runs plus memory-time. ## Azure Virtual Desktop URL: https://azure.msdevbuild.com/az-900/services/azure-virtual-desktop/ Category: Compute · Model: DaaS · AWS equivalent: WorkSpaces Windows desktops and apps streamed from Azure to any device, including Windows 11 multi-session so several users share one VM. Use it when: Remote and contract workers; Secure access where data must not leave Azure; Replacing on-premises VDI. Not the best fit when: A few local users with powerful laptops already; Apps that need local hardware. Price feel (illustrative): You pay for the session host VMs and storage; e.g. 3 × D4s v5 shared by 24 users ≈ $420/month. ## Azure Kubernetes Service (AKS) URL: https://azure.msdevbuild.com/az-900/services/aks/ Category: Containers · Model: Managed Kubernetes · AWS equivalent: EKS Managed Kubernetes: Microsoft runs the control plane, you run containers on node pools that can autoscale and span availability zones. Use it when: Microservices; Portable container platforms; Teams already using Kubernetes. Not the best fit when: One simple web app; Teams without Kubernetes skills (try Container Apps). Price feel (illustrative): Free control plane tier; Standard tier ≈ $0.10 per cluster-hour; nodes billed as VMs. ## Azure Container Instances URL: https://azure.msdevbuild.com/az-900/services/container-instances/ Category: Containers · Model: Serverless containers · AWS equivalent: Fargate Run a single container in seconds without any VM or cluster, billed per second. Use it when: Quick jobs and build agents; Simple apps in one container; Burst capacity for AKS. Not the best fit when: Large, scalable microservice systems. Price feel (illustrative): Per second of vCPU and memory; a 1 vCPU / 1.5 GiB container for one hour costs a few cents. ## Azure Container Apps URL: https://azure.msdevbuild.com/az-900/services/container-apps/ Category: Containers · Model: Serverless containers · AWS equivalent: App Runner / ECS on Fargate Serverless platform for containerised apps and microservices with HTTP and event-driven autoscaling (including to zero), built on Kubernetes without managing it. Use it when: Microservices without running Kubernetes; APIs and background workers in containers; Scale-to-zero container apps. Not the best fit when: When you need direct Kubernetes API access (use AKS). Price feel (illustrative): Consumption plan with a monthly free grant, then per vCPU-second and GiB-second. ## Azure Storage Account URL: https://azure.msdevbuild.com/az-900/services/storage-accounts/ Category: Storage · Model: PaaS · AWS equivalent: S3 (+ EFS, SQS) The container for Azure Storage services: Blob, Files, Queues and Tables, with one name, one redundancy setting and one set of network rules. Use it when: Any app that needs to store files or messages; Backups and logs; Static websites. Not the best fit when: Relational data (use a database). Price feel (illustrative): You pay for data stored, transactions and data out; 1 TB Hot LRS ≈ $20.48/month. ## Azure Blob Storage URL: https://azure.msdevbuild.com/az-900/services/blob-storage/ Category: Storage · Model: Object storage · AWS equivalent: S3 Massively scalable object storage for unstructured data (images, video, backups, logs, data lakes), with Hot, Cool, Cold and Archive tiers. Use it when: Media and documents served over HTTP; Backups and archives; Big-data lakes. Not the best fit when: A drive letter for a VM (use Managed Disks); A shared SMB folder (use Azure Files). Price feel (illustrative): Hot ≈ $0.02/GB-month; Archive ≈ $0.002/GB-month (plus access and rehydration). ## Azure Files URL: https://azure.msdevbuild.com/az-900/services/azure-files/ Category: Storage · Model: Managed file shares · AWS equivalent: EFS / FSx Fully managed file shares that Windows, Linux and macOS mount over SMB or NFS, optionally synced to on-premises servers with Azure File Sync. Use it when: Replacing file servers; Shared folders for apps and teams; Lift-and-shift apps that expect a share. Not the best fit when: Web-served objects at huge scale (Blob is cheaper). Price feel (illustrative): Transaction optimized ≈ $0.06/GB-month; Premium SSD shares cost more. ## Azure Managed Disks URL: https://azure.msdevbuild.com/az-900/services/managed-disks/ Category: Storage · Model: Block storage · AWS equivalent: EBS Virtual hard disks for VMs, managed by Azure, from Standard HDD to Premium SSD and Ultra Disk. Use it when: OS and data disks for VMs; Databases running on VMs. Not the best fit when: Sharing files between many machines (use Azure Files). Price feel (illustrative): 128 GiB Premium SSD ≈ $19.71/month, billed even when the VM is stopped. ## Azure Queue Storage URL: https://azure.msdevbuild.com/az-900/services/queue-storage/ Category: Storage · Model: Messaging · AWS equivalent: SQS Simple, cheap message queues inside a storage account, so one part of an app can hand work to another asynchronously. Use it when: Decoupling a website from background workers; Smoothing traffic spikes. Not the best fit when: Ordered, transactional enterprise messaging (use Service Bus). Price feel (illustrative): Fractions of a cent per 10,000 operations, plus storage. ## Azure Data Box URL: https://azure.msdevbuild.com/az-900/services/data-box/ Category: Migration & Hybrid · Model: Offline transfer · AWS equivalent: Snowball Rugged, encrypted devices Microsoft ships to you to move large amounts of data into (or out of) Azure when the network is too slow. Use it when: Initial bulk migration of many TB; Sites with limited bandwidth. Not the best fit when: Small or ongoing transfers (use AzCopy or File Sync). Price feel (illustrative): Per-order service fee plus shipping and days kept; data ingestion itself is free. ## Azure SQL Database URL: https://azure.msdevbuild.com/az-900/services/azure-sql-database/ Category: Databases · Model: PaaS · AWS equivalent: RDS for SQL Server / Aurora Fully managed SQL Server database engine with built-in backups, high availability, patching and options like serverless compute and Hyperscale. Use it when: New relational apps; Moving SQL Server apps without managing servers. Not the best fit when: Apps needing SQL Server features at OS level (use SQL Managed Instance or SQL on a VM). Price feel (illustrative): Serverless General Purpose bills per vCore-second used; small DTU databases from ≈ $5/month. ## Azure Cosmos DB URL: https://azure.msdevbuild.com/az-900/services/cosmos-db/ Category: Databases · Model: PaaS (NoSQL) · AWS equivalent: DynamoDB Globally distributed NoSQL (and PostgreSQL) database with single-digit millisecond reads, multi-region writes and automatic scaling. Use it when: Global apps needing low latency everywhere; IoT, gaming, retail catalogues; Flexible JSON data. Not the best fit when: Complex relational reporting with joins. Price feel (illustrative): Serverless pays per request unit consumed; provisioned throughput from ≈ $24/month per 400 RU/s. ## Azure Database for PostgreSQL URL: https://azure.msdevbuild.com/az-900/services/azure-database-for-postgresql/ Category: Databases · Model: PaaS · AWS equivalent: RDS for PostgreSQL Managed open-source PostgreSQL (flexible server) with backups, high availability across zones and automatic patching. A MySQL equivalent also exists. Use it when: Open-source apps; Moving existing PostgreSQL databases. Not the best fit when: Apps built for SQL Server. Price feel (illustrative): Burstable B1ms ≈ $13/month plus storage. ## Azure Virtual Network (VNet) URL: https://azure.msdevbuild.com/az-900/services/virtual-network/ Category: Networking · Model: Networking · AWS equivalent: VPC Your private network in Azure with your own IP range and subnets, isolated from other customers, connectable to other VNets and on-premises. Use it when: Every VM, and private PaaS access; Segmenting tiers into subnets. Not the best fit when: —: almost every IaaS design needs one. Price feel (illustrative): Free. You pay for things inside it and for some traffic (peering, gateways). ## Network Security Groups (NSG) URL: https://azure.msdevbuild.com/az-900/services/network-security-groups/ Category: Networking · Model: Networking · AWS equivalent: Security groups / NACLs Allow/deny rules by source, destination, port and protocol, applied to subnets or network interfaces and checked in priority order. Use it when: Basic traffic filtering on every subnet; Blocking management ports from the internet. Not the best fit when: Domain-name filtering or threat intel (use Azure Firewall). Price feel (illustrative): Free. ## Azure Firewall URL: https://azure.msdevbuild.com/az-900/services/azure-firewall/ Category: Networking · Model: Managed firewall · AWS equivalent: Network Firewall Managed, stateful, highly available network firewall with FQDN filtering, threat intelligence and central logging, usually in a hub VNet. Use it when: Central egress control for many VNets; Compliance needing inspected traffic. Not the best fit when: A single small VNet (NSGs may be enough). Price feel (illustrative): Standard ≈ $912/month plus data processed; Basic SKU is cheaper. ## Azure Load Balancer URL: https://azure.msdevbuild.com/az-900/services/load-balancer/ Category: Networking · Model: Layer 4 · AWS equivalent: Network Load Balancer High-performance layer-4 (TCP/UDP) load balancing across healthy VMs, public or internal, zone-redundant in the Standard SKU. Use it when: VM pools behind one IP; Non-HTTP protocols. Not the best fit when: URL routing or WAF (use Application Gateway/Front Door). Price feel (illustrative): Standard ≈ $18/month for the first 5 rules + data processed. ## Azure Application Gateway URL: https://azure.msdevbuild.com/az-900/services/application-gateway/ Category: Networking · Model: Layer 7 · AWS equivalent: Application Load Balancer Regional web traffic load balancer with URL/host routing, TLS termination and an optional Web Application Firewall. Use it when: Web apps in one region that need WAF; Path-based routing to different back ends. Not the best fit when: Global users across continents (add Front Door). Price feel (illustrative): Standard v2 ≈ $180/month base plus capacity units. ## Azure Front Door URL: https://azure.msdevbuild.com/az-900/services/front-door/ Category: Networking · Model: Global edge · AWS equivalent: CloudFront (+ Global Accelerator) Global entry point at Microsoft’s edge: routes users to the fastest healthy back end, caches content and protects with WAF. Use it when: Websites with users worldwide; Multi-region failover for web apps. Not the best fit when: Non-HTTP traffic. Price feel (illustrative): Standard ≈ $35/month base plus requests and data. ## Azure DNS URL: https://azure.msdevbuild.com/az-900/services/azure-dns/ Category: Networking · Model: DNS hosting · AWS equivalent: Route 53 Hosts your DNS zones on Microsoft’s global name servers, and private DNS zones for names inside VNets. It does not sell domain names. Use it when: Managing records next to your Azure resources; Private name resolution in VNets. Not the best fit when: Buying a domain (use a registrar). Price feel (illustrative): ≈ $0.50 per zone per month + $0.40 per million queries. ## Azure VPN Gateway URL: https://azure.msdevbuild.com/az-900/services/vpn-gateway/ Category: Networking · Model: Hybrid connectivity · AWS equivalent: Site-to-Site VPN Encrypted IPsec tunnels over the internet between Azure and your offices (site-to-site) or individual devices (point-to-site). Use it when: Quick, low-cost hybrid connectivity; Backup for ExpressRoute; Remote workers into a VNet. Not the best fit when: Very high, predictable bandwidth needs (ExpressRoute). Price feel (illustrative): VpnGw1 ≈ $139/month plus data out. ## Azure ExpressRoute URL: https://azure.msdevbuild.com/az-900/services/expressroute/ Category: Networking · Model: Private connectivity · AWS equivalent: Direct Connect Private, dedicated connection from your network to Microsoft through a connectivity provider, not over the public internet. Use it when: Large data volumes; Consistent latency; Policies forbidding internet transit. Not the best fit when: Small offices (VPN is cheaper and faster to set up). Price feel (illustrative): 1 Gbps Standard metered ≈ $436/month plus provider fees. ## Azure Virtual WAN URL: https://azure.msdevbuild.com/az-900/services/virtual-wan/ Category: Networking · Model: Hub networking · AWS equivalent: Transit Gateway / Cloud WAN Microsoft-managed hub-and-spoke network that connects branches, VNets, VPN users and ExpressRoute through regional hubs. Use it when: Many branches and VNets across regions; Replacing complex do-it-yourself hubs. Not the best fit when: A single VNet and one office. Price feel (illustrative): Standard hub ≈ $183/month plus gateways and data processed. ## Azure Private Link (private endpoints) URL: https://azure.msdevbuild.com/az-900/services/private-link/ Category: Networking · Model: Private access · AWS equivalent: PrivateLink Gives PaaS services such as Storage or SQL a private IP inside your VNet, so traffic stays on Microsoft’s network and public access can be turned off. Use it when: Keeping databases and storage off the internet; Compliance and data-exfiltration controls. Not the best fit when: Fully public content. Price feel (illustrative): ≈ $0.01 per endpoint-hour (~$7.30/month) + ~$0.01 per GB. ## Microsoft Entra ID URL: https://azure.msdevbuild.com/az-900/services/microsoft-entra-id/ Category: Identity & Security · Model: Identity (SaaS) · AWS equivalent: IAM Identity Center Cloud identity and access service (formerly Azure AD): users, groups, single sign-on, MFA, Conditional Access and app registrations for Azure, Microsoft 365 and thousands of SaaS apps. Use it when: Sign-in for employees, partners and apps; SSO and MFA everywhere. Not the best fit when: Kerberos/LDAP-only legacy apps on their own (add Entra Domain Services or AD DS). Price feel (illustrative): Free tier included; P1 ≈ $6 and P2 ≈ $9 per user/month. ## Azure Key Vault URL: https://azure.msdevbuild.com/az-900/services/key-vault/ Category: Identity & Security · Model: Secrets management · AWS equivalent: Secrets Manager / KMS Safely stores secrets (passwords, connection strings), encryption keys and certificates, with access controlled by Entra ID and every access logged. Use it when: Removing secrets from code and config; Managing TLS certificates; Customer-managed encryption keys. Not the best fit when: Storing large data or files. Price feel (illustrative): ≈ $0.03 per 10,000 operations; HSM-protected keys cost more. ## Microsoft Defender for Cloud URL: https://azure.msdevbuild.com/az-900/services/defender-for-cloud/ Category: Identity & Security · Model: Security posture + protection · AWS equivalent: Security Hub / GuardDuty Measures security posture with a secure score and recommendations, and protects workloads (servers, storage, databases, containers) across Azure, other clouds and on-premises. Use it when: Hardening your Azure estate; Threat detection for workloads; Compliance dashboards. Not the best fit when: Replacing identity protections (still need MFA/Conditional Access). Price feel (illustrative): Free foundational posture; paid plans e.g. Servers Plan 2 ≈ $15 per server/month. ## Microsoft Purview URL: https://azure.msdevbuild.com/az-900/services/microsoft-purview/ Category: Identity & Security · Model: Data governance (SaaS) · AWS equivalent: DataZone / Macie Unified data governance, security and compliance: discovers and classifies data across Azure, Microsoft 365 and other clouds, labels sensitive information and helps meet regulations. Use it when: Knowing where sensitive data lives; Data catalog and lineage; Information protection and compliance. Not the best fit when: Resource configuration rules (that is Azure Policy). Price feel (illustrative): Pay-as-you-go by data assets governed and features used; some capabilities come with Microsoft 365 licences. ## Azure Monitor URL: https://azure.msdevbuild.com/az-900/services/azure-monitor/ Category: Management & Governance · Model: Observability · AWS equivalent: CloudWatch Collects metrics and logs from Azure, apps (Application Insights) and on-premises, lets you query them with KQL, visualise them and alert on them. Use it when: Alerts on CPU, errors, availability; Troubleshooting with logs; Dashboards and workbooks. Not the best fit when: Collecting everything forever without a retention plan (cost). Price feel (illustrative): Platform metrics free; logs ≈ $2.30–2.76 per GB ingested (illustrative), with free allowances. ## Azure Advisor URL: https://azure.msdevbuild.com/az-900/services/azure-advisor/ Category: Management & Governance · Model: Recommendations · AWS equivalent: Trusted Advisor Free, personalised best-practice recommendations across cost, security, reliability, operational excellence and performance, with an Advisor score. Use it when: Finding idle or oversized resources; Quick reliability and security wins. Not the best fit when: —: it’s free; review it monthly. Price feel (illustrative): Free. ## Azure Policy URL: https://azure.msdevbuild.com/az-900/services/azure-policy/ Category: Management & Governance · Model: Governance · AWS equivalent: AWS Config rules / SCPs Enforces and audits rules on resources (allowed regions, required tags, allowed SKUs), at any scope from management group to resource group, with compliance reporting and remediation. Use it when: Organisation-wide guardrails; Data residency; Tagging standards. Not the best fit when: Controlling who can act (that is RBAC). Price feel (illustrative): Free for Azure resources. ## Azure role-based access control (RBAC) URL: https://azure.msdevbuild.com/az-900/services/azure-rbac/ Category: Identity & Security · Model: Authorization · AWS equivalent: IAM policies Grants people, groups and apps exactly the permissions they need (roles such as Reader, Contributor, Owner) at a scope, inherited downwards. Use it when: Least-privilege access; Separating duties between teams. Not the best fit when: Enforcing resource settings (use Azure Policy). Price feel (illustrative): Free. ## Resource locks URL: https://azure.msdevbuild.com/az-900/services/resource-locks/ Category: Management & Governance · Model: Governance · AWS equivalent: Termination protection / SCP deny CanNotDelete or ReadOnly locks on a subscription, resource group or resource that stop everyone, even Owners, until the lock is removed. Use it when: Protecting production from accidental deletion. Not the best fit when: As a replacement for proper RBAC. Price feel (illustrative): Free. ## Management groups URL: https://azure.msdevbuild.com/az-900/services/management-groups/ Category: Management & Governance · Model: Governance · AWS equivalent: Organizations OUs Containers above subscriptions so policies and access can be applied once to many subscriptions, up to six levels deep under the tenant root. Use it when: Organisations with several subscriptions; Separating prod, dev and sandbox governance. Not the best fit when: One single subscription (not needed yet). Price feel (illustrative): Free. ## Microsoft Cost Management URL: https://azure.msdevbuild.com/az-900/services/cost-management/ Category: Management & Governance · Model: Cost tools · AWS equivalent: Cost Explorer / Budgets Analyse spending by service, resource group or tag, forecast the month, set budgets with alerts and export cost data. Use it when: Monthly cost reviews; Budgets and alerts; Charge-back by tag. Not the best fit when: Estimating before you deploy (use the Pricing calculator). Price feel (illustrative): Free for Azure. ## Azure Resource Manager (ARM) & Bicep URL: https://azure.msdevbuild.com/az-900/services/azure-resource-manager/ Category: Management & Governance · Model: Control plane / IaC · AWS equivalent: CloudFormation The deployment and management layer behind every Azure request (portal, CLI, PowerShell, SDK), and the declarative templates (JSON or Bicep) that describe infrastructure as code. Use it when: Repeatable environments; Consistent deployments across stages. Not the best fit when: Clicking the same setup by hand every time. Price feel (illustrative): Free. ## Azure Cloud Shell URL: https://azure.msdevbuild.com/az-900/services/cloud-shell/ Category: Management & Governance · Model: Browser shell · AWS equivalent: CloudShell A browser-based, already-authenticated terminal with Azure CLI, Azure PowerShell, Bicep, Terraform and git, available from the portal. Use it when: Quick commands from any device; Learning the CLI. Not the best fit when: Long-running jobs (sessions time out). Price feel (illustrative): Free; optional storage account for persisted files costs a little. ## Azure Service Health URL: https://azure.msdevbuild.com/az-900/services/service-health/ Category: Management & Governance · Model: Health · AWS equivalent: AWS Health Dashboard Personalised view of Azure incidents, planned maintenance and advisories affecting your subscriptions and regions, plus Resource Health for single resources and alerts. Use it when: Knowing if a problem is Azure or you; Alerting the team on incidents. Not the best fit when: Monitoring your own app logic (use Azure Monitor). Price feel (illustrative): Free. ## Azure Arc URL: https://azure.msdevbuild.com/az-900/services/azure-arc/ Category: Migration & Hybrid · Model: Hybrid management · AWS equivalent: Systems Manager (hybrid) / EKS Anywhere Projects servers, Kubernetes clusters and databases running outside Azure (on-premises, edge, other clouds) into Azure, so you manage them with Policy, Defender, Monitor and RBAC. Use it when: One control plane for hybrid and multi-cloud; Applying Azure governance to on-premises servers. Not the best fit when: Workloads already running in Azure. Price feel (illustrative): Connecting servers is free; you pay for the Azure services you enable on them. ## Azure Migrate URL: https://azure.msdevbuild.com/az-900/services/azure-migrate/ Category: Migration & Hybrid · Model: Migration hub · AWS equivalent: Application Migration Service Central hub to discover on-premises servers, databases and web apps, assess readiness and cost, and migrate them to Azure. Use it when: Planning a datacenter exit; Building a migration business case. Not the best fit when: Moving a single file share (use AzCopy/File Sync). Price feel (illustrative): Discovery and assessment are free; migration tools are free for a period per server. ## Azure Site Recovery URL: https://azure.msdevbuild.com/az-900/services/site-recovery/ Category: Migration & Hybrid · Model: Disaster recovery · AWS equivalent: Elastic Disaster Recovery Continuously replicates VMs and servers to another Azure region (or from on-premises to Azure) and orchestrates failover and test failovers. Use it when: Regional disaster recovery; Practised failover drills. Not the best fit when: Recovering from accidental deletion (use Azure Backup). Price feel (illustrative): ≈ $25 per protected instance per month, plus replica storage. ## Azure Backup URL: https://azure.msdevbuild.com/az-900/services/azure-backup/ Category: Migration & Hybrid · Model: Backup · AWS equivalent: AWS Backup Managed backup for VMs, SQL, file shares, blobs and on-premises servers, stored in vaults with soft delete and immutability options. Use it when: Recovering from mistakes, ransomware or corruption; Long-term retention. Not the best fit when: Keeping an app running during a region outage (use Site Recovery). Price feel (illustrative): Per protected instance (≈ $10/month for a VM up to 500 GB) plus backup storage. # What happens if…? (Azure Simulator) ## What happens if an Azure region goes down? URL: https://azure.msdevbuild.com/simulator/region-goes-down/ If your app runs in only one region, it goes down with the region. If you planned for it, with data geo-replicated to the paired region and a failover plan (Site Recovery, Front Door), users are moved to the other region. ## What happens if a datacenter loses power (pull the plug)? URL: https://azure.msdevbuild.com/simulator/pull-the-plug-zone/ A zone-redundant app keeps running in the other two zones and users notice nothing. A zonal app pinned to the failed zone goes down. That is why spreading across zones raises the VM SLA to 99.99%. ## What happens if traffic spikes on Black Friday? URL: https://azure.msdevbuild.com/simulator/black-friday-traffic-spike/ A single server overloads and requests fail. Scaling up buys time but needs a restart and has a ceiling. Scaling out with autoscale adds servers as traffic grows and removes them afterwards, so you pay only for the peak while it lasts. ## What happens if I forget to stop my Azure VM? URL: https://azure.msdevbuild.com/simulator/forgot-to-stop-vm/ A running VM is billed every hour, used or not. A forgotten D4s v5 test VM costs about a month of its full price. Stop (deallocate) it, set auto-shutdown, and create a budget alert. Disks still cost a little while stopped. ## How much latency do I get from my city to each Azure region? URL: https://azure.msdevbuild.com/simulator/latency-world-map/ Every 100 km of fibre adds about 1 ms of round-trip time, so a region in your own country might be under 10 ms while one on another continent is 100–250 ms. Deploy close to your users, or use Front Door to serve them from the nearest region. ## What happens to my data if the datacenter catches fire? URL: https://azure.msdevbuild.com/simulator/datacenter-fire-data/ With LRS all three copies are in that one datacenter, so the data is lost or unavailable. ZRS survives (copies in other zones). GRS/GZRS survive even a whole region failing, after failover. ## What happens in an Azure datacenter during a power cut? URL: https://azure.msdevbuild.com/simulator/power-cut-datacenter/ Batteries (UPS) carry the load instantly, then diesel generators start and power the building. Servers never notice, and the cost of all that backup power is Microsoft’s, not yours. ## What happens if a hacker tries to RDP into my VM? URL: https://azure.msdevbuild.com/simulator/hacker-tries-rdp/ If an NSG rule denies port 3389, the packet is dropped before it reaches the VM. If you left RDP open to the internet, attackers will find it within minutes: use Azure Bastion or just-in-time access instead. ## What happens if someone tries to walk into an Azure datacenter? URL: https://azure.msdevbuild.com/simulator/intruder-at-datacenter/ Without an approved access request they are stopped at the gate. Approved visitors still pass ID checks, badge and biometric scans in a mantrap, and are escorted for one approved task. Physical security is always Microsoft’s responsibility. # Glossary - Access control boundary: Permissions and policies can be applied at the subscription level for everything inside. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/subscriptions/) - Access tier: Hot, Cool, Cold or Archive, which trades storage price against access price. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/blob-storage-and-tiers/) - Action group: A set of notification and automation actions (email, SMS, webhook, Logic App) triggered by alerts. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-monitor/) - Address space: The private IP range of a VNet, written in CIDR notation such as 10.0.0.0/16. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/virtual-networks-and-subnets/) - Advisor score: A score showing how well you follow Advisor's best-practice recommendations. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-advisor/) - Agility: The ability to try, launch and change things quickly because resources are available in minutes. (https://azure.msdevbuild.com/az-900/cloud-concepts/why-companies-use-cloud/) - Alias record: A DNS record that points directly to an Azure resource and updates if its IP changes. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-dns/) - Always customer-owned: Information and data, devices (mobile and PCs), and accounts and identities, in every model. (https://azure.msdevbuild.com/az-900/cloud-concepts/shared-responsibility-model/) - App Service plan: The set of compute resources (size and number of instances) your apps run on, and what you pay for. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/app-service/) - Application Insights: Application performance monitoring (APM) feature of Azure Monitor. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-monitor/) - Arc-enabled Kubernetes: A Kubernetes cluster anywhere, managed and governed from Azure. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-arc/) - Arc-enabled server: A non-Azure Windows or Linux machine connected to Azure through the Arc agent. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-arc/) - ARM template: A declarative JSON file that defines Azure resources and their configuration. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-resource-manager/) - Assessment: Analysis of readiness, right-sizing and estimated cost before migrating. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-migrate-and-data-box/) - Assume breach: Design as if attackers are already inside. Segment, encrypt and monitor. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/zero-trust/) - Authentication: Proving who you are (AuthN). (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/authentication-methods/) - Authorization: Deciding what you are allowed to do (AuthZ). (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/authentication-methods/) - Autoscale: Rules or metrics that automatically change the number of instances (for example, add 2 instances when CPU > 70%). (https://azure.msdevbuild.com/az-900/cloud-concepts/elasticity/) - Availability set: Places VMs in different fault and update domains within a datacenter. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/vm-scale-sets-and-availability-sets/) - Availability zone: A physically separate group of datacenters within an Azure region, with independent power, cooling and networking. (https://azure.msdevbuild.com/az-900/cloud-concepts/high-availability/) - AzCopy: A command-line tool for copying data to, from and between storage accounts. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/moving-files/) - Azure account: The identity you sign in with to use Azure. Resources are created inside subscriptions linked to it. (https://azure.msdevbuild.com/az-900/cloud-concepts/what-is-microsoft-azure/) - Azure Advisor: A free service that analyses your resources and recommends improvements. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-advisor/) - Azure Arc: Extends Azure management, governance and security to servers, Kubernetes and data services running anywhere. (https://azure.msdevbuild.com/az-900/cloud-concepts/hybrid-cloud/) - Azure CLI: Cross-platform command-line tool using az commands, popular with Bash users. (https://azure.msdevbuild.com/az-900/management-and-governance/cloud-shell-cli-powershell/) - Azure Cloud Shell: A browser-based shell with Azure CLI and Azure PowerShell preinstalled and already authenticated. (https://azure.msdevbuild.com/az-900/cloud-concepts/manageability/) - Azure Container Registry (ACR): A private registry for storing container images. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/container-instances-and-aks/) - Azure Cosmos DB: Globally distributed, multi-model NoSQL database with low latency and elastic scale. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-databases/) - Azure Data Box: A physical storage device for offline transfer of large data sets to or from Azure. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-migrate-and-data-box/) - Azure File Sync: Synchronises Windows Server file shares with Azure Files, with optional cloud tiering. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/moving-files/) - Azure Files: Managed file shares accessible over SMB or NFS, like a network drive. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/files-queues-tables-disks/) - Azure Functions: Serverless, event-driven compute that runs code on demand. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/compute-types/) - Azure Hybrid Benefit: Use existing on-premises Windows Server and SQL Server licences (with Software Assurance or qualifying subscriptions) to reduce Azure costs. (https://azure.msdevbuild.com/az-900/cloud-concepts/cloud-pricing-models/) - Azure Local: Microsoft's solution (formerly Azure Stack HCI) for running virtualised workloads on validated hardware in your own location, managed through Azure. (https://azure.msdevbuild.com/az-900/cloud-concepts/private-cloud/) - Azure Marketplace: A store of third-party solutions, billed through your Azure subscription. (https://azure.msdevbuild.com/az-900/management-and-governance/factors-affecting-cost/) - Azure Migrate: A unified hub for discovery, assessment and migration of workloads to Azure. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-migrate-and-data-box/) - Azure Policy: A service that evaluates resources against rules and can audit, deny or remediate non-compliant ones. (https://azure.msdevbuild.com/az-900/cloud-concepts/governance/) - Azure portal: The browser-based console at portal.azure.com for creating and managing Azure resources. (https://azure.msdevbuild.com/az-900/cloud-concepts/what-is-microsoft-azure/) - Azure PowerShell: A set of PowerShell cmdlets (the Az module) for managing Azure. (https://azure.msdevbuild.com/az-900/management-and-governance/cloud-shell-cli-powershell/) - Azure Private Link: The technology behind private endpoints that keeps traffic on the Microsoft backbone. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/public-and-private-endpoints/) - Azure region: A geographic area containing one or more Azure datacenters, for example West Europe or Southeast Asia. (https://azure.msdevbuild.com/az-900/cloud-concepts/what-is-microsoft-azure/) - Azure Reservations: Commit to a specific resource type, size and region for 1 or 3 years for a significant discount. (https://azure.msdevbuild.com/az-900/cloud-concepts/cloud-pricing-models/) - Azure Resource Manager: The deployment and management layer that processes every Azure management request. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-resource-manager/) - Azure savings plan for compute: Commit to a fixed hourly spend on compute for 1 or 3 years; discount applies flexibly across eligible services and regions. (https://azure.msdevbuild.com/az-900/cloud-concepts/cloud-pricing-models/) - Azure SQL Database: Fully managed PaaS relational database based on the SQL Server engine. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-databases/) - Azure status: A public, global page showing the health of all Azure services across regions. (https://azure.msdevbuild.com/az-900/management-and-governance/service-health-and-azure-status/) - Azure Storage Explorer: A cross-platform desktop GUI for managing Azure Storage. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/moving-files/) - Azure Well-Architected Framework: Microsoft's guidance built around five pillars (reliability, security, cost optimization, operational excellence, performance efficiency). (https://azure.msdevbuild.com/az-900/cloud-concepts/predictability/) - B2B collaboration: Inviting external users as guests who sign in with their own credentials. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/external-identities/) - B2B direct connect: A trust with another Entra organisation, used for Teams shared channels. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/external-identities/) - Bicep: A concise Azure language that compiles to ARM templates. (https://azure.msdevbuild.com/az-900/management-and-governance/infrastructure-as-code/) - Billing boundary: Each subscription gets its own invoices and cost reports. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/subscriptions/) - Binding: A declarative connection to input or output data, such as writing to a queue, without extra code. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-functions/) - Blade: A panel in the portal that opens to show a resource or setting. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-portal/) - Blast radius: How much damage one breach can cause. Layers keep it small. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/defense-in-depth/) - Blob: Binary large object. Any file stored in Blob Storage. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/blob-storage-and-tiers/) - Branch: A remote office connected through VPN or SD-WAN. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/virtual-wan/) - Budget: A spending threshold in Microsoft Cost Management that triggers alerts when actual or forecast cost approaches it. (https://azure.msdevbuild.com/az-900/cloud-concepts/predictability/) - Business case (Azure Migrate): A TCO and savings report built from discovery data of your real servers. (https://azure.msdevbuild.com/az-900/management-and-governance/tco-calculator/) - CapEx: Capital expenditure. Up-front spending on physical assets that are owned and depreciated over time. (https://azure.msdevbuild.com/az-900/cloud-concepts/capex-vs-opex/) - Cash flow: The timing of money going out and coming in. Big CapEx purchases hit cash flow immediately. (https://azure.msdevbuild.com/az-900/cloud-concepts/capex-vs-opex/) - CIDR: Classless Inter-Domain Routing notation for IP ranges, such as /16 or /24. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/virtual-networks-and-subnets/) - Classification: Labelling data, such as credit card numbers or personal data, automatically. (https://azure.msdevbuild.com/az-900/management-and-governance/microsoft-purview/) - Cloud bursting: Running normally on-premises and "bursting" extra demand into the public cloud during peaks. (https://azure.msdevbuild.com/az-900/cloud-concepts/hybrid-cloud/) - Cloud computing: Renting computing services over the internet, on demand, instead of owning the hardware. (https://azure.msdevbuild.com/az-900/cloud-concepts/what-is-cloud-computing/) - Cloud provider: The company that owns the datacenters and rents out the services, for example Microsoft (Azure). (https://azure.msdevbuild.com/az-900/cloud-concepts/what-is-cloud-computing/) - Cloud security posture management (CSPM): Continuously assessing configuration against best practices. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/microsoft-defender-for-cloud/) - Cloud tiering: Keeps frequently used files on the local server and leaves the rest in Azure. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/moving-files/) - Cloud workload protection (CWP): Threat detection for workloads such as servers, containers, storage and databases (Defender plans). (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/microsoft-defender-for-cloud/) - Cold start: Extra delay when a function runs after being idle and a new instance must start. (https://azure.msdevbuild.com/az-900/cloud-concepts/serverless/) - Compliance: Meeting the requirements of laws, regulations and industry standards (for example GDPR, ISO 27001, PCI DSS). (https://azure.msdevbuild.com/az-900/cloud-concepts/governance/) - Conditional Access policy: An if-then rule combining signals and an access decision. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/conditional-access/) - Configuration vs customisation: SaaS lets you configure settings and workflows, but you cannot change the vendor's underlying code. (https://azure.msdevbuild.com/az-900/cloud-concepts/saas/) - Connectivity provider: A telecom or exchange partner that provides the physical connection. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/expressroute/) - Consumption-based model: Paying for actual usage of resources rather than for fixed capacity bought in advance. (https://azure.msdevbuild.com/az-900/cloud-concepts/consumption-based-model/) - Container: A lightweight package of an app and its dependencies that shares the host's OS kernel. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/compute-types/) - Container image: A packaged, versioned app plus its dependencies, stored in a registry such as Azure Container Registry. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/container-instances-and-aks/) - Control vs convenience: The core trade-off. IaaS gives the most control, SaaS the most convenience. (https://azure.msdevbuild.com/az-900/cloud-concepts/choosing-iaas-paas-saas/) - Cool-down: A waiting period after a scale action before the next one, to avoid flapping up and down. (https://azure.msdevbuild.com/az-900/cloud-concepts/elasticity/) - Cost alert: A notification, such as a budget alert, credit alert or department spending quota alert. (https://azure.msdevbuild.com/az-900/management-and-governance/cost-management/) - Cost analysis: Interactive charts of spending by service, resource group, tag, region and time. (https://azure.msdevbuild.com/az-900/management-and-governance/cost-management/) - Cost predictability: Confidence in what the cloud will cost, through forecasting, monitoring and controls. (https://azure.msdevbuild.com/az-900/cloud-concepts/predictability/) - Dashboard: A customisable view of tiles showing the resources and metrics you care about. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-portal/) - Data governance: Knowing and managing what data you have, where it is and how it is used. (https://azure.msdevbuild.com/az-900/management-and-governance/microsoft-purview/) - Data lineage: Tracking where data comes from and where it flows. (https://azure.msdevbuild.com/az-900/management-and-governance/microsoft-purview/) - Data map: An automatically built inventory of data sources and assets. (https://azure.msdevbuild.com/az-900/management-and-governance/microsoft-purview/) - Datacenter: A building that houses servers, storage and networking with power, cooling and physical security. (https://azure.msdevbuild.com/az-900/cloud-concepts/on-premises-vs-cloud/) - DDoS attack: Distributed Denial of Service. Flooding a service with traffic from many sources to make it unavailable. (https://azure.msdevbuild.com/az-900/cloud-concepts/security/) - Deallocated: A stopped VM whose hardware is released, so compute billing stops. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/virtual-machines/) - Declarative: Describe what you want; the tool decides how to create it. (https://azure.msdevbuild.com/az-900/management-and-governance/infrastructure-as-code/) - Dedicated host: An option to run your VMs on a physical server not shared with other customers, still inside the public cloud. (https://azure.msdevbuild.com/az-900/cloud-concepts/public-cloud/) - Defense in depth: Layered security (physical, identity, perimeter, network, compute, application, data) so one failed control does not expose everything. (https://azure.msdevbuild.com/az-900/cloud-concepts/security/) - Delete lock (CanNotDelete): Users can read and modify a resource but cannot delete it. (https://azure.msdevbuild.com/az-900/management-and-governance/resource-locks/) - Deployment slot: A live staging copy of your app you can swap into production with no downtime. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/app-service/) - Depreciation: Spreading the cost of an asset over its useful life in the accounts, because its value declines. (https://azure.msdevbuild.com/az-900/cloud-concepts/capex-vs-opex/) - Desktop virtualisation: Running a user's desktop in a datacenter and streaming it to their device. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-virtual-desktop/) - Disaster recovery (DR): The plans and tooling to restore service after a major incident, such as a regional outage. (https://azure.msdevbuild.com/az-900/cloud-concepts/reliability/) - DNS: Domain Name System, the internet's phone book that turns names into IP addresses. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-dns/) - DNS zone: A container for the DNS records of one domain, such as contoso.com. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-dns/) - Economies of scale: Large providers buy hardware and power so cheaply that they can offer lower unit costs than one company could achieve. (https://azure.msdevbuild.com/az-900/cloud-concepts/why-companies-use-cloud/) - Effect: What happens when a rule matches, such as Audit, Deny, Modify or DeployIfNotExists. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-policy/) - Egress: Data transferred out of an Azure region or out to the internet, which is usually charged. Inbound data (ingress) is generally free. (https://azure.msdevbuild.com/az-900/cloud-concepts/consumption-based-model/) - Elasticity: Automatically and rapidly matching resources to current demand, up and down. (https://azure.msdevbuild.com/az-900/cloud-concepts/elasticity/) - Encryption at rest: Data stored on disk is encrypted. It is enabled by default for Azure Storage and Azure SQL Database. (https://azure.msdevbuild.com/az-900/cloud-concepts/security/) - Estimate: A saved list of services and options with a predicted monthly cost. (https://azure.msdevbuild.com/az-900/management-and-governance/pricing-calculator/) - Event-driven: Code runs in response to something happening, such as an HTTP request, a new file, a queue message or a timer. (https://azure.msdevbuild.com/az-900/cloud-concepts/serverless/) - ExpressRoute: A private, dedicated connection between your network and Azure that does not travel over the public internet. (https://azure.msdevbuild.com/az-900/cloud-concepts/hybrid-cloud/) - ExpressRoute circuit: The logical private connection between your network and Microsoft through a provider. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/expressroute/) - ExpressRoute Global Reach: Connects your on-premises sites to each other through the Microsoft network. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/expressroute/) - External identity: An identity from outside your organisation used to access your resources. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/external-identities/) - Failover: Switching to a standby component or location when the primary fails. (https://azure.msdevbuild.com/az-900/cloud-concepts/reliability/) - Fault domain: A group of hardware sharing a power source and network switch, like a rack. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/vm-scale-sets-and-availability-sets/) - General availability (GA): A fully released, supported service, normally covered by an SLA. (https://azure.msdevbuild.com/az-900/management-and-governance/slas-and-service-lifecycle/) - Geography: A larger area, usually a country or market, containing one or more regions and respecting data residency boundaries. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/regions-and-region-pairs/) - Global VNet peering: Peering between virtual networks in different Azure regions. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/vnet-peering/) - Governance: Policies and processes that ensure cloud resources meet organisational and regulatory standards. (https://azure.msdevbuild.com/az-900/cloud-concepts/governance/) - Grant control: The requirement or decision, such as require MFA, require a compliant device, or block. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/conditional-access/) - GRS: Geo-redundant storage. LRS plus asynchronous copy to a secondary region. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/storage-redundancy/) - Guardrails: Automated controls that keep teams within safe boundaries without slowing them down. (https://azure.msdevbuild.com/az-900/cloud-concepts/governance/) - GZRS: Geo-zone-redundant storage. ZRS plus asynchronous copy to a secondary region. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/storage-redundancy/) - Hardware refresh: Replacing ageing servers, typically every 3–5 years, which is a major recurring capital cost on-premises. (https://azure.msdevbuild.com/az-900/cloud-concepts/on-premises-vs-cloud/) - Health probe: A regular check that removes unhealthy backends from rotation. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/load-balancer-application-gateway-front-door/) - High availability (HA): Keeping a service accessible with minimal downtime, despite failures of individual components. (https://azure.msdevbuild.com/az-900/cloud-concepts/high-availability/) - Horizontal scaling (scale out/in): Changing the number of instances, such as going from 2 web servers to 10. (https://azure.msdevbuild.com/az-900/cloud-concepts/scalability/) - Host pool: A group of VMs that serve desktops to users. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-virtual-desktop/) - Hybrid cloud: A combination of public cloud with private cloud or on-premises infrastructure, connected so workloads and data can interact. (https://azure.msdevbuild.com/az-900/cloud-concepts/hybrid-cloud/) - Hypervisor: Software that runs multiple isolated VMs on one physical server. (https://azure.msdevbuild.com/az-900/cloud-concepts/iaas/) - IaaS: Infrastructure as a Service. Rent VMs, storage and networks; you manage the OS, runtime, apps and data. (https://azure.msdevbuild.com/az-900/cloud-concepts/iaas/) - Idempotent: Deploying the same template many times gives the same result. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-resource-manager/) - Image: The template the VM starts from, such as Ubuntu Server or Windows Server. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/virtual-machines/) - Imperative: Write step-by-step commands, as in a script. (https://azure.msdevbuild.com/az-900/management-and-governance/infrastructure-as-code/) - Infrastructure as code: Defining and deploying infrastructure through code files. (https://azure.msdevbuild.com/az-900/management-and-governance/infrastructure-as-code/) - Infrastructure as code (IaC): Defining infrastructure in files (Bicep, ARM templates, Terraform) so it can be versioned and deployed repeatably. (https://azure.msdevbuild.com/az-900/cloud-concepts/manageability/) - Inheritance: Settings applied at a higher level automatically apply to everything below. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/management-groups/) - Initiative: A group of related policy definitions assigned together. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-policy/) - KQL: Kusto Query Language, used to query logs. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-monitor/) - Kubernetes: An open-source system for deploying, scaling and healing containers automatically. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/container-instances-and-aks/) - Layer 4: Transport layer (TCP/UDP). Routing by IP address and port only. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/load-balancer-application-gateway-front-door/) - Layer 7: Application layer (HTTP/HTTPS). Routing can use URLs, headers and cookies. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/load-balancer-application-gateway-front-door/) - Least privilege: Giving only the minimum permissions needed to do the job. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-rbac/) - Lifecycle: When resources are created, updated and deleted. Resources with the same lifecycle belong in the same group. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/resources-and-resource-groups/) - Lift and shift: Moving an application to the cloud with as few changes as possible, usually onto virtual machines. (https://azure.msdevbuild.com/az-900/cloud-concepts/on-premises-vs-cloud/) - Lift and shift (rehost): Moving an existing application to cloud VMs with minimal changes. (https://azure.msdevbuild.com/az-900/cloud-concepts/iaas/) - Lock inheritance: A lock on a resource group or subscription applies to everything inside. (https://azure.msdevbuild.com/az-900/management-and-governance/resource-locks/) - Logs: Records of events and data, queried with KQL in Log Analytics. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-monitor/) - LRS: Locally redundant storage. 3 copies in one datacenter. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/storage-redundancy/) - Managed disk: Block storage attached to a VM for its OS and data. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/virtual-machines/) - Managed service: A service where the provider handles operations like patching, backups and high availability for you. (https://azure.msdevbuild.com/az-900/cloud-concepts/paas/) - Management group: A container above subscriptions used to apply policy and access across many subscriptions. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/management-groups/) - Management in the cloud: The interfaces used to manage resources, such as the Azure portal, CLI, PowerShell, APIs and SDKs. (https://azure.msdevbuild.com/az-900/cloud-concepts/manageability/) - Management of the cloud: Managing your cloud resources, such as scaling, deploying from templates, monitoring and alerting, and automatic replacement of failed resources. (https://azure.msdevbuild.com/az-900/cloud-concepts/manageability/) - Measured service: Usage is metered (per second, per GB, per request) so you are billed for what you actually consume. (https://azure.msdevbuild.com/az-900/cloud-concepts/what-is-cloud-computing/) - Meter: The unit Azure uses to measure a resource's usage, such as VM hours, GB stored per month or millions of executions. (https://azure.msdevbuild.com/az-900/cloud-concepts/consumption-based-model/) - Metrics: Numeric values collected at regular intervals, such as CPU percentage. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-monitor/) - MFA: Requiring two or more of something you know, have or are. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/authentication-methods/) - Microsoft Azure: Microsoft's public cloud platform offering compute, storage, networking, databases, AI, security and management services. (https://azure.msdevbuild.com/az-900/cloud-concepts/what-is-microsoft-azure/) - Microsoft Defender for Cloud: Azure's security posture management and threat protection service for Azure, hybrid and multi-cloud workloads. (https://azure.msdevbuild.com/az-900/cloud-concepts/security/) - Microsoft Entra Connect: Synchronises users and groups from on-premises Active Directory to Entra ID. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/microsoft-entra-id/) - Microsoft Entra Domain Services: Managed domain join, Group Policy, LDAP and Kerberos/NTLM without managing domain controllers. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/microsoft-entra-id/) - Microsoft Entra External ID (customers): Customer identity and access management for public-facing apps. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/external-identities/) - Microsoft Entra ID: Cloud identity and access management service (formerly Azure AD). (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/microsoft-entra-id/) - Middleware: Software between the OS and your app, such as web servers or database engines. (https://azure.msdevbuild.com/az-900/cloud-concepts/paas/) - Multi-cloud: Using services from two or more public cloud providers. (https://azure.msdevbuild.com/az-900/cloud-concepts/hybrid-cloud/) - Multi-tenancy: Many customers (tenants) share the same physical infrastructure while remaining logically isolated. (https://azure.msdevbuild.com/az-900/cloud-concepts/public-cloud/) - Network interface (NIC): Connects a VM to a virtual network subnet. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/virtual-machines/) - Non-regional service: A service that is always available across Azure geographies and is not tied to a region, such as Microsoft Entra ID. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/availability-zones/) - Non-transitive: If A peers with B and B with C, A cannot reach C unless A and C are also peered (or a hub routes the traffic). (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/vnet-peering/) - NSG: A set of allow and deny rules that filter network traffic to and from Azure resources. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/network-security-groups/) - On-demand self-service: You can create resources yourself in minutes through a portal or API, without raising a purchase order. (https://azure.msdevbuild.com/az-900/cloud-concepts/what-is-cloud-computing/) - On-premises (on-prem): IT infrastructure owned and operated by the organisation itself, in its own building or a leased facility. (https://azure.msdevbuild.com/az-900/cloud-concepts/on-premises-vs-cloud/) - OpEx: Operational expenditure. Ongoing spending on services or products, expensed in the period it occurs. (https://azure.msdevbuild.com/az-900/cloud-concepts/capex-vs-opex/) - Orchestration: Automatically deploying, scaling and healing many containers, for example with Kubernetes. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/compute-types/) - Orphaned resource: A resource left behind after its parent is deleted, such as a disk after a VM, which still costs money. (https://azure.msdevbuild.com/az-900/management-and-governance/factors-affecting-cost/) - PaaS: Platform as a Service. The provider runs the OS, runtime and middleware; you deploy apps and manage data and access. (https://azure.msdevbuild.com/az-900/cloud-concepts/paas/) - Passwordless: Signing in without a password, using biometrics, a device or a security key. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/authentication-methods/) - Pay-as-you-go: The default Azure pricing option, billed for usage with no commitment. (https://azure.msdevbuild.com/az-900/cloud-concepts/consumption-based-model/) - Performance predictability: Confidence that the system will deliver a consistent user experience under expected load. (https://azure.msdevbuild.com/az-900/cloud-concepts/predictability/) - Perimeter layer: Protection at the edge of the network, such as DDoS protection and firewalls. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/defense-in-depth/) - Physical security: Controls such as fences, guards, cameras and multi-step access checks that protect the building and hardware. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/datacenters/) - Point-to-site: Connects individual devices, such as a laptop, to Azure. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/vpn-gateway/) - Policy definition: A rule describing a condition and an effect, such as "deny VMs outside allowed sizes". (https://azure.msdevbuild.com/az-900/management-and-governance/azure-policy/) - Premium account: SSD-backed accounts for block blobs, file shares or page blobs that need low latency. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/storage-accounts/) - Pricing calculator: A web tool that estimates the cost of Azure services before deployment. (https://azure.msdevbuild.com/az-900/management-and-governance/pricing-calculator/) - Priority: A number from 100 to 4096; lower numbers are processed first. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/network-security-groups/) - Private cloud: Cloud infrastructure dedicated to a single organisation, on-premises or hosted by a third party. (https://azure.msdevbuild.com/az-900/cloud-concepts/private-cloud/) - Private DNS zone: A DNS zone that resolves names only inside your virtual networks. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-dns/) - Private endpoint: A network interface with a private IP in your VNet that connects to a PaaS service. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/public-and-private-endpoints/) - Public cloud: Cloud services owned and run by a provider and available to any organisation or person over the internet. (https://azure.msdevbuild.com/az-900/cloud-concepts/public-cloud/) - Public endpoint: An internet-reachable address for a service. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/public-and-private-endpoints/) - Public preview: A service available to all customers for testing, usually without an SLA. (https://azure.msdevbuild.com/az-900/management-and-governance/slas-and-service-lifecycle/) - Queue Storage: Stores messages (up to 64 KB each) so app components can work asynchronously. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/files-queues-tables-disks/) - RA-: Read access to the secondary region at all times (RA-GRS, RA-GZRS). (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/storage-redundancy/) - Rack: A frame holding many servers and network switches inside a datacenter. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/datacenters/) - ReadOnly lock: Users can read a resource but cannot modify or delete it. (https://azure.msdevbuild.com/az-900/management-and-governance/resource-locks/) - Redundancy: Running duplicate components so one failure does not take the service down. (https://azure.msdevbuild.com/az-900/cloud-concepts/high-availability/) - Region: A geographic area with one or more datacenters networked together with low latency. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/regions-and-region-pairs/) - Region pair: Two regions in the same geography linked for resilience, with sequential updates and prioritised recovery. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/regions-and-region-pairs/) - Rehost / refactor / replace: Migration strategies that roughly map to IaaS (rehost), PaaS (refactor) and SaaS (replace). (https://azure.msdevbuild.com/az-900/cloud-concepts/choosing-iaas-paas-saas/) - Rehydration: Moving an archived blob back to an online tier so it can be read, which can take hours. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/blob-storage-and-tiers/) - Reliability: The ability of a system to recover from failures and keep functioning correctly. (https://azure.msdevbuild.com/az-900/cloud-concepts/reliability/) - Remediation: Fixing existing non-compliant resources automatically. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-policy/) - Resource: A manageable item you create in Azure, such as a VM, storage account or web app. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/resources-and-resource-groups/) - Resource group: A logical container for resources that share a lifecycle, owner or purpose. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/resources-and-resource-groups/) - Resource Health: The current and past health of your individual resources. (https://azure.msdevbuild.com/az-900/management-and-governance/service-health-and-azure-status/) - Resource pooling: The provider shares huge pools of hardware between many customers, keeping each customer isolated. (https://azure.msdevbuild.com/az-900/cloud-concepts/what-is-cloud-computing/) - Resource type: The kind of service and its settings, such as VM size, storage tier or redundancy. (https://azure.msdevbuild.com/az-900/management-and-governance/factors-affecting-cost/) - Role definition: A collection of permissions, such as Reader or Contributor. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-rbac/) - Root management group: The single top-level management group for a Microsoft Entra tenant. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/management-groups/) - Route-based VPN: Uses routes to decide which traffic goes into the tunnel; the most common and flexible type. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/vpn-gateway/) - RPO: Recovery Point Objective. The maximum acceptable amount of data loss, measured in time. (https://azure.msdevbuild.com/az-900/cloud-concepts/reliability/) - RTO: Recovery Time Objective. The maximum acceptable time to restore service after a failure. (https://azure.msdevbuild.com/az-900/cloud-concepts/reliability/) - Runtime: The environment your code needs to run, such as .NET, Node.js, Java or Python. (https://azure.msdevbuild.com/az-900/cloud-concepts/paas/) - SaaS: Software as a Service. A finished application delivered over the internet, fully run by the provider. (https://azure.msdevbuild.com/az-900/cloud-concepts/saas/) - Scalability: The ability to increase or decrease resources to handle changes in workload. (https://azure.msdevbuild.com/az-900/cloud-concepts/scalability/) - Scale to zero: When nothing is happening, no instances run and (on consumption plans) you pay nothing for compute. (https://azure.msdevbuild.com/az-900/cloud-concepts/serverless/) - Scale-in rule: The rule that removes instances when demand drops, which is the part that saves money. (https://azure.msdevbuild.com/az-900/cloud-concepts/elasticity/) - Scope: The level where you apply a setting, such as a management group, subscription, resource group or resource. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/management-hierarchy/) - Secure score: A measurement of your security posture; higher is better. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/microsoft-defender-for-cloud/) - Security IN the cloud: The customer's job, which covers data, identities, access, configuration and (in IaaS) the OS and apps. (https://azure.msdevbuild.com/az-900/cloud-concepts/shared-responsibility-model/) - Security OF the cloud: The provider's job, which covers physical facilities, hardware, the hypervisor and the provider's own services. (https://azure.msdevbuild.com/az-900/cloud-concepts/shared-responsibility-model/) - Security principal: A user, group, service principal or managed identity that receives access. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-rbac/) - Security rule: A rule with priority, source, destination, port, protocol and action (allow or deny). (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/network-security-groups/) - Self-service portal: A catalogue where internal teams request resources themselves, the "cloud-like" part of a private cloud. (https://azure.msdevbuild.com/az-900/cloud-concepts/private-cloud/) - Serverless: A model where the provider manages all infrastructure and scaling; you supply code or workflows triggered by events. (https://azure.msdevbuild.com/az-900/cloud-concepts/serverless/) - Service credit: A percentage of fees refunded when an SLA is missed. (https://azure.msdevbuild.com/az-900/management-and-governance/slas-and-service-lifecycle/) - Service endpoint URL: The address of each service, such as https://name.blob.core.windows.net. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/storage-accounts/) - Service Health: A personalised view of service issues, planned maintenance and advisories affecting your subscriptions. (https://azure.msdevbuild.com/az-900/management-and-governance/service-health-and-azure-status/) - Shared responsibility model: The division of security and operational duties between the cloud provider and the customer. (https://azure.msdevbuild.com/az-900/cloud-concepts/shared-responsibility-model/) - Signal: Information used in the decision, such as user, location, device, app or risk. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/conditional-access/) - Single point of failure: Any component whose failure stops the whole system. (https://azure.msdevbuild.com/az-900/cloud-concepts/high-availability/) - Single-tenant: Infrastructure serving only one customer, the opposite of multi-tenant. (https://azure.msdevbuild.com/az-900/cloud-concepts/private-cloud/) - Site-to-site: Connects an entire on-premises network to Azure. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/vpn-gateway/) - SLA: Service Level Agreement. Microsoft's formal commitment to a level of uptime or connectivity, often with service credits if missed. (https://azure.msdevbuild.com/az-900/cloud-concepts/high-availability/) - Sovereign region: An isolated instance of Azure for government or legal requirements, such as Azure Government or Azure in China. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/regions-and-region-pairs/) - Spot VMs: Unused Azure capacity at large discounts that Azure can evict when it needs the capacity back. (https://azure.msdevbuild.com/az-900/cloud-concepts/cloud-pricing-models/) - SQL Managed Instance: PaaS with near-100% SQL Server compatibility, ideal for lift-and-shift. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-databases/) - Standard general-purpose v2: The recommended account type, supporting blobs, files, queues and tables with all redundancy options. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/storage-accounts/) - Stateless: An app instance that keeps no user-specific data locally, so any instance can handle any request. This is essential for scaling out. (https://azure.msdevbuild.com/az-900/cloud-concepts/scalability/) - Storage account: A uniquely named container for Azure Storage services and their settings. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/storage-accounts/) - Subnet: A segment of a VNet's address space used to group and isolate resources. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/virtual-networks-and-subnets/) - Subscription: A container for resources that is a billing boundary and an access control boundary. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/subscriptions/) - Subscription licensing: Paying per user or per month for software instead of buying perpetual licences. (https://azure.msdevbuild.com/az-900/cloud-concepts/saas/) - Table Storage: Schemaless NoSQL storage of structured key/attribute data. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/files-queues-tables-disks/) - Tag: A name-value pair of metadata on a resource. (https://azure.msdevbuild.com/az-900/management-and-governance/resource-tags/) - Tag inheritance: Resources do not inherit tags from their group by default; Azure Policy can enforce or copy them. (https://azure.msdevbuild.com/az-900/management-and-governance/resource-tags/) - TCO calculator: A tool comparing on-premises and Azure costs for a workload. (https://azure.msdevbuild.com/az-900/management-and-governance/tco-calculator/) - Tenant: A customer's isolated slice of a shared service, such as their own Microsoft Entra directory. (https://azure.msdevbuild.com/az-900/cloud-concepts/public-cloud/) - Time to market: How long it takes to get a new product or feature in front of customers. (https://azure.msdevbuild.com/az-900/cloud-concepts/why-companies-use-cloud/) - Total cost of ownership: All direct and indirect costs of a system over its lifetime. (https://azure.msdevbuild.com/az-900/management-and-governance/tco-calculator/) - Transit: Traffic passing through a hub between other networks, such as branch to branch. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/virtual-wan/) - Trigger: The event that starts a function, for example an HTTP call or a blob upload. (https://azure.msdevbuild.com/az-900/cloud-concepts/serverless/) - Undifferentiated heavy lifting: Work that is necessary but does not make your product special, such as racking servers or patching hardware. (https://azure.msdevbuild.com/az-900/cloud-concepts/why-companies-use-cloud/) - Update domain: A group of VMs that can be rebooted together during planned maintenance. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/vm-scale-sets-and-availability-sets/) - Uptime: The percentage of time a service is available. (https://azure.msdevbuild.com/az-900/cloud-concepts/high-availability/) - Verify explicitly: Always authenticate and authorise using identity, location, device, service and risk. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/zero-trust/) - Vertical scaling (scale up/down): Changing the size of a single resource, such as adding CPUs or memory to a VM. (https://azure.msdevbuild.com/az-900/cloud-concepts/scalability/) - Virtual machine: Software emulation of a physical computer with its own full OS (IaaS). (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/compute-types/) - Virtual machine (VM): A software-based computer running on a physical host, with its own OS, CPU, memory and disks. (https://azure.msdevbuild.com/az-900/cloud-concepts/iaas/) - Virtual Machine Scale Set: A group of identical VMs that can scale automatically. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/vm-scale-sets-and-availability-sets/) - Virtual network (VNet): A logically isolated private network in Azure, scoped to one region. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/virtual-networks-and-subnets/) - Virtual WAN hub: A Microsoft-managed virtual network that acts as the central connection point in a region. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/virtual-wan/) - VM size: The amount of vCPU, memory and other capacity, such as Standard_B1s or Standard_D4s_v5. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/virtual-machines/) - VNet peering: A private connection between two virtual networks. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/vnet-peering/) - VPN gateway: A virtual network gateway that creates encrypted IPsec/IKE tunnels over the internet. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/vpn-gateway/) - Web app: An App Service app that hosts a website or web API. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/app-service/) - Web Application Firewall (WAF): Protects web apps from common attacks such as SQL injection and cross-site scripting. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/load-balancer-application-gateway-front-door/) - Well-Architected Framework: Microsoft's best-practice guidance; Advisor's categories align with its pillars. (https://azure.msdevbuild.com/az-900/management-and-governance/azure-advisor/) - Windows multi-session: Windows 10/11 Enterprise editions that allow several users on one VM at once, available on Azure Virtual Desktop. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/azure-virtual-desktop/) - Zero Trust: A model where every access request is fully verified, regardless of where it comes from. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/zero-trust/) - Zonal service: A resource pinned to a zone you choose, such as a VM in zone 1. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/availability-zones/) - Zone-redundant service: A service Azure automatically replicates across zones, such as zone-redundant storage (ZRS). (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/availability-zones/) - ZRS: Zone-redundant storage. 3 copies across 3 availability zones. (https://azure.msdevbuild.com/az-900/azure-architecture-and-services/storage-redundancy/) # AI-901: Azure AI Fundamentals answers Course: https://azure.msdevbuild.com/ai-901/ · Skills measured as of April 15, 2026: https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/ai-901 # AI-901 Domain 1: Identify AI concepts and capabilities (40–45%) ## What is AI? Machine Learning, Generative AI and Agents URL: https://azure.msdevbuild.com/ai-901/ai-concepts/what-is-ai/ Artificial intelligence (AI) is software that does things we used to think needed a human: understanding language, recognising images, making predictions and creating content. Machine learning is the main way we build AI (the software learns patterns from data), deep learning is machine learning with many-layered neural networks, generative AI uses deep learning models to create new text, images or audio, and an AI agent is a generative model that's been given instructions and tools so it can carry out tasks. Key points: - AI is the big circle. Machine learning sits inside it, deep learning inside that, and generative AI is built on deep learning. - Machine learning learns patterns from data instead of following hand-written rules. - Generative AI creates new content from a prompt; traditional ML predicts or classifies. - An agent is a generative model plus instructions plus tools, so it can take actions. - AI-901 workloads are generative and agentic AI, text analysis, speech, computer vision and information extraction. Exam tips: - "Create", "draft", "write" or "generate" in a scenario points to generative AI. - "Take actions", "call a tool" or "complete a multi-step task" points to an AI agent. Quick Q&A: - Q: Is machine learning a part of AI or the other way round? A: Machine learning is a part of AI. - Q: What kind of model is generative AI built on? A: Deep learning models, usually transformer-based language models. - Q: What turns a generative model into an agent? A: Instructions plus tools it can call to take actions. - Q: Which workload reads fields from an invoice image? A: Information extraction. - Q: Which Microsoft platform is AI-901 built around? A: Microsoft Foundry (formerly Azure AI Foundry). ## The Six Principles of Responsible AI URL: https://azure.msdevbuild.com/ai-901/ai-concepts/responsible-ai-principles/ Microsoft builds AI around six responsible AI principles: fairness (treat similar people the same way), reliability and safety (work as expected and fail safely), privacy and security (protect data and resist attacks), inclusiveness (work for people of every ability and background), transparency (people understand what the AI does and its limits) and accountability (people stay answerable for what the AI does). In Microsoft Foundry they show up as guardrails, evaluations, transparency notes and human review. Key points: - Six principles - fairness, reliability and safety, privacy and security, inclusiveness, transparency, accountability. - Reliability and safety is one principle; privacy and security is one principle. - Foundry guardrails, Prompt Shields and evaluations turn principles into controls. - Transparency notes and model cards explain what a model can and can't do. - People, not the model, stay accountable for decisions. Exam tips: - Same input, different result for different groups = fairness. - Works for people with disabilities or other languages = inclusiveness. - Explaining how a decision was made = transparency. Who answers for it = accountability. Quick Q&A: - Q: How many responsible AI principles does Microsoft define? A: Six. - Q: Which principle covers a system that must keep working during unusual conditions? A: Reliability and safety. - Q: Which principle is about protecting personal data? A: Privacy and security. - Q: Which principle covers a speech app that understands many accents? A: Inclusiveness. - Q: Which principle says humans remain answerable for AI decisions? A: Accountability. ## Fairness and Inclusiveness URL: https://azure.msdevbuild.com/ai-901/ai-concepts/fairness-and-inclusiveness/ Fairness means an AI system treats people in similar situations the same way, so its results don't depend on gender, ethnicity, age, location or other personal traits. Inclusiveness means the system is designed to work for and engage everyone, including people with disabilities and people who speak different languages or accents. You get both by using representative data, measuring results group by group with evaluations, and testing with the people who'll actually use the system. Key points: - Fairness is about equal treatment and outcomes for similar people. - Inclusiveness is about designing for everyone, including people with disabilities and other languages. - Bias usually comes from data, proxy features and unrepresentative testing. - Removing a sensitive column doesn't remove bias; measure results by group. - Test with real users from every group, not only the build team. Exam tips: - Approval rates or accuracy that differ by gender, age or ethnicity = fairness. - Screen readers, captions, sign language, accents, low literacy = inclusiveness. Quick Q&A: - Q: A model approves loans for men more often than for equally qualified women. Which principle? A: Fairness. - Q: A chatbot offers voice input for people who can't type. Which principle? A: Inclusiveness. - Q: What is a proxy feature? A: A field that indirectly reveals a protected trait, such as postcode standing in for community. - Q: What's the most common source of bias? A: Training data that doesn't represent everyone the system serves. - Q: How do you find unfair results? A: Measure outcomes and accuracy separately for each group (disaggregated evaluation). ## Reliability, Safety, Privacy and Security URL: https://azure.msdevbuild.com/ai-901/ai-concepts/reliability-safety-privacy-security/ Reliability and safety means an AI system works as intended, copes with unexpected input and fails in a safe way instead of causing harm. Privacy and security means it protects personal data, respects how that data may be used and resists attacks such as jailbreak prompts and prompt injection. In Microsoft Foundry you apply them with guardrails (content filters), Prompt Shields, PII detection, evaluations before launch, and standard Azure security such as Microsoft Entra ID and private networking. Key points: - Reliability and safety - works as intended, handles the unexpected, fails safely. - Privacy and security - protects personal data and resists attacks. - Guardrails filter hate, sexual, violence and self-harm content by severity, on prompts and outputs. - Prompt Shields catch jailbreaks and indirect prompt injection. - Prompts and completions in Foundry aren't used to train foundation models. Exam tips: - Harmful or unsafe answers, testing before release, failing safely = reliability and safety. - Personal data, consent, jailbreaks, data leaks = privacy and security. Quick Q&A: - Q: Which Foundry feature blocks violent content in a model's reply? A: Guardrails (content filters). - Q: Which feature detects "ignore your instructions" style attacks? A: Prompt Shields. - Q: Which Azure Language feature finds phone numbers and ID numbers in text? A: PII detection. - Q: Name the four harm categories content filters check. A: Hate, sexual, violence and self-harm. - Q: Are your Foundry prompts used to train the foundation models? A: No. ## Transparency and Accountability URL: https://azure.msdevbuild.com/ai-901/ai-concepts/transparency-and-accountability/ Transparency means people know when they're dealing with AI, understand roughly how it reaches its results and know its limits. Accountability means named people and organisations stay answerable for what an AI system does, with governance, oversight and a way to fix mistakes. In Microsoft Foundry, transparency notes, model cards, citations and tracing support transparency, while role-based access, evaluations, logs and human-in-the-loop review support accountability. Key points: - Transparency - people know it's AI, understand how it works and know its limits. - Accountability - named humans stay answerable for the AI system. - Transparency notes and model cards explain a service's or model's uses and limits. - Citations and tracing make individual answers explainable and auditable. - Human-in-the-loop review keeps people in charge of high-impact decisions. Exam tips: - Explain a decision, disclose AI use, document limitations = transparency. - Human oversight, governance, audit, who is responsible = accountability. Quick Q&A: - Q: An app tells users their reply was written by AI. Which principle? A: Transparency. - Q: A team must sign off before an AI model goes to production. Which principle? A: Accountability. - Q: Which Microsoft document explains an AI service's limitations? A: A transparency note. - Q: Which Foundry feature records each step an agent took? A: Tracing. - Q: What's human-in-the-loop? A: A person reviews or approves AI output before it takes effect. ## How Generative AI Models Work URL: https://azure.msdevbuild.com/ai-901/ai-concepts/how-generative-ai-works/ A generative AI language model splits your prompt into tokens, turns each token into an embedding (a list of numbers that captures meaning), and runs them through a transformer whose attention layers work out how the words relate. It then predicts the next token, adds it to the text and repeats until the answer is done. Settings like temperature control how adventurous each pick is, the context window limits how much text it can consider at once, and grounding it in your own data reduces hallucinations (confident but wrong answers). Key points: - Text is split into tokens; roughly four characters of English per token. - Embeddings turn tokens into vectors so similar meanings sit close together. - Transformers use attention to work out how every token relates to the others. - The model writes by predicting the next token, again and again. - Low temperature = focused; high temperature = varied. Grounding reduces hallucination. Exam tips: - "Answers must be consistent and factual" = lower temperature and grounding. - "Model gives confident but wrong answers" = hallucination; fix with grounding (RAG). - Context window = prompt + response tokens together. Quick Q&A: - Q: What is a token? A: A small chunk of text the model reads and writes, about four characters of English on average. - Q: Which part of a transformer works out how words relate to each other? A: Attention. - Q: What does a model actually predict at each step? A: The next token. - Q: Which setting would you lower for more predictable answers? A: Temperature. - Q: What technique supplies trusted data in the prompt to reduce hallucination? A: Grounding, often with retrieval-augmented generation (RAG). ## Choosing the Right AI Model URL: https://azure.msdevbuild.com/ai-901/ai-concepts/choosing-an-ai-model/ You choose an AI model by matching its capabilities to the job, then balancing quality, cost and latency. A large language model (LLM) handles open-ended text, a small language model (SLM) such as Phi is cheaper and faster for narrow tasks, multimodal models accept images or audio, reasoning models think through multi-step problems, embedding models turn text into vectors for search, and image-generation models create pictures. In Microsoft Foundry you compare them in the model catalog using model cards and benchmarks. Key points: - Match the model to the capability first, then trade off quality, cost and latency. - SLMs such as Phi are cheaper and faster; LLMs are better at broad, open-ended work. - Multimodal models take images or audio as input; image-generation models create images. - Reasoning models think step by step and suit maths, planning and code, at higher cost and latency. - Embedding models output vectors for semantic search and RAG, not chat answers. Exam tips: - "Lowest cost, fast, narrow task, could run on a device" = small language model. - "Describe what is in a photo" = multimodal model. "Create a new picture" = image-generation model. - "Convert text to vectors for similarity search" = embedding model. Quick Q&A: - Q: Which model type turns text into vectors? A: An embedding model. - Q: Name a Microsoft family of small language models. A: Phi. - Q: Where do you read a model's intended use, limits and license? A: On its model card in the model catalog. - Q: Which model type suits multi-step maths and planning? A: A reasoning model. - Q: What three things do you usually trade off when picking a model? A: Quality, cost and latency. ## Model Deployment Options and Parameters URL: https://azure.msdevbuild.com/ai-901/ai-concepts/model-deployment-and-parameters/ A deployment makes a model callable from your Foundry resource, and the deployment type decides where requests are processed and how you pay. Global Standard (pay per token) is the usual starting point, Data Zone Standard keeps processing inside the US, EU or APAC, Provisioned reserves capacity for steady, low-latency traffic, and Batch runs large jobs asynchronously at about half the price. Parameters such as temperature, top_p, max output tokens and stop sequences then shape each response. Key points: - Global Standard is the default starting point, pay per token, and may process data in any region. - Data Zone Standard keeps processing in the US, EU or APAC data zone; Standard keeps it in the resource's geography. - Provisioned deployments reserve capacity (PTUs) for steady traffic and predictable latency. - Batch deployments process files asynchronously with a 24-hour target at about 50% less cost. - Temperature and top_p control randomness; max output tokens caps length; stop sequences end output early. Exam tips: - "Data must be processed only within the EU" = Data Zone (or regional) deployment, not Global. - "Predictable latency, steady high volume, reserved capacity" = Provisioned. - "Large volume, not time-sensitive, lowest cost" = Batch. - "More consistent, less creative answers" = lower temperature. Quick Q&A: - Q: Which deployment type is the usual starting point? A: Global Standard. - Q: What unit do you buy for Provisioned deployments? A: Provisioned throughput units (PTUs). - Q: What is the target turnaround for a Batch deployment? A: 24 hours. - Q: Which parameter limits the length of a response? A: Max output tokens (max tokens). - Q: What does a low temperature produce? A: More focused, consistent and predictable answers. ## Common AI Workloads URL: https://azure.msdevbuild.com/ai-901/ai-concepts/ai-workloads/ An AI workload is the kind of job you ask AI to do. The six you need for AI-901 are generative AI (create new text, code or images), agentic AI (plan and take actions with tools), text analysis (find sentiment, key phrases, entities and summaries in text), speech (speech to text and text to speech), computer vision (understand or generate images) and information extraction (pull structured fields out of documents, images, audio and video). You tell them apart by looking at the input and the output the scenario asks for. Key points: - Generative AI creates new content; text analysis labels or summarises existing text. - Agentic AI plans, calls tools and acts towards a goal. - Speech covers speech to text, text to speech, translation and speaker diarization. - Computer vision understands images; image-generation models create them. - Information extraction turns documents, images, audio and video into structured fields. Exam tips: - "Determine whether reviews are positive or negative" = text analysis (sentiment). - "Create a product description" = generative AI. - "Book a meeting and email the attendees" = agentic AI. - "Extract the total and due date from invoices" = information extraction. Quick Q&A: - Q: Which workload converts spoken words into text? A: Speech (speech to text, also called speech recognition). - Q: Which workload detects objects in a photo? A: Computer vision. - Q: What makes an AI solution agentic? A: It plans steps and uses tools to take actions towards a goal. - Q: Which workload returns fields like InvoiceTotal with confidence scores? A: Information extraction. - Q: What were Foundry Tools previously called? A: Azure AI services (Cognitive Services before that). ## Generative AI and AI Agents URL: https://azure.msdevbuild.com/ai-901/ai-concepts/generative-and-agentic-ai/ Generative AI creates new content (text, code, images, audio) in response to a prompt. An AI agent goes further: it's a model plus instructions plus tools that works towards a goal by planning, calling tools (search, code, APIs), observing the results and repeating until it can answer or finish the task. A copilot is an agent-style assistant built into an app to help a person, and multi-agent systems split a big job across several specialist agents. Key points: - Generative AI creates new content from a prompt by predicting the next token. - An agent = model + instructions + tools, working towards a goal. - Agents loop through plan, act (call a tool), observe, until the task is done. - Multi-agent systems split work across specialist agents with an orchestrator or workflow. - A copilot is an AI assistant built into an app to help a person. Exam tips: - "Uses tools to complete tasks on the user's behalf" = AI agent. - "Creates a new product description from a prompt" = generative AI. - The three parts of an agent = model, instructions, tools. Quick Q&A: - Q: What three things make up an AI agent? A: A model, instructions and tools. - Q: Name two tools a Foundry agent can use. A: Any two of file search, code interpreter, web search, function calling, OpenAPI, MCP servers, Azure AI Search. - Q: What does an agent do after calling a tool? A: It observes the result and decides the next step. - Q: What is a copilot? A: An AI assistant built into an app that helps a person with their work. - Q: What coordinates the agents in a multi-agent system? A: An orchestrator agent or a workflow. ## Text Analysis: Key Phrases, Entities, Sentiment and Summaries URL: https://azure.msdevbuild.com/ai-901/ai-concepts/text-analysis/ Text analysis pulls meaning out of text that already exists. The main techniques are key phrase extraction (the main talking points), entity detection (people, places, organisations, dates, plus entity linking and PII detection), sentiment analysis with opinion mining (positive, negative, neutral or mixed, and about what), summarisation (extractive or abstractive) and language detection. In Azure you can use Azure Language in Foundry Tools for fixed, structured output, or prompt a language model for more flexible results. Key points: - Key phrase extraction finds the main talking points. - NER finds and categorises entities; entity linking says which real-world thing is meant; PII detection finds personal data to redact. - Sentiment analysis returns positive, negative, neutral or mixed; opinion mining ties opinions to their targets. - Extractive summaries pick existing sentences; abstractive summaries write new ones. - Azure Language in Foundry Tools gives structured output; language models can do the same tasks with prompts. Exam tips: - "Identify the main talking points" = key phrase extraction. - "Find people, places, organisations, dates" = named entity recognition. - "Mask phone numbers and email addresses" = PII detection. - "Which product feature did customers dislike?" = opinion mining. Quick Q&A: - Q: Which technique tells "Paris the city" apart from "Paris the person"? A: Entity linking. - Q: What four labels can sentiment analysis return? A: Positive, negative, neutral and mixed. - Q: Which summary type writes new sentences? A: Abstractive summarisation. - Q: Which Foundry Tool provides text analysis features? A: Azure Language in Foundry Tools. - Q: Which technique finds the language a review is written in? A: Language detection. ## Speech Recognition and Speech Synthesis URL: https://azure.msdevbuild.com/ai-901/ai-concepts/speech-recognition-and-synthesis/ Speech recognition (speech to text) turns spoken audio into text, and speech synthesis (text to speech) turns text into natural-sounding audio using neural voices. Azure Speech in Foundry Tools adds speaker diarization (who spoke when), speech translation, SSML to control rate, pitch, pauses and speaking style, and custom speech to improve accuracy on your own vocabulary and accents. Audio-capable multimodal models can also take speech in and give speech back. Key points: - Speech to text turns audio into text; text to speech turns text into audio. - Neural voices sound natural; SSML controls rate, pitch, pauses, pronunciation and style. - Speaker diarization labels who spoke when. - Speech translation turns speech in one language into text or speech in another. - Custom speech improves recognition accuracy on your own vocabulary, accents and audio conditions. Exam tips: - "Convert recorded meetings into text" = speech to text. - "Read notifications aloud in a natural voice" = text to speech with a neural voice. - "Identify which person said each sentence" = speaker diarization. - "Improve recognition of industry jargon" = custom speech. Quick Q&A: - Q: Which feature answers "who spoke when"? A: Speaker diarization. - Q: What does SSML stand for? A: Speech Synthesis Markup Language. - Q: Which Foundry Tool handles speech to text and text to speech? A: Azure Speech in Foundry Tools. - Q: Which feature turns Hindi speech into English text? A: Speech translation. - Q: What is speech synthesis also called? A: Text to speech. ## Computer Vision and Image Generation URL: https://azure.msdevbuild.com/ai-901/ai-concepts/computer-vision-and-image-generation/ Computer vision is AI that understands images: it can caption a photo, tag what's in it, find objects with boxes around them and read printed or handwritten text (OCR). Multimodal models such as GPT-4.1 take an image inside a prompt and answer questions about it, while image-generation models such as gpt-image-1 go the other way and create a new image from a text description, with content credentials that mark it as AI-made. Key points: - Image analysis returns captions, dense captions, tags, objects, people and text (Read OCR). - Object detection gives a label, a confidence score and a bounding box for each item. - Multimodal models (GPT-4.1, GPT-4o, GPT-5 family) accept images in prompts and answer in text. - Image-generation models such as gpt-image-1 create and edit images from text prompts. - Generated images carry content credentials (C2PA) that show they're AI-made. Exam tips: - "Read the text on a scanned sign or receipt" = OCR (Read). - "Create a new image from a description" = image-generation model (gpt-image-1). - "Ask a question about a photo" = multimodal model. Quick Q&A: - Q: Which vision feature returns bounding boxes? A: Object detection. - Q: What does OCR do? A: It reads printed or handwritten text from an image. - Q: Name a model that creates images from text. A: gpt-image-1 (DALL-E 3 is the older one). - Q: What marks a generated image as AI-made? A: Content credentials based on the C2PA standard. - Q: Which kind of model can answer "what's wrong with this machine part?" from a photo? A: A multimodal model such as GPT-4.1. ## Extracting Information from Text, Images, Audio and Video URL: https://azure.msdevbuild.com/ai-901/ai-concepts/information-extraction/ Information extraction turns unstructured content into structured data you can store and search. Text uses entity recognition and PII detection, images and scans use OCR and document field extraction, audio uses transcription, and video uses segmentation into scenes with a transcript. Azure Content Understanding in Foundry Tools handles all four content types in one service, returning Markdown plus the fields you define, each with a confidence score. Key points: - Text extraction uses named entity recognition, PII detection and key phrases. - Images and scans use OCR plus document field extraction (invoices, receipts, IDs). - Audio uses speech to text, often with speaker labels (diarization) and a summary. - Video is split into segments with key frames, a transcript and descriptions. - Content Understanding covers documents, images, audio and video, with analyzers, field schemas and confidence scores. Exam tips: - "One service for documents, images, audio and video into structured fields" = Azure Content Understanding. - "Find phone numbers and emails in chat logs to redact them" = PII detection. - "A number between 0 and 1 showing how sure the service is" = confidence score. Quick Q&A: - Q: Which text technique finds people, places and organisations? A: Named entity recognition (NER). - Q: What does a Content Understanding analyzer define? A: What to extract, the field schema and the model deployments to use. - Q: Name a prebuilt analyzer for invoices. A: prebuilt-invoice. - Q: What does video extraction usually return? A: Segments, key frames, a transcript and descriptions. - Q: What range does a confidence score use? A: 0 to 1. # AI-901 Domain 2: Implement AI solutions by using Microsoft Foundry (55–60%) ## What is Microsoft Foundry? URL: https://azure.msdevbuild.com/ai-901/foundry/what-is-microsoft-foundry/ Microsoft Foundry (formerly Azure AI Foundry) is Azure's platform for building generative AI apps and agents. You create a Foundry resource, which holds models, Foundry Tools, security and billing, and inside it one or more projects, which are team workspaces for deployments, agents, files and evaluations. You work in the portal at ai.azure.com or in code through the project endpoint, with access controlled by roles such as Foundry User. Key points: - Microsoft Foundry is the new name for Azure AI Foundry; the portal is ai.azure.com. - A Foundry resource holds models, Foundry Tools, security and billing. - Projects inside the resource hold a team's deployments, agents, files and evaluations. - Foundry Tools is the new name for Azure AI services (Speech, Language, Vision, Content Understanding and more). - Foundry User (formerly Azure AI User) is the role developers need to build in a project. Exam tips: - "Team workspace for deployments, agents and evaluations" = Foundry project. - "Holds billing, networking and Foundry Tools" = Foundry resource. - "Least-privilege role to build in a project" = Foundry User. Quick Q&A: - Q: What is the Foundry portal's address? A: ai.azure.com. - Q: What's inside a Foundry project? A: Model deployments, agents, files and evaluations for one team. - Q: What were Foundry Tools called before? A: Azure AI services (Cognitive Services). - Q: What does the project endpoint look like? A: https://.services.ai.azure.com/api/projects/. - Q: What was the Foundry User role called before? A: Azure AI User. ## Writing System and User Prompts URL: https://azure.msdevbuild.com/ai-901/foundry/prompt-engineering/ A system prompt (system message) sets the model's role, rules, tone and output format for the whole conversation, while a user prompt is the actual question or task. Good prompts give clear instructions, say what format to return, show few-shot examples, supply grounding data inside delimiters and ask for step-by-step work on hard problems. You then test and iterate, and add a safety system message that tells the model what it must refuse. Key points: - The system prompt sets role, rules, tone and format; the user prompt asks the question. - Be specific about the task, audience, length and output format (for example JSON or a table). - Few-shot examples show the model the exact pattern you want. - Grounding data in delimiters keeps answers tied to your facts. - Iterate in the playground and add a safety system message for refusals. Exam tips: - "Set the assistant's persona and rules for every turn" = system prompt. - "Include sample inputs and outputs" = few-shot. - "Answer only from the supplied policy text" = grounding. Quick Q&A: - Q: Where do you set the assistant's tone and rules? A: In the system prompt. - Q: What's few-shot prompting? A: Giving a few example inputs and outputs in the prompt. - Q: Why use delimiters? A: To separate instructions from the content the model should process. - Q: How does grounding help? A: It makes the model answer from facts you provide, which reduces made-up answers. - Q: What does a safety system message do? A: It tells the model what to refuse and how to stay on topic and safe. ## Deploy a Model and Chat in the Foundry Portal URL: https://azure.msdevbuild.com/ai-901/foundry/deploy-and-chat-in-foundry/ To use a model in Microsoft Foundry, you deploy it first: pick it in the model catalog, select Deploy, give it a deployment name and choose a deployment type such as Global Standard. Then open the chat playground, add a system message, ask questions and adjust parameters like temperature and max tokens. When it behaves the way you want, View code shows ready-to-run code that calls your deployment by name. Key points: - You must deploy a model before the playground or an app can call it. - The deployment name you choose is what code passes as model. - Global Standard is the default deployment type, billed per token. - The chat playground lets you set a system message and tune temperature, top_p and max tokens. - View code copies working code for the current setup. Exam tips: - "Test prompts and parameters without writing code" = chat playground. - "More predictable, less creative answers" = lower temperature. - "Answers are cut off mid-sentence" = raise max output tokens. Quick Q&A: - Q: What's the default deployment type for most models? A: Global Standard. - Q: Which name does your code use to call a model? A: The deployment name. - Q: What does a low temperature do? A: Makes answers more focused and repeatable. - Q: Where do you get sample code for your playground setup? A: The View code button in the playground. - Q: What limits the length of a reply? A: Max output tokens. ## Build a Chat App with the Foundry SDK URL: https://azure.msdevbuild.com/ai-901/foundry/chat-app-with-foundry-sdk/ A lightweight chat client uses the Foundry SDK (azure-ai-projects) in a few lines of Python. You create an AIProjectClient with your project endpoint (read from an environment variable) and DefaultAzureCredential, call get_openai_client(), then send prompts with responses.create, passing your deployment name as model. To keep a multi-turn chat, you create a conversation and pass its id each turn, or pass previous_response_id. Key points: - Install azure-ai-projects and azure-identity. - Read the project endpoint from an environment variable such as FOUNDRY_PROJECT_ENDPOINT. - AIProjectClient plus DefaultAzureCredential signs in with Microsoft Entra ID (no keys). - get_openai_client() then responses.create, with model set to the deployment name, returns output_text. - Multi-turn chat uses a conversation id or previous_response_id. Exam tips: - "Authenticate the Foundry SDK without storing secrets" = DefaultAzureCredential (Entra ID). - "Read the model's reply" = response.output_text. - "Keep context across turns" = conversation or previous_response_id. Quick Q&A: - Q: Which package is the Foundry SDK? A: azure-ai-projects. - Q: Which credential class does the sample use? A: DefaultAzureCredential. - Q: Which method returns an OpenAI-compatible client? A: get_openai_client(). - Q: Which property holds the reply text? A: output_text. - Q: Name two ways to keep a multi-turn chat. A: Pass a conversation id, or pass previous_response_id. ## Create and Test an Agent in the Foundry Portal URL: https://azure.msdevbuild.com/ai-901/foundry/build-an-agent-in-foundry/ An agent in Microsoft Foundry is a model + instructions + tools that can plan, call a tool, look at the result and then answer. In the Foundry portal you go to Agents, create an agent, give it a name, pick a model deployment, write its instructions, add knowledge (file search) and tools such as code interpreter or web search, then chat with it in the agent playground. Every save creates a new version of the agent. Key points: - An agent = model + instructions + tools. It plans, calls tools, observes results and answers. - Create it in the Foundry portal under Agents, inside a project. - Knowledge comes from file search (your files) or grounding tools like web search and Azure AI Search. - Tools include code interpreter, function calling, OpenAPI and MCP servers. - Test in the agent playground. Every save makes a new, immutable version. Exam tips: - "Answer from our own PDFs" = file search tool. - "Do maths or make a chart from a CSV" = code interpreter tool. - "Test the agent before writing any code" = agent playground in the Foundry portal. Quick Q&A: - Q: What three things make up an agent? A: A model, instructions and tools. - Q: Which tool lets an agent answer from documents you upload? A: File search. - Q: Which tool lets an agent run Python? A: Code interpreter. - Q: Where do you test an agent in the portal? A: The agent playground. - Q: What happens each time you save changes to an agent? A: A new version of the agent is created. ## Build a Client App for an Agent URL: https://azure.msdevbuild.com/ai-901/foundry/agent-client-app/ A client app for a Foundry agent connects to your project with AIProjectClient and DefaultAzureCredential, creates or reuses an agent with create_version and a PromptAgentDefinition, then gets an OpenAI client bound to the agent with get_openai_client(agent_name=...). It starts a conversation, sends each user message with responses.create, prints output_text, and loops for more turns. The conversation keeps the history, so follow-up questions just work. Key points: - Install azure-ai-projects (2.x) and azure-identity, then sign in with az login. - Connect with AIProjectClient(endpoint=..., credential=DefaultAzureCredential()). - Create an agent version with project.agents.create_version and a PromptAgentDefinition. - Get an agent-bound client with project.get_openai_client(agent_name=...). - Create one conversation and pass its id to every responses.create call for multi-turn chat. Exam tips: - "Keep context across turns" = reuse the same conversation id. - "Connect to a Foundry project from code" = AIProjectClient with the project endpoint. - "Each update makes a new snapshot" = agent versions from create_version. Quick Q&A: - Q: Which pip package holds AIProjectClient? A: azure-ai-projects - Q: Which credential does the sample use? A: DefaultAzureCredential (Microsoft Entra ID). - Q: Which method creates an agent or a new version of it? A: project.agents.create_version - Q: What do you pass to keep a multi-turn chat together? A: The same conversation id on each responses.create call. - Q: Which property holds the agent's reply text? A: response.output_text ## Build a Text Analysis App URL: https://azure.msdevbuild.com/ai-901/foundry/text-analysis-app/ A lightweight text analysis app sends text to Azure Language in Foundry Tools through the azure-ai-textanalytics Python package. With a TextAnalyticsClient (endpoint + key) you call analyze_sentiment, extract_key_phrases, recognize_entities, recognize_pii_entities for redaction, and begin_abstract_summary for summaries. You can also get the same insights by prompting a deployed language model, which is more flexible but less predictable. Key points: - pip install azure-ai-textanalytics; create TextAnalyticsClient(endpoint, AzureKeyCredential(key)). - analyze_sentiment returns a label plus confidence scores per document and sentence. - extract_key_phrases, recognize_entities and recognize_pii_entities each take a list of documents. - recognize_pii_entities gives redacted_text with personal data masked. - Summaries are long-running operations, begin_abstract_summary or begin_extract_summary. Exam tips: - "Mask phone numbers in transcripts" = PII detection (redacted_text). - "Main talking points of a review" = key phrase extraction. - "Positive or negative" = sentiment analysis. Quick Q&A: - Q: Which Python package calls Azure Language text analysis? A: azure-ai-textanalytics - Q: Which method masks personal data? A: recognize_pii_entities (use redacted_text). - Q: What range do confidence scores use? A: 0 to 1. - Q: Which sentiment label means both positive and negative sentences? A: Mixed. - Q: How else can you get these insights besides Azure Language? A: Prompt a deployed generative model in Foundry. ## Answer Spoken Prompts with a Multimodal Model URL: https://azure.msdevbuild.com/ai-901/foundry/spoken-prompts-multimodal/ To respond to a spoken prompt, deploy an audio-capable multimodal model (such as the gpt-audio or gpt-4o-audio-preview family) in Foundry and send the recording as an input_audio content part (base64 audio plus its format). The model understands the speech directly and can reply in text or audio. The older route is a pipeline: speech to text, then a text model, then text to speech. For live, low-latency talk you use a realtime model or the Voice Live API. Key points: - Audio-capable multimodal models accept speech directly and can reply in text or audio. - Audio goes in an input_audio content part as base64 data with a format such as wav. - The classic alternative is speech to text, then a text model, then text to speech. - For live, interruptible conversations use a realtime model or the Voice Live API. - You can test spoken prompts in the Foundry chat playground before writing code. Exam tips: - "Send speech directly to the model" = audio-capable multimodal model with input_audio. - "Low-latency live voice conversation" = realtime model or Voice Live API. Quick Q&A: - Q: Which content part carries audio in the request? A: input_audio - Q: How is the audio encoded in the request? A: As base64 data, with its format (for example wav). - Q: Name the three steps of the speech pipeline. A: Speech to text, a text model, text to speech. - Q: Can an audio-capable model reply with speech? A: Yes, it can return audio as well as text. - Q: What do you use for a live, interruptible voice chat? A: A realtime model or the Voice Live API. ## Build an App with Azure Speech in Foundry Tools URL: https://azure.msdevbuild.com/ai-901/foundry/azure-speech-app/ A lightweight speech app uses Azure Speech in Foundry Tools through the Speech SDK (pip package azure-cognitiveservices-speech). You create a SpeechConfig with your key and endpoint, then use a SpeechRecognizer to turn a WAV file or the microphone into text (speech to text), and a SpeechSynthesizer with a neural voice to turn text into audio (text to speech). SSML lets you control rate, pitch, pauses and speaking style. Key points: - pip install azure-cognitiveservices-speech; import azure.cognitiveservices.speech as speechsdk. - SpeechConfig holds the key and endpoint, plus speech_recognition_language and speech_synthesis_voice_name. - SpeechRecognizer + AudioConfig(filename=...) or use_default_microphone=True gives speech to text. - SpeechSynthesizer.speak_text_async(text).get() reads text in the chosen neural voice. - speak_ssml_async takes SSML to control rate, pitch, pauses and style. Exam tips: - "Read text aloud in a natural voice" = text to speech with a neural voice. - "Make the voice pause or slow down" = SSML. - "Transcribe a recording" = speech to text with SpeechRecognizer. Quick Q&A: - Q: Which class turns audio into text? A: SpeechRecognizer - Q: Which class turns text into audio? A: SpeechSynthesizer - Q: Which property chooses the voice? A: speech_config.speech_synthesis_voice_name - Q: What markup controls pauses and speaking rate? A: SSML (Speech Synthesis Markup Language). - Q: What should you use instead of recognize_once for long audio? A: Continuous recognition (or batch transcription). ## Use Images in Prompts with a Multimodal Model URL: https://azure.msdevbuild.com/ai-901/foundry/visual-prompts-multimodal/ A multimodal model such as GPT-4.1, GPT-4o or the GPT-5 family can read images as part of a prompt. In the Foundry chat playground you attach a photo and ask about it. In code you send a user message with an input_text part and an input_image part, where the image is an https URL or a base64 data URL. The model describes, compares, reads text or answers questions about the image, but it can still misread small details, so ask specific questions and check important answers. Key points: - Multimodal models (GPT-4.1, GPT-4o, GPT-5 family) accept images alongside text. - In the chat playground, attach an image to your message and ask about it. - In code, the user content has input_text and input_image parts. - input_image takes an https URL or a base64 data URL (data:image/jpeg;base64,...). - Ask specific questions, keep images clear, and check important answers. Guardrails apply to images too. Exam tips: - "Ask questions about a photo in a prompt" = multimodal model with an input_image part. - "Fixed captions, tags or OCR at scale" = Azure Vision or Content Understanding instead. Quick Q&A: - Q: Which content part carries an image in the Responses API? A: input_image - Q: Name two ways to pass the image. A: An https URL or a base64 data URL. - Q: Where can you try image prompts without code? A: The chat playground in the Foundry portal. - Q: Do content filters apply to image prompts? A: Yes, guardrails check image inputs too. - Q: Name one task multimodal models often get wrong. A: Exact counting, small text or precise measurements. ## Generate Images with Generative Models URL: https://azure.msdevbuild.com/ai-901/foundry/image-generation/ You create new visual output by deploying an image-generation model such as gpt-image-1 in Microsoft Foundry and sending it a text prompt, either in the images playground or from code with images.generate. You choose the size and quality, the model returns the picture as base64 data, and guardrails check the prompt and the image while content credentials mark the result as AI-generated. Key points: - Image-generation models create new images from text prompts; gpt-image-1 is the current OpenAI model in Foundry. - Test in the images playground first, then call images.generate from code with the deployment name. - Size and quality are the main settings; higher quality takes longer and costs more. - gpt-image-1 can also edit an existing image from an instruction, optionally with a mask. - Guardrails filter harmful prompts and outputs, and content credentials label images as AI-generated. Exam tips: - "Create a new image from a description" = an image-generation model such as gpt-image-1. - "Prove an image was AI-generated" = content credentials (C2PA provenance). Quick Q&A: - Q: Which model creates images from text in Foundry? A: gpt-image-1 (DALL-E 3 is the older option). - Q: Which method generates an image in Python? A: images.generate on the OpenAI client from the project. - Q: How is the generated image returned? A: As base64 data in data[0].b64_json. - Q: What checks harmful image prompts? A: Foundry guardrails (content filters). - Q: What marks an image as AI-generated? A: Content credentials (C2PA provenance metadata). ## Build an App with Vision Capabilities URL: https://azure.msdevbuild.com/ai-901/foundry/vision-app/ A lightweight vision app reads an image file, encodes it as base64 and sends it to a multimodal model deployment (such as GPT-4.1) through the Foundry SDK, with an input_image part next to an input_text question in responses.create. The model's reply comes back in response.output_text. For fixed outputs like captions, tags and OCR, Azure Vision in Foundry Tools image analysis is the lighter alternative. Key points: - A vision app sends an image plus a question to a multimodal model deployment and reads the text reply. - With the Foundry SDK, get the OpenAI client from AIProjectClient and call responses.create. - The image goes in an input_image part as a base64 data URL or an https URL. - The model parameter is the deployment name, and auth uses Microsoft Entra ID (DefaultAzureCredential). - Azure Vision image analysis is the alternative for fixed captions, tags, objects and OCR. Exam tips: - "Ask a question about a photo from a Python app" = multimodal model + input_image in the Foundry SDK. - "Captions, tags or read printed text with no prompt" = Azure Vision image analysis. Quick Q&A: - Q: Which content part carries the photo in the Responses API? A: input_image. - Q: Where is the model's answer? A: response.output_text. - Q: What does the model parameter hold? A: The deployment name. - Q: Which credential does AIProjectClient use? A: Microsoft Entra ID, for example DefaultAzureCredential. - Q: Which service gives captions, tags and OCR without a prompt? A: Azure Vision in Foundry Tools (image analysis). ## Content Understanding for Documents and Forms URL: https://azure.msdevbuild.com/ai-901/foundry/content-understanding-documents/ Azure Content Understanding in Foundry Tools turns documents and forms into structured data. You pick an analyzer: a prebuilt one such as prebuilt-invoice, prebuilt-receipt, prebuilt-layout or prebuilt-documentSearch, or a custom analyzer built on prebuilt-document with your own fields using extract, classify or generate. Each field comes back with a confidence score from 0 to 1 and a grounding link to where it was found on the page. Key points: - Content Understanding uses generative AI to turn documents into Markdown plus JSON fields you define. - Prebuilt analyzers include prebuilt-invoice, prebuilt-receipt, prebuilt-layout, prebuilt-read and prebuilt-documentSearch. - Custom document analyzers start from prebuilt-document (set as the base analyzer) and add a field schema. - Field methods are extract (documents only), classify and generate. - Every field has a confidence score (0 to 1) and grounding back to the source. Exam tips: - "Pull totals and dates from invoices with no training" = prebuilt-invoice in Content Understanding. - "Decide which values need human review" = confidence scores. Quick Q&A: - Q: Which prebuilt analyzer reads invoices? A: prebuilt-invoice. - Q: Which base analyzer do custom document analyzers use? A: prebuilt-document. - Q: Which field method copies a value printed in the document? A: Extract. - Q: What range does a confidence score use? A: 0 to 1. - Q: What does grounding tell you? A: Where in the source document the value was found. ## Content Understanding for Images URL: https://azure.msdevbuild.com/ai-901/foundry/content-understanding-images/ Azure Content Understanding extracts information from images with an analyzer. The prebuilt prebuilt-imageSearch analyzer returns a written description of a photo, ready for search. For your own fields, you build a custom analyzer on the base analyzer prebuilt-image and add fields that use classify (pick from a list, such as damage type) or generate (write a value, such as a short description). Extract isn't available for images, and every field still comes back with a confidence score. Key points: - prebuilt-imageSearch describes an image so it can be searched. - Custom image analyzers start from prebuilt-image as the baseAnalyzerId. - Image fields use classify or generate. Extract is for documents only. - Fields return confidence scores so low-confidence results can go to a person. - Use Content Understanding when you need your own schema, Azure Vision for generic captions, tags and OCR. Exam tips: - "Describe each photo for search" = prebuilt-imageSearch. - "Custom fields from photos, such as damage type" = custom analyzer on prebuilt-image with classify or generate. Quick Q&A: - Q: Which prebuilt analyzer describes images for search? A: prebuilt-imageSearch. - Q: Which base analyzer do custom image analyzers use? A: prebuilt-image. - Q: Which field method picks a value from a list? A: Classify. - Q: Which field method isn't available for images? A: Extract (documents only). - Q: What helps route uncertain results to a person? A: The confidence score on each field. ## Content Understanding for Audio and Video URL: https://azure.msdevbuild.com/ai-901/foundry/content-understanding-audio-video/ Azure Content Understanding turns recordings into structured data. prebuilt-audioSearch returns a transcript with speaker labels and a summary of a call or meeting. prebuilt-videoSearch splits a video into segments with key frames, transcript and descriptions. For business fields, such as call sentiment or whether an agent offered a refund, you build a custom analyzer on prebuilt-audio or prebuilt-video with classify or generate fields. Key points: - prebuilt-audioSearch returns a transcript with speaker labels and a summary. - prebuilt-videoSearch returns segments, key frames, transcript and descriptions. - Custom audio and video analyzers are based on prebuilt-audio and prebuilt-video. - Audio and video fields use classify or generate; extract is documents only. - Results include timestamps, so you can jump to the moment a value came from. Exam tips: - "Transcript, speakers and summary of a recorded call" = prebuilt-audioSearch. - "Searchable chapters and key frames from a video" = prebuilt-videoSearch. Quick Q&A: - Q: Which analyzer summarises a recorded call? A: prebuilt-audioSearch. - Q: Which analyzer returns video segments and key frames? A: prebuilt-videoSearch. - Q: What is the base analyzer for a custom audio analyzer? A: prebuilt-audio. - Q: Which method would you use for a call sentiment field? A: Classify, with values such as Positive, Neutral and Negative. - Q: What is a key frame? A: A representative still image from a video segment. ## Build an Information Extraction App URL: https://azure.msdevbuild.com/ai-901/foundry/content-understanding-app/ A lightweight extraction app uses the azure-ai-contentunderstanding Python package. It creates a ContentUnderstandingClient with your Foundry endpoint and a credential, calls begin_analyze with an analyzer ID (such as prebuilt-invoice or your custom analyzer) and the file, waits on the poller, then reads result.contents[0].fields. Each field has a value and a confidence, so the app saves high-confidence values and sends low-confidence ones to human review. Key points: - Install azure-ai-contentunderstanding and create a ContentUnderstandingClient with the endpoint and a credential. - begin_analyze takes an analyzer ID and inputs, and returns a poller. - poller.result() returns the result; fields live in result.contents[0].fields. - Each field has a value and a confidence between 0 and 1. - Route values below your confidence threshold to a person. Exam tips: - "Start analysis from Python" = begin_analyze on ContentUnderstandingClient. - "Decide which values need a person" = compare each field's confidence to a threshold. Quick Q&A: - Q: Which Python package calls Content Understanding? A: azure-ai-contentunderstanding. - Q: Which client class do you create? A: ContentUnderstandingClient. - Q: Which method starts an analysis? A: begin_analyze. - Q: Where are the fields in the result? A: result.contents[0].fields. - Q: Which two properties do you read from a field? A: value and confidence. ## Global Standard vs Provisioned vs Batch Deployments URL: https://azure.msdevbuild.com/ai-901/compare/global-standard-vs-provisioned-vs-batch/ Start with Global Standard: pay per token, newest models first. Use Data Zone or Standard when processing must stay in a region or data zone, Provisioned for steady high volume with predictable latency, and Batch for big jobs that can wait up to 24 hours at about half the price. - Exam tip: “Lowest cost for a large job that is not time-sensitive” = Batch. “Predictable latency at high volume” = Provisioned. “Data must stay in the EU” = Data Zone (EU). Otherwise Global Standard. ## Azure Language vs Prompting a Generative Model URL: https://azure.msdevbuild.com/ai-901/compare/azure-language-vs-llm-prompts/ Use Azure Language when you need fixed, predictable JSON for standard tasks (sentiment, entities, PII, key phrases) at scale. Prompt a generative model when the task is custom, needs reasoning, or changes often. Many apps use both. - Exam tip: If a question asks for sentiment, key phrases, named entities or PII with no custom logic, the expected answer is usually Azure Language. ## Speech Pipeline vs Audio-Capable Model URL: https://azure.msdevbuild.com/ai-901/compare/speech-pipeline-vs-audio-model/ A pipeline (speech to text, then a text model, then text to speech) gives you more control, cheaper transcription and any voice you like. An audio-capable model takes the audio directly, with fewer moving parts and better understanding of tone. For live, low-latency conversations use a realtime model or Voice Live. - Exam tip: “Respond to spoken prompts by using a deployed multimodal model” means sending the audio itself to an audio-capable deployment, not transcribing first. ## Generative AI App vs AI Agent URL: https://azure.msdevbuild.com/ai-901/compare/generative-ai-vs-ai-agents/ A generative AI app sends a prompt and shows the answer. An agent is a model plus instructions plus tools: it decides which tool to call (search your files, run code, call your API), looks at the result and keeps going until the task is done. - Exam tip: Look for verbs: “look up, calculate, book, update” point to an agent with tools. “Write, summarise, rephrase” point to plain generative AI. ## Microsoft Foundry URL: https://azure.msdevbuild.com/ai-901/services/microsoft-foundry/ Azure’s platform for building AI apps and agents. A Foundry resource holds models, Foundry Tools, guardrails, security and billing; projects inside it are team workspaces with deployments, agents and evaluations. ## Foundry Models URL: https://azure.msdevbuild.com/ai-901/services/foundry-models/ The model catalog in Foundry: OpenAI GPT and image models, Microsoft Phi, Meta Llama, Mistral, DeepSeek and more. Deploy a model and call it by its deployment name. ## Foundry Agent Service URL: https://azure.msdevbuild.com/ai-901/services/foundry-agent-service/ Builds and runs agents: a model plus instructions plus tools such as file search, code interpreter, web search, functions and MCP servers. It manages conversations and runs the tools for you. ## Azure Language in Foundry Tools URL: https://azure.msdevbuild.com/ai-901/services/azure-language/ Prebuilt text analysis: sentiment and opinion mining, key phrases, named entities, PII detection, language detection, summarization and conversational language understanding. ## Azure Speech in Foundry Tools URL: https://azure.msdevbuild.com/ai-901/services/azure-speech/ Speech to text (real-time, fast and batch transcription, diarization), text to speech with neural voices and SSML, speech translation and custom speech models. ## Azure Vision in Foundry Tools URL: https://azure.msdevbuild.com/ai-901/services/azure-vision/ Image analysis with fixed outputs: captions, dense captions, tags, objects, people and OCR (Read). Face features are limited access. ## Azure Content Understanding in Foundry Tools URL: https://azure.msdevbuild.com/ai-901/services/content-understanding/ Turns documents, images, audio and video into structured fields you define, with confidence scores. Prebuilt analyzers cover invoices, receipts, images, calls and videos; custom analyzers add your own fields. ## gpt-image-1 image generation URL: https://azure.msdevbuild.com/ai-901/services/gpt-image-1/ An image-generation model in Foundry Models: creates and edits images from text prompts, with guardrails and content credentials on every output. ## Guardrails and Azure AI Content Safety URL: https://azure.msdevbuild.com/ai-901/services/ai-content-safety/ Filters harmful content (hate, sexual, violence, self-harm) by severity, detects jailbreak and indirect prompt-injection attacks with Prompt Shields, and checks groundedness and protected material. # AZ-104: Azure Administrator Associate answers Course: https://azure.msdevbuild.com/az-104/ · Skills measured as of April 17, 2026: https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/az-104 # AZ-104 Domain 1: Manage Azure identities and governance (20–25%) ## Microsoft Entra Users and Groups: Create and Manage URL: https://azure.msdevbuild.com/az-104/identity-and-governance/entra-users-and-groups/ In Microsoft Entra ID you create users (members of your tenant, identified by a user principal name such as sam@contoso.com) and groups that collect them. A group is either a Security group (for access) or a Microsoft 365 group (for collaboration), and its membership type is Assigned (you add people), Dynamic User or Dynamic Device (a rule like user.department -eq "Sales" adds and removes members). Dynamic groups need Microsoft Entra ID P1. You edit user properties such as department, job title and usage location on the user's blade, in bulk from a CSV, or with Microsoft Graph PowerShell. Key points: - Users are members or guests. Create them in the portal, the Entra admin center, in bulk from CSV, or with az ad user create. - Group type is Security or Microsoft 365. Membership type is Assigned, Dynamic User or Dynamic Device. - Dynamic rules use user properties, for example (user.department -eq "Sales"), and need Microsoft Entra ID P1. - You can't add or remove members of a dynamic group by hand. - Edit properties (department, job title, usage location, manager) on the user's Properties tab or with Update-MgUser. Exam tips: - "Membership must update automatically when department changes" = Dynamic User group. - "Create 500 users from a spreadsheet" = Bulk create with the CSV template. - "A group must be able to hold Entra roles" = turn on Microsoft Entra roles can be assigned to the group when you create it (you can't change it later). Quick Q&A: - Q: Which license do dynamic groups need? A: Microsoft Entra ID P1 (or higher). - Q: What are the three membership types? A: Assigned, Dynamic User and Dynamic Device. - Q: What's the rule for everyone in the Sales department? A: (user.department -eq "Sales") - Q: Which CLI command creates a user? A: az ad user create --display-name ... --user-principal-name ... --password ... - Q: Can you add a user to a dynamic group by hand? A: No. Only the rule controls membership. ## Licenses and External Users in Microsoft Entra ID URL: https://azure.msdevbuild.com/az-104/identity-and-governance/entra-licenses-and-guest-users/ A license turns on paid features for a user, such as Microsoft 365 E3 or Microsoft Entra ID P1/P2. You can assign it directly to a user, which needs the user's usage location first, or to a group (group-based licensing, needs Entra ID P1), so members gain and lose it as they join and leave. External users from other organisations join as guests through B2B collaboration: they sign in with their own account, appear with user type Guest and an #EXT# UPN, and what they can do is set in External collaboration settings and cross-tenant access settings. Key points: - Direct license assignment needs a usage location on the user. - Group-based licensing (Entra ID P1) gives every member the license and removes it when they leave. - Not enough seats puts members in an error state; add seats, then Reprocess. - Guests sign in with their own account. User type Guest, UPN contains #EXT#. - External collaboration settings control guest access level, who can invite and allowed domains. Exam tips: - "License assignment fails for a new user" = set the usage location. - "Licenses should follow department membership" = group-based licensing on a dynamic group. - "Only allow guests from fabrikam.com" = Collaboration restrictions in External collaboration settings. Quick Q&A: - Q: What must be set before you assign a license directly? A: The user's usage location. - Q: Which license does group-based licensing need? A: Microsoft Entra ID P1 (or a plan that includes it). - Q: How can you spot a guest's UPN? A: It contains #EXT#, for example priya_fabrikam.com#EXT#@contoso.onmicrosoft.com. - Q: Where do you limit invitations to certain domains? A: External Identities, External collaboration settings, Collaboration restrictions. - Q: What do you select after adding seats for a group in error? A: Reprocess, on the group's Licenses blade. ## Configure Self-Service Password Reset (SSPR) URL: https://azure.msdevbuild.com/az-104/identity-and-governance/self-service-password-reset/ Self-service password reset (SSPR) lets users reset a forgotten password or unlock their account at aka.ms/sspr without calling the helpdesk. In Microsoft Entra ID → Password reset you set Self service password reset enabled to None, Selected (one group) or All, choose the number of methods required (1 or 2) and which methods are allowed (Authenticator app notification or code, email, mobile phone, office phone, security questions), and turn on registration at sign-in so users set up methods in advance. Password writeback (with Entra Connect or Cloud Sync) sends new passwords to on-premises AD. Administrators are always enabled and always need two methods. Key points: - Password reset → Properties sets the scope - None, Selected (one group) or All. - Number of methods required is 1 or 2. Pick the methods users may use. - Require registration at sign-in, and set re-confirmation days (default 180). - Admins are always enabled for SSPR and always need two methods; no security questions. - Password writeback sends cloud resets to on-premises AD (Entra Connect or Cloud Sync, P1). Exam tips: - "Enable SSPR for the Sales group only" = Selected + the Sales group. - "Users must prove their identity with two different methods" = Number of methods required: 2. - "Synced users' new passwords must work on-premises" = password writeback. Quick Q&A: - Q: What are the three scope options for SSPR? A: None, Selected and All. - Q: How many groups can you pick with Selected? A: One. - Q: Where do users reset their password? A: https://aka.ms/sspr - Q: Which methods can admins not use for SSPR? A: Security questions. - Q: What sends a cloud reset back to Active Directory? A: Password writeback through Entra Connect or Cloud Sync. ## Azure RBAC: Built-in Roles and Scopes URL: https://azure.msdevbuild.com/az-104/identity-and-governance/rbac-roles-and-scopes/ Azure role-based access control (RBAC) grants access with a role assignment: a security principal (user, group, service principal or managed identity) + a role definition (a set of allowed Actions) + a scope. Scopes are management group, subscription, resource group and resource, and assignments inherit downward. The four general built-in roles are Owner (everything, including granting access), Contributor (everything except granting access), Reader (view only) and User Access Administrator (manage access only); Role Based Access Control Administrator can assign roles with conditions. Service roles such as Virtual Machine Contributor give narrower rights. Assign in Access control (IAM) or with az role assignment create. Key points: - Role assignment = security principal + role definition + scope. - Scopes - management group, subscription, resource group, resource. Assignments inherit downward. - Owner = all + grant access. Contributor = all except grant access. Reader = view. User Access Administrator = access only. - Prefer job-function roles (Virtual Machine Contributor, Network Contributor) at the smallest scope, assigned to groups. - Azure roles are separate from Microsoft Entra roles like Global Administrator. Exam tips: - "Manage VMs but not the virtual network" = Virtual Machine Contributor. - "Grant access to others without managing resources" = User Access Administrator. - "Apply to every subscription in the company with one assignment" = assign at a management group. Quick Q&A: - Q: Which role can manage resources but not grant access? A: Contributor. - Q: What are the four Azure RBAC scope levels? A: Management group, subscription, resource group, resource. - Q: Which command assigns a role? A: az role assignment create --assignee ... --role ... --scope ... - Q: Which role manages access but not resources? A: User Access Administrator. - Q: Do Azure role assignments inherit to child scopes? A: Yes. An assignment applies at its scope and every scope below it. ## Interpret Access Assignments and Effective Access URL: https://azure.msdevbuild.com/az-104/identity-and-governance/interpret-access-assignments/ A user's effective access at a scope is the sum of every role assigned to them and their groups, at that scope and every scope above it. Inside a role, permissions are Actions minus NotActions (and DataActions minus NotDataActions for data). NotActions is not a deny: another role can still grant the action. Only a deny assignment blocks an action regardless of roles, and you can't create those directly. Use Access control (IAM) → Check access in the portal, or az role assignment list --assignee --include-inherited --all, to see the full picture. Locks still apply on top. Key points: - Effective access = all roles of the user and their groups, at this scope and above. - Role permissions = Actions minus NotActions; data permissions = DataActions minus NotDataActions. - NotActions isn't a deny. Another role can grant the same action. - Deny assignments override role assignments. Azure creates them (deployment stacks, managed apps). - Check access and az role assignment list --include-inherited show the full picture. Exam tips: - "Which roles does User1 have on RG1?" = add direct, group and inherited assignments. - "Owner can't delete a resource" = look for a lock or a deny assignment. - "Contributor can't read blobs with Entra ID auth" = needs Storage Blob Data Reader (DataActions). Quick Q&A: - Q: Do role assignments add up or does the most restrictive win? A: They add up (union). - Q: What's the only thing that blocks an action a role grants? A: A deny assignment (or a resource lock, for write and delete). - Q: Where in the portal do you see someone's effective access? A: Access control (IAM), Check access. - Q: Which flag includes assignments from parent scopes in the CLI? A: --include-inherited - Q: Can you create a deny assignment directly? A: No. Azure creates them for features such as deployment stacks and managed applications. ## Implement and Manage Azure Policy URL: https://azure.msdevbuild.com/az-104/identity-and-governance/azure-policy-for-admins/ Azure Policy checks resources against rules and applies an effect. A policy definition holds the rule; an initiative groups several; an assignment applies one to a scope (management group, subscription or resource group), with optional exclusions and parameters. Common effects are Deny (block the request), Audit (allow but mark non-compliant), Append, Modify (change properties such as tags during deployment) and DeployIfNotExists (deploy a related resource). Modify and DeployIfNotExists need a managed identity, and a remediation task fixes resources that existed before the assignment. Enforcement mode: Disabled lets you test without blocking. Compliance shows in Policy → Compliance. Key points: - Definition (rule) → initiative (group) → assignment (scope + parameters + exclusions). - Deny blocks; Audit flags; Modify and Append change the request; DeployIfNotExists deploys something related. - Modify and DeployIfNotExists need a managed identity with the right role. - Remediation tasks fix existing resources. Deny and Audit can't be remediated. - Enforcement mode Disabled (DoNotEnforce) evaluates without blocking. Exemptions exclude specific resources. Exam tips: - "Prevent resources outside West Europe" = Allowed locations (Deny). - "Add the tag automatically, including to existing resources" = Modify policy + remediation task. - "Apply several policies as one unit" = an initiative. Quick Q&A: - Q: Which effects support remediation tasks? A: Modify and DeployIfNotExists. - Q: What does Audit do to a non-compliant resource? A: Lets it be created or changed and marks it non-compliant. - Q: Which enforcement mode tests a policy without blocking? A: Disabled (DoNotEnforce). - Q: What's a group of policy definitions called? A: An initiative (policy set definition). - Q: Which CLI command starts a remediation? A: az policy remediation create --name ... --policy-assignment ... ## Resource Locks and Tags for Administrators URL: https://azure.msdevbuild.com/az-104/identity-and-governance/locks-and-tags-at-scale/ A resource lock stops changes for everyone, Owners included. CanNotDelete (Delete in the portal) lets people read and update but not delete; ReadOnly blocks every write, so it can also break things like listing storage account keys or scaling an App Service plan. Locks are set at subscription, resource group or resource scope, inherit to child resources, and removing one needs Microsoft.Authorization/locks/delete (Owner or User Access Administrator). Tags are name/value pairs (up to 50 per resource) used for cost, ownership and automation. Resource group tags aren't inherited by resources; use Azure Policy (Inherit a tag, Require a tag) to apply them at scale. Key points: - CanNotDelete = no deletes, updates allowed. ReadOnly = no writes at all. - Locks apply to every user, including Owners, and inherit from parent scopes. - Removing a lock needs Microsoft.Authorization/locks/delete (Owner, User Access Administrator). - Tags are name/value pairs, up to 50 per resource. Not every resource type supports tags. - Resource group tags don't flow to resources unless a policy copies them. Exam tips: - "Prevent accidental deletion but allow changes" = CanNotDelete (Delete). - "Prevent any change" = ReadOnly. - "Every resource must carry its resource group's costcenter tag" = Inherit a tag policy (+ remediation). Quick Q&A: - Q: Which lock still allows updates? A: CanNotDelete (Delete). - Q: Does a lock stop an Owner? A: Yes. Locks apply to everyone. - Q: Which command creates a lock on a resource group? A: az lock create --name ... --lock-type CanNotDelete --resource-group ... - Q: How many tags can a resource have? A: Up to 50. - Q: Are resource group tags inherited by resources by default? A: No. ## Resource Groups, Subscriptions and Management Groups URL: https://azure.msdevbuild.com/az-104/identity-and-governance/resource-groups-subscriptions-management-groups/ Azure organises everything in a ladder: management groups → subscriptions → resource groups → resources. A resource group holds resources that share a lifecycle; each resource is in exactly one group, and you can move resources between groups or subscriptions (the resource ID changes, the region doesn't). A subscription is a billing, quota and access boundary that trusts one Microsoft Entra tenant. Management groups sit above subscriptions, up to six levels below the Tenant Root Group, so a policy or role assigned once flows to every subscription below. Each subscription and management group has exactly one parent. Key points: - Management groups → subscriptions → resource groups → resources. Everything inherits from above. - Up to six levels of management groups below the Tenant Root Group; each item has one parent. - A resource is in exactly one resource group. Deleting the group deletes everything inside. - Moving a resource changes its ID, not its region. Both groups are locked during the move. - A subscription is a billing, quota and access boundary that trusts one Entra tenant. Exam tips: - "Apply a policy to all current and future subscriptions" = assign it at a management group. - "Move a VM to another resource group" = Move, then update anything using the old resource ID. - "Move a VM to another region" = Azure Resource Mover, not Move. Quick Q&A: - Q: How many management group levels can sit below the root? A: Six (not counting the root or subscriptions). - Q: Does moving a resource change its region? A: No. Only its resource group or subscription and its resource ID. - Q: Which CLI command moves resources? A: az resource move --destination-group ... --ids ... - Q: Which CLI command moves a subscription under a management group? A: az account management-group subscription add --name --subscription - Q: Can a resource be in two resource groups? A: No. Each resource is in exactly one. ## Manage Costs with Budgets, Alerts and Azure Advisor URL: https://azure.msdevbuild.com/az-104/identity-and-governance/budgets-cost-alerts-and-advisor/ In Microsoft Cost Management a budget sets a spending limit for a scope (management group, subscription, resource group, optionally filtered by tag) over a reset period (monthly, quarterly or annually). Its alert conditions fire on Actual or Forecasted cost at a percentage you choose, emailing recipients and optionally calling an action group. A budget doesn't stop resources by itself; automation behind the action group can. Cost alerts collect budget, credit and anomaly alerts. Azure Advisor gives free cost recommendations, such as right-sizing or shutting down idle VMs and buying reservations. Cost data refreshes a few times a day, so alerts aren't instant. Key points: - Budgets have a scope, amount, reset period, start and expiry dates, and optional filters such as tags. - Alert conditions are Actual or Forecasted at a percentage, sent to emails and optionally an action group. - Budgets don't stop resources. Use an action group with automation to act. - Cost data refreshes a few times a day, so alerts lag spending. - Advisor cost recommendations - right-size or shut down idle VMs, reservations, delete unused public IPs and disks. Exam tips: - "Email the team when spend reaches 80%" = budget with an Actual 80% alert. - "Shut down resources automatically when the budget is reached" = budget alert + action group + runbook or Logic App. - "Identify underused VMs" = Azure Advisor cost recommendations. Quick Q&A: - Q: What are the two alert types on a budget? A: Actual and Forecasted. - Q: Does a budget stop resources when it's exceeded? A: No. It sends alerts; automation must do the stopping. - Q: Which service recommends right-sizing idle VMs? A: Azure Advisor. - Q: What can a budget alert call besides email? A: An action group (SMS, webhook, runbook, Logic App and more). - Q: Which CLI command lists Advisor cost recommendations? A: az advisor recommendation list --category Cost # AZ-104 Domain 2: Implement and manage storage (15–20%) ## Storage Firewalls and Virtual Network Rules URL: https://azure.msdevbuild.com/az-104/storage/storage-firewalls-and-virtual-networks/ The storage firewall controls which networks can reach a storage account's public endpoint. Set the default action to Deny (in the portal, *Enabled from selected virtual networks and IP addresses*) and only these get in: subnets added as virtual network rules (they use the Microsoft.Storage service endpoint), public addresses in IP rules, specific resource instances, and trusted Azure services if you tick that exception. The firewall is checked before authorization, so a valid key or SAS from a blocked network still gets 403. Key points: - Portal path: storage account > Security + networking > Networking > Firewalls and virtual networks. - Enabled from selected virtual networks and IP addresses = default action Deny. - VNet rules need the Microsoft.Storage service endpoint on the subnet; the portal can enable it for you. - IP rules take public IPv4 addresses and CIDR ranges only. No private ranges and no /31 or /32 prefixes. - IP rules don't apply to clients in the same Azure region as the account. - The trusted services exception (bypass AzureServices) lets services like Azure Backup in. Exam tips: - "Allow only one subnet" = virtual network rule plus Microsoft.Storage service endpoint. - "Allow the on-premises office" = IP rule with its public range. - "Azure Backup fails after the firewall change" = enable the trusted Microsoft services exception. Quick Q&A: - Q: Which CLI flag sets the firewall to block by default? A: az storage account update --default-action Deny - Q: What must a subnet have before it can be used in a storage VNet rule? A: The Microsoft.Storage service endpoint. - Q: Can an IP rule contain 10.0.0.0/16? A: No. IP rules accept public addresses only. - Q: Which bypass value allows trusted Azure services? A: AzureServices. - Q: Does the firewall apply to management operations such as listing keys? A: No. It protects the data plane (blobs, files, queues, tables). ## SAS Tokens and Stored Access Policies URL: https://azure.msdevbuild.com/az-104/storage/sas-tokens-and-stored-access-policies/ A shared access signature (SAS) is a signed URL token that grants limited permissions (such as read and list) on specific storage resources until an expiry time. There are three kinds: a user delegation SAS (signed with Microsoft Entra credentials, Blob Storage, at most 7 days, the recommended one), a service SAS (signed with an account key, one service) and an account SAS (signed with an account key, one or more services). A stored access policy on a container, share, queue or table (up to 5 each) holds the permissions and expiry for service SAS tokens that reference it, so deleting or changing the policy revokes them without rotating the keys. Key points: - User delegation SAS = Microsoft Entra ID, Blob Storage, max 7 days, recommended. - Service SAS = account key, one service. Account SAS = account key, several services. - Stored access policies (max 5 per container) work only with service SAS tokens. - Revoke a policy-based SAS by deleting or editing the policy. Revoke an ad hoc SAS by regenerating its signing key. - Policy changes can take up to 30 seconds to apply. - Use HTTPS only, short expiry and the least permissions. Exam tips: - "Revoke access without regenerating keys" = stored access policy. - "SAS secured with Microsoft Entra credentials" = user delegation SAS. - "One SAS for blobs and queues" = account SAS. Quick Q&A: - Q: How many stored access policies can one container have? A: Five. - Q: What is the maximum validity of a user delegation SAS? A: Seven days. - Q: Which SAS types can reference a stored access policy? A: Service SAS only. - Q: How do you revoke an ad hoc service SAS early? A: Regenerate the account key that signed it. - Q: Which SAS parameter names the stored access policy? A: si (signed identifier). ## Manage and Rotate Storage Access Keys URL: https://azure.msdevbuild.com/az-104/storage/storage-access-keys/ Every storage account has two 512-bit access keys, key1 and key2. Either key gives full access to all data, so treat them like a root password. Two keys exist so you can rotate without downtime: move apps to key2, regenerate key1, then later do the reverse. A key expiration policy (rotation reminder) flags keys older than a set number of days, but doesn't rotate them. Regenerating a key also breaks every SAS signed with it. The safest end state is Microsoft Entra ID with Allow storage account key access set to Disabled. Key points: - Portal path: storage account > Security + networking > Access keys. - Two keys, each with full access. Rotate one at a time. - Regenerating a key invalidates every connection string and SAS signed with it. - Set rotation reminder = key expiration policy (CLI: --key-exp-days). - Store keys in Azure Key Vault, never in code. - Disabling Shared Key access stops keys, account SAS and service SAS. Entra ID and user delegation SAS keep working. Exam tips: - "Rotate without downtime" = switch apps to the other key, then regenerate. - "Prevent any use of account keys" = set Allow storage account key access to Disabled. - "Let a script rotate keys but nothing else" = Storage Account Key Operator Service Role. Quick Q&A: - Q: How many access keys does a storage account have? A: Two (key1 and key2). - Q: Which CLI command regenerates key1? A: az storage account keys renew --key primary - Q: What happens to a SAS signed with key1 after key1 is regenerated? A: It stops working. - Q: Does the key expiration policy rotate keys? A: No, it only flags keys as due for rotation. - Q: Which authorization still works when Shared Key access is disabled? A: Microsoft Entra ID (and user delegation SAS). ## Identity-Based Access for Azure Files URL: https://azure.msdevbuild.com/az-104/storage/azure-files-identity-based-access/ Identity-based access lets users mount Azure SMB file shares with their own sign-in instead of the storage account key. First enable one identity source on the account: on-premises AD DS, Microsoft Entra Domain Services, or Microsoft Entra Kerberos (for hybrid identities on Entra-joined devices). Then grant share-level permissions with Azure RBAC roles (Storage File Data SMB Share Reader, Contributor or Elevated Contributor) or a default share-level permission for all authenticated identities. Finally, Windows ACLs (NTFS permissions) control access to directories and files. Key points: - One identity source per account - AD DS, Microsoft Entra Domain Services or Microsoft Entra Kerberos. - Share-level roles: SMB Share Reader, Contributor, Elevated Contributor (ACL changes). - Default share-level permission applies one role to every authenticated identity. - Windows ACLs apply after share-level permission. - Hybrid identities must be synced to Microsoft Entra ID for share-level RBAC. - SMB uses TCP port 445 outbound. Exam tips: - "Users must change NTFS permissions" = Storage File Data SMB Share Elevated Contributor. - "No line of sight to domain controllers, Entra-joined devices" = Microsoft Entra Kerberos. - "Grant every authenticated user read at share level" = default share-level permission. Quick Q&A: - Q: How many identity sources can one storage account use for Azure Files? A: One. - Q: Which role lets users read, write and delete files but not change ACLs? A: Storage File Data SMB Share Contributor. - Q: What controls access to individual folders and files? A: Windows ACLs (NTFS permissions). - Q: Which port must be open outbound for SMB? A: TCP 445. - Q: Which CLI flag enables Microsoft Entra Kerberos? A: az storage account update --enable-files-aadkerb true ## Create and Configure Storage Accounts and Encryption URL: https://azure.msdevbuild.com/az-104/storage/configure-storage-accounts-and-encryption/ A storage account is created with a globally unique name (3 to 24 lowercase letters and numbers), a region, a performance tier (Standard general-purpose v2, or Premium block blobs, file shares or page blobs) and a redundancy option. Secure defaults to keep: secure transfer (HTTPS) required, minimum TLS 1.2, anonymous blob access off. All data is encrypted at rest with AES-256 automatically. You choose Microsoft-managed keys or customer-managed keys in Azure Key Vault or Managed HSM (the vault needs soft delete and purge protection, and the account needs a managed identity with access to the key). Infrastructure encryption adds a second layer and can only be enabled at creation. Key points: - Name is global, 3-24 lowercase letters and numbers; it becomes part of the endpoint URL. - Standard GPv2 for most work; Premium block blob, file share or page blob for low latency. - Keep secure transfer on, TLS 1.2 minimum, anonymous access off. - All data is AES-256 encrypted at rest. Keys are Microsoft-managed or customer-managed. - CMK needs a vault with soft delete and purge protection, and a managed identity with access. - Infrastructure encryption is create-time only. Exam tips: - "Second layer of encryption" = infrastructure encryption (new account). - "Company must control and revoke the key" = customer-managed key in Key Vault. - "Different key per container" = encryption scope. Quick Q&A: - Q: Which algorithm does Azure Storage use to encrypt data at rest? A: 256-bit AES. - Q: Can infrastructure encryption be enabled on an existing account? A: No, only when you create it. - Q: Which role should the account's identity have on a CMK? A: Key Vault Crypto Service Encryption User. - Q: What vault settings are required for CMK? A: Soft delete and purge protection. - Q: Which account type is recommended for most scenarios? A: Standard general-purpose v2. ## Storage Redundancy and Object Replication URL: https://azure.msdevbuild.com/az-104/storage/storage-redundancy-and-object-replication/ Redundancy decides how many copies Azure keeps and where: LRS (3 copies in one datacenter), ZRS (3 copies across availability zones), GRS (LRS plus an asynchronous copy in the paired region) and GZRS (ZRS plus a paired-region copy). RA-GRS and RA-GZRS also let you read the secondary. Changing between LRS and GRS is a simple update; adding zones (LRS to ZRS, GRS to GZRS) is a conversion. A customer-managed failover promotes the secondary during an outage. Object replication is different: it asynchronously copies block blobs from a container in one account to a container in another, and needs versioning on both accounts and the change feed on the source. Key points: - LRS 3 copies one datacenter; ZRS 3 across zones; GRS LRS + paired region; GZRS ZRS + paired region. - RA- options allow reads from the secondary endpoint (-secondary). - Premium accounts support LRS and ZRS only. - LRS to GRS is an update; LRS to ZRS and GRS to GZRS are conversions. - Unplanned failover can lose writes after Last Sync Time and leaves the account LRS. - Object replication needs versioning on both accounts and change feed on the source; block blobs only. Exam tips: - "Survive a zone outage and stay writable" = ZRS (or GZRS). - "Read data during a regional outage without failover" = RA-GRS / RA-GZRS. - "Copy blobs to an account in a region you choose" = object replication. Quick Q&A: - Q: How many copies does LRS keep? A: Three, in one datacenter. - Q: What two features must be on for object replication? A: Blob versioning on both accounts and change feed on the source. - Q: Where does GRS keep its secondary copy? A: In the paired region. - Q: Which redundancy options do premium accounts support? A: LRS and ZRS. - Q: What property tells you how current the secondary region is? A: Last Sync Time. ## Move Data with Azure Storage Explorer and AzCopy URL: https://azure.msdevbuild.com/az-104/storage/storage-explorer-and-azcopy/ Azure Storage Explorer is a free desktop app (Windows, macOS, Linux) for browsing and managing blobs, files, queues and tables; it connects with Microsoft Entra ID, an account name and key, a connection string or a SAS URL, and uses AzCopy for transfers. AzCopy is a free command-line tool for bulk and scripted transfers: azcopy copy (with --recursive), azcopy sync (only what changed, optionally --delete-destination true), make, list, remove and jobs resume. AzCopy authenticates with Microsoft Entra ID (azcopy login, which needs a Storage Blob Data role, not just Owner) or a SAS on the URL. The portal's Storage browser handles quick, small jobs. Key points: - Storage Explorer connects via Entra ID, account key, connection string, SAS URL or the Azurite emulator. - AzCopy auth = Microsoft Entra ID (azcopy login) or a SAS appended to the URL. - Entra ID with AzCopy needs a Storage Blob Data role. Owner alone isn't enough. - azcopy copy --recursive for folders; azcopy sync for changes only. - Server-to-server copies don't pass data through your machine. - AzCopy is preinstalled in Azure Cloud Shell. Exam tips: - "Copy millions of files, scriptable, resumable" = AzCopy. - "GUI for admins to manage blobs, queues, tables and files" = Storage Explorer. - "Only copy what changed" = azcopy sync. Quick Q&A: - Q: Which two ways can AzCopy authenticate to Blob Storage? A: Microsoft Entra ID (azcopy login) or a SAS token. - Q: Which flag copies a folder and its subfolders? A: --recursive - Q: Which flag makes azcopy sync delete files missing from the source? A: --delete-destination true - Q: What role does an Entra identity need to upload blobs with AzCopy? A: Storage Blob Data Contributor (or Owner). - Q: Which tool does Storage Explorer use for transfers? A: AzCopy. ## Azure File Shares, Snapshots and Soft Delete URL: https://azure.msdevbuild.com/az-104/storage/azure-file-shares-snapshots-soft-delete/ An Azure file share is a managed SMB (or NFS) share inside a storage account. On a standard general-purpose v2 account you pick an access tier (Transaction optimized, Hot or Cool) and a quota up to 100 TiB; premium (SSD) shares live in a FileStorage account and are the only kind that supports NFS. A share snapshot is a read-only, incremental, point-in-time copy of the whole share (up to 200 per share) that you restore files from, including through Windows Previous Versions. Share soft delete keeps a deleted share, with its snapshots, for 1 to 365 days (7 by default) so you can undelete it. Key points: - Standard shares - Transaction optimized, Hot, Cool. Premium shares - SSD, FileStorage account. - NFS needs a premium FileStorage account and virtual network access. - Quota up to 100 TiB per share. - Share snapshots - read-only, incremental, up to 200 per share, whole share. - Share soft delete - 1 to 365 days, default 7, restores share and snapshots. - Azure Backup schedules snapshots and can keep more of them in a vault. Exam tips: - "Restore a file deleted from a share yesterday" = share snapshot (or Azure Backup). - "Recover a deleted file share" = share soft delete. - "NFS share for Linux" = premium FileStorage account. Quick Q&A: - Q: How many snapshots can one file share keep? A: Up to 200. - Q: What is the default retention for share soft delete on new accounts? A: Seven days. - Q: Which account type supports NFS shares? A: Premium FileStorage. - Q: Which CLI command takes a share snapshot? A: az storage share-rm snapshot - Q: What is the maximum quota of a file share? A: 100 TiB. ## Blob Containers, Access Tiers and Lifecycle Management URL: https://azure.msdevbuild.com/az-104/storage/blob-containers-tiers-and-lifecycle/ A container groups blobs inside a storage account. Its anonymous access level is Private (default), Blob or Container, and anonymous access only works if the account allows it (new accounts don't). Access tiers trade storage price for access price: Hot, Cool (30-day minimum), Cold (90 days) and Archive (180 days, offline, rehydrating takes up to 15 hours at Standard priority). Archive is supported on LRS, GRS and RA-GRS accounts. A lifecycle management policy is a set of JSON rules that moves blobs to cooler tiers or deletes them (and old versions and snapshots) based on days since modification, creation or last access, and runs about once a day. Key points: - Container names 3-63 lowercase letters, numbers and hyphens. - Anonymous access needs the account setting on; new accounts block it. - Hot, Cool (30 d), Cold (90 d), Archive (180 d, offline). - Rehydrate Archive with Set Blob Tier or a copy; Standard up to 15 hours, High usually under 1 hour for blobs under 10 GB. - Archive works on LRS, GRS, RA-GRS only. - Lifecycle rules run about daily; new policies can take up to 24 hours to act. Exam tips: - "Cheapest storage, can wait hours to read" = Archive. - "Rarely read, needed immediately when read" = Cool or Cold. - "Move blobs automatically by age" = lifecycle management. Quick Q&A: - Q: What is the minimum storage duration for the Cold tier? A: 90 days. - Q: How long can Standard priority rehydration from Archive take? A: Up to 15 hours. - Q: Which account redundancy options support the Archive tier? A: LRS, GRS and RA-GRS. - Q: Which lifecycle condition needs last access time tracking? A: daysAfterLastAccessTimeGreaterThan. - Q: Which anonymous access level allows listing blobs in a container? A: Container. ## Blob Soft Delete and Versioning URL: https://azure.msdevbuild.com/az-104/storage/blob-soft-delete-and-versioning/ Blob soft delete keeps deleted blobs (and their versions and snapshots) for 1 to 365 days so you can undelete them. Container soft delete does the same for whole containers (1 to 365 days) and restores them with their blobs. Blob versioning automatically keeps the previous version of a blob every time it's overwritten or deleted, so you recover from a bad edit by copying an older version back over the current one. Turn them on in Data management > Data protection. Microsoft recommends using them together; none of them protects against deleting the storage account (use a resource lock). Key points: - Portal path: storage account > Data management > Data protection. - Blob soft delete and container soft delete - 1 to 365 days each. - Portal-created accounts get 7-day soft delete by default; the CLI doesn't turn it on. - Versioning keeps a version on every write; restore by copying a version back. - Object replication and point-in-time restore need versioning. - None of these protect against deleting the storage account; use a CanNotDelete lock. Exam tips: - "Recover a blob that was overwritten" = versioning. - "Recover a deleted container" = container soft delete. - "Prevent deletion of the storage account" = resource lock, not soft delete. Quick Q&A: - Q: What retention range does blob soft delete allow? A: 1 to 365 days. - Q: Which CLI command restores a soft-deleted blob? A: az storage blob undelete - Q: Which CLI flag turns on blob versioning? A: --enable-versioning true (az storage account blob-service-properties update) - Q: Which three features does point-in-time restore need? A: Versioning, change feed and blob soft delete. - Q: Does container soft delete protect against deleting the storage account? A: No. # AZ-104 Domain 3: Deploy and manage Azure compute resources (20–25%) ## Read and Modify ARM Templates and Bicep Files URL: https://azure.msdevbuild.com/az-104/compute/interpret-and-modify-arm-and-bicep/ An ARM template (JSON) and a Bicep file describe the same thing: the Azure resources you want. Both have parameters (inputs), variables (values worked out once), resources (type, API version, name, location, properties) and outputs. Bicep is shorter and the CLI compiles it to ARM JSON before Azure Resource Manager deploys it. To modify a template, change a parameter's default value or allowed values, add a parameter, or edit a resource's properties, then preview the result with what-if. Key points: - Templates are declarative. You describe the end state; Resource Manager works out the steps. - ARM JSON sections are parameters, variables, resources and outputs (plus $schema and contentVersion). - Bicep uses param, var, resource and output keywords and compiles to ARM JSON. - allowedValues (JSON) and @allowed (Bicep) restrict input; validation fails before anything is created. - ARM expressions live in square brackets, such as [parameters('name')] and [resourceGroup().location]. Exam tips: - "Which value will be used?" = the value passed at deployment, otherwise the defaultValue. - "Only allow certain SKUs in the template" = allowedValues or @allowed. - "Location of the resource group" = resourceGroup().location. Quick Q&A: - Q: Which ARM template section holds the resources to deploy? A: resources. - Q: Which Bicep decorator limits a parameter to a list of values? A: @allowed. - Q: What does the CLI do with a .bicep file before deployment? A: It compiles it to an ARM JSON template. - Q: Which function returns the resource group's region? A: resourceGroup().location. - Q: Which Bicep decorator hides a parameter value such as a password? A: @secure(). ## Deploy, Export and Convert Templates to Bicep URL: https://azure.msdevbuild.com/az-104/compute/deploy-and-export-templates/ Deploy a template to a resource group with az deployment group create --template-file main.bicep (or New-AzResourceGroupDeployment, or Deploy a custom template in the portal). Preview first with what-if. The default mode is Incremental, which adds and updates resources; Complete also deletes resources in the group that the template doesn't define. To get a template from what already exists, use Export template on a resource group or resource (or az group export), or download one from Deployments history. Convert ARM JSON to Bicep with az bicep decompile. Key points: - CLI az deployment group create, PowerShell New-AzResourceGroupDeployment, portal Deploy a custom template. - Default mode is Incremental. Complete deletes resources not in the template. - what-if previews - + create, ~ modify, - delete, = no change. - Export template from a resource group or resource, or az group export. Deployment history keeps each template used. - az bicep decompile converts JSON to Bicep; az bicep build compiles Bicep to JSON. Exam tips: - "Delete resources not in the template" = Complete mode. - "Preview changes without deploying" = what-if. - "Convert an ARM template to Bicep" = az bicep decompile. Quick Q&A: - Q: What is the default deployment mode? A: Incremental. - Q: Which command previews a deployment's changes? A: az deployment group what-if. - Q: Which command exports a resource group as an ARM template? A: az group export. - Q: Which PowerShell cmdlet deploys a template to a resource group? A: New-AzResourceGroupDeployment. - Q: Where in the portal do you see the templates used for past deployments? A: The resource group's Deployments blade. ## Create Virtual Machines and Manage VM Sizes URL: https://azure.msdevbuild.com/az-104/compute/create-and-size-virtual-machines/ You create a VM in the portal (Virtual machines › + Create), with az vm create or with New-AzVM, choosing the region, availability options, image, size, admin account and inbound ports. The size sets vCPUs, memory, maximum data disks and price; the name tells you the family, such as D for general purpose, E for memory optimised and F for compute optimised. Resizing restarts the VM. If the new size isn't available on the hardware cluster hosting the VM, deallocate it first and every size in the region becomes available. Key points: - Create with the portal wizard, az vm create or New-AzVM. Basics holds region, availability, image, size and admin account. - Size names show family, vCPUs, features and generation (Standard_D4s_v5). - Resizing restarts the VM. Sizes not on the current cluster need the VM deallocated first. - In an availability set, a size not on the cluster can mean deallocating every VM in the set. - Deallocated VMs aren't billed for compute; stopped-but-allocated VMs are. Exam tips: - "Size is greyed out / not available" = deallocate the VM, then resize. - "More memory for a database server" = E-series; "CPU-heavy batch" = F-series; "GPU" = N-series. - "Stop paying for compute" = Stop (deallocate), not shutdown from the OS. Quick Q&A: - Q: Which command lists the sizes a VM can be resized to? A: az vm list-vm-resize-options. - Q: Which command resizes a VM? A: az vm resize --size . - Q: What happens to a running VM when it's resized? A: It restarts. - Q: Which VM family is memory optimised? A: E-series. - Q: Which power state stops compute billing? A: Stopped (deallocated). ## VM Disks and Encryption at Host URL: https://azure.msdevbuild.com/az-104/compute/vm-disks-and-encryption-at-host/ An Azure VM has an OS disk and optional data disks, both managed disks stored in Azure Storage, plus a temporary disk on the host that loses its data when the VM is deallocated or moved. Disk types are Ultra Disk, Premium SSD v2, Premium SSD, Standard SSD and Standard HDD. You can attach data disks while the VM runs and grow disks (never shrink them), but changing a disk's type needs the VM deallocated or the disk detached. Managed disks are always encrypted at rest; encryption at host also encrypts the temp disk and the disk caches on the host. Register the EncryptionAtHost feature once, deallocate the VM, then turn it on. Key points: - OS and data disks are managed disks; the temp disk is on the host and isn't persistent. - Attach and detach data disks while the VM runs. Grow disks, never shrink them. - Changing a disk type needs the VM deallocated or the disk detached. - Host caching - ReadOnly for read-heavy data, None for write-heavy logs, ReadWrite only if the app handles it. - Encryption at host - register EncryptionAtHost, deallocate, enable, start. Covers temp disk and caches. Exam tips: - "Encrypt the temp disk and caches" = encryption at host. - "Use your own key for disk encryption at rest" = customer-managed key with a disk encryption set. - "Data lost after the VM was deallocated" = it was on the temporary disk. Quick Q&A: - Q: Which command attaches a new data disk to a VM? A: az vm disk attach --new --size-gb . - Q: Which feature must be registered before using encryption at host? A: Microsoft.Compute/EncryptionAtHost. - Q: What VM state is needed to turn on encryption at host for an existing VM? A: Stopped (deallocated). - Q: Can you shrink a managed disk? A: No, disks can only grow. - Q: Which disk is lost when a VM is redeployed to a new host? A: The temporary disk. ## Move a VM to Another Resource Group, Subscription or Region URL: https://azure.msdevbuild.com/az-104/compute/move-virtual-machines/ To move a VM to another resource group or subscription, use Move in the portal, az resource move or Move-AzResource. The region doesn't change and the VM keeps running, but every resource ID changes, and the VM must move with its dependent resources (OS and data disks, network interface, and usually its public IP and NSG; across subscriptions the virtual network too). Both subscriptions must be in the same Microsoft Entra tenant. To move a VM to another region, use Azure Resource Mover: add resources, validate dependencies, prepare, initiate move, commit, then delete the source. Key points: - Resource group and subscription moves keep the region and the VM keeps running. - Resource IDs change. Update scripts, alerts and role assignments on the resource. - Move a VM with its disks and NIC; across subscriptions the VNet goes too. - Subscription moves need the same Microsoft Entra tenant and the provider registered in the target. - Region moves use Azure Resource Mover - validate, prepare, initiate, commit, delete source. Exam tips: - "Move to another region" = Azure Resource Mover. - "Move to another resource group or subscription" = Move / az resource move. - "What changes after a move?" = the resource ID, not the region or the IP configuration. Quick Q&A: - Q: Which command moves resources to another resource group? A: az resource move --destination-group --ids . - Q: Does a resource group move change the VM's location? A: No. - Q: Which service moves a VM to another region? A: Azure Resource Mover. - Q: What must both subscriptions share for a move between them? A: The same Microsoft Entra tenant. - Q: Which Resource Mover step makes the target resources final? A: Commit. ## Availability Zones, Availability Sets and VM Scale Sets URL: https://azure.msdevbuild.com/az-104/compute/vm-availability-and-scale-sets/ An availability set spreads VMs across fault domains (racks with their own power and network, up to 3) and update domains (rebooted one at a time, up to 20) inside one datacenter: 99.95% SLA with two or more VMs. Availability zones put VMs in separate datacenters in a region: 99.99%. A VM uses one or the other and you choose at creation. A Virtual Machine Scale Set runs identical VMs (use Flexible orchestration) across zones or fault domains, and autoscale rules add or remove instances on metrics such as Percentage CPU, between a minimum and maximum. Key points: - Availability set - fault domains (up to 3) and update domains (default 5, up to 20) in one datacenter, 99.95%. - Availability zones - separate datacenters in a region, 99.99% with VMs in two or more zones. - Single VM with Premium SSD or better on all disks - 99.9%. - Set and zone are chosen at creation; one VM can't use both. - Scale sets - Flexible orchestration, zones, autoscale with min, max, default, scale-out and scale-in rules. Exam tips: - "Survive a datacenter failure" = availability zones. - "Survive a rack failure or host maintenance" = availability set. - "Add VMs automatically when CPU is high" = scale set with autoscale. Quick Q&A: - Q: What is the maximum number of fault domains in an availability set? A: 3 (depends on the region). - Q: What is the default number of update domains? A: 5. - Q: What SLA do two or more VMs across availability zones get? A: 99.99%. - Q: Which scale set orchestration mode is recommended for new deployments? A: Flexible. - Q: Which command creates an autoscale setting for a scale set? A: az monitor autoscale create. ## Azure Container Registry and Container Instances for Admins URL: https://azure.msdevbuild.com/az-104/compute/container-registry-and-instances/ Azure Container Registry (ACR) is your private image store. You pick a tier: Basic, Standard or Premium, and only Premium adds geo-replication and private endpoints. Apps pull with a Microsoft Entra identity that has the AcrPull role, and the admin user stays off. Azure Container Instances (ACI) runs an image as a container group in seconds, with the CPU and memory you set at creation and a restart policy of Always, OnFailure or Never. ACI bills per second and doesn't autoscale. To change CPU or memory, you recreate the group. Key points: - ACR tiers are Basic, Standard and Premium. Premium adds geo-replication, private endpoints and the most included storage. - You can change an ACR tier in place with az acr update --sku, with no downtime. - Pull with a managed identity or service principal that has AcrPull. Keep the admin user disabled. - ACI deploys a container group with fixed CPU and memory, a restart policy and optional public IP and DNS label. - ACI doesn't autoscale. Changing CPU, memory or restart policy means deleting and recreating the group. Exam tips: - "Replicate the registry to another region" = Premium ACR. - "Run once, restart only if it fails" = restart policy OnFailure. - "Increase memory of an existing container group" = delete and redeploy the group. Quick Q&A: - Q: Which ACR tier supports geo-replication? A: Premium. - Q: What is the default ACI restart policy? A: Always. - Q: Which role lets an app pull images from ACR? A: AcrPull. - Q: Does Azure Container Instances autoscale? A: No. You size each container group yourself. - Q: Which CLI command creates a container group? A: az container create (with --cpu, --memory and --restart-policy). ## Provision and Scale Azure Container Apps URL: https://azure.msdevbuild.com/az-104/compute/container-apps-for-admins/ Azure Container Apps runs containers in a Container Apps environment without you managing Kubernetes. You size each replica with an allowed CPU and memory pair (on the Consumption profile, from 0.25 vCPU / 0.5 Gi to 4 vCPU / 8 Gi, always 2 Gi per vCPU). Scale rules (HTTP, TCP or event-based, such as a queue) add replicas between min replicas and max replicas. With min replicas 0 the app scales to zero when it's idle; CPU and memory rules can't do that. Changing scale settings creates a new revision. Key points: - Container apps run inside a Container Apps environment; several apps share it. - Consumption sizes go from 0.25 vCPU / 0.5 Gi to 4 vCPU / 8 Gi, always 2 Gi per vCPU. - Scale rules can be HTTP, TCP or custom (KEDA event sources). Min and max replicas bound them. - Min replicas 0 allows scale to zero. CPU and memory rules can't scale to zero. - Max replicas defaults to 10. Changing scale settings creates a new revision. Exam tips: - "Scale to zero when idle" = min replicas 0 with an HTTP or event rule. - "Add a replica per N concurrent requests" = HTTP scale rule. - "Limit the maximum cost under load" = set max replicas. Quick Q&A: - Q: What is the default maximum number of replicas? A: 10. - Q: Which memory goes with 1 vCPU on the Consumption profile? A: 2 Gi. - Q: Can a CPU scale rule scale an app to zero? A: No. - Q: What do scale changes create? A: A new revision. - Q: Which CLI flag sets HTTP concurrency for a scale rule? A: --scale-rule-http-concurrency. ## App Service Plans, Scaling and Creating a Web App URL: https://azure.msdevbuild.com/az-104/compute/app-service-plans-and-scaling/ An App Service plan is the set of VMs your web apps run on. Its pricing tier decides the instance size, how many instances you can have and which features you get: Free and Shared for testing, Basic (up to 3 instances, manual scale), Standard (up to 10, autoscale and 5 deployment slots), Premium v3 (up to 30, 20 slots, zone redundancy) and Isolated v2. Every app on a plan runs on every instance. Scale up changes the tier or size; scale out changes the instance count, by hand or with rules-based autoscale on a metric such as CPU percentage. Key points: - The plan is the compute. Region, OS and tier are set on the plan; the web app runs on it. - Basic scales out by hand to 3 instances. Standard allows 10 and autoscale. Premium v3 allows 30. - Standard gives 5 deployment slots, Premium v3 gives 20. Custom domains with TLS start at Basic. - Scaling acts on the plan, so every app on the plan scales together. - Rules-based autoscale needs a minimum, a maximum, a default and pairs of scale-out and scale-in rules. Exam tips: - "Scale automatically on CPU" = Standard or higher with an autoscale rule. - "More CPU and memory per instance" = scale up. - "Minimise cost for a dev site with no custom domain" = Free (F1). Quick Q&A: - Q: How many instances can a Basic plan run? A: Up to 3, scaled manually. - Q: Which is the lowest tier with autoscale? A: Standard. - Q: How many deployment slots does Premium v3 allow? A: 20. - Q: Which command changes a plan's tier? A: az appservice plan update --sku . - Q: Which resource type do you autoscale for App Service? A: Microsoft.Web/serverfarms (the plan). ## App Service Custom Domains, Certificates and TLS URL: https://azure.msdevbuild.com/az-104/compute/app-service-tls-and-custom-domains/ To map a custom domain to App Service, prove you own it and point it at the app. Create a TXT record named asuid. (or asuid for the root) holding the app's custom domain verification ID, plus a CNAME to .azurewebsites.net for a subdomain or an A record to the app's IP for the root domain. Then add the custom domain on the app. Custom domains need Basic or higher for TLS (Free can't use them at all). Secure it with a free App Service managed certificate (no wildcards, not exportable), an imported Key Vault certificate or an uploaded .pfx, bound with SNI SSL. Finally turn on HTTPS Only and keep the minimum TLS version at 1.2 (the default) or higher. Key points: - Ownership is proven with a TXT record asuid. containing the custom domain verification ID. - Subdomains use a CNAME to .azurewebsites.net; the root domain uses an A record to the app's IP. - Free tier has no custom domains; Shared can map a domain but can't bind a certificate; Basic and up can do both. - Managed certificates are free and auto-renewed, but can't be wildcards or exported. - HTTPS Only redirects HTTP; minimum inbound TLS version defaults to 1.2. Exam tips: - "Verify domain ownership" = TXT record asuid.. - "Free certificate that renews itself" = App Service managed certificate (Basic or higher). - "Wildcard certificate" = import from Key Vault, buy an App Service certificate, or upload a .pfx. Quick Q&A: - Q: Which record proves domain ownership to App Service? A: A TXT record named asuid.. - Q: Which record maps www to the app? A: A CNAME to .azurewebsites.net. - Q: Can a managed certificate be a wildcard? A: No. - Q: What is the default minimum inbound TLS version? A: 1.2. - Q: Which binding type lets many certificates share one IP? A: SNI SSL. ## App Service Backup and Networking URL: https://azure.msdevbuild.com/az-104/compute/app-service-backup-and-networking/ App Service keeps automatic backups every hour for 30 days with no setup, and you add custom backups when you need your own schedule, retention, linked databases or a copy you can download. A custom backup goes to a blob container in a storage account in the same subscription, through a SAS URL, holds up to 10 GB and needs Basic or higher. Networking has two directions. Outbound: VNet integration lets the app reach private resources through an empty subnet (/28 or larger, /26 recommended) delegated to Microsoft.Web/serverFarms. Inbound: access restrictions allow or deny traffic by IP range, service tag or subnet in priority order, and a private endpoint gives the app a private IP inside your VNet. Key points: - Automatic backups run hourly, are kept 30 days and need no storage account. - Custom backups go to a blob container via a SAS URL, up to 10 GB, Basic tier and up, with a schedule and retention. - Restore over the same app, to another app or to a slot. - VNet integration is outbound only and needs an empty, delegated subnet (/28 minimum, /26 recommended). - Access restrictions filter inbound by priority; a private endpoint gives a private inbound IP. Exam tips: - "App must reach a private database" = VNet integration (outbound). - "Only the office IP range may browse the app" = access restriction Allow rule. - "No public inbound access at all" = private endpoint and public access Disabled. Quick Q&A: - Q: How often do automatic backups run? A: Every hour. - Q: Where do custom backups go? A: A blob container in a storage account, reached with a SAS URL. - Q: What is the maximum size of a custom backup? A: 10 GB (app and database content together). - Q: Which service must the integration subnet be delegated to? A: Microsoft.Web/serverFarms. - Q: In what order are access restrictions evaluated? A: By priority, lowest number first. ## App Service Deployment Slots and Swaps URL: https://azure.msdevbuild.com/az-104/compute/app-service-deployment-slots/ A deployment slot is a live copy of your web app with its own hostname (-staging.azurewebsites.net), running on the same App Service plan. Slots need Standard (5 slots) or Premium v3 (20 slots). You deploy to staging, test it, then swap: App Service applies production's settings to staging, warms up its instances and only then switches traffic, so there's no cold start, and swapping again rolls back. App settings and connection strings marked Deployment slot setting stay with their slot. Custom domains, certificates and TLS settings, scale settings, IP restrictions and managed identities never swap. Swap with preview pauses after warm-up, and traffic routing can send a percentage of users to a slot. Key points: - Slots need Standard (5 per app) or Premium v3 (20 per app). Basic and Free have none. - Slots run on the same plan, so they share its instances and scale settings. - A swap warms up the source first, then switches routing. Swap again to roll back. - Slot settings (sticky) stay with their slot. Domains, certificates, scale and IP restrictions never swap. - Swap with preview pauses after warm-up; traffic routing sends a percentage of users to a slot. Exam tips: - "No downtime when releasing" = deploy to a slot and swap. - "Setting must not move during a swap" = mark it as a deployment slot setting. - "Validate with production settings before completing the swap" = swap with preview. Quick Q&A: - Q: How many slots does Standard allow per app? A: Five (plus production). - Q: Which tier is the lowest that supports slots? A: Standard. - Q: Do custom domains swap? A: No, they stay with their slot. - Q: How do you roll back a bad swap? A: Swap the slots again. - Q: Which command swaps slots? A: az webapp deployment slot swap --slot staging --target-slot production. # AZ-104 Domain 4: Implement and manage virtual networking (15–20%) ## Virtual Networks, Subnets and Public IP Addresses URL: https://azure.msdevbuild.com/az-104/networking/vnets-subnets-and-public-ips/ An Azure virtual network (VNet) is a private IP address space (for example 10.0.0.0/16) in one region and subscription, split into subnets. Azure reserves 5 addresses in every subnet (network, default gateway, two for Azure DNS and broadcast), so a /29 leaves 3 usable and a /24 leaves 251. Address spaces must not overlap anything you'll connect to. A public IP address today is the Standard SKU: always static, zone-redundant where the region has zones, and closed to inbound traffic until an NSG allows it. Basic SKU public IPs were retired on 30 September 2025. Key points: - A VNet is one region, one subscription, one or more CIDR ranges. VNets are free. - Every subnet loses 5 addresses. /29 is the smallest IPv4 subnet (3 usable). - Address spaces must not overlap VNets or on-premises networks you'll connect to. - Standard public IP = static, zone-redundant in zone regions, closed until an NSG allows traffic. - Basic SKU public IPs were retired on 30 September 2025. Exam tips: - "How many VMs fit in a /27?" = 32 - 5 = 27. - "Public IP must never change" = Static (Standard is always static). - "Public IP must survive a zone failure" = Standard, zone-redundant. Quick Q&A: - Q: How many addresses does Azure reserve per subnet? A: Five. - Q: What is the smallest IPv4 subnet Azure allows? A: A /29, with 3 usable addresses. - Q: Which allocation methods does a Standard public IP support? A: Static only. - Q: Can a VNet span two regions? A: No. A VNet lives in one region; connect regions with global peering. - Q: Which CLI command creates a public IP? A: az network public-ip create --sku Standard --allocation-method Static. ## Configure Virtual Network Peering and Gateway Transit URL: https://azure.msdevbuild.com/az-104/networking/configure-vnet-peering/ VNet peering connects two virtual networks so their resources talk on private IPs over the Microsoft backbone, in the same region or across regions (global peering) and even across subscriptions and tenants. A peering is two links, one from each side, and both must show Connected. Address spaces can't overlap. Peering is not transitive: if spoke 1 and spoke 2 are both peered with a hub, they still can't reach each other unless you peer them directly or route through an NVA in the hub. Gateway transit lets spokes use the hub's VPN or ExpressRoute gateway: set allow gateway transit on the hub's link and use remote gateways on the spoke's link. Key points: - Peering = two links, both must be Connected. Works across regions, subscriptions and tenants. - Address spaces can't overlap. Traffic stays private on the Microsoft backbone. - Peering is not transitive. Spoke to spoke needs direct peering or a UDR to a hub NVA. - Gateway transit = allow gateway transit (hub link) + use remote gateways (spoke link). - Data through a peering is billed per GB in each direction. Exam tips: - "VNet1 peered to VNet2, VNet2 peered to VNet3, can VNet1 reach VNet3?" = No. - "Spokes must use the hub VPN gateway" = allow gateway transit on hub + use remote gateways on spokes. - "Peering fails to create" = check for overlapping address spaces. Quick Q&A: - Q: How many peering links connect two VNets? A: Two, one in each direction. - Q: Can peered VNets have overlapping address spaces? A: No. - Q: Is global peering allowed across subscriptions? A: Yes, and across Microsoft Entra tenants too. - Q: Which setting goes on the spoke for gateway transit? A: Use remote gateways. - Q: Which setting lets traffic from a hub NVA into a spoke? A: Allow forwarded traffic on the spoke's peering. ## User-Defined Routes and Route Tables URL: https://azure.msdevbuild.com/az-104/networking/user-defined-routes/ Azure gives every subnet system routes (your VNet, peered VNets, 0.0.0.0/0 to the Internet). A route table holds user-defined routes (UDRs) that override them. You associate the route table with a subnet (one table per subnet, one table can serve many subnets), in the same region and subscription. Each route has an address prefix and a next hop type: Virtual appliance (needs the appliance's private IP), Virtual network gateway, Virtual network, Internet or None (drop). Azure picks the longest prefix match; on the same prefix a user route beats BGP and system routes. An NVA must have IP forwarding enabled on its NIC. Key points: - Route tables attach to subnets, not NICs. One per subnet, many subnets per table. - Same region and subscription as the VNet. - Next hop types - Virtual appliance (with IP), Virtual network gateway, Virtual network, Internet, None. - Longest prefix wins; on a tie, User > BGP > System. - NVAs need IP forwarding on the Azure NIC and in the OS. Exam tips: - "Force internet traffic through a firewall" = 0.0.0.0/0 → Virtual appliance + firewall IP, associated with the subnet. - "Drop traffic to a range" = next hop None. - "Where does the packet go?" = Next hop or Effective routes on the NIC. Quick Q&A: - Q: What do you associate a route table with? A: One or more subnets. - Q: Which next hop type needs an IP address? A: Virtual appliance. - Q: Which route wins, 10.0.0.0/16 or 10.0.1.0/24, for 10.0.1.5? A: 10.0.1.0/24, the longest prefix. - Q: What must be enabled on an NVA's NIC? A: IP forwarding. - Q: Where do you see all routes that apply to a VM? A: Effective routes on its network interface. ## NSGs, Application Security Groups and Effective Rules URL: https://azure.msdevbuild.com/az-104/networking/nsgs-asgs-and-effective-rules/ A network security group (NSG) holds stateful allow and deny rules (source, destination, port, protocol), checked by priority from 100 to 4096, lowest number first; the first match wins. Every NSG has default rules at 65000 and above (allow VNet, allow Azure Load Balancer, deny all inbound). You attach an NSG to a subnet, a NIC, or both. For inbound traffic the subnet NSG is evaluated first, then the NIC NSG; outbound runs the other way, and both must allow. An application security group (ASG) groups NICs so rules can target "the web servers" instead of IP addresses. Effective security rules and IP flow verify show what really applies. Key points: - Rules have priority 100 to 4096, lowest first, first match wins. Defaults sit at 65000+. - Inbound - subnet NSG then NIC NSG. Outbound - NIC NSG then subnet NSG. Both must allow. - NSGs are stateful. Allowed inbound traffic gets its replies back automatically. - ASGs group NICs (same VNet) so rules target roles, not IPs. - Effective security rules and IP flow verify show the real result. Exam tips: - "Which rule applies?" = find the lowest priority number that matches. - "Allowed on the subnet but still blocked" = check the NIC NSG. - "Rules must not change when servers are added" = application security groups. Quick Q&A: - Q: What is the valid priority range for custom rules? A: 100 to 4096. - Q: Which NSG is evaluated first for inbound traffic? A: The subnet NSG. - Q: What is the priority of DenyAllInBound? A: 65500. - Q: Can an ASG contain NICs from different VNets? A: No. - Q: Which CLI command shows effective rules on a NIC? A: az network nic list-effective-nsg. ## Connect to VMs Securely with Azure Bastion URL: https://azure.msdevbuild.com/az-104/networking/azure-bastion/ Azure Bastion is a managed service that lets you RDP and SSH to VMs on their private IPs from the Azure portal over TLS 443, so VMs need no public IP and no open 3389 or 22 to the internet. It's deployed into a subnet named exactly AzureBastionSubnet, /26 or larger, with a Standard public IP, and it reaches VMs in its own VNet and peered VNets. SKUs are Developer (free, shared, no subnet), Basic, Standard (adds host scaling, native client support with az network bastion ssh/rdp, IP-based connection, shareable links) and Premium (adds session recording and private-only deployment). Key points: - Bastion gives RDP/SSH over TLS 443 to private IPs. VMs need no public IP. - AzureBastionSubnet, exact name, /26 or larger, plus a Standard public IP. - Reaches VMs in its VNet and peered VNets. - Developer (free, shared), Basic, Standard (scaling, native client, shareable link, IP-based), Premium (session recording, private-only). - You can upgrade a SKU but not downgrade it. Exam tips: - "Connect to VMs without public IPs, from the browser" = Azure Bastion. - "Use the local SSH client through Bastion" = Standard or Premium + native client support. - "Minimum subnet size for Bastion" = /26. Quick Q&A: - Q: What must the Bastion subnet be called? A: AzureBastionSubnet. - Q: What is the minimum size of that subnet? A: /26. - Q: Which port does the admin use to reach Bastion? A: TCP 443 (HTTPS). - Q: Can Bastion connect to VMs in peered VNets? A: Yes. - Q: Which SKUs support native client connections? A: Standard and Premium. ## Service Endpoints vs Private Endpoints for PaaS URL: https://azure.msdevbuild.com/az-104/networking/service-endpoints-and-private-endpoints/ A service endpoint is switched on per subnet (for example Microsoft.Storage). Traffic from that subnet reaches the service's public IP over the Microsoft backbone with the subnet as its identity, so the service firewall can allow just that subnet. It's free, but the service keeps a public endpoint and on-premises can't use it. A private endpoint is a NIC with a private IP in your subnet that maps to one resource and sub-resource (such as the blob service of one storage account) through Azure Private Link. It works from peered VNets and on-premises, lets you disable public access, and needs a privatelink private DNS zone (privatelink.blob.core.windows.net) linked to the VNet. Key points: - Service endpoint - per subnet, free, service keeps its public IP, firewall allows the subnet. - Service endpoints don't work from on-premises. - Private endpoint - private IP NIC for one resource + sub-resource, through Private Link. - Private endpoints work from peered VNets and on-premises, and allow public access to be disabled. - Private endpoints need a privatelink private DNS zone linked to the VNet. Exam tips: - "From on-premises without the internet" = private endpoint. - "Allow only Subnet1 through the storage firewall" = service endpoint + virtual network rule. - "Resolves to a public IP after creating a private endpoint" = fix the private DNS zone / VNet link. Quick Q&A: - Q: Where do you enable a service endpoint? A: On the subnet. - Q: What does a private endpoint create in your subnet? A: A network interface with a private IP. - Q: Which DNS zone does a blob private endpoint use? A: privatelink.blob.core.windows.net. - Q: Do service endpoints cost extra? A: No, they're free. - Q: Can a private endpoint be used from a peered VNet? A: Yes, if that VNet resolves the privatelink zone. ## Azure DNS: Public and Private Zones and Records URL: https://azure.msdevbuild.com/az-104/networking/azure-dns-zones-and-records/ Azure DNS hosts public DNS zones on Microsoft's global name servers. You delegate your domain by setting the zone's four name servers as NS records at your registrar (Azure DNS doesn't sell domains). You add record sets (A, AAAA, CNAME, MX, TXT, SRV, CAA, NS, PTR). A CNAME can't sit at the zone apex, so use an alias record, which points an A, AAAA or CNAME at an Azure resource such as a public IP, Traffic Manager or Front Door and follows it when it changes. Private DNS zones answer only virtual networks linked to them; a link with auto-registration creates A records for VMs in that VNet, and a VNet can have only one registration zone. VMs query Azure DNS at 168.63.129.16. Key points: - Public zones are hosted on 4 Azure name servers. Delegate at the registrar with NS records. - Azure DNS hosts zones; it doesn't register domains. - CNAME not allowed at the apex. Use an alias A record to a public IP, Front Door or Traffic Manager. - Private zones resolve only from linked VNets. Peering doesn't share them. - Auto-registration creates VM A records; one registration zone per VNet. Exam tips: - "Make the domain resolve through Azure DNS" = update the NS records at the registrar. - "Point contoso.com (apex) at a load balancer IP that might change" = alias A record. - "VM names registered automatically" = private zone link with auto-registration. Quick Q&A: - Q: How many name servers does a public Azure DNS zone get? A: Four. - Q: Can you create a CNAME at the zone apex? A: No. Use an alias record. - Q: Which IP do VMs use for Azure-provided DNS? A: 168.63.129.16. - Q: How many registration zones can a VNet have? A: One. - Q: What do you add so a VNet can resolve a private zone? A: A virtual network link. ## Configure and Troubleshoot Azure Load Balancer URL: https://azure.msdevbuild.com/az-104/networking/azure-load-balancer-for-admins/ Azure Load Balancer spreads TCP and UDP flows (layer 4) from a frontend IP to a backend pool of VMs or scale set instances. A public load balancer uses a Standard public IP; an internal one uses a private IP in a subnet. A load-balancing rule maps a frontend port to a backend port and uses a health probe (TCP, HTTP or HTTPS) to send new flows only to healthy instances. Use the Standard SKU (Basic was retired on 30 September 2025): it's zone-redundant, needs backends in one VNet, and is secure by default, so an NSG must allow the traffic. Probes come from 168.63.129.16 (the AzureLoadBalancer tag); blocking it marks backends Down. Key points: - Layer 4 (TCP/UDP). Frontend, backend pool, health probe, load-balancing rule. - Public frontend = Standard public IP. Internal frontend = private IP in a subnet. - Standard only (Basic retired 30 September 2025). Zone-redundant, one VNet per pool, secure by default. - Probes come from 168.63.129.16. Don't block the AzureLoadBalancer tag. - Default distribution is a 5-tuple hash. Client IP persistence keeps a client on one VM. Exam tips: - "Distribute TCP traffic across VMs, keep the database tier private" = internal load balancer. - "Backend marked unhealthy" = check the probe port/path and NSG rules for AzureLoadBalancer. - "Same client must reach the same VM" = session persistence Client IP. Quick Q&A: - Q: At which OSI layer does Azure Load Balancer work? A: Layer 4 (TCP and UDP). - Q: Which IP do health probes come from? A: 168.63.129.16. - Q: What response does an HTTP probe need? A: HTTP 200. - Q: What is the default distribution mode? A: 5-tuple hash (session persistence None). - Q: Which metric shows probe results? A: Health Probe Status (DipAvailability). ## Troubleshoot Virtual Network Connectivity URL: https://azure.msdevbuild.com/az-104/networking/troubleshoot-network-connectivity/ When VM A can't reach B, check in order: routing, then NSGs, then name resolution, then the app. Azure Network Watcher (enabled automatically per region) has a tool for each question. Connection troubleshoot tests A to B on a port and reports the failing hop. Next hop and the NIC's effective routes show where a packet goes (next hop None means it's dropped, often because peering isn't transitive). IP flow verify and effective security rules name the NSG rule that allows or denies a flow. Also check peering state (Connected), IP forwarding on NVAs, overlapping ranges and DNS. Key points: - Order - routes, NSGs, DNS, then the app. - Connection troubleshoot = end-to-end test with the failing hop. - Next hop / effective routes = where the packet goes. None = dropped. - IP flow verify / effective security rules = which NSG rule allows or denies. - Common causes - non-transitive peering, missing IP forwarding, one-sided peering, NIC NSG, missing private DNS link. Exam tips: - "Which NSG rule blocks the traffic?" = IP flow verify (or effective security rules). - "Is traffic sent to the NVA?" = Next hop. - "Test VM to FQDN on port 1433 and find the failing hop" = Connection troubleshoot. Quick Q&A: - Q: Which tool names the NSG rule that denied a flow? A: IP flow verify. - Q: What does next hop type None mean? A: The packet is dropped because no route sends it anywhere. - Q: Where do you see all routes applied to a VM? A: Effective routes on its network interface. - Q: Is Network Watcher enabled automatically? A: Yes, per region, in the NetworkWatcherRG resource group. - Q: Which CLI command runs connection troubleshoot? A: az network watcher test-connectivity. # AZ-104 Domain 5: Monitor and maintain Azure resources (10–15%) ## Azure Monitor Metrics and Diagnostic Settings URL: https://azure.msdevbuild.com/az-104/monitor-and-backup/monitor-metrics-and-diagnostic-settings/ Platform metrics are numbers every Azure resource sends to Azure Monitor about once a minute, with no setup, and Azure keeps them for 93 days. Resource logs (such as StorageRead or Key Vault AuditEvent) aren't kept at all until you create a diagnostic setting that sends them to a Log Analytics workspace, a storage account, Event Hubs or a partner solution. The activity log records control-plane actions (who created, changed or deleted what) for 90 days. A VM has no resource logs: its guest OS data comes through the Azure Monitor Agent and a data collection rule. Key points: - Platform metrics are automatic and kept 93 days. Metrics explorer charts them with aggregation, filtering and splitting. - Resource logs need a diagnostic setting. Destinations are a Log Analytics workspace, a storage account, Event Hubs or a partner solution. - Storage logs are set on each service (blobServices/default and so on), not on the account. - The activity log is subscription-wide, control plane only, and kept 90 days. Export it with a subscription diagnostic setting. - VMs have no resource log categories. Use the Azure Monitor Agent with a data collection rule for guest OS data. Exam tips: - "Query the logs with KQL" = destination Log Analytics workspace. "Cheapest long-term archive" = storage account. "Stream to a third-party SIEM" = Event Hubs. - "Who deleted the VM?" = activity log. "Who read the blob?" = resource logs through a diagnostic setting. - The storage account used as a destination must be in the same region as the monitored resource. Quick Q&A: - Q: How long are platform metrics kept? A: 93 days. - Q: How long does the activity log keep events? A: 90 days. - Q: Name the four diagnostic setting destination types. A: Log Analytics workspace, storage account, Event Hubs, partner solution. - Q: What collects guest OS logs from a VM? A: The Azure Monitor Agent with a data collection rule. - Q: How many diagnostic settings can one resource have? A: Up to five. ## Query Azure Monitor Logs with KQL URL: https://azure.msdevbuild.com/az-104/monitor-and-backup/kql-for-azure-admins/ Kusto Query Language (KQL) is how you read logs in a Log Analytics workspace. A query starts with a table (AzureActivity, AzureDiagnostics, StorageBlobLogs, Heartbeat, InsightsMetrics) and pipes rows through operators, top to bottom: where filters, summarize aggregates (count(), avg() by a column or bin(TimeGenerated, 5m)), project picks columns, order by sorts, take limits and render draws a chart. Run it in Logs, then save it, pin it to a dashboard or turn it into a log search alert. Key points: - A query starts with a table and pipes rows through operators, top to bottom. - where filters, summarize groups and aggregates, project picks columns, order by sorts, take limits, render charts. - bin(TimeGenerated, 5m) buckets time for charts; ago(1h) gives a time to filter on. - Admin tables to know - AzureActivity, AzureDiagnostics, resource-specific tables like StorageBlobLogs, Heartbeat, Perf, InsightsMetrics, Event, Syslog. - Queries can be saved, pinned, exported and turned into log search alerts. Exam tips: - "Count per 5 minutes and chart it" = summarize count() by bin(TimeGenerated, 5m) | render timechart. - "Show only some columns" = project. "Top 10" = top 10 by or order by … | take 10. - Equality is ==. Case-insensitive equality is =~. Quick Q&A: - Q: Which operator filters rows? A: where. - Q: Which operator groups rows and counts them? A: summarize (with count()). - Q: How do you group events into 15-minute buckets? A: bin(TimeGenerated, 15m). - Q: Which table holds exported activity log events? A: AzureActivity. - Q: How do you run a KQL query on a schedule and get notified? A: Create a log search alert rule. ## Alert Rules, Action Groups and Alert Processing Rules URL: https://azure.msdevbuild.com/az-104/monitor-and-backup/alerts-action-groups-processing-rules/ An alert rule watches a signal (a metric, a log search query, the activity log or Service and Resource Health) on a scope and fires when its condition is true, with a severity from Sev0 to Sev4. When it fires, it calls one or more action groups: reusable lists of notifications (email, SMS, push, voice, email to an Azure Resource Manager role) and actions (webhook, Logic App, Azure Function, Automation runbook, Event Hubs, ITSM). An alert processing rule acts on alerts that already fired: it can suppress notifications (for example during a recurring maintenance window) or add action groups to every alert in a scope. Key points: - Alert rule = scope + signal + condition + severity. Types - metric, log search, activity log (including Service Health and Resource Health), plus smart detection and Prometheus. - Action groups are global and reusable. Notifications - email, SMS, push, voice, ARM role email. Actions - webhook, secure webhook, Logic App, Function, runbook, Event Hubs, ITSM. - The action group display name (short name) is at most 12 characters. - Alert processing rules act after an alert fires - suppress notifications or apply action groups, with filters and an optional schedule (always, once, recurring). - Alert states - condition (Fired, Resolved) and user response (New, Acknowledged, Closed). Exam tips: - "Notify people and call a webhook" = action group. "Mute notifications during maintenance" = alert processing rule with suppress notifications. - "Alert when someone deletes a VM" or "when Azure reports a service issue in my region" = activity log alert (Service Health). - "Threshold should adapt to normal patterns" = dynamic threshold on a metric alert. Quick Q&A: - Q: What does an action group's short name appear in? A: SMS and email notifications. It's limited to 12 characters. - Q: Which alert type runs a KQL query on a schedule? A: A log search alert. - Q: What are the two alert processing rule types? A: Suppress notifications and apply action group. - Q: Which severity is the most critical? A: Sev0. - Q: Does a suppression rule stop alerts from being created? A: No. Alerts still fire and are listed; only notifications and actions are removed. ## Azure Monitor Insights, Network Watcher and Connection Monitor URL: https://azure.msdevbuild.com/az-104/monitor-and-backup/monitor-insights-and-network-watcher/ Azure Monitor Insights are ready-made monitoring views per service. VM insights uses the Azure Monitor Agent and a data collection rule to show performance trends and a dependency Map. Storage insights and Network insights are built on platform metrics and need no setup. Network Watcher is the regional network toolbox: Topology, Connection monitor, IP flow verify, NSG diagnostics, Next hop, Effective security rules, Connection troubleshoot, Packet capture, VPN troubleshoot and flow logs. Connection monitor runs TCP, HTTP or ICMP tests from an agent on a source VM to a destination, records checks failed (%) and round-trip time, and can raise an alert. Key points: - VM insights needs the Azure Monitor Agent and a data collection rule; it shows Performance and an optional dependency Map. - Storage insights and Network insights come from platform metrics, so there's nothing to install. - Network Watcher is regional and enabled automatically with your first virtual network in a region (resource group NetworkWatcherRG). - Connection monitor tests TCP, HTTP or ICMP from sources (Azure VMs with the Network Watcher Agent, or Arc machines with the Azure Monitor Agent) to VMs, FQDNs, URLs or IPs. - Diagnostic tools - IP flow verify (allowed or denied, which rule), Next hop (which route), Effective security rules, NSG diagnostics, Connection troubleshoot, Packet capture, VPN troubleshoot. Exam tips: - "Continuously monitor latency and packet loss between a VM and an endpoint" = Connection monitor. - "Why is this packet blocked, and by which rule?" = IP flow verify or NSG diagnostics. "Where does this packet go?" = Next hop. - "Capture traffic on a VM for analysis" = Packet capture (needs the Network Watcher Agent). Quick Q&A: - Q: Which agent does VM insights use? A: The Azure Monitor Agent, configured by a data collection rule. - Q: Which VM extension does Connection monitor need on an Azure VM source? A: The Network Watcher Agent extension. - Q: Name the three Connection monitor test protocols. A: TCP, HTTP and ICMP. - Q: Which Network Watcher tool tells you the next hop type for a packet? A: Next hop. - Q: Which insight needs no setup and shows capacity and transactions across storage accounts? A: Storage insights. ## Recovery Services Vaults, Backup Vaults and Backup Policies URL: https://azure.msdevbuild.com/az-104/monitor-and-backup/recovery-services-and-backup-vaults/ Azure Backup stores data in two kinds of vault. A Recovery Services vault protects Azure VMs, SQL Server and SAP HANA in VMs, Azure Files, on-premises files through the MARS agent, and also hosts Azure Site Recovery. A Backup vault protects Azure Blobs, managed disks, Azure Database for PostgreSQL flexible server and AKS. For VM backup the vault must be in the same region as the VM, and you pick storage redundancy (geo-redundant by default, locally or zone-redundant) before protecting anything. A backup policy sets the schedule (Standard: daily; Enhanced: every few hours), instant restore snapshot retention and daily, weekly, monthly and yearly retention. Key points: - Recovery Services vault - Azure VMs, SQL/SAP HANA in VMs, Azure Files, MARS, MABS/DPM, and Site Recovery. - Backup vault - Azure Blobs, managed disks, PostgreSQL flexible server, AKS. Its managed identity needs a role on each data source. - VM backup needs the vault in the VM's region. Redundancy (GRS default, LRS, ZRS) is set before protecting items; Cross Region Restore needs GRS. - VM policies - Standard (daily) or Enhanced (every few hours, Trusted Launch). Instant restore 1-5 days (Standard) or up to 30 (Enhanced). Daily retention 7 to 9999 days, plus weekly, monthly, yearly. - Soft delete is on by default for 14 days (up to 180). Always-on soft delete, immutable vaults and multi-user authorization add protection. Exam tips: - "Back up blob containers" or "managed disk snapshots on a schedule" = Backup vault. "Back up a VM", "Azure Files" or "Site Recovery" = Recovery Services vault. - "Restore in the secondary region whenever we want" = GRS + Cross Region Restore. - "Back up every 4 hours" or "Trusted Launch VM" = Enhanced policy. Quick Q&A: - Q: Which vault type hosts Azure Site Recovery? A: The Recovery Services vault. - Q: What's the default backup storage redundancy of a new Recovery Services vault? A: Geo-redundant storage (GRS). - Q: How long does soft delete keep deleted backup data by default? A: 14 days. - Q: What's the minimum daily retention for an Azure VM backup policy? A: 7 days. - Q: Which role does a Backup vault's identity need to back up blobs? A: Storage Account Backup Contributor on the storage account. ## Back Up and Restore, Backup Reports and Alerts URL: https://azure.msdevbuild.com/az-104/monitor-and-backup/backup-restore-reports-and-alerts/ With a VM protected, you can run Backup now with a retain until date, and every backup or restore shows up in Backup Jobs. To restore a VM you pick a recovery point and then Create new virtual machine, Restore disks (then build the VM yourself), or Replace existing (swap the disks of the existing VM). File Recovery mounts a recovery point through a script so you copy back single files. Deleted backup data stays in soft delete for 14 days and can be undeleted. Backup reports need the vault's logs sent to a Log Analytics workspace in resource-specific mode, and Azure Monitor alerts (built-in for job failures and security events, or metric alerts on backup health) notify people through action groups. Key points: - Backup now creates an on-demand recovery point with a retain-until date. Backup Jobs shows progress and failures. - VM restore options - Create new VM, Restore disks, Replace existing, plus Cross Region Restore with GRS. - File Recovery mounts a recovery point through a script; unmount when done (it closes itself after 12 hours). - Soft delete keeps deleted backup data 14 days by default; undelete, then resume protection. - Backup reports need vault diagnostic settings to a Log Analytics workspace in resource-specific mode. Alerts use built-in Azure Monitor alerts or metric alerts, plus action groups. Exam tips: - "Recover one file without affecting the VM" = File Recovery. "Change the VM size or network before it starts" = Restore disks. - "Restore over the existing VM, same name and IP" = Replace existing. - "Report on backups across vaults" = diagnostic settings to Log Analytics (resource-specific) + Backup reports. Quick Q&A: - Q: What do you set when you run Backup now? A: A retain-until date for the on-demand recovery point. - Q: Which restore option keeps the VM's name but swaps its disks? A: Replace existing. - Q: Where must the staging storage account for a VM restore be? A: In the same region as the vault. - Q: Which diagnostic setting mode do Backup reports need? A: Resource-specific. - Q: How long can you undelete backup data by default? A: 14 days. ## Azure Site Recovery: Replicate and Fail Over to Another Region URL: https://azure.msdevbuild.com/az-104/monitor-and-backup/site-recovery-failover/ Azure Site Recovery (ASR) continuously replicates an Azure VM's disks to another region, so you can run the VM there within minutes if the primary region fails. You enable it from the VM's Disaster recovery blade, and the Recovery Services vault must be in the target region. A replication policy sets how long recovery points are kept (up to 15 days) and how often app-consistent snapshots are taken; crash-consistent points come every 5 minutes. You rehearse with a test failover into an isolated virtual network and then clean it up. In a real outage you fail over (choosing a recovery point such as Latest processed for the lowest RTO), commit, then re-protect to replicate back, and later fail back the same way. Key points: - ASR replicates Azure VMs to another region continuously. Enable it on the VM's Disaster recovery blade or from the vault. - The Recovery Services vault is in the target region. A cache storage account is in the source region. The Mobility service extension is installed for you. - Replication policy - recovery point retention up to 15 days, app-consistent snapshot frequency. Crash-consistent points every 5 minutes. - Test failover goes to an isolated VNet and doesn't affect replication; always clean it up. - Real failover - choose a recovery point, fail over, commit, re-protect, then fail back and re-protect again. Recovery plans fail over groups of VMs in order. Exam tips: - "Validate the DR plan without affecting production" = test failover to an isolated VNet, then cleanup. - "Lowest RTO" recovery point = Latest processed. "Lowest RPO" = Latest. - Order after an outage - failover → commit → re-protect → (fail back → re-protect). Quick Q&A: - Q: Which region must the Recovery Services vault be in for Azure-to-Azure replication? A: The target (secondary) region. - Q: How often are crash-consistent recovery points created? A: About every 5 minutes. - Q: What's the maximum recovery point retention in a replication policy? A: 15 days. - Q: What do you run after a test failover? A: Cleanup test failover. - Q: What makes the failed-over VM replicate back to the original region? A: Re-protect. ## Owner vs Contributor vs Reader vs User Access Administrator URL: https://azure.msdevbuild.com/az-104/compare/owner-vs-contributor-vs-user-access-administrator/ Owner manages everything and grants access. Contributor manages everything but can't grant access (its NotActions remove Microsoft.Authorization writes). Reader only views. User Access Administrator manages access only, not resources. All four apply at the scope you assign and everything below it. - Exam tip: "Can deploy but can't give anyone access" = Contributor. "Can grant access but not create VMs" = User Access Administrator. If a question says the user "only has Reader", check for inherited and group assignments before you agree. ## Azure RBAC Roles vs Microsoft Entra Roles URL: https://azure.msdevbuild.com/az-104/compare/azure-roles-vs-entra-roles/ Azure roles (Owner, Contributor, Reader…) control Azure resources and are assigned at management group, subscription, resource group or resource scope. Microsoft Entra roles (Global Administrator, User Administrator…) control the directory: users, groups, licenses and apps. They're separate systems, linked only by Global Administrator elevation. - Exam tip: "Create users and reset passwords" = User Administrator (Entra). "Manage VMs in one resource group" = an Azure role at that resource group. Global Administrator alone can't manage Azure resources until it elevates. ## Storage Account Key vs SAS vs Microsoft Entra ID URL: https://azure.msdevbuild.com/az-104/compare/storage-account-key-vs-sas-vs-entra-id/ An account key is the master key to all data in the account. A SAS grants limited permissions on limited resources until an expiry time. Microsoft Entra ID authorizes users and managed identities with RBAC data roles, with no secret to leak, and is the option Microsoft recommends. - Exam tip: "Revoke without changing keys" = stored access policy. "No keys at all" = Microsoft Entra ID or a user delegation SAS. "Read data with --auth-mode login fails for an Owner" = assign a Storage Blob Data role. ## Blob Soft Delete vs Versioning vs Snapshots URL: https://azure.msdevbuild.com/az-104/compare/blob-soft-delete-vs-versioning-vs-snapshots/ Soft delete keeps deleted blobs and containers for 1 to 365 days. Versioning automatically keeps every previous version of a blob when it changes. Snapshots are read-only copies you take on purpose, of a blob or of a whole Azure Files share. Microsoft recommends soft delete plus versioning for blobs. - Exam tip: "Recover an overwritten blob automatically" = versioning. "Recover a deleted file share" = share soft delete. "Recover files deleted from a share last Tuesday" = share snapshot. Object replication and point-in-time restore both need versioning. ## ARM JSON Templates vs Bicep Files URL: https://azure.msdevbuild.com/az-104/compare/arm-json-vs-bicep-templates/ Bicep and ARM JSON deploy exactly the same resources: the CLI compiles Bicep to ARM JSON before Resource Manager runs it. Bicep is shorter and easier to read and modify. ARM JSON is what the portal exports and what older automation uses. Convert JSON to Bicep with az bicep decompile and Bicep to JSON with az bicep build. - Exam tip: Both are read on the exam. Find the parameters, check allowedValues or @allowed, and remember the default deployment mode is Incremental. "Convert an ARM template to Bicep" = az bicep decompile. ## Availability Set vs Availability Zones vs Flexible Scale Set URL: https://azure.msdevbuild.com/az-104/compare/availability-set-vs-zones-vs-flexible-scale-set/ An availability set spreads VMs across fault domains and update domains in one datacenter (99.95% SLA with two or more VMs). Availability zones place VMs in separate datacenters in a region (99.99%). A Flexible scale set runs identical VMs across zones or fault domains and adds autoscale. - Exam tip: "Survive a datacenter failure" = zones. "Survive a rack failure or host maintenance" = availability set. "Add VMs automatically when CPU is high" = scale set + autoscale. A VM can't be in a set and a zone at the same time. ## Container Instances vs Container Apps vs App Service URL: https://azure.msdevbuild.com/az-104/compare/container-instances-vs-container-apps-vs-app-service/ Use Container Instances for a single container group that runs on demand with fixed CPU and memory, like a nightly job. Use Container Apps for container APIs and workers that must scale on traffic or events, down to zero. Use App Service for web apps that need deployment slots, custom domains with TLS and backups on a plan you scale yourself. - Exam tip: “Must scale automatically on HTTP requests and scale to zero” = Container Apps. “Runs once and stops, billed per second” = Container Instances with OnFailure or Never. “Swap staging and production” = App Service slots (Standard or higher). ## App Service scale up vs scale out URL: https://azure.msdevbuild.com/az-104/compare/app-service-scale-up-vs-scale-out/ Scale up changes the plan’s tier or size: more CPU and memory per instance and more features (autoscale, slots, zone redundancy). Scale out changes the number of instances, by hand or with autoscale rules from Standard up. Both act on the App Service plan, so every app on it is affected. - Exam tip: “Add instances when CPU is high” = scale out with an autoscale rule, which needs Standard or higher. “Need deployment slots on a Basic plan” = scale up to Standard first. ## Service Endpoint vs Private Endpoint URL: https://azure.msdevbuild.com/az-104/compare/service-endpoint-vs-private-endpoint/ A service endpoint keeps the PaaS service on its public IP but sends your subnet's traffic over the Microsoft backbone, so the service firewall can allow that subnet. It's free and quick. A private endpoint gives one service instance a private IP in your VNet through Private Link, works from peered VNets and on-premises, and needs a privatelink private DNS zone. - Exam tip: "Reach the storage account from on-premises over the VPN without the internet" = private endpoint. "Allow only Subnet1 through the storage firewall" = service endpoint. "Private endpoint created but the name still resolves to a public IP" = fix the private DNS zone or its VNet link. ## NSG vs ASG vs Route Table URL: https://azure.msdevbuild.com/az-104/compare/nsg-vs-asg-vs-udr/ An NSG decides whether a flow is allowed or denied, attached to a subnet or NIC. An application security group is a label for NICs that NSG rules can target instead of IP addresses. A route table with user-defined routes decides where packets go next, attached to subnets. - Exam tip: Blocked port = NSG (IP flow verify). Packet goes the wrong way or nowhere = route (next hop). "Rules shouldn't change when new web VMs are added" = ASG. ## Recovery Services Vault vs Backup Vault URL: https://azure.msdevbuild.com/az-104/compare/recovery-services-vault-vs-backup-vault/ Use a Recovery Services vault for Azure VMs, SQL Server and SAP HANA in VMs, Azure Files, the MARS agent and Azure Site Recovery. Use a Backup vault for Azure Blobs, managed disks, Azure Database for PostgreSQL flexible server and AKS. Both use backup policies, soft delete and Azure Monitor alerts. - Exam tip: “Back up blob containers” or “back up a managed disk on its own” = Backup vault. “Back up an Azure VM” or “replicate a VM to another region” = Recovery Services vault. ## Azure Backup vs Azure Site Recovery URL: https://azure.msdevbuild.com/az-104/compare/azure-backup-vs-site-recovery/ Azure Backup keeps point-in-time copies for days to years, so you can restore files, disks or VMs after deletion, corruption or ransomware. Azure Site Recovery continuously replicates VMs to another region and fails over in minutes when a region is down. Most production VMs use both. - Exam tip: “Recover a file deleted last week” = Backup. “Minimise downtime if the primary region fails” = Site Recovery. Ransomware that encrypted data hours ago also replicates, so you still need Backup. ## Microsoft Entra ID URL: https://azure.msdevbuild.com/az-104/services/microsoft-entra-id/ The directory behind every Azure sign-in: users, groups (assigned or dynamic), licenses, guests and self-service password reset, run from the portal or the Entra admin center. ## Azure role-based access control (RBAC) URL: https://azure.msdevbuild.com/az-104/services/azure-rbac/ Grants a security principal a role definition at a scope. Assignments inherit downward and add up; deny assignments override them. ## Azure Policy URL: https://azure.msdevbuild.com/az-104/services/azure-policy/ Evaluates resources against rules and applies an effect: Deny, Audit, Modify, Append, DeployIfNotExists and more. Remediation tasks fix existing resources. ## Resource locks URL: https://azure.msdevbuild.com/az-104/services/resource-locks/ CanNotDelete or ReadOnly locks on a subscription, resource group or resource. They apply to every user and are inherited by child resources. ## Management groups URL: https://azure.msdevbuild.com/az-104/services/management-groups/ Containers above subscriptions, up to six levels below the Tenant Root Group. Policy and role assignments made here flow to every subscription below. ## Microsoft Cost Management URL: https://azure.msdevbuild.com/az-104/services/cost-management/ Cost analysis, budgets with actual and forecasted alerts, anomaly alerts and exports, alongside Azure Advisor's cost recommendations. ## Azure Storage accounts URL: https://azure.msdevbuild.com/az-104/services/azure-storage-accounts/ One namespace for Blob, Files, Queue and Table storage, with one redundancy setting, one firewall, one set of keys and one encryption configuration. ## Azure Blob Storage URL: https://azure.msdevbuild.com/az-104/services/azure-blob-storage/ Containers of blobs with Hot, Cool, Cold and Archive tiers, lifecycle rules, soft delete, versioning and object replication. ## Azure Files URL: https://azure.msdevbuild.com/az-104/services/azure-files/ SMB and NFS file shares in the cloud, with identity-based access through AD DS, Microsoft Entra Domain Services or Microsoft Entra Kerberos, share snapshots and share soft delete. ## AzCopy URL: https://azure.msdevbuild.com/az-104/services/azcopy/ A free command-line tool that copies and syncs data to, from and between storage accounts in parallel, authenticating with Microsoft Entra ID or SAS tokens. ## Azure Storage Explorer URL: https://azure.msdevbuild.com/az-104/services/azure-storage-explorer/ A free app for Windows, macOS and Linux to browse and manage blobs, files, queues and tables. Connects with Microsoft Entra ID, keys, connection strings or SAS URLs and uses AzCopy for transfers. ## ARM templates and Bicep URL: https://azure.msdevbuild.com/az-104/services/bicep-and-arm-templates/ Declarative files that describe Azure resources. Azure Resource Manager deploys them the same way every time, with what-if previews, Incremental or Complete modes and a deployment history per resource group. ## Azure Virtual Machines (admin view) URL: https://azure.msdevbuild.com/az-104/services/vms-for-administrators/ Windows and Linux VMs you size, resize, attach disks to, encrypt, move and spread across zones or availability sets. You manage the OS; Azure runs the hosts. ## Managed disks and encryption at host URL: https://azure.msdevbuild.com/az-104/services/azure-managed-disks-admin/ OS and data disks stored in Azure Storage: Ultra Disk, Premium SSD v2, Premium SSD, Standard SSD and Standard HDD. Encrypted at rest by default; encryption at host also covers the temp disk and caches. ## Azure Resource Mover URL: https://azure.msdevbuild.com/az-104/services/azure-resource-mover/ Moves VMs and related resources to another Azure region: you add resources, validate dependencies, prepare, initiate the move, then commit or discard and delete the source. ## Virtual Machine Scale Sets (Flexible) URL: https://azure.msdevbuild.com/az-104/services/vmss-flexible/ A group of VMs that Azure spreads across zones or fault domains and grows or shrinks with autoscale rules. Flexible orchestration is the recommended mode for new scale sets. ## Azure Container Registry URL: https://azure.msdevbuild.com/az-104/services/azure-container-registry/ A private registry for container images and artifacts. Tiers decide included storage and features: Premium adds geo-replication and private endpoints. Access is controlled with Microsoft Entra ID roles such as AcrPull. ## Azure Container Instances URL: https://azure.msdevbuild.com/az-104/services/azure-container-instances/ Runs a container group in seconds without a VM or cluster. You set CPU, memory and a restart policy (Always, OnFailure, Never) when you create it, and pay per second while it runs. It doesn’t autoscale. ## Azure Container Apps URL: https://azure.msdevbuild.com/az-104/services/azure-container-apps/ Runs container apps in a shared environment without managing Kubernetes. Each replica gets a CPU and memory pair; scale rules on HTTP, TCP or events add replicas between min and max, down to zero. ## Azure App Service URL: https://azure.msdevbuild.com/az-104/services/azure-app-service-admin/ Hosts web apps and APIs on an App Service plan, a set of VMs whose tier decides instances and features: custom domains and TLS from Basic, autoscale and slots from Standard, more slots and zone redundancy on Premium v3. ## Azure Virtual Network URL: https://azure.msdevbuild.com/az-104/services/virtual-network/ Your private address space in one Azure region, split into subnets, joined to other VNets by peering and to on-premises by VPN or ExpressRoute. ## Network Security Groups (NSG) URL: https://azure.msdevbuild.com/az-104/services/network-security-groups/ Stateful allow and deny rules by source, destination, port and protocol, attached to subnets or NICs, with application security groups as rule targets. ## Azure Bastion URL: https://azure.msdevbuild.com/az-104/services/azure-bastion/ A managed jump host in AzureBastionSubnet that opens RDP and SSH to VMs on their private IPs from the portal or a native client. ## Azure Private Link (private endpoints) URL: https://azure.msdevbuild.com/az-104/services/azure-private-link/ Private endpoints give a PaaS resource a private IP in your VNet, reachable from peered VNets and on-premises, with name resolution through a privatelink private DNS zone. ## Azure DNS URL: https://azure.msdevbuild.com/az-104/services/azure-dns/ Hosts public DNS zones on Azure name servers and private DNS zones that answer only linked VNets, with alias records and VM auto-registration. ## Azure Load Balancer URL: https://azure.msdevbuild.com/az-104/services/load-balancer/ A layer 4 (TCP/UDP) load balancer with a public or internal frontend, backend pools, health probes and load-balancing rules. Standard SKU is zone-redundant and secure by default. ## Azure Monitor (metrics, logs and alerts) URL: https://azure.msdevbuild.com/az-104/services/azure-monitor-admin/ Collects platform metrics automatically, routes resource logs and the activity log with diagnostic settings, and raises alerts through action groups, with alert processing rules for maintenance windows. ## Log Analytics workspace and KQL URL: https://azure.msdevbuild.com/az-104/services/log-analytics-kql-admin/ A workspace that stores logs in tables (AzureDiagnostics, StorageBlobLogs, AzureActivity, InsightsMetrics) and answers questions with Kusto Query Language. ## Azure Network Watcher URL: https://azure.msdevbuild.com/az-104/services/network-watcher/ Regional network monitoring and diagnostics: topology, Connection monitor, IP flow verify, NSG diagnostics, next hop, packet capture, VPN troubleshoot and flow logs. ## Recovery Services vault (Azure Backup) URL: https://azure.msdevbuild.com/az-104/services/recovery-services-vault/ Holds backups of Azure VMs, SQL and SAP HANA in VMs, Azure Files and on-premises files, plus Site Recovery replication. Policies set the schedule and retention; soft delete protects against deletion. ## Backup vault (Azure Backup) URL: https://azure.msdevbuild.com/az-104/services/backup-vault/ The newer Azure Backup vault for Azure Blobs, managed disks, PostgreSQL flexible server and AKS. Uses backup policies and backup instances; the vault’s managed identity needs a role on each data source. ## Azure Site Recovery URL: https://azure.msdevbuild.com/az-104/services/azure-site-recovery/ Replicates VMs continuously to another Azure region (or from on-premises), with test failover, failover, commit, re-protect and failback, plus recovery plans for multi-VM apps. # AI-200: Azure AI Cloud Developer Associate answers Course: https://azure.msdevbuild.com/ai-200/ · Skills measured as of October 7, 2026: https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/ai-200 # AI-200 Domain 1: Develop containerized solutions on Azure (20–25%) ## Containers for AI Apps: App Service, Container Apps or AKS? URL: https://azure.msdevbuild.com/ai-200/containers/containers-for-ai-apps/ A container image packs your AI app and everything it needs (Python, packages, code) into one versioned unit that you store in Azure Container Registry. You then pick a host: App Service for a single web API with the least work, Azure Container Apps for serverless microservices with revisions and KEDA scaling to zero, or Azure Kubernetes Service (AKS) when you need full Kubernetes control through manifest files. Key points: - A container image bundles code, runtime and dependencies; a registry such as ACR stores and versions it. - App Service runs one container as a web app; app settings become environment variables. - Container Apps runs serverless containers in an environment, with revisions, traffic splitting and KEDA scaling (including to zero). - AKS gives full Kubernetes; you describe workloads in YAML manifests and apply them with kubectl. - All three can pull from ACR with a managed identity that has the AcrPull role. Exam tips: - "Scale to zero on queue messages" or "split traffic between versions" = Azure Container Apps. - "Full control of the Kubernetes API" or "apply Deployment and Service manifests" = AKS. - "Run one containerised web app with deployment slots and minimal management" = App Service. Quick Q&A: - Q: Which Azure service stores private container images? A: Azure Container Registry. - Q: Which host scales to zero with KEDA rules? A: Azure Container Apps. - Q: Which host uses YAML manifests and kubectl? A: Azure Kubernetes Service (AKS). - Q: How does App Service pass settings to a container? A: App settings are injected as environment variables. - Q: Which role lets a managed identity pull from ACR? A: AcrPull. ## Azure Container Registry: Store, Tag and Manage Images URL: https://azure.msdevbuild.com/ai-200/containers/azure-container-registry/ Azure Container Registry (ACR) is a private registry at myreg.azurecr.io (your registry name plus azurecr.io) that stores images in repositories. A tag (ragapi:1.4.0) is a movable label, while a digest (sha256:…) identifies the exact image and never changes. You push with docker push after az acr login, copy public images in with az acr import, list versions with az acr repository show-tags, and let hosts pull with a managed identity that has the AcrPull role. Key points: - Image names are login-server/repository:tag, for example myreg.azurecr.io/ragapi:1.4.0. - Tags move; digests don't. Use unique tags (version, build ID, commit) for deployments. - az acr login signs Docker in with your Entra ID identity; the admin account is off by default. - az acr import copies images between registries without a local Docker engine. - az acr repository show-tags lists versions; --write-enabled false locks an image. - SKUs are Basic, Standard and Premium; Premium adds geo-replication and private endpoints. Exam tips: - "Copy an image from Docker Hub or another registry without Docker installed" = az acr import. - "List all versions of an image" = az acr repository show-tags. - "Replicate the registry to several regions" = Premium SKU with geo-replication. Quick Q&A: - Q: What is the login server format for ACR? A: registry-name.azurecr.io, for example myreg.azurecr.io. - Q: Which value always identifies the exact same image? A: The digest (sha256). - Q: Which command signs Docker in to ACR? A: az acr login --name myreg - Q: Which SKU supports geo-replication? A: Premium. - Q: Which flag on az acr repository update locks an image against overwrite? A: --write-enabled false ## Build and Run Images with ACR Tasks URL: https://azure.msdevbuild.com/ai-200/containers/acr-tasks/ ACR Tasks build, test and patch container images inside Azure Container Registry, so you don't need Docker on your machine. A quick task (az acr build) sends your folder to Azure and pushes the result. An automated task (az acr task create with --context and --file) runs on a source code commit, a base image update or a schedule. A multi-step task uses a YAML file to build, run and push several images in one go. Key points: - az acr build is a quick task that builds in the cloud and pushes to the registry. - az acr task create saves a task; --context is the git repo or folder and --file is the Dockerfile or YAML. - Triggers are source code commit, base image update and schedule (cron, UTC). - Multi-step tasks use a YAML file with build, cmd and push steps; run them with az acr run -f. - {{.Run.ID}} gives every build a unique tag. Exam tips: - "Build without Docker installed" = az acr build. - "Rebuild when the OS or runtime base image is patched" = base image update trigger. - "Build, test and push in one definition" = multi-step task (YAML). Quick Q&A: - Q: Which command runs a quick task? A: az acr build - Q: Which parameter of az acr task create points at the git repository? A: --context - Q: Name the three task trigger types. A: Source code commit, base image update and schedule. - Q: How do you run a multi-step YAML task once? A: az acr run -f acr-task.yaml - Q: Which placeholder gives every build a unique tag? A: {{.Run.ID}} ## Run a Container on App Service with Settings and Secrets URL: https://azure.msdevbuild.com/ai-200/containers/app-service-containers/ App Service can run a custom container image from Azure Container Registry, pulled with a managed identity that has AcrPull. Every app setting you add (az webapp config appsettings set) reaches the container as an environment variable, and WEBSITES_PORT tells App Service which port your app listens on. For secrets, make the setting a Key Vault reference, @Microsoft.KeyVault(SecretUri=...), so the value is read from Key Vault at run time and never stored in the image or the setting. Key points: - App Service runs one custom container image per app from ACR or another registry. - App settings become environment variables inside the container; changing them restarts the app. - Set WEBSITES_PORT when the container listens on a port other than the one App Service detects. - Key Vault references use @Microsoft.KeyVault(SecretUri=...) or @Microsoft.KeyVault(VaultName=...;SecretName=...). - The app's managed identity needs AcrPull on the registry and secret read access on the vault. Exam tips: - "Supply configuration to the container without rebuilding" = app settings (environment variables). - "Store the secret in Key Vault and expose it as an environment variable" = Key Vault reference plus managed identity. - "Container listens on a non-default port" = WEBSITES_PORT. Quick Q&A: - Q: How do app settings reach a container on App Service? A: As environment variables. - Q: Which command adds app settings from the CLI? A: az webapp config appsettings set - Q: What is the format of a Key Vault reference? A: @Microsoft.KeyVault(SecretUri=https://kv-rag.vault.azure.net/secrets/search-key/) - Q: Which role lets the web app pull from ACR? A: AcrPull. - Q: Which app setting sets the container port? A: WEBSITES_PORT ## Azure Container Apps: Environments and Revisions URL: https://azure.msdevbuild.com/ai-200/containers/azure-container-apps/ Azure Container Apps runs containers without a cluster to manage. Apps live in an environment, a secure boundary with its own network and Log Analytics workspace. Any change to the app's template (image, environment variables, scale rules) creates a new revision, an immutable snapshot. In multiple revision mode you split traffic between revisions with az containerapp ingress traffic set, for example 80% to the old one and 20% to the new one, then roll forward or back. Key points: - An environment groups container apps with a shared network and Log Analytics workspace. - az containerapp create or up deploys an image; --env-vars, --secrets and secretref connect configuration. - Revision-scope changes (template) create a revision; application-scope changes (ingress, secrets) don't. - Single revision mode is the default; set multiple with az containerapp revision set-mode. - Split traffic with az containerapp ingress traffic set --revision-weight. Exam tips: - "Gradually move users to a new version" = multiple revision mode + traffic splitting. - "Only other apps in the environment can call it" = internal ingress. - "Roll back instantly" = send 100% of traffic to the previous revision. Quick Q&A: - Q: What creates a new revision? A: A change to the template, such as image, env vars or scale rules. - Q: What is the default revision mode? A: Single. - Q: Which command switches to multiple revision mode? A: az containerapp revision set-mode --mode multiple - Q: Which command splits traffic between revisions? A: az containerapp ingress traffic set - Q: How does an env var read a container app secret? A: With secretref, for example SEARCH_KEY=secretref:search-key. ## Event-Driven Scaling with KEDA in Container Apps URL: https://azure.msdevbuild.com/ai-200/containers/keda-scaling/ Azure Container Apps scales with KEDA (Kubernetes Event-driven Autoscaling). You add a scale rule: HTTP (concurrent requests), TCP, or a custom KEDA scaler such as azure-servicebus with metadata like queueName and messageCount. Replicas grow as the queue fills, up to --max-replicas, and shrink after the queue empties, down to --min-replicas, which can be 0. The scaler authenticates with a secret (--scale-rule-auth) or a managed identity. Key points: - Container Apps scale rules are HTTP, TCP or custom (any KEDA scaler, such as azure-servicebus or azure-queue). - Replicas stay between --min-replicas and --max-replicas; min 0 allows scale to zero. - Service Bus rules use metadata queueName (or topicName and subscriptionName), namespace and messageCount. - Scalers authenticate with a secret via --scale-rule-auth or with a managed identity. - CPU and memory rules can't scale to zero. Exam tips: - "Scale based on the number of messages in a queue" = custom KEDA rule (azure-servicebus or azure-queue). - "No cost when idle" = --min-replicas 0. - "Avoid cold starts" = min replicas 1 or more. Quick Q&A: - Q: Which autoscaler does Container Apps use? A: KEDA. - Q: Which scale rule type watches a Service Bus queue? A: azure-servicebus (a custom rule). - Q: Which setting allows scale to zero? A: --min-replicas 0 - Q: Which parameter passes a secret to the scaler? A: --scale-rule-auth - Q: Can a CPU rule scale to zero? A: No. ## Deploy to AKS with Manifest Files URL: https://azure.msdevbuild.com/ai-200/containers/aks-manifests/ On Azure Kubernetes Service (AKS) you describe your app in YAML manifest files and send them with kubectl apply -f. A Deployment says which image to run, how many replicas, which resources, probes and environment variables. A Service gives the pods a stable address (ClusterIP inside the cluster, LoadBalancer for a public IP). Kubernetes keeps the real state equal to what you declared, so a dead pod is replaced and a new image tag rolls out pod by pod. Key points: - az aks get-credentials writes kubeconfig so kubectl can talk to the cluster. - --attach-acr gives the kubelet identity AcrPull on the registry. - A Deployment declares image, replicas, resources, probes and env; its selector must match the pod template labels. - A Service selects pods by label; ClusterIP is internal, LoadBalancer gets an Azure public IP. - kubectl apply -f creates or updates; rollout status and rollout undo manage releases. Exam tips: - "Expose the app with a public IP" = Service type: LoadBalancer. - "Reachable only inside the cluster" = ClusterIP (the default). - "Pull from ACR without image pull secrets" = az aks update --attach-acr. Quick Q&A: - Q: Which command sends a manifest to the cluster? A: kubectl apply -f ragapi.yaml - Q: Which object keeps N copies of a pod running? A: A Deployment. - Q: What is the default Service type? A: ClusterIP. - Q: How do you roll back a Deployment? A: kubectl rollout undo deployment/ragapi - Q: Which command gets AKS credentials for kubectl? A: az aks get-credentials ## Troubleshoot AKS and Container Apps: Logs, Events, Connectivity URL: https://azure.msdevbuild.com/ai-200/containers/troubleshoot-containers/ When a container app breaks, check three places. Logs show what your app said: kubectl logs (add --previous for a crashed container) on AKS, az containerapp logs show --type console on Container Apps. Events show what the platform did: kubectl describe pod and kubectl get events on AKS, --type system logs on Container Apps. Connectivity checks (Service endpoints, ports, DNS, ingress) show whether traffic can reach the app. In Log Analytics, Container Apps logs land in ContainerAppConsoleLogs_CL and ContainerAppSystemLogs_CL. Key points: - Logs (what the app said), events (what the platform did), connectivity (can traffic reach it). - kubectl logs --previous reads the last crashed container; kubectl describe pod shows its events. - ImagePullBackOff = wrong image or no AcrPull; check with az aks check-acr. - Container Apps --type system is platform logs, --type console is your app's output. - Log Analytics tables are ContainerAppConsoleLogs_CL and ContainerAppSystemLogs_CL; AKS container logs go to ContainerLogV2. Exam tips: - "Why can't the pod start or pull its image?" = kubectl describe pod / kubectl get events. - "See output from the container that just crashed" = kubectl logs --previous. - "Query Container Apps app output in Log Analytics" = ContainerAppConsoleLogs_CL. Quick Q&A: - Q: Which kubectl flag shows logs from the previous container instance? A: --previous - Q: Which command shows a pod's events? A: kubectl describe pod - Q: Which Container Apps log type shows platform messages? A: system - Q: Which table holds Container Apps console output? A: ContainerAppConsoleLogs_CL - Q: What does an empty Service endpoints list usually mean? A: The Service selector doesn't match any ready pod. # AI-200 Domain 2: Develop AI solutions by using Azure data management services (30–35%) ## Embeddings and Vector Search for Developers URL: https://azure.msdevbuild.com/ai-200/data-for-ai/embeddings-and-vector-search/ An embedding is a list of numbers (a vector) that an embedding model such as text-embedding-3-small (1,536 dimensions) produces from text, so that texts with similar meaning get vectors that sit close together. Vector search embeds the user's question with the same model, then asks the database for the stored vectors with the smallest distance (usually cosine), and an index such as DiskANN or HNSW makes that fast. On Azure you can store and search vectors in Cosmos DB for NoSQL, PostgreSQL with pgvector and Azure Managed Redis. Key points: - An embedding model turns text into a vector; similar meaning gives close vectors. - text-embedding-3-small returns 1,536 dimensions by default; text-embedding-3-large returns 3,072. - Embed documents and questions with the same model and the same dimensions. - Cosine is the usual distance function; dot product and Euclidean are the others. - Exact kNN gives full recall; ANN indexes (DiskANN, HNSW, IVFFlat) trade a little recall for speed. - Chunk long documents so each vector holds one focused idea. Exam tips: - "Find items with similar meaning, not matching words" = vector search over embeddings. - "Vectors from model A, queries from model B" is always wrong; re-embed with one model. - "Lower latency on millions of vectors, small recall loss acceptable" = an ANN index (DiskANN or HNSW). Quick Q&A: - Q: How many dimensions does text-embedding-3-small return by default? A: 1,536. - Q: Which distance function is the usual default for text embeddings? A: Cosine. - Q: What do you call search that checks every vector? A: Exact k-nearest neighbours (kNN), or brute force. - Q: Name two ANN index algorithms. A: DiskANN and HNSW (IVFFlat is another). - Q: Why split documents into chunks before embedding? A: So each vector represents one focused passage, which makes retrieval more precise. ## Cosmos DB for NoSQL: Connect with the SDK and Query URL: https://azure.msdevbuild.com/ai-200/data-for-ai/cosmos-db-sdk-and-queries/ You connect with the azure-cosmos Python SDK by creating a CosmosClient from the account endpoint and DefaultAzureCredential, then getting a database and a container. Write items with upsert_item, fetch one item cheaply with a point read (read_item with its id and partition key, about 1 RU for a 1 KB item), and use query_items with parameters for everything else. Pass partition_key to keep a query inside one logical partition; a query without it fans out across partitions and costs more Request Units. Key points: - CosmosClient(url, credential=DefaultAzureCredential()) signs in with Microsoft Entra ID. - Entra ID data access needs a Cosmos DB data plane role such as Cosmos DB Built-in Data Contributor. - A container's partition key is set at creation and can't be changed. - upsert_item inserts or replaces; read_item is a point read by id and partition key. - query_items takes parameters; partition_key keeps it in one partition. - The RU charge is in the x-ms-request-charge response header. Exam tips: - "Retrieve one item with the lowest RU cost" = read_item with id and partition key. - "Query must not scan every partition" = filter on the partition key or pass partition_key. - "Check the RU cost of an operation" = the x-ms-request-charge header. Quick Q&A: - Q: Which Python package is the Cosmos DB SDK? A: azure-cosmos. - Q: Which method inserts an item or replaces it if it already exists? A: upsert_item. - Q: What two values does a point read need? A: The item id and its partition key value. - Q: Roughly how many RUs does a point read of a 1 KB item cost? A: About 1 RU. - Q: Which header holds the RU charge? A: x-ms-request-charge. ## Cosmos DB: RUs, Indexing Policies and Consistency Levels URL: https://azure.msdevbuild.com/ai-200/data-for-ai/cosmos-db-rus-indexing-consistency/ Every Cosmos DB operation costs Request Units (RUs): about 1 RU for a 1 KB point read, more for writes and queries. By default the indexing policy indexes every property, which makes filters cheap but writes expensive, so you exclude paths you never filter on (such as a big /embedding/* array) and add composite indexes for multi-property ORDER BY. Consistency levels trade freshness for cost and latency: Strong, Bounded staleness, Session (the default), Consistent prefix and Eventual. Strong and Bounded staleness reads cost about twice the RUs of the weaker levels. Key points: - A point read of 1 KB costs about 1 RU; writes and queries cost more. - The default indexing policy indexes every path (/*) and excludes /_etag. - Exclude large paths you never filter on (like /embedding/*) to cut write RUs. - ORDER BY on several properties needs a composite index. - Five consistency levels: Strong, Bounded staleness, Session (default), Consistent prefix, Eventual. - Strong and Bounded staleness reads cost about twice the RUs; clients can only weaken the default. Exam tips: - "Reduce RU cost of writes" = exclude paths in the indexing policy. - "ORDER BY two properties returns an error" = add a composite index. - "User must always see their own updates, lowest cost" = Session. - "Reads must never return stale data, any region" = Strong. Quick Q&A: - Q: What's the default consistency level? A: Session. - Q: Which property paths does the default indexing policy include? A: All of them (/*), except the system /_etag path. - Q: What index does ORDER BY on two properties need? A: A composite index. - Q: Which two consistency levels make reads cost about twice as many RUs? A: Strong and Bounded staleness. - Q: What HTTP status means you ran out of RU/s? A: 429 Too Many Requests. ## Vector Search in Cosmos DB for NoSQL URL: https://azure.msdevbuild.com/ai-200/data-for-ai/cosmos-db-vector-search/ To search vectors in Azure Cosmos DB for NoSQL, you create the container with a vector embedding policy (the vector path, dataType such as float32, dimensions such as 1536, and distanceFunction such as cosine) and add a vector index (flat, quantizedFlat or diskANN) to its indexing policy, excluding the vector path from the range index. You store each embedding inside the item, then run SELECT TOP k ... ORDER BY VectorDistance(c.embedding, @q) to get the most similar items first. Key points: - Vector embedding policy: path, dataType (float32, float16, int8, uint8), dimensions (default 1536), distanceFunction (cosine default, dotproduct, euclidean). - Vector index types: flat (exact, max 505 dims), quantizedFlat (max 4,096), diskANN (approximate, max 4,096). - quantizedFlat and diskANN need at least 1,000 vectors before the index is used; below that it's a full scan. - Put the vector path in excludedPaths and in vectorIndexes. - Query with SELECT TOP k ... ORDER BY VectorDistance(c.embedding, @q); most similar comes first. - Vector search can't be turned off on a container once enabled, and isn't supported in shared-throughput databases. Exam tips: - "Exact results, small vectors (≤ 505 dimensions)" = flat. - "Millions of vectors, lowest latency and RU cost" = diskANN. - "Rank items by similarity" = ORDER BY VectorDistance(...) with TOP N. Quick Q&A: - Q: What's the maximum dimension count for a flat vector index? A: 505. - Q: Which function ranks items by similarity in a Cosmos DB query? A: VectorDistance. - Q: What's the default distance function in the vector policy? A: Cosine. - Q: Which index type is approximate? A: diskANN. - Q: Where does the vector path go in the indexing policy besides vectorIndexes? A: excludedPaths. ## Cosmos DB Change Feed Processor URL: https://azure.msdevbuild.com/ai-200/data-for-ai/cosmos-db-change-feed/ The change feed is a persistent, ordered record of the inserts and updates in a Cosmos DB container. The change feed processor reads it for you: it watches the monitored container, hands each batch of changes to your delegate, and stores its progress in a lease container, so several instances can share the work and resume after a crash with at-least-once delivery. The default latest version mode doesn't capture deletes; all versions and deletes mode does. An Azure Functions Cosmos DB trigger gives you the same pattern without hosting the processor yourself. Key points: - Four parts: monitored container, lease container, compute instance, delegate. - The processor gives at-least-once delivery; make the delegate idempotent. - By default it starts from now; WithStartTime reads from a time or from the beginning (latest version mode only). - Latest version mode records creates and updates, not deletes. - All versions and deletes mode records deletes too and needs continuous backup. - The processor library is in .NET and Java; Python uses the Functions trigger or the pull model. Exam tips: - "Track progress and share work across instances" = the lease container. - "Process changes without managing hosts" = Azure Functions Cosmos DB trigger. - "Must capture deleted items" = all versions and deletes mode (or a soft-delete flag plus TTL). Quick Q&A: - Q: What stores the processor's checkpoints? A: The lease container. - Q: What is the code that handles each batch called? A: The delegate. - Q: Does latest version mode record deletes? A: No. - Q: What delivery guarantee does the change feed processor give? A: At least once. - Q: Which builder method sets where a new processor starts reading? A: WithStartTime. ## Connect to and Query Azure Database for PostgreSQL URL: https://azure.msdevbuild.com/ai-200/data-for-ai/postgresql-connect-and-query/ You connect to Azure Database for PostgreSQL flexible server from Python with psycopg (version 3). Instead of a stored password, you get a Microsoft Entra token from DefaultAzureCredential for the scope https://ossrdbms-aad.database.windows.net/.default and pass it as the password, with your Entra user or managed identity name as the user and sslmode=require. Then you run SQL with parameterised queries (%s placeholders), never by pasting user input into the SQL string. Key points: - Use psycopg 3 (import psycopg) with host, dbname, user, password, port 5432 and sslmode=require. - For passwordless sign-in, DefaultAzureCredential gets a token for https://ossrdbms-aad.database.windows.net/.default and you pass it as the password. - An Entra admin on the server must create a database role for each Entra user, group or managed identity. - Always use %s placeholders and pass values as a tuple or dict. Never format user input into SQL. - Use with blocks so connections commit or roll back and close cleanly. Exam tips: - "Connect without storing a password" = Microsoft Entra token from DefaultAzureCredential used as the password. - "Token scope for PostgreSQL" = https://ossrdbms-aad.database.windows.net/.default. - "Prevent SQL injection" = parameterised queries (%s placeholders), not string formatting. Quick Q&A: - Q: Which Python driver is used in the samples for PostgreSQL? A: psycopg (version 3). - Q: What scope do you request a token for? A: https://ossrdbms-aad.database.windows.net/.default - Q: Where does the token go in the connection? A: In the password field. - Q: Which setting forces TLS? A: sslmode=require. - Q: What's the default PostgreSQL port? A: 5432 (PgBouncer uses 6432). ## PostgreSQL Schemas, Data Types and Indexes URL: https://azure.msdevbuild.com/ai-200/data-for-ai/postgresql-schema-and-indexes/ A good AI table in Azure Database for PostgreSQL keeps each fact in the right type: uuid or bigint keys, text for chunks, jsonb for flexible metadata, timestamptz for times and vector(1536) (from the pgvector extension) for embeddings. You first add vector to the azure.extensions server parameter, then run CREATE EXTENSION vector. Then you index for the way you query: B-tree for equality and ranges, GIN for jsonb, and HNSW or IVFFlat for vectors, and you prove it works with EXPLAIN ANALYZE. Key points: - Allow-list vector in azure.extensions, then CREATE EXTENSION vector in each database that needs it. - Pick types on purpose: uuid or bigint keys, text, jsonb, timestamptz, vector(n) or halfvec(n). - B-tree for equality, ranges and sorting. GIN for jsonb and full-text. HNSW or IVFFlat for vectors. - A vector index only helps when its operator class matches the query operator, such as vector_cosine_ops with <=>. - EXPLAIN ANALYZE shows Seq Scan versus Index Scan and the real time taken. Exam tips: - "Extension not allowed" error = add it to azure.extensions first. - "Fast filter on a jsonb attribute" = GIN index. - "Confirm the index is used" = EXPLAIN ANALYZE. Quick Q&A: - Q: What's the extension name for pgvector? A: vector - Q: Which index type suits jsonb containment queries? A: GIN - Q: Which type stores a time with its time zone? A: timestamptz - Q: What's the maximum number of dimensions you can index with a vector column using HNSW or IVFFlat? A: 2,000. - Q: Which operator class goes with cosine distance? A: vector_cosine_ops ## pgvector Similarity Search and RAG with Metadata Filters URL: https://azure.msdevbuild.com/ai-200/data-for-ai/pgvector-rag/ With pgvector you store each chunk's embedding in a vector(1536) column, embed the user's question with the same model, and run ORDER BY embedding <=> %s LIMIT 5 to get the closest chunks by cosine distance. For retrieval-augmented generation (RAG) you add a metadata filter in the WHERE clause (such as tenant_id or lang), send those chunks to the model as context, and tell it to answer only from them. An HNSW index keeps the search fast, and hnsw.ef_search trades speed for recall. Key points: - Embed documents and questions with the same model and dimensions. - Nearest chunks: ORDER BY embedding <=> query_vector LIMIT k (smaller distance = closer). - Put metadata filters (tenant_id, lang, product) in the WHERE clause of the same query. - Send only the retrieved chunks to the model, with an instruction to answer from them and cite sources. - hnsw.ef_search raises recall at the cost of speed. Filtered searches may need a higher value or iterative scans. Exam tips: - "Return the 5 most similar items" = ORDER BY embedding <=> @q LIMIT 5. - "Only return documents for the signed-in customer" = metadata filter in the WHERE clause. - "Improve recall of an HNSW search" = increase hnsw.ef_search. Quick Q&A: - Q: Which operator returns cosine distance? A: <=> - Q: Does a smaller cosine distance mean more or less similar? A: More similar. - Q: Where should a tenant filter go? A: In the SQL WHERE clause, alongside the vector ORDER BY. - Q: What's the default hnsw.ef_search? A: 40 - Q: What does the R in RAG stand for? A: Retrieval. ## Size and Tune PostgreSQL for Vector Workloads URL: https://azure.msdevbuild.com/ai-200/data-for-ai/postgresql-performance-for-vectors/ Vector search on Azure Database for PostgreSQL is hungry for memory: HNSW indexes are fastest when they fit in RAM, so busy vector workloads usually run on General Purpose or Memory Optimized compute, not Burstable. Raise maintenance_work_mem for index builds, tune m and ef_construction (HNSW) or lists (IVFFlat, built after loading data), and size IOPS with Premium SSD v2. For throughput, reuse connections with psycopg_pool in the app and the built-in PgBouncer on port 6432. Key points: - Burstable is for dev and test; vector workloads belong on General Purpose or Memory Optimized. - HNSW is fastest when the index fits in memory. Memory Optimized gives the most RAM per vCore. - Load data first, then build the index, with a higher maintenance_work_mem and parallel workers. - HNSW: m (16), ef_construction (64), hnsw.ef_search (40). IVFFlat: lists at build, ivfflat.probes at query. - Premium SSD v2 lets you set IOPS and throughput separately from capacity. - Reuse connections with psycopg_pool; share them across instances with PgBouncer on port 6432. Exam tips: - "Speed up CREATE INDEX for HNSW" = raise maintenance_work_mem (and parallel maintenance workers). - "Too many connections from many app instances" = built-in PgBouncer, port 6432. - "Raise IOPS without buying more storage" = Premium SSD v2. Quick Q&A: - Q: Which port does the built-in PgBouncer use? A: 6432 - Q: Which server parameter turns PgBouncer on? A: pgbouncer.enabled - Q: When should you build an IVFFlat index? A: After the data is loaded. - Q: Which tier gives the most memory per vCore? A: Memory Optimized. - Q: What's the default HNSW m value? A: 16 ## Azure Managed Redis: Caching, Expiration and Invalidation URL: https://azure.msdevbuild.com/ai-200/data-for-ai/redis-caching/ Azure Managed Redis is an in-memory store based on Redis Enterprise. With cache-aside, your app checks Redis first; on a miss it reads the database (or calls the model), then saves the result with a TTL using SET key value EX 300. When the source data changes, you invalidate by deleting the key so the next read loads fresh data. In Python you connect with redis-py on port 10000 over TLS, using Microsoft Entra ID through redis-entraid (or an access key if enabled), and an eviction policy decides what goes when memory fills. Key points: - Azure Managed Redis is based on Redis Enterprise; tiers are Memory Optimized, Balanced, Compute Optimized and Flash Optimized. - Connect on port 10000 with TLS. Entra ID via redis-entraid is preferred; access keys are disabled by default on new caches. - Cache-aside: GET, on a miss load from the source, then SET with EX seconds. - TTL commands: SET ... EX, EXPIRE, TTL (-1 means no expiry, -2 means gone). - Invalidate on write by deleting the key after the database commit. - The eviction policy decides what Redis removes when memory is full. Exam tips: - "Load into the cache only when requested" = cache-aside. - "Expire a cached value after 5 minutes" = SET key value EX 300 (or EXPIRE key 300). - "Users see stale data after an update" = invalidate (DEL) on write. Quick Q&A: - Q: Which port does Azure Managed Redis use? A: 10000 - Q: What scope does the Entra token use? A: https://redis.azure.com/.default - Q: What does TTL return for a key with no expiry? A: -1 - Q: Which command removes a key? A: DEL - Q: Which Azure Managed Redis tier moves cold data to NVMe storage? A: Flash Optimized. ## Vector Search with Azure Managed Redis URL: https://azure.msdevbuild.com/ai-200/data-for-ai/redis-vector-search/ Azure Managed Redis does vector search through the RediSearch module, which you must select when you create the cache (with Redis 7.4) along with the Enterprise or Non-clustered clustering policy. You store embeddings as FLOAT32 bytes in hashes, create an index with FT.CREATE ... SCHEMA ... VECTOR HNSW (or FLAT) TYPE FLOAT32 DIM 1536 DISTANCE_METRIC COSINE, and query with FT.SEARCH using =>[KNN 3 @embedding $vec] and DIALECT 2. A common use is a semantic cache that returns a saved answer when a new question means the same thing. Key points: - RediSearch must be selected at cache creation (Redis 7.4) and needs Enterprise or Non-clustered clustering, not OSS. - Store vectors as raw FLOAT32 bytes, for example numpy.astype(np.float32).tobytes(). - FT.CREATE idx ON HASH PREFIX 1 doc: SCHEMA ... embedding VECTOR HNSW 6 TYPE FLOAT32 DIM 1536 DISTANCE_METRIC COSINE - FT.SEARCH idx "*=>[KNN 3 @embedding $vec AS score]" PARAMS 2 vec SORTBY score DIALECT 2 - FLAT is exact and fine for small sets; HNSW is approximate and fast for large ones. - A semantic cache reuses a response when the cosine distance is under a threshold. Exam tips: - "Vector index in Azure Managed Redis" = RediSearch module, chosen at creation. - "Exact search over a small set" = FLAT; "fast approximate search at scale" = HNSW. - "Return the 5 nearest vectors" = FT.SEARCH with KNN 5 and DIALECT 2. Quick Q&A: - Q: Which command creates a vector index? A: FT.CREATE - Q: Which data type do vectors use in the index definition here? A: FLOAT32 - Q: Which clustering policy can't be used with RediSearch? A: OSS - Q: In COSINE distance results, is a lower score closer or further? A: Closer. - Q: Which query dialect does KNN need? A: DIALECT 2 # AI-200 Domain 3: Connect to and consume Azure services (20–25%) ## Azure Service Bus Queues: Send, Receive and Settle Messages URL: https://azure.msdevbuild.com/ai-200/messaging-and-functions/service-bus-queues/ An Azure Service Bus queue holds messages until one receiver takes each one, so a web API can hand slow AI work to a background worker. In Python you create a ServiceBusClient with the fully qualified namespace and DefaultAzureCredential, send a ServiceBusMessage with a queue sender, and read with a queue receiver. In the default peek-lock mode the receiver must complete the message when it's done; abandon makes it available again, and after the max delivery count (10 by default) it goes to the dead-letter queue. Key points: - A queue delivers each message to one receiver (competing consumers). - ServiceBusClient(fully_qualified_namespace, DefaultAzureCredential()) then get_queue_sender and get_queue_receiver. - Peek-lock is the default. Settle with complete_message, abandon_message, dead_letter_message or defer_message. - Lock duration defaults to 1 minute (max 5). Max delivery count defaults to 10, then the message is dead-lettered. - Sessions give ordered handling per session ID. Duplicate detection drops repeats by MessageId. Basic tier has queues only. Exam tips: - "Message must not be lost if the worker fails" = peek-lock, then complete after processing. - "Process messages for one customer in order" = sessions (session ID). - "Basic tier" can't do topics, sessions or duplicate detection. Quick Q&A: - Q: What is the default receive mode in Service Bus? A: Peek-lock. - Q: What is the default max delivery count? A: 10. - Q: What is the default lock duration? A: 1 minute (maximum 5 minutes). - Q: Which method makes a locked message available again straight away? A: abandon_message. - Q: Which role does a worker need to read messages with Entra ID? A: Azure Service Bus Data Receiver. ## Service Bus Topics, Subscriptions and Dead-Letter Queues URL: https://azure.msdevbuild.com/ai-200/messaging-and-functions/service-bus-topics-and-dead-letters/ A Service Bus topic is a queue with many readers: every subscription gets its own copy of each message, and filters decide which messages a subscription keeps. SQL filters use a condition such as tier = 'premium'; correlation filters match exact property values and are cheaper to evaluate. Messages that can't be processed land in the dead-letter queue (DLQ), a sub-queue you read in Python with sub_queue=ServiceBusSubQueue.DEAD_LETTER, fix and resubmit. Key points: - A topic copies each message to every subscription whose rules match. - New subscriptions start with the $Default true filter. Replace it with a SQL or correlation filter. - Correlation filters match exact values and are cheaper. SQL filters allow conditions like > and LIKE. - Every queue and subscription has its own DLQ, read with sub_queue=ServiceBusSubQueue.DEAD_LETTER. - Dead-lettered messages stay until you receive and complete them. Resubmit by sending a new copy. Exam tips: - "Each service needs its own copy of the message" = topic + subscriptions. - "Match exact property values, best performance" = correlation filter. - "Read messages that failed max delivery count" = dead-letter sub-queue. Quick Q&A: - Q: Which tier doesn't support topics? A: Basic. - Q: What filter does a new subscription start with? A: The $Default rule, a true filter (1=1). - Q: Which filter type is cheapest to evaluate? A: Correlation filter. - Q: Which Python argument opens a dead-letter queue? A: sub_queue=ServiceBusSubQueue.DEAD_LETTER. - Q: What reason is stamped when the delivery limit is hit? A: MaxDeliveryCountExceeded. ## Azure Event Grid: Custom Events, Filters and Retries URL: https://azure.msdevbuild.com/ai-200/messaging-and-functions/event-grid/ Azure Event Grid pushes small events ("a blob was created", "a summary is ready") to handlers such as Azure Functions, webhooks and Service Bus. You publish your own events to a custom topic with EventGridPublisherClient, using the CloudEvents 1.0 or Event Grid schema. An event subscription picks the handler and uses filters (event types, subject begins with / ends with, advanced filters on data). If delivery fails, Event Grid retries with backoff, by default up to 30 attempts within 1,440 minutes (24 hours), then drops the event unless dead-lettering to a storage container is set. Key points: - Event Grid pushes events to handlers. Topics receive events, event subscriptions route them. - Custom topics take your own events. Use CloudEvents 1.0 (recommended) or the Event Grid schema. - Publish in Python with EventGridPublisherClient and DefaultAzureCredential (EventGrid Data Sender role) or the topic key. - Filters - event types, subject begins with / ends with, advanced filters on data fields. - Retry defaults - 30 attempts, 1,440-minute TTL, exponential backoff. Dead-letter to a blob container. Exam tips: - "React when a .jpg lands in a container" = Event Grid with a subject ends with filter. - "Don't lose events the handler couldn't accept" = dead-letter to a storage blob container. - "Stop retrying sooner" = lower max delivery attempts or event time to live on the subscription. Quick Q&A: - Q: What is the default maximum number of delivery attempts? A: 30. - Q: What is the default event time to live for retries? A: 1,440 minutes (24 hours). - Q: Where are dead-lettered events stored? A: In an Azure Storage blob container. - Q: Which Python class publishes events to a custom topic? A: EventGridPublisherClient. - Q: Which two schemas can a custom topic accept (besides a custom input schema)? A: Event Grid schema and CloudEvents 1.0. ## Azure Functions: Serverless APIs with Triggers and Bindings URL: https://azure.msdevbuild.com/ai-200/messaging-and-functions/functions-triggers-and-bindings/ An Azure Function is a small piece of code that runs when its trigger fires: an HTTP request, a Service Bus message, an Event Grid event, a timer or a Cosmos DB change. Each function has exactly one trigger. Bindings connect inputs and outputs without client code, so an HTTP API can drop a message on a queue through an output binding. In the Python v2 programming model you write everything in function_app.py with decorators on func.FunctionApp(), such as @app.route, @app.service_bus_queue_trigger and @app.service_bus_queue_output. Key points: - One trigger per function. Bindings (input and output) are optional and can be many. - Python v2 - function_app.py, app = func.FunctionApp(), decorators per function. No function.json. - HTTP - @app.route with auth levels ANONYMOUS, FUNCTION, ADMIN. - Service Bus trigger completes on success and abandons on exception. Output bindings use func.Out[...] and .set(). - The connection argument names an app setting, not the connection string itself. Exam tips: - "Start when a message lands in a queue" = Service Bus queue trigger. - "Write to a queue without SDK code" = output binding. - "Run every 15 minutes" = timer trigger, 0 */15 * * * *. Quick Q&A: - Q: How many triggers can a function have? A: Exactly one. - Q: Which file holds Python v2 functions? A: function_app.py. - Q: Which decorator defines an HTTP-triggered function? A: @app.route. - Q: Which auth level needs no key? A: ANONYMOUS. - Q: How do you set an output binding value in Python? A: Call .set() on the func.Out parameter. ## Configure and Deploy Function Apps URL: https://azure.msdevbuild.com/ai-200/messaging-and-functions/deploy-function-apps/ A function app is configured in three places: host.json (runtime behaviour for every function, deployed with the code), app settings (environment variables in Azure, replacing local.settings.json, which never gets deployed) and the hosting plan. Flex Consumption is the recommended serverless plan: it scales to zero, adds always-ready instances if you want no cold starts and supports virtual networks. You create one with az functionapp create --flexconsumption-location and deploy with func azure functionapp publish or a zip deploy. Identity-based connections replace connection strings with settings like ServiceBusConnection__fullyQualifiedNamespace. Key points: - host.json = runtime settings for all functions, deployed with the code. local.settings.json = local only, never published. - In Azure, settings are app settings (environment variables). Use Key Vault references for secrets. - Identity-based connections - __fullyQualifiedNamespace plus a data role on the managed identity. - Plans - Flex Consumption (recommended serverless), Premium (always warm, slots), Dedicated (App Service plan), Consumption (legacy). - Deploy with func azure functionapp publish , zip deploy or CI/CD. Python builds remotely on Linux. Exam tips: - "Serverless, scale to zero, VNet, avoid cold starts" = Flex Consumption with always-ready instances. - "No secrets for the Service Bus trigger" = managed identity + __fullyQualifiedNamespace. - "Change a setting for every function in the app" = host.json. Quick Q&A: - Q: Which file is never deployed to Azure? A: local.settings.json. - Q: Which file sets runtime behaviour for all functions? A: host.json. - Q: Which suffix makes a Service Bus connection identity-based? A: __fullyQualifiedNamespace. - Q: Which az functionapp create option makes a Flex Consumption app? A: --flexconsumption-location. - Q: Which Core Tools command deploys a project? A: func azure functionapp publish . # AI-200 Domain 4: Secure, monitor, and troubleshoot Azure solutions (20–25%) ## Azure Key Vault: Retrieve and Rotate Secrets URL: https://azure.msdevbuild.com/ai-200/secure-and-monitor/key-vault-secrets/ Azure Key Vault keeps secrets such as API keys and connection strings out of your code. Your app signs in with a managed identity through DefaultAzureCredential, needs the Key Vault Secrets User role, and reads the value with SecretClient.get_secret(). Every set_secret() creates a new version, so rotation means writing a new version (often from a function triggered by the Event Grid SecretNearExpiry event) while apps that ask for the latest version pick it up without a redeploy. Key points: - Key Vault stores secrets, keys and certificates. Apps read secrets at run time. - SecretClient(vault_url, credential) with DefaultAzureCredential: get_secret, set_secret, list_properties_of_secret_versions. - Use Azure RBAC (Key Vault Secrets User for apps, Secrets Officer for rotation) rather than legacy access policies. - Every set_secret creates a new version. No version in the request returns the latest. - Soft delete is always on. Purge protection is optional and can't be switched off once enabled. - Secrets rotate through an expiry date, the Event Grid SecretNearExpiry event and a function. Keys have a built-in rotation policy. Exam tips: - "Read secrets with no credentials in code" = managed identity + DefaultAzureCredential. - "Least privilege for an app that only reads secrets" = Key Vault Secrets User. - "Run code when a secret is about to expire" = Event Grid SecretNearExpiry event. - "Stop anyone permanently deleting a secret early" = purge protection. Quick Q&A: - Q: Which Python package contains SecretClient? A: azure-keyvault-secrets. - Q: Which method lists every version of one secret? A: list_properties_of_secret_versions. - Q: Which role should a web app get to read secret values? A: Key Vault Secrets User. - Q: Can you turn off purge protection after enabling it? A: No. - Q: Which object has automatic rotation built in, keys or secrets? A: Keys, through a rotation policy. Secrets rotate with Event Grid and your own code. ## Azure App Configuration: Settings and Feature Flags URL: https://azure.msdevbuild.com/ai-200/secure-and-monitor/app-configuration/ Azure App Configuration is a central store for app settings. Each setting is a key-value with an optional label (such as prod) and a content type. Feature flags live under the .appconfig.featureflag/ prefix, and Key Vault references point at secrets without storing them. In Python, load() from azure-appconfiguration-provider reads the keys you select, trims prefixes, resolves Key Vault references with a keyvault_credential, and refreshes when a sentinel key changes. Key points: - Settings are key-values with optional labels and content types. - Feature flags are key-values under .appconfig.featureflag/. - Key Vault references store a secret URI. The app's provider fetches the secret with its own identity. - load(endpoint, credential, selects, trim_prefixes, refresh_on, refresh_interval, keyvault_credential) builds a dict-like config. - Dynamic refresh needs refresh_on (a sentinel key) plus calling config.refresh(). - Apps need App Configuration Data Reader; Data Owner can write. Exam tips: - "Same key, different value per environment" = labels. - "Turn a feature on without redeploying" = feature flag. - "Reload all settings only after a batch of changes" = sentinel key with refresh_on. - "Immutable set of settings for a release" = snapshot. Quick Q&A: - Q: Which prefix do feature flag keys use? A: .appconfig.featureflag/ - Q: Which Python package provides load()? A: azure-appconfiguration-provider. - Q: Which load() argument strips a prefix from key names? A: trim_prefixes. - Q: Which role lets an app read key-values? A: App Configuration Data Reader. - Q: Where does the secret value of a Key Vault reference live? A: In Key Vault. App Configuration stores only its URI. ## Distributed Tracing with OpenTelemetry URL: https://azure.msdevbuild.com/ai-200/secure-and-monitor/opentelemetry-tracing/ Distributed tracing follows one request across every service it touches. OpenTelemetry records each step as a span, and every span in the request shares one trace ID, passed between services in the W3C traceparent header. In Python, install azure-monitor-opentelemetry and call configure_azure_monitor() with your Application Insights connection string. Requests, Flask, FastAPI, Django, psycopg2 and Azure SDK calls are traced automatically, and tracer.start_as_current_span() adds your own spans. Key points: - A trace is one request; spans are its steps; all spans share a trace ID. - W3C traceparent carries the trace ID and parent span ID between services. - pip install azure-monitor-opentelemetry, then configure_azure_monitor() at startup. - The connection string comes from APPLICATIONINSIGHTS_CONNECTION_STRING or the connection_string argument. - Automatic instrumentation covers Flask, FastAPI, Django, requests, urllib, psycopg2 and Azure SDK calls. - Custom spans use trace.get_tracer(__name__) and start_as_current_span, with set_attribute and record_exception. - service.name sets the cloud role name on the application map. Exam tips: - "Send OpenTelemetry data from Python to Application Insights with least code" = azure-monitor-opentelemetry + configure_azure_monitor(). - "Correlate a request across services" = shared trace ID via traceparent. - "Add business detail to a span" = set_attribute. - "Name each service on the application map" = service.name resource attribute. Quick Q&A: - Q: Which environment variable holds the Application Insights connection string? A: APPLICATIONINSIGHTS_CONNECTION_STRING. - Q: Which method starts a custom span and makes it current? A: tracer.start_as_current_span(). - Q: Which header carries trace context over HTTP? A: traceparent (W3C Trace Context). - Q: Which Application Insights view shows every service and the calls between them? A: The application map. - Q: Which span method attaches an exception to the span? A: record_exception(). ## KQL Queries for Logs and Metrics URL: https://azure.msdevbuild.com/ai-200/secure-and-monitor/kql-logs-and-metrics/ Kusto Query Language (KQL) asks questions of the logs in Application Insights and Log Analytics. A query starts with a table and pipes rows through operators: where filters, project picks columns, extend adds columns, summarize aggregates (count(), avg(), percentile()) usually by bin(timestamp, 5m), and render timechart draws it. A log search alert runs a KQL query on a schedule; a metric alert watches a numeric metric in near real time. Key points: - A query starts with a table; each | passes rows to the next operator. - where filters, project picks columns, extend adds computed columns. - summarize aggregates with count(), avg(), percentile(), dcount() by one or more columns. - bin(timestamp, 5m) buckets time; render timechart draws a chart. - top, sort by (order by), take limit rows; join combines tables, often on operation_Id. - Classic names: requests, dependencies, exceptions, traces, customMetrics. Workspace names: AppRequests, AppDependencies, AppExceptions, AppTraces, AppMetrics. - Log search alerts run KQL on a schedule; metric alerts watch metrics in near real time. Exam tips: - "Count failures in 5-minute intervals" = summarize count() by bin(timestamp, 5m). - "Show a trend as a line chart" = render timechart. - "Combine a request with its exceptions" = join on operation_Id. - "Alert on a pattern in log data" = log search alert. Quick Q&A: - Q: Which operator adds a calculated column? A: extend. - Q: Which function returns the time 24 hours ago? A: ago(24h). - Q: Which table holds outgoing calls in classic Application Insights? A: dependencies. - Q: Which table holds Container Apps console output? A: ContainerAppConsoleLogs_CL. - Q: Which operator keeps only some columns? A: project. ## App Service vs Container Apps vs AKS URL: https://azure.msdevbuild.com/ai-200/compare/app-service-vs-container-apps-vs-aks/ Use App Service for one containerised web app or API with steady traffic. Use Azure Container Apps for microservices and queue-driven workers that need revisions, traffic splitting and KEDA scale to zero without running a cluster. Use AKS when you need the full Kubernetes API, custom node pools or GPUs. - Exam tip: “Scale to zero on Service Bus queue length without managing a cluster” = Container Apps + KEDA. “Apply Deployment and Service manifests” = AKS. “Supply environment variables from app settings” = App Service. ## Cosmos DB vs PostgreSQL vs Redis for Vector Search URL: https://azure.msdevbuild.com/ai-200/compare/cosmos-db-vs-postgresql-vs-redis-for-vectors/ Use Cosmos DB for NoSQL when vectors belong next to JSON app data such as chat history, with global scale and the change feed. Use PostgreSQL with pgvector when you want SQL, joins and metadata filters in the same query. Use Azure Managed Redis for in-memory speed, such as a semantic cache. - Exam tip: “Add vector search to an existing PostgreSQL app” = pgvector. “Detect new items to embed them” = Cosmos DB change feed. “Reuse answers to similar questions” = Redis semantic cache. ## Azure Service Bus vs Event Grid URL: https://azure.msdevbuild.com/ai-200/compare/service-bus-vs-event-grid/ Use Service Bus for messages: commands or jobs a back end must process reliably, with peek-lock, sessions and dead-letter queues. Use Event Grid for events: small notices that something happened, pushed to handlers with filters and retries. - Exam tip: “Messages that fail repeatedly must be kept for inspection” = Service Bus dead-letter queue. “Route only events whose subject ends with .pdf” = Event Grid subject filter. ## Key Vault vs App Configuration URL: https://azure.msdevbuild.com/ai-200/compare/key-vault-vs-app-configuration/ Key Vault stores secrets, keys and certificates, with versions, expiry dates and rotation (scheduled for keys, event-driven for secrets). App Configuration stores ordinary settings and feature flags with labels and live refresh. Put the secret in Key Vault and a Key Vault reference in App Configuration, so apps read everything from one place. - Exam tip: “Change a secret without redeploying” = a new Key Vault secret version (apps read the latest). “Turn a feature on without redeploying” = App Configuration feature flag. ## Azure Container Registry URL: https://azure.msdevbuild.com/ai-200/services/container-registry/ A private Docker/OCI registry in Azure. Stores container images and Helm charts in repositories, versioned by tags and digests, with ACR Tasks to build images in the cloud. ## App Service (custom containers) URL: https://azure.msdevbuild.com/ai-200/services/app-service-containers/ Runs one container image as a web app with TLS, custom domains, deployment slots and autoscale. App settings become environment variables and can be Key Vault references. ## Azure Container Apps URL: https://azure.msdevbuild.com/ai-200/services/container-apps/ Serverless containers built on Kubernetes, KEDA and Envoy, without managing a cluster. Apps live in an environment, every change makes a revision, traffic can be split, and KEDA rules scale to zero. ## Azure Kubernetes Service (AKS) URL: https://azure.msdevbuild.com/ai-200/services/aks/ Managed Kubernetes: Azure runs the control plane, you run node pools and deploy with YAML manifests (Deployments, Services, ConfigMaps, Secrets) through kubectl or Helm. ## Azure Cosmos DB for NoSQL URL: https://azure.msdevbuild.com/ai-200/services/cosmos-db-nosql/ A globally distributed JSON database. Items live in containers split by a partition key; every operation costs Request Units. Built-in vector search, change feed and five consistency levels. ## Azure Database for PostgreSQL (pgvector) URL: https://azure.msdevbuild.com/ai-200/services/postgresql-pgvector/ Managed PostgreSQL flexible server. Allow the pgvector extension to store embeddings in vector columns and search them with HNSW or IVFFlat indexes, right next to your relational data. ## Azure Managed Redis URL: https://azure.msdevbuild.com/ai-200/services/managed-redis/ Managed Redis Enterprise in memory: sub-millisecond reads for caching, sessions and rate limits, plus the RediSearch module for vector indexes and semantic caching. ## Azure Service Bus URL: https://azure.msdevbuild.com/ai-200/services/service-bus/ Reliable message broker with queues (one receiver per message) and topics with subscriptions (a copy per subscription). Peek-lock, sessions, duplicate detection and dead-letter queues. ## Azure Event Grid URL: https://azure.msdevbuild.com/ai-200/services/event-grid/ Pushes small events ("blob created", "secret near expiry", your own custom events) to handlers such as Functions, webhooks and queues, with filters, retries and dead-lettering. ## Azure Functions URL: https://azure.msdevbuild.com/ai-200/services/azure-functions-dev/ Event-driven code. Triggers (HTTP, Service Bus, Event Grid, timer, Cosmos DB) start a function; bindings read and write data without client code. Flex Consumption scales to zero. ## Azure Key Vault URL: https://azure.msdevbuild.com/ai-200/services/key-vault/ Stores secrets, keys and certificates, keeps every version, rotates keys on a schedule, raises Event Grid events when secrets near expiry, and is read by apps through managed identities and Azure RBAC. ## Azure App Configuration URL: https://azure.msdevbuild.com/ai-200/services/app-configuration/ Central key-value store with labels for environments, feature flags, snapshots and Key Vault references. Apps refresh settings at run time without a restart. ## Application Insights (OpenTelemetry) URL: https://azure.msdevbuild.com/ai-200/services/application-insights/ Azure Monitor’s application monitoring. The Azure Monitor OpenTelemetry Distro sends traces, metrics and logs; the application map and end-to-end transaction view follow one request across services. ## Log Analytics and KQL URL: https://azure.msdevbuild.com/ai-200/services/log-analytics/ Workspaces that store logs and metrics in tables, queried with Kusto Query Language. Log search alerts run KQL on a schedule. # AI-103: Azure AI Apps and Agents Developer Associate answers Course: https://azure.msdevbuild.com/ai-103/ · Skills measured as of April 16, 2026: https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/ai-103 # AI-103 Domain 1: Plan and manage an Azure AI solution (25–30%) ## Choose Models and Foundry Services for the Task URL: https://azure.msdevbuild.com/ai-103/plan-and-manage/choose-models-and-foundry-tools/ Match the job to the smallest thing that passes your tests. A reasoning model (such as o4-mini) plans multistep problems. A small language model (such as Phi-4-mini) handles narrow, high-volume work cheaply. A multimodal model accepts images or audio as well as text. A Foundry Tool such as Content Understanding, Azure Speech or Azure Language does a fixed job with no prompt work. For the service: Foundry Models for generating, Foundry IQ on Azure AI Search for grounding and vector search, Foundry Agent Service for agent workflows. Check the model card (inputs, context window, regions, deployment types) and then your own test set. Key points: - Smallest model that passes your tests wins. Move up only when it fails. - Reasoning models for multistep problems, small models for narrow high-volume work, multimodal models for images and audio. - Foundry Tools do fixed jobs (documents, speech, language, vision) with predictable output. - The model card shows inputs, context window, regions and deployment types. Check it before you design. - Foundry IQ on Azure AI Search grounds answers, and Foundry Agent Service runs agent workflows. Exam tips: - "Multistep planning or maths" = a reasoning model. - "Thousands of simple labels, low cost" = a small language model. - "Fields from invoices, forms, audio or video" = Content Understanding. - "Answer from our documents with citations" = Foundry IQ (Azure AI Search), not a bigger model. Quick Q&A: - Q: Which model type spends extra tokens thinking before it answers? A: A reasoning model. - Q: Which model type suits high-volume, narrow tasks at low cost? A: A small language model. - Q: Where do you check which inputs a model accepts? A: The model card in the catalog. - Q: Which Foundry Tool pulls structured fields from documents, audio and video? A: Content Understanding. - Q: What should decide between two models that both look suitable? A: Your own test set, plus cost and latency. ## Retrieval, Indexing and Agent Memory Choices URL: https://azure.msdevbuild.com/ai-103/plan-and-manage/retrieval-indexing-and-agent-memory/ Put curated company content in a Foundry IQ knowledge base on Azure AI Search, which can use keyword, vector, hybrid (best default) and semantic ranking, and agentic retrieval to plan sub-queries. Use file search for files a user uploads in a conversation. Use memory for what the agent learns about a person across sessions: user profile memory and chat summary memory, scoped per user. Plan indexing with indexers (pull) or the push API, chunking and integrated vectorization. Connect other tools with MCP, OpenAPI or functions. Knowledge answers "what's true here", memory answers "what do we know about this person". Key points: - Knowledge bases (Foundry IQ on Azure AI Search) hold curated company content and return cited passages. - Hybrid search with semantic ranking is the usual strong default. Pure vector misses exact terms. - File search covers files a user uploads in a conversation, without a separate index build. - Memory is per user (user profile and chat summary). Knowledge is shared and curated. - Index with an indexer for supported sources, or push through the API. Chunk, and enrich with metadata. Exam tips: - "Exact codes and meaning-based matches" = hybrid search. - "User uploads a file in chat" = file search. - "Remember preferences across sessions" = memory, scoped per user. - "Plans sub-queries over several sources" = agentic retrieval / a Foundry IQ knowledge base. Quick Q&A: - Q: Which search mode combines keyword and vector results? A: Hybrid search. - Q: Where do company policies belong for an agent? A: In a knowledge base on Azure AI Search (Foundry IQ). - Q: Which agent feature handles a user's own uploaded file? A: File search. - Q: What are the two kinds of memory most agents need? A: User profile memory and chat summary memory. - Q: What does chunking do? A: Splits documents into small pieces for indexing and retrieval. ## Foundry Infrastructure and Deployment Options URL: https://azure.msdevbuild.com/ai-103/plan-and-manage/foundry-infrastructure-and-deployment-options/ A Foundry resource (kind AIServices) holds model deployments, networking, keys and identity. Projects inside it separate teams and apps. For agents, the basic setup uses Microsoft-managed storage, and the standard setup keeps threads, files and vectors in your own Cosmos DB, Storage and Azure AI Search, so you control retention, encryption and networking. Deployment types: Global Standard (best throughput, data may be processed anywhere), Data Zone Standard (stays in the EU or US zone), Standard (one geography), Provisioned (reserved PTUs for steady latency) and Global Batch (cheaper, results within 24 hours). Key points: - One Foundry resource holds deployments, keys, networking and identity. Projects isolate teams and apps. - Standard agent setup puts agent data in your own Cosmos DB, Storage and AI Search. Basic uses managed storage. - Global = best capacity, any region. Data Zone = EU or US zone. Standard = one geography. - Provisioned gives reserved, predictable throughput. Global Batch is cheaper for jobs that can wait up to 24 hours. - Pick region by model availability, quota and where data must stay. Exam tips: - "Data must remain in the EU" = Data Zone (or regional Standard). - "Predictable latency at steady high volume" = Provisioned. - "Process a large file of requests overnight, lowest price" = Global Batch. - "Control where agent threads and files are stored" = standard agent setup. Quick Q&A: - Q: Which resource kind is a Foundry resource? A: AIServices (Microsoft.CognitiveServices/accounts). - Q: Where does the standard agent setup keep thread data? A: In your own Cosmos DB account. - Q: Which deployment type keeps processing inside the EU or US zone? A: Data Zone Standard (or Data Zone Provisioned). - Q: Which deployment type suits an overnight bulk job? A: Global Batch. - Q: What does a Foundry project give you inside a resource? A: A separate workspace with its own agents, files, connections and access. ## Configure Model and Agent Deployments URL: https://azure.msdevbuild.com/ai-103/plan-and-manage/configure-model-and-agent-deployments/ A model deployment pins a model name and version, a deployment type, capacity (tokens per minute, or PTUs), a version upgrade policy and a guardrail. Pin a version when behaviour must not change, and choose an upgrade option if you want newer defaults. An agent gets a new version every time its definition changes, so you can test one version, publish it, and roll back by pointing the endpoint at the earlier version. Apps call the project endpoint with the deployment name or the agent name, never the model name. Key points: - A deployment pins model, version, deployment type, capacity, upgrade policy and guardrail. - Code calls the deployment name, so the model behind it can change. - Pin the version when behaviour must be stable, and re-test before upgrading. - Every agent change creates a new version. The endpoint serves the version you choose, so rollback is a switch. - Capacity is per deployment, taken from the quota for that model and deployment type. Exam tips: - "Behaviour must not change until we approve" = pin the version, no auto upgrade. - "Undo a bad agent release quickly" = switch to the previous agent version. - "Apply content rules to a deployment" = attach a guardrail to it. Quick Q&A: - Q: What do you call from code, the deployment name or the model name? A: The deployment name. - Q: What creates a new agent version? A: Any change to its model, instructions or tools. - Q: How do you roll back an agent? A: Point the endpoint at the earlier version. - Q: Where does a deployment's capacity come from? A: The quota for that model and deployment type. - Q: Which setting stops a deployment moving to a new default model version? A: A pinned version with no auto upgrade. ## CI/CD for Foundry Projects URL: https://azure.msdevbuild.com/ai-103/plan-and-manage/foundry-cicd-pipelines/ Keep the agent definition, prompts, evaluation set and Bicep in Git. A pipeline (GitHub Actions or Azure DevOps) signs in with workload identity federation (an OIDC federated credential on a managed identity or app registration), so no secret is stored. It deploys the infrastructure with Bicep to a dev project, runs an evaluation on a fixed test set as a gate, and only then promotes the same definition to test and prod projects, each with its own RBAC and approvals. Prod secrets don't exist; access is by role. Key points: - Agents, prompts, evaluation data and Bicep live in Git and flow through pull requests. - Federated credentials let a pipeline sign in without a stored secret. - An evaluation step is a release gate. Failing scores stop promotion. - Promote the same tested definition dev, test, prod, with approvals and separate RBAC. - Use least-privilege roles for the pipeline identity at each environment. Exam tips: - "No secrets stored in the pipeline" = workload identity federation. - "Block a release that lowers quality" = an evaluation gate. - "Repeatable environments" = Bicep (infrastructure as code). Quick Q&A: - Q: What does a federated credential trust? A: A specific repository, branch or environment of GitHub or Azure DevOps. - Q: What does an evaluation gate do? A: Fails the pipeline when scores fall below the threshold. - Q: Which language describes Foundry infrastructure as code? A: Bicep. - Q: Should the same definition be promoted or rebuilt for prod? A: Promoted. - Q: Which GitHub permission lets a job request an OIDC token? A: id-token write. ## Quotas, Rate Limits, Scaling and Cost URL: https://azure.msdevbuild.com/ai-103/plan-and-manage/quotas-rate-limits-and-cost/ Quota is tokens per minute (TPM) for each model, deployment type and region in a subscription. Each deployment takes a slice of it, and requests per minute (RPM) come with the slice (about 6 RPM per 1,000 TPM for OpenAI models). Go past the limit and the service answers HTTP 429 with a retry-after header. Handle it with exponential backoff and retry, split load across deployments or regions, use Provisioned throughput for steady load with spillover to a standard deployment for peaks, and control spend with token budgets, cost alerts, smaller models, shorter prompts and caching. Key points: - Quota is TPM per model, deployment type and region. Deployments take slices of it. - RPM comes with the TPM slice. Exceeding either gives HTTP 429. - Handle 429 with retry-after, exponential backoff and jitter. - Provisioned throughput gives steady latency, and spillover sends peak overflow to a standard deployment. - Control cost with budgets and alerts, smaller models, shorter context and caching. Exam tips: - "Requests fail with 429 at peak" = backoff and retry, more capacity, or spillover. - "Steady, high volume, predictable latency" = Provisioned. - "Stop unexpected spend" = budget and alerts. - "Lower cost per request without changing the model" = shorter prompts and caching. Quick Q&A: - Q: What does the retry-after header tell you? A: How many seconds to wait before retrying. - Q: What is quota measured in? A: Tokens per minute. - Q: What does spillover do? A: Sends overflow from a provisioned deployment to a standard deployment. - Q: Which limits can trigger a 429? A: Either tokens per minute or requests per minute. - Q: Which retry pattern avoids retry storms? A: Exponential backoff with jitter. ## Monitor Models, Agents and Search Indexes URL: https://azure.msdevbuild.com/ai-103/plan-and-manage/monitor-models-agents-and-search/ Use Azure Monitor metrics for requests, tokens, latency and errors, Application Insights for traces of every model and tool call, and continuous evaluation to score a sample of live answers for groundedness, relevance and safety, which is how you spot drift. Alert on content filter and guardrail events. For Azure AI Search, watch indexer run history and failed items, document counts, search latency, throttled queries and relevance (click-through, evaluation with test queries). When groundedness falls, check the index before you blame the model. Key points: - Azure Monitor gives metrics, Application Insights gives traces, continuous evaluation gives quality scores. - Drift shows up as falling groundedness or relevance. Check recent changes first. - Alert on safety and guardrail events, error rates and latency. - For search, watch indexer failures, document counts, latency and throttled queries. - Replicas scale query load. Partitions scale storage and indexing. Exam tips: - "Detect quality decline in production" = continuous evaluation. - "See why an agent chose a tool" = traces in Application Insights. - "Search queries are throttled at peak" = add replicas. - "Documents missing from answers" = check indexer run history. Quick Q&A: - Q: Where do agent traces end up? A: In Application Insights. - Q: Which evaluator measures support from retrieved content? A: Groundedness. - Q: What do you add to a search service to handle more queries? A: Replicas. - Q: Where do you see which documents an indexer couldn't process? A: The indexer run history. - Q: What can cause drift besides the model? A: Changed prompts, new data and shifting user questions. ## Secure Foundry: Managed Identity, Keyless Auth and Private Networking URL: https://azure.msdevbuild.com/ai-103/plan-and-manage/secure-foundry-identity-and-networking/ Use Microsoft Entra ID instead of keys. Give the app a managed identity and assign it the Foundry User role on the resource or project (least privilege), then disable local (key) authentication so a leaked key is useless. Close the front door with public network access: Disabled and add a private endpoint in your virtual network, backed by a private DNS zone. Use role policies (RBAC and Azure Policy) to keep it that way. In code, use DefaultAzureCredential and a token provider, not an API key. Key points: - Use Entra ID tokens through DefaultAzureCredential. Managed identities remove stored secrets. - Assign Foundry User at the narrowest scope that works. Owner and Contributor aren't for app access. - disableLocalAuth true makes keys useless. Public network access Disabled closes the internet door. - A private endpoint needs private DNS to work. Link the zones to the VNet. - Enforce the setup with Azure Policy so a new resource can't be created with keys or public access. Exam tips: - "No secrets in code" = managed identity with DefaultAzureCredential. - "Prevent use of API keys" = disable local authentication. - "Only reachable from our VNet" = private endpoint and public access disabled. - "Least privilege to call a model" = a data-plane role such as Foundry User. Quick Q&A: - Q: Which setting turns off API keys on a Foundry resource? A: disableLocalAuth set to true. - Q: Which class gets tokens in Python without a stored secret? A: DefaultAzureCredential. - Q: What does a private endpoint give the resource inside your VNet? A: A private IP address. - Q: What makes the normal resource name resolve to that private IP? A: A linked private DNS zone. - Q: Which role lets an app use agents and models without managing the resource? A: Foundry User. ## Content Filters, Guardrails and Risk Detection URL: https://azure.msdevbuild.com/ai-103/plan-and-manage/content-safety-filters-and-guardrails/ A guardrail in Foundry is a set of controls. Each control combines a risk (hate, sexual, violence, self-harm, user prompt attacks, indirect attacks, protected material, PII), an intervention point (user input, tool call, tool response, output) and an action (annotate, or annotate and block), with a severity threshold for harm categories. Attach the guardrail to a model deployment or an agent. Prompt Shields catch jailbreaks (from the user) and indirect attacks (hidden in documents and tool results). Start strict, review what gets blocked, then tune, because a loose filter lets harm through and a tight one blocks real users. Key points: - A guardrail is a set of controls: risk, intervention point, action. - Intervention points are user input, tool call, tool response and output. - Prompt Shields cover jailbreaks and indirect attacks. Indirect attacks come from content, not the user. - Harm categories use severity thresholds. Actions are annotate or annotate and block. - Attach guardrails to deployments or agents, and test them against real attacks. Exam tips: - "Hidden instructions in a web page or document" = indirect attack (Prompt Shields). - "Check what a tool returned" = the tool response intervention point. - "See what would be caught without blocking" = annotate. - "Hide card numbers in answers" = a PII control at output. Quick Q&A: - Q: What are the four intervention points? A: User input, tool call, tool response and output. - Q: Which feature detects hidden instructions in documents? A: Prompt Shields indirect attack detection. - Q: Which action lets content through but records the detection? A: Annotate. - Q: Where is a guardrail attached? A: To a model deployment or an agent. - Q: What decides which harm levels are blocked? A: The severity threshold on the control. ## Safety Evaluations, Tracing and Auditing URL: https://azure.msdevbuild.com/ai-103/plan-and-manage/responsible-ai-evaluations-and-auditing/ Use evaluators to score answers: quality (groundedness, relevance, coherence), safety (violence, hate and unfairness, self-harm, sexual, protected material) and agent evaluators (intent resolution, tool call accuracy, task adherence). Run the AI red teaming agent to attack the app before launch and report an attack success rate. Evaluator results include a reason, which gives explanations. For auditing, turn on tracing to Application Insights so every model call, tool call and approval is recorded, keep provenance metadata (source documents, model version, who approved) and use approval workflows for risky actions. Key points: - Evaluators score quality, safety and agent behaviour, with a reason for each score. - Tool call accuracy and task adherence are agent evaluators. Groundedness needs context. - The AI red teaming agent attacks before launch and reports an attack success rate. - Tracing to Application Insights records model calls, tool calls and approvals for audit. - Provenance metadata and approval workflows make decisions explainable and accountable. Exam tips: - "Is the answer supported by the retrieved text" = groundedness. - "Did the agent call the right tool with the right arguments" = tool call accuracy. - "Attack the app before launch" = AI red teaming agent. - "Replay why a decision happened" = trace logs with approvals. Quick Q&A: - Q: Which evaluator measures support from retrieved context? A: Groundedness. - Q: Which tool automatically attacks an app before launch? A: The AI red teaming agent. - Q: Where are traces stored? A: In Application Insights. - Q: What does an agent evaluator like tool call accuracy check? A: Whether the right tools were called with the right arguments. - Q: What metric does a red team scan report? A: Attack success rate. ## Govern Agent Behavior: Oversight, Constraints and Tool Access URL: https://azure.msdevbuild.com/ai-103/plan-and-manage/govern-agent-behavior/ Govern an agent with least privilege. Give it only the allowed tools it needs, set risky tools to require approval from a human (human-in-the-loop), and choose an oversight mode: fully supervised, approval for sensitive actions, or autonomous for low-risk work. Add a tool call guardrail to check what the agent sends, give the agent its own identity with narrow RBAC, and limit where a hosted agent can connect with network egress controls. Log every decision in traces. Prompts alone aren't a control, because a model can be talked out of its instructions. Key points: - Least privilege for agents: allowed tools, narrow identity, narrow data access. - Risky or irreversible tools require human approval. Read-only tools usually don't. - Enforce constraints outside the prompt. Prompts guide, controls enforce. - Tool call and tool response guardrails check what goes out and what comes back. - Egress controls and agent identity limit where an agent can go and what it can reach. Exam tips: - "A person must confirm before the action runs" = require approval (human-in-the-loop). - "Agent may only use two tools" = allowed tools list. - "Prevent exfiltration to unknown sites" = network egress control. - "Audit what the agent can access" = a dedicated agent identity with RBAC. Quick Q&A: - Q: What does an allowed tools list enforce? A: The agent can call only the listed tools. - Q: Which kinds of action should require approval? A: Irreversible, costly or external actions such as refunds and deletions. - Q: Why give an agent its own identity? A: So its access can be granted, audited and revoked on its own. - Q: What do egress controls limit? A: Which hosts a hosted agent can connect to. - Q: Where should hard limits live, the prompt or the platform? A: The platform. # AI-103 Domain 2: Implement generative AI and agentic solutions (30–35%) ## Deploy and Call Models from Your App URL: https://azure.msdevbuild.com/ai-103/generative-ai-and-agents/deploy-and-consume-models/ You deploy a model in Microsoft Foundry, which creates a named deployment with a model version, a deployment type and capacity. Your app calls the deployment name, never the model name, through the project endpoint with AIProjectClient and DefaultAzureCredential. Choose a large or reasoning model for hard work, a small language model for cheap, high-volume work, a code model for programming tasks and a multimodal model when the input is an image or audio. Key points: - A deployment holds the model, version, deployment type and capacity. - Apps pass the deployment name in the model parameter. - The project endpoint plus DefaultAzureCredential gives keyless access. - Use small models for simple volume work and large or reasoning models for hard work. - Multimodal models accept images or audio as input. Exam tips: - "Cheapest model for simple, high-volume labelling" = small language model. - "404 DeploymentNotFound" = the app used a model name, not the deployment name. - "No secrets in code" = managed identity + DefaultAzureCredential. Quick Q&A: - Q: What does the app pass in the model parameter? A: The deployment name. - Q: What does AIProjectClient need? A: The project endpoint and a credential. - Q: Which model type reads photos? A: A multimodal model. - Q: Which model suits cheap simple labelling? A: A small language model. - Q: Which credential avoids keys? A: DefaultAzureCredential. ## Retrieval-Augmented Generation (RAG) in an App URL: https://azure.msdevbuild.com/ai-103/generative-ai-and-agents/rag-in-an-application/ Retrieval-augmented generation (RAG) looks up your own content first and then asks the model to answer from it. You chunk documents, embed each chunk, store them in an Azure AI Search index, then at query time run a hybrid (keyword plus vector) search, put the top chunks in the prompt and ask for citations. Use the same embedding model for the index and the query, and tell the model to say it doesn't know when the sources don't cover the question. Key points: - RAG retrieves first, adds the chunks to the prompt, then generates. - Chunk size and overlap decide what retrieval can return. - Hybrid search combines keyword and vector queries. - Query and index vectors must come from the same embedding model. - Tell the model to answer only from sources and to say it does not know. Exam tips: - "Answer from current company documents with citations" = RAG, not fine-tuning. - "Exact product codes and paraphrases" = hybrid search. - "Vectors do not match" = check the same embedding model for both sides. Quick Q&A: - Q: What are the two phases of RAG? A: Ingestion (chunk, embed, index) and query (retrieve, augment, generate). - Q: Which search type mixes keywords and vectors? A: Hybrid search. - Q: Which model embeds the query? A: The same one used for the index. - Q: What should the model say with no sources? A: That it does not know. - Q: What lets a user check a claim? A: A citation to the source chunk. ## Workflows, Tool-Augmented Flows and Multistep Reasoning URL: https://azure.msdevbuild.com/ai-103/generative-ai-and-agents/workflows-and-tool-augmented-flows/ A workflow breaks one AI task into small steps you control, for example classify, extract, call a tool, draft, verify. Use structured outputs with a strict JSON schema between steps, give tool calls timeouts, bounded retries and a fallback, and check the result before anything is sent. Low temperature suits classification and extraction, and a reasoning model suits the one step that needs deep planning. Key points: - Give each step one job and check between steps. - Structured outputs make step outputs parseable. - Bound tool calls with timeouts and retries, then fall back safely. - Verify the draft against the facts before sending. - Use low temperature for classification and extraction. Exam tips: - "Code must parse the model reply" = structured outputs with a strict schema. - "Tool times out, no wrong reply may be sent" = bounded retries and a fallback. - "Hard to diagnose failures" = split into steps. Quick Q&A: - Q: What does a strict schema guarantee? A: The exact keys and types in the reply. - Q: What should happen when a tool keeps failing? A: A safe fallback, such as human review. - Q: Which temperature suits classification? A: A low one, often 0. - Q: What is a verify step? A: A check of the draft against the facts before sending. - Q: Why split a prompt into steps? A: So each step can be tested and traced. ## Evaluate Models and Apps: Groundedness, Relevance and Safety URL: https://azure.msdevbuild.com/ai-103/generative-ai-and-agents/evaluate-models-and-apps/ Evaluators score your app's answers on a fixed test dataset. Groundedness checks whether the answer is supported by the context, which finds fabrications. Relevance checks the answer addresses the question, coherence and fluency check the writing, and safety evaluators check harm and attacks. AI-assisted evaluators need a judge model deployment. Run the same dataset before and after each change so you can compare. Key points: - Groundedness finds claims the context does not support. - Relevance checks the answer addresses the query. - Safety evaluators check harm categories and indirect attacks. - AI-assisted evaluators need a judge model deployment. - Compare changes on the same dataset. Exam tips: - "Answer contains details not in the documents" = groundedness. - "Accurate but answers a different question" = relevance. - "Hidden instructions in a document" = indirect attack evaluator. Quick Q&A: - Q: Which evaluator finds fabrications? A: Groundedness. - Q: Which checks that the answer fits the question? A: Relevance. - Q: What do AI-assisted evaluators need? A: A judge model deployment. - Q: Why use a fixed dataset? A: To compare versions fairly. - Q: Which evaluator checks injected instructions? A: Indirect attack. ## Foundry SDKs and Connectors URL: https://azure.msdevbuild.com/ai-103/generative-ai-and-agents/foundry-sdks-and-connectors/ The Foundry SDK (azure-ai-projects) opens a project with AIProjectClient, using the project endpoint and DefaultAzureCredential. From it you get an OpenAI-compatible client, the project's deployments, agents and connections. A connection stores the target and authentication of another resource, such as Azure AI Search or Application Insights, so your code reads it by name instead of holding a URL or a key. Key points: - AIProjectClient takes the project endpoint and a credential. - get_openai_client() returns the client for model calls. - Connections hold targets and authentication for other resources. - DefaultAzureCredential keeps the same code across environments. - Give the identity the roles it needs on every resource it touches. Exam tips: - "Read the Azure AI Search endpoint without hard-coding it" = project.connections.get(name). - "Same code on a laptop and in Azure with no key" = DefaultAzureCredential. - "Package that contains AIProjectClient" = azure-ai-projects. Quick Q&A: - Q: Which package has AIProjectClient? A: azure-ai-projects. - Q: What does project.get_openai_client() return? A: An OpenAI-compatible client. - Q: What does a connection store? A: A target and its authentication method. - Q: Which credential keeps code key-free? A: DefaultAzureCredential. - Q: Which value creates the client? A: The project endpoint. ## Design an Agent: Role, Goals, Threads and Tool Schemas URL: https://azure.msdevbuild.com/ai-103/generative-ai-and-agents/design-agents-roles-goals-and-tools/ An agent is a model plus instructions, tools and a conversation. The instructions carry its role, goal and rules, including what to do when information is missing. Each tool has a name, a description and a JSON schema, and a strict schema with required parameters makes the agent ask instead of invent. A conversation keeps the messages for one chat, and every change to the agent creates a new version you can roll back to. Key points: - Instructions define role, goal and rules, including behaviour on missing data. - Tool name, description and schema decide when and how it is called. - Strict schemas with required parameters stop invented arguments. - A conversation stores one chat; memory is a separate feature. - Versions make changes reversible. Exam tips: - "Agent invents arguments" = strict schema with required parameters and an instruction to ask. - "Remember the earlier messages in this chat" = conversation. - "Roll back a bad change" = agent versions. Quick Q&A: - Q: Where are role and goal defined? A: In the agent instructions. - Q: What does a function tool need? A: A name, a description and a JSON schema. - Q: What stores messages of one chat? A: A conversation. - Q: What is created on each agent change? A: A new version. - Q: What does strict do? A: It makes arguments match the schema exactly. ## Agents with Retrieval, Function Calling and Memory URL: https://azure.msdevbuild.com/ai-103/generative-ai-and-agents/agents-with-retrieval-functions-and-memory/ Give an agent the tool that matches the need. Function calling reaches live data and actions, where the model asks and your code runs the function. File search and Azure AI Search ground answers on documents. OpenAPI and MCP tools call outside services. Memory stores facts about a user, scoped per user, so a new conversation next week still knows the preference. The conversation only holds one chat. Key points: - Functions reach live data and actions; your code runs them. - File search grounds on files; Azure AI Search on a curated index. - OpenAPI and MCP tools reach outside services. - Memory carries user facts across conversations, scoped per user. - The conversation only covers the current chat. Exam tips: - "Live order status" = function calling. - "Documents users upload mid-chat" = file search. - "Remember preferences across sessions" = memory scoped to the user. Quick Q&A: - Q: Who executes a function call? A: The application code. - Q: Which tool searches uploaded files? A: File search. - Q: What keeps facts between conversations? A: Memory. - Q: What decides whose memory is used? A: The scope key. - Q: Which tool calls a REST API with a spec? A: An OpenAPI tool. ## Multi-Agent Orchestration URL: https://azure.msdevbuild.com/ai-103/generative-ai-and-agents/multi-agent-orchestration/ Multi-agent orchestration shares a job between specialist agents. In Microsoft Agent Framework you pick the pattern by who decides the next step: sequential (a fixed line), concurrent (parallel, then merged), handoff (the current agent passes control), group chat (a manager picks the next speaker) or Magentic (a manager plans and delegates open-ended work). Start with one agent and split only when instructions or tools start to collide. Key points: - Choose the pattern by who decides the next step. - Sequential is a fixed pipeline; concurrent fans out and merges. - Handoff moves control to the best agent for the conversation. - Group chat and Magentic use a manager and are the least predictable. - One agent with good tools is often enough. Exam tips: - "Fixed order, each builds on the last" = sequential. - "Same input to several agents, combine results" = concurrent. - "Manager plans and delegates open-ended work" = Magentic. Quick Q&A: - Q: Which pattern is a fixed pipeline? A: Sequential. - Q: Which runs agents in parallel? A: Concurrent. - Q: Which moves control between agents? A: Handoff. - Q: Which uses a planning manager? A: Magentic. - Q: Which SDK has these builders? A: Microsoft Agent Framework. ## Autonomous Agents with Safeguards and Approvals URL: https://azure.msdevbuild.com/ai-103/generative-ai-and-agents/autonomous-workflows-with-approvals/ Let an agent read freely, but mark write tools that change data or move money as approval required, so the run pauses until a person approves or rejects. Put hard limits in code for what nobody should approve, give the agent least-privilege tools and limits on steps and cost, and keep traces so an auditor can see who decided. The more autonomy you give, the more these safeguards matter. Key points: - Reads can run freely; writes with impact need approval. - Approval pauses the run until a decision is returned. - Hard limits in code hold even if an approver errs. - Limit tools, steps and cost for autonomous runs. - Traces record who decided what. Exam tips: - "Pause before money moves" = approval required on the tool. - "Never above a legal limit" = enforce in code. - "Show who approved" = trace and audit log. Quick Q&A: - Q: What pauses a run for a person? A: A tool marked approval required. - Q: Where do absolute limits belong? A: In the tool code. - Q: What resumes a paused run? A: An approval response (approve or reject). - Q: Which tools usually need approval? A: Write tools with real impact. - Q: What gives an audit record? A: Traces of tool calls and decisions. ## Monitor, Evaluate and Debug Agents URL: https://azure.msdevbuild.com/ai-103/generative-ai-and-agents/monitor-and-evaluate-agents/ Evaluate an agent by its whole run, not only its final text. Intent resolution asks if it understood the goal, tool call accuracy checks the tools and arguments, and task adherence checks it followed its instructions. Error analysis groups failing runs into causes, such as a made-up argument or a claimed action with no tool call, so you fix the cause and rerun the same dataset. In production, add monitoring and continuous evaluation on sampled live traffic. Key points: - Agent evaluators read the whole run, including tool calls. - Intent resolution, tool call accuracy and task adherence cover different failures. - Error analysis groups failures into causes. - Rerun the same dataset after a fix. - Continuous evaluation watches live traffic. Exam tips: - "Called a tool with an argument the user never gave" = tool call accuracy. - "Misunderstood what the user wanted" = intent resolution. - "Ignored an instruction" = task adherence. Quick Q&A: - Q: Which evaluator checks tool arguments? A: Tool call accuracy. - Q: Which checks understanding of the goal? A: Intent resolution. - Q: Which checks following instructions? A: Task adherence. - Q: What is error analysis? A: Grouping failures by cause. - Q: How do you watch production quality? A: Continuous evaluation on sampled traffic. ## Prompt Engineering, Parameters and Self-Critique URL: https://azure.msdevbuild.com/ai-103/generative-ai-and-agents/prompt-engineering-and-parameters/ Tune generation in two places. Prompts set role, rules, format and examples, and a few-shot example often fixes format faster than more rules. Parameters shape the sampling: a low temperature gives steady, factual wording, a high one gives variety, and max output tokens caps length, so a reply cut off with an incomplete status needs a higher cap. A self-critique loop drafts, checks against a checklist and revises once. Reasoning models use reasoning effort instead of temperature. Key points: - Instructions set role, audience, rules and length. - A few-shot example fixes format and tone quickly. - Low temperature for facts; higher for ideas. - Incomplete status points to the output token cap. - Reasoning models take reasoning effort, not temperature. Exam tips: - "Consistent, factual output" = low temperature. - "Reply cut off, status incomplete" = raise max output tokens. - "Reasoning model rejects temperature" = use reasoning effort. Quick Q&A: - Q: What does a low temperature give? A: Steady, repeatable wording. - Q: What fixes a cut-off reply? A: A higher max output tokens value. - Q: What does a few-shot example do? A: It shows the format and tone. - Q: What is a self-critique loop? A: Draft, check against criteria, revise. - Q: What replaces temperature on reasoning models? A: Reasoning effort. ## Tracing, Token Analytics and Latency URL: https://azure.msdevbuild.com/ai-103/generative-ai-and-agents/tracing-and-token-analytics/ Tracing records each agent run, model call and tool call as a span with a duration and token counts. Connect an Application Insights resource to the project, opt in to GenAI tracing, configure Azure Monitor and instrument the SDK, then read the spans to see latency by step and tokens by model. Recording message content is a separate switch and should stay off in production, because prompts and answers can contain personal data. Key points: - Spans show duration and tokens for each step. - Application Insights stores the traces. - Tracing is opt-in; content recording is a separate opt-in. - Query token attributes to analyse cost by model. - Look at p95 latency, not just the average. Exam tips: - "Find the slowest step" = span durations in the trace. - "No prompts in telemetry" = content recording off. - "Where traces are stored" = Application Insights connected to the project. Quick Q&A: - Q: What is one timed step called? A: A span. - Q: Where are traces stored? A: Application Insights. - Q: Is content recording on by default? A: No, it is a separate opt-in. - Q: What does a model span record? A: Model name and token counts. - Q: Why check p95 latency? A: It shows the slow tail that averages hide. ## Orchestrate Multiple Models and Rules Engines URL: https://azure.msdevbuild.com/ai-103/generative-ai-and-agents/orchestrate-multiple-models/ Don't send everything to the biggest model. A hybrid design tries rules first for answers code can decide exactly, a small language model for easy language work, and a large or reasoning model only for hard requests. A model router deployment can choose among models for you, or your own cascade can escalate when the small model is unsure. This lowers cost and latency, and you measure each route with evaluations and traces. Key points: - Rules first for exact answers. - Small models for simple, high-volume language work. - Large or reasoning models only when needed. - Escalate when the cheaper component is unsure. - Evaluate each route and the whole path. Exam tips: - "Fixed policy limit" = rules engine. - "High-volume simple labelling" = small model. - "Pick the model for each prompt automatically" = model router. Quick Q&A: - Q: What goes first in a cascade? A: Rules. - Q: Which model suits simple volume labelling? A: A small language model. - Q: What chooses a model per prompt? A: A model router. - Q: When do you escalate? A: When the cheaper component is unsure. - Q: What do you measure per route? A: Quality, cost and latency. # AI-103 Domain 3: Implement computer vision solutions (10–15%) ## Generate and Edit Images URL: https://azure.msdevbuild.com/ai-103/computer-vision/image-generation-and-editing/ To generate an image, you send a prompt to a gpt-image deployment and choose the size, quality, number of images and output format. To edit an image, you send the picture, a prompt and, for a precise change, a mask: a PNG of the same size where the transparent area is the only part the model may change. The image comes back as base64, and a transparent background needs PNG. Key points: - Generation and edits use a gpt-image deployment, and your code sends the deployment name as the model. - Sizes are 1024x1024, 1024x1536 and 1536x1024. Quality is low, medium or high. n is 1 to 10. - Output format is PNG or JPEG. A transparent background needs PNG. - A mask is a PNG of the same size, and transparent pixels are the area that can change. - Images come back as base64. Guardrails check prompts, and generated images carry content credentials. Exam tips: - "Change only part of an image" = mask-based edit (transparent area). - "Transparent background" = PNG output with background transparent. - "Keep faces and logos close to the original" = input_fidelity high. Quick Q&A: - Q: What does the transparent area of a mask mean? A: It is the area the model may change. - Q: Which format gives a transparent background? A: PNG. - Q: How many images can one request create? A: 1 to 10, set with n. - Q: In what form does gpt-image return the picture? A: Base64 data, not a URL. - Q: Which setting keeps faces and logos closer to the input? A: input_fidelity set to high. ## Generate and Edit Video URL: https://azure.msdevbuild.com/ai-103/computer-vision/video-generation-and-editing/ A Sora 2 video is an asynchronous job: you create it with a prompt, a size (720x1280 or 1280x720) and a duration of 4, 8 or 12 seconds, poll the status, then download the video. An input reference image must match the video size and can't contain a face. To edit a finished video, remix it by its video ID with a short prompt that asks for one change. Key points: - Video generation is asynchronous: create, poll, download. - Sizes are 720x1280 and 1280x720. Durations are 4, 8 or 12 seconds. - The input reference must match the video size and can't include a human face. - Remix edits a completed video by its ID. One clear change works best. - Sora 2 was in preview on 25 November 2026, so check Learn for limits and regions. Exam tips: - "Edit a generated video" = remix with the video ID. - "Video job status polling" = asynchronous pattern. - "Reference image rejected" = check size match and faces. Quick Q&A: - Q: Which durations does Sora 2 accept? A: 4, 8 or 12 seconds. - Q: Which sizes are allowed? A: 720x1280 or 1280x720. - Q: What must an input reference match? A: The video size exactly. - Q: What happens to a reference image with a face? A: It's rejected. - Q: How do you edit a finished video? A: Remix it by its video ID with a short prompt. ## Multimodal Image Understanding: Captions, Alt Text and Visual Q&A URL: https://azure.msdevbuild.com/ai-103/computer-vision/multimodal-image-understanding/ A multimodal chat model such as gpt-4.1-mini reads images sent with your prompt, and the prompt decides the result: a concise or detailed caption, an answer to a visual question grounded in what's visible, or alt text that follows accessibility rules. One request can carry up to 10 images, and the detail setting (low, high, auto) trades cost and speed against small text. Key points: - Use a deployment whose model accepts image input, such as gpt-4.1-mini. - Images go in an image_url content part as a URL or base64 data URL. - Up to 10 images per request. Detail is low, high or auto. - Prompts set concise vs detailed captions, grounded Q&A and alt text rules. - Boxes or locations from a language model are approximate. Exam tips: - "Short description for a thumbnail" = concise caption prompt. - "Answer only from the image" = grounding instruction in the system message. - "Screen reader users" = alt text; long complex image = extended description. Quick Q&A: - Q: How many images can one request contain? A: Up to 10. - Q: Which setting helps read small text? A: detail set to high. - Q: What controls concise or detailed output? A: The prompt. - Q: What should alt text describe? A: The purpose of the image, briefly. - Q: How do you reduce guessing? A: Tell the model to answer only from what's visible and to say when it can't tell. ## Content Understanding for Images and Video URL: https://azure.msdevbuild.com/ai-103/computer-vision/content-understanding-for-images-and-video/ Azure Content Understanding in Foundry Tools runs an analyzer on an image or video and returns the same structured fields every time. Start with a prebuilt analyzer such as prebuilt-imageSearch or prebuilt-videoSearch, or build a custom analyzer with classify and generate fields. For video, turn on segmentation to get scenes with their own fields, key frames and transcript. Pro mode adds reasoning across inputs and reference data. Key points: - Prebuilt analyzers include prebuilt-imageSearch and prebuilt-videoSearch. - A custom analyzer derives from a base such as prebuilt-image or prebuilt-video and defines a field schema. - Image and video fields use classify or generate. Extract is for documents. - Video segmentation returns per-segment fields, key frames and transcript. Off means one segment. - The resource needs default model deployments, for example a chat model. Exam tips: - "Same fields for every photo" = custom analyzer with a field schema. - "Jump to a section of a video" = segmentation. - "Reason over several inputs and reference data" = pro mode. Quick Q&A: - Q: Which prebuilt analyzer gives a searchable description of an image? A: prebuilt-imageSearch. - Q: Which methods can an image field use? A: Classify and generate. - Q: What does segmentation add to a video analyzer? A: Per-segment fields, key frames and transcript. - Q: What happens with segmentation off? A: The whole video is one segment. - Q: What does the resource need before analyzers work? A: Default model deployments. ## Responsible AI for Images and Video URL: https://azure.msdevbuild.com/ai-103/computer-vision/responsible-ai-for-visual-content/ Protect visual apps in three layers. Use guardrail image controls to classify hate, sexual, violence and self-harm content. Treat text inside images as untrusted data: scan it with Prompt Shields, say in the system message that it's never an instruction, and put approval on risky tools. Enforce your own rules, such as banned logos or a missing watermark, with a custom Content Understanding analyzer. Key points: - Guardrails classify hate, sexual, violence and self-harm in images with severity levels you set thresholds for. - Text in images is untrusted data and can carry an indirect prompt injection. - Defend with Prompt Shields, a data-only system message, least privilege and approvals. - Brand, watermark and prohibited-symbol rules are your policy, enforced with a custom analyzer. - Low-confidence results go to a human reviewer. Exam tips: - "Instructions hidden in an uploaded image" = indirect prompt injection, use Prompt Shields. - "Reject images with our competitor logo" = custom analyzer, not a harm category. - "Limit the damage if an attack works" = approval and least privilege. Quick Q&A: - Q: Which four categories do harm controls cover? A: Hate, sexual, violence and self-harm. - Q: What is text in an image from an unknown user? A: Untrusted data. - Q: Which feature detects indirect attacks? A: Prompt Shields. - Q: Where do you enforce a banned logo rule? A: In a custom analyzer plus your own code. - Q: What do you do with low-confidence policy results? A: Route them to a human reviewer. # AI-103 Domain 4: Implement text analysis solutions (10–15%) ## Extract Entities, Summaries and Structured JSON URL: https://azure.msdevbuild.com/ai-103/text-analysis/extract-entities-summaries-and-json/ Use Azure Language in Foundry Tools when you want fixed, predictable output: named entity recognition (people, places, dates, with confidence scores), PII redaction and summaries. Use a model deployment when you need your own fields. Ask for JSON mode and you only get valid JSON. Ask with structured outputs (a JSON schema with strict: true, every field required) and the reply follows your shape every time. For domain summaries such as compliance, don't train anything first: give the model a role, a checklist, a glossary and one example at temperature 0. For your own entity types at high volume, train custom NER. Key points: - Azure Language gives fixed categories, confidence scores and the same output for the same input. - Prebuilt NER can't know your own fields. Use custom NER or a model for those. - JSON mode means valid JSON only. Structured outputs with strict true means your schema. - Strict schemas need every property listed in required and additionalProperties set to false. - Domain summaries come from role, checklist, glossary, example and temperature 0. Exam tips: - "Reply must match a schema" = structured outputs, not JSON mode. - "Same fields, huge volume, your own types" = custom NER. - "Mask personal data" = PII detection, with a categories filter when policy lists some. Quick Q&A: - Q: Which Azure Language feature returns a redacted copy of text? A: PII detection. - Q: What does strict true add to a JSON schema? A: Every field is required and the reply can't contain extra fields. - Q: What is the first thing to try when a summary lacks required items? A: A domain prompt with a checklist and an example. - Q: Which feature learns your own entity types? A: Custom NER. - Q: Which Azure Language feature finds people, places and dates? A: Named entity recognition. ## Sentiment, Tone and Sensitive Content Detection URL: https://azure.msdevbuild.com/ai-103/text-analysis/sentiment-safety-and-sensitive-content/ Sentiment analysis in Azure Language returns positive, neutral, negative or mixed with confidence scores, and opinion mining ties each opinion to its target. It's cheap and steady but misses sarcasm, so ask a model for a tone label from an enum when tone matters. For harm, Azure Content Safety scores Hate, Sexual, Violence and Self-harm at severity 0, 2, 4 or 6, and you pick the block threshold. PII detection can redact only the categories your policy names. Prompt Shields checks the user prompt for jailbreaks and every document for hidden instructions. Key points: - Sentiment labels are positive, neutral, negative and mixed (mixed for the whole document), with confidence scores. - Opinion mining returns the target and the assessment together. - Sentiment misses sarcasm. A model with an enum tone label catches more. - Content Safety categories are Hate, Sexual, Violence and Self-harm. Default severities are 0, 2, 4 and 6. - Prompt Shields covers user prompt attacks and document attacks. Exam tips: - "Which part of the review is negative?" = opinion mining. - "Block violent comments" = Content Safety severity threshold. - "Hidden instructions in a document" = Prompt Shields (indirect attack). Quick Q&A: - Q: What severities does the default text moderation output use? A: 0, 2, 4 and 6. - Q: Which categories does text moderation score? A: Hate, Sexual, Violence and Self-harm. - Q: Which sentiment label applies only to a whole document? A: Mixed. - Q: What limits PII redaction to chosen types? A: A categories filter. - Q: Which Content Safety feature finds hidden instructions in documents? A: Prompt Shields. ## Translate Text with Translator or a Language Model URL: https://azure.msdevbuild.com/ai-103/text-analysis/translate-text-with-foundry/ Use Azure Translator in Foundry Tools when you want fast, consistent, per-character translation: it detects the source language, returns several target languages in one call, and keeps terms right with a dynamic dictionary (no training) or Custom Translator (trained on your sentence pairs). A multi-service resource needs the region sent with the key. Use an LLM translation flow when tone, context or formatting rules matter: you write them in plain words in the instructions. It costs more, can vary run to run, and should be tested with an evaluation set before release. Key points: - Translator returns many target languages from one request and can detect the source. - Dynamic dictionary needs no training. Custom Translator needs sentence pairs. - A multi-service resource needs the region header with the key. - LLM flows follow tone rules written in plain language but cost more and can vary. - Evaluate an LLM flow before you ship it. Exam tips: - "Brand name must stay unchanged, no training" = dynamic dictionary. - "Formal tone, rules in plain words" = LLM translation flow. - "Millions of messages, lowest cost, same output" = Translator. Quick Q&A: - Q: How many target languages can one Translator call return? A: Several. - Q: What do you add to keep a brand name unchanged without training? A: A dynamic dictionary entry. - Q: Which header carries the region for a multi-service resource? A: Ocp-Apim-Subscription-Region. - Q: What should you do before shipping an LLM translation flow? A: Evaluate it on a test set. - Q: Which feature trains on your own sentence pairs? A: Custom Translator. ## Speech to Text and Text to Speech for Agents URL: https://azure.msdevbuild.com/ai-103/text-analysis/speech-to-text-and-text-to-speech/ A voice agent is a loop you can swap piece by piece: speech to text turns the caller into words, the model or agent answers, and text to speech with a neural voice speaks the reply. SSML controls pauses, rate and pitch. When domain words come out wrong, try a phrase list first (no training). For many terms, accents or noisy lines, train a custom speech model and use its endpoint ID. For a live phone agent, Voice Live runs speech in, the model or agent, and speech out over one low-latency connection with noise suppression and turn detection built in. Key points: - One voice turn is speech to text, model or agent, text to speech. - Phrase list is the quick, no-training fix. Custom speech is for many terms, accents or noise. - A custom speech model is used by setting its endpoint ID in the SpeechConfig. - SSML controls pauses, rate, pitch and style of the spoken reply. - Voice Live is the low-latency speech to speech option for live agents. Exam tips: - "A few words misheard, no training" = phrase list. - "Industry vocabulary, accents, noise" = custom speech. - "Add a pause and slow the rate" = SSML. Quick Q&A: - Q: What does SSML change? A: How synthesized speech is delivered (pauses, rate, pitch, style). - Q: What do you set to use a custom speech model? A: Its endpoint ID. - Q: What does Voice Live combine? A: Speech in, the model or agent, and speech out on one connection. - Q: Which fix needs no training for a few words? A: A phrase list. - Q: What turns the agent reply into spoken audio? A: Text to speech with a neural voice. ## Speech Translation and Reasoning over Audio URL: https://azure.msdevbuild.com/ai-103/text-analysis/speech-translation-and-audio-reasoning/ Speech translation in Azure Speech recognises one spoken language and returns text in several target languages in one pass, and can speak the result with a voice name. Use it when you need transcripts, fixed languages and low cost. When the question is about how something was said (tone, emotion, pace, sounds), send the recording to an audio-capable model such as gpt-4o-audio-preview as an input_audio content part. A text-only deployment such as gpt-4.1-mini rejects audio with an error, so deploy an audio model or transcribe first. Key points: - Speech translation returns several target languages from one recognition pass. - A voice name on the translation config makes it speak the result. - Transcripts lose tone and pace. Audio-capable models keep them. - Audio goes in as an input_audio content part, base64 encoded. - Text-only deployments reject audio input. Exam tips: - "Hindi speech to English and Tamil text" = speech translation. - "How did the caller sound?" = audio-capable model. - "Transcripts and fixed languages, lowest cost" = Speech, not an audio model. Quick Q&A: - Q: Which SDK object runs speech translation? A: TranslationRecognizer. - Q: What content part carries audio to a chat model? A: input_audio. - Q: Name an audio-capable model. A: gpt-4o-audio-preview. - Q: What do you set to speak the translation? A: A voice name. - Q: Which model type rejects input_audio? A: A text-only deployment such as gpt-4.1-mini. # AI-103 Domain 5: Implement information extraction solutions (10–15%) ## Ingest and Index Content for RAG URL: https://azure.msdevbuild.com/ai-103/information-extraction/ingest-and-index-content/ To ingest content for RAG, an Azure AI Search (Foundry IQ) indexer reads files from a data source such as Blob Storage, runs a skillset (OCR, Text Split, an embedding model) and writes one search document per chunk into an index. Scanned pages only become searchable when the OCR skill receives images (imageAction: generateNormalizedImages). Use a managed identity for access, a schedule to keep the index current, and reset the indexer when you change the pipeline. Audio and video are analysed first (for example with Content Understanding), then their text is indexed. Key points: - An indexer needs a data source and an index. A skillset is optional but is where OCR, chunking and embeddings happen. - Chunk the text, then give each chunk its own search document with an index projection. - OCR needs imageAction = generateNormalizedImages, otherwise scans yield no text. - Use the search service's managed identity and Storage Blob Data Reader instead of connection strings. - Blob change detection is automatic. Reset the indexer after changing the skillset or settings. - Audio and video are analysed first (Content Understanding or Speech) and their text is indexed. Exam tips: - "Scanned documents are not searchable" = OCR skill plus generateNormalizedImages. - "One search result per passage" = Text Split plus index projections. - "No keys in the pipeline" = managed identity on the search service with a data role. Quick Q&A: - Q: Which object ties a data source, a skillset and an index together? A: The indexer. - Q: Which indexer setting hands images to the OCR skill? A: imageAction set to generateNormalizedImages. - Q: What do you do after changing a skillset so old files are reprocessed? A: Reset the indexer, then run it. - Q: Which skill turns long text into passages? A: The Text Split skill. - Q: How do you make each chunk its own search document? A: Use an index projection in the skillset. ## Semantic, Hybrid and Vector Search URL: https://azure.msdevbuild.com/ai-103/information-extraction/semantic-hybrid-and-vector-search/ Keyword search (BM25) matches the words you type. Vector search embeds the question and matches meaning. Hybrid runs both in one request and merges the lists with Reciprocal Rank Fusion (RRF), so synonyms and exact codes both work. The semantic ranker then rereads the top 50 results with a language model, returns a reranker score and captions, and needs a semantic configuration on the index. For grounding, hybrid plus semantic ranking is the usual best choice. The ranker can't find a document the first stage missed. Key points: - Keyword = tokens (BM25). Vector = meaning (embeddings, nearest neighbours). Hybrid = both, merged with RRF. - Semantic ranker reranks only the top 50 and returns captions, answers and a 0 to 4 reranker score. - Semantic ranking needs a semantic configuration on the index and the feature enabled on the service. - A vectorizer lets you send text (kind text) and have the query embedded with the same model as the documents. - Filters can run before the vector search (preFilter) or after it (postFilter). - Hybrid is the default for grounding. Add the semantic ranker when quality matters more than a little latency and cost. Exam tips: - "Finds meaning with no shared words" = vector. - "Combine full-text and vector results into one list" = hybrid (RRF). - "Reorders the top results and returns captions" = semantic ranker. Quick Q&A: - Q: Which algorithm merges keyword and vector result lists? A: Reciprocal Rank Fusion. - Q: How many results does the semantic ranker rerank at most? A: The top 50. - Q: What must the index have before a semantic query works? A: A semantic configuration. - Q: What does a vectorizer let you do at query time? A: Send text and have it embedded with the same model as the documents. - Q: Which query type is weak at exact error codes? A: Vector search. ## Enrich Content with Built-in and Custom Skills URL: https://azure.msdevbuild.com/ai-103/information-extraction/search-enrichment-skills/ A skillset in Azure AI Search is a chain of skills that enrich each document while an indexer runs. Built-in skills cover text (PII Detection, Key Phrase Extraction, Text Split, Entity Recognition), images (OCR, Image Analysis) and layout (the Content Understanding skill). A custom skill calls your own endpoint through the Web API skill. Each skill reads and writes nodes in an enrichment tree, and only what you map with output field mappings or index projections reaches the index. Key points: - A skillset is an ordered chain of skills. Order comes from the inputs and outputs, not from the list order alone. - Built-in skills cover text, images and layout. Custom skills call your HTTPS endpoint (Web API skill). - Skill outputs live in the enrichment tree until you map them to the index. - Output field mappings handle one-to-one fields. Index projections handle one-to-many, such as chunks. - Rerun after a skillset change needs an indexer reset, and an enrichment cache saves repeat skill cost. - Content Understanding skill gives layout-aware chunks and figure descriptions. Exam tips: - "Personal data must not be searchable" = PII Detection and index the masked text. - "Logic that isn't built in" = a Web API custom skill, often an Azure Function. - "Tables and sections must stay together in chunks" = the Content Understanding skill. Quick Q&A: - Q: What do you call the structure that holds skill outputs for one document? A: The enrichment tree. - Q: Which skill calls your own HTTP endpoint? A: The Web API (custom) skill. - Q: Which setting copies an enrichment to an index field? A: An output field mapping. - Q: Which skill reads text from images? A: The OCR skill. - Q: What gives one search document per chunk? A: Index projections. ## Connect Retrieval Pipelines to Agents and Workflows URL: https://azure.msdevbuild.com/ai-103/information-extraction/connect-retrieval-to-agents/ Agents don't call an index directly. You create knowledge sources (such as a search index), group them in a knowledge base with a retrieval reasoning effort (minimal, low or medium), and give the agent the knowledge base as a tool through its MCP endpoint. The project's managed identity needs the Search Index Data Reader role on the search service, or the call fails with 403. Instructions tell the agent to cite sources and to say "I don't know" when nothing comes back. Workflows and apps call the same knowledge base through the retrieve API. Key points: - Agents call a knowledge base. The knowledge base holds knowledge sources and the retrieval settings. - Minimal effort has no model planning. Low and medium use a chat model to plan subqueries. - The agent reaches the knowledge base as an MCP tool, authenticated through a project connection. - The project's managed identity needs Search Index Data Reader on the search service. - Instructions must require citations and an honest "I don't know". - Workflows and apps use the retrieve REST API or SDK on the same knowledge base. Exam tips: - "Agent calls search with no keys" = project managed identity plus Search Index Data Reader. - "Break a multi-part question into subqueries" = low or medium reasoning effort. - "Expose retrieval to an agent as a tool" = the knowledge base MCP endpoint. Quick Q&A: - Q: Which object do agents call for retrieval? A: A knowledge base. - Q: Which effort level skips model planning? A: Minimal. - Q: Which role lets the project identity read the index? A: Search Index Data Reader. - Q: How does an agent reach the knowledge base as a tool? A: Through its MCP endpoint. - Q: What should the agent say when nothing relevant is retrieved? A: That it doesn't know. ## Extract Documents with Content Understanding URL: https://azure.msdevbuild.com/ai-103/information-extraction/content-understanding-document-extraction/ Azure Content Understanding in Foundry Tools turns documents, images, audio and video into Markdown and fields. A prebuilt analyzer (such as prebuilt-layout or prebuilt-documentSearch) works with no setup. A custom analyzer extends prebuilt-document with a field schema where each field uses a method: extract (text on the page), classify (a fixed list) or generate (the model writes it). Results include a confidence score and a source, so you can send low-confidence values to a person. It runs on your Foundry resource with your own model deployments. Key points: - Content Understanding is a Foundry Tool that runs on your Foundry resource with your own model deployments. - It handles documents, images, audio and video. Outputs are Markdown plus fields. - Prebuilt analyzers need no schema. Custom analyzers extend a base such as prebuilt-document. - Field methods are extract, classify and generate. - Turn on confidence and source estimation, then route low-confidence fields to a person. - GA API version is 2025-11-01. A 2026-06-01-preview adds newer features such as agentic mode. Exam tips: - "Clean text for RAG with tables and figures" = prebuilt-documentSearch Markdown. - "Typed fields with confidence from forms" = a custom analyzer with a field schema. - "Choose from a fixed list" = classify. "Write a summary" = generate. Quick Q&A: - Q: Which method reads values that are written in the document? A: Extract. - Q: Which base analyzer do custom document analyzers extend? A: prebuilt-document. - Q: What tells you whether to trust a field? A: Its confidence score (and source). - Q: What must exist on the Foundry resource before field extraction works? A: Default chat and embedding model deployments. - Q: Which prebuilt analyzer is tuned for RAG on documents? A: prebuilt-documentSearch. ## Foundry Deployment Types: Global, Data Zone, Standard, Provisioned, Batch URL: https://azure.msdevbuild.com/ai-103/compare/foundry-deployment-types-compared/ Pick by where prompts may be processed and how traffic behaves. Global Standard pays per token and may process in any region. Data Zone Standard keeps processing in the EU or US zone. Standard stays in one region. Provisioned (global, data zone or regional) reserves throughput by the hour for steady, latency-sensitive load. Batch handles big offline jobs within 24 hours at a lower price. - Exam tip: “Data must remain in the EU” = Data Zone (or regional), never Global. “Predictable latency for constant high volume” = Provisioned. “Process 1 million documents overnight at the lowest cost” = Batch. ## Foundry IQ Knowledge Base vs File Search vs Agent Memory URL: https://azure.msdevbuild.com/ai-103/compare/knowledge-vs-file-search-vs-memory/ Use a Foundry IQ knowledge base (on Azure AI Search) to ground an agent on curated company content. Use file search for documents a user brings into a conversation. Use memory for what the agent should learn about a user over time, such as preferences, across sessions. - Exam tip: “Remember user preferences between sessions” = memory. “Search the documents the user uploads” = file search. “Ground on the company’s product manuals with citations” = knowledge base / Azure AI Search. ## Multi-Agent Orchestration Patterns: Sequential, Concurrent, Handoff, Group Chat, Magentic URL: https://azure.msdevbuild.com/ai-103/compare/multi-agent-orchestration-patterns-compared/ Pick by who decides the next step. Sequential runs agents in a fixed line. Concurrent runs agents at the same time and merges the results. Handoff lets the current agent pass control to a better one. Group chat has a manager choose who speaks next. Magentic has a manager plan open-ended work and delegate it. - Exam tip: “A fixed pipeline, each agent builds on the last” = sequential. “Same input to several agents and combine” = concurrent. “Transfer the conversation to a specialist” = handoff. “A manager builds a plan and tracks tasks” = Magentic. ## Prompt Engineering vs RAG vs Fine-Tuning URL: https://azure.msdevbuild.com/ai-103/compare/prompt-engineering-vs-rag-vs-fine-tuning/ Start with prompt engineering: change the instructions and examples. Add RAG when the model needs your current facts. Consider fine-tuning only when you need a consistent style or format that prompts can’t deliver, because it changes behaviour but isn’t a reliable way to add facts. - Exam tip: “Answer from our latest policy documents” = RAG. “Always reply in this exact format” = prompt first, fine-tune only if that fails. Facts that change weekly never belong in fine-tuning. ## Generate, Edit or Understand? Vision Features in Foundry URL: https://azure.msdevbuild.com/ai-103/compare/image-generation-vs-image-editing-vs-multimodal-understanding/ Use image generation to create a new picture from a prompt, an image edit (with a mask) to change part of an existing picture, a multimodal chat model to describe or answer questions about a picture, and Content Understanding when every picture must return the same typed fields. - Exam tip: “Change only the background” = edit with a mask. “Describe the photo for a screen reader” = multimodal model with an alt text prompt. “Same fields for every photo” = custom analyzer. ## Image Harm Controls vs Prompt Shields vs a Custom Visual Policy URL: https://azure.msdevbuild.com/ai-103/compare/prompt-shields-vs-image-harm-controls-vs-custom-visual-policy/ Use image harm controls for hate, sexual, violence and self-harm in pictures. Use Prompt Shields (indirect attack detection) for instructions hidden in the text of an image. Use a custom analyzer for your own visual rules, such as banned logos or a required watermark. - Exam tip: “Text in an uploaded image tells the model what to do” = indirect prompt injection. “Reject images with our competitor’s logo” = custom policy, not a built-in harm category. ## Azure Translator vs LLM Translation in Foundry URL: https://azure.msdevbuild.com/ai-103/compare/azure-translator-vs-llm-translation/ Use Azure Translator for volume, speed and the same output every time. Use an LLM translation flow when tone, context or formatting rules matter, and evaluate it before release. Protect brand terms with a dynamic dictionary or Custom Translator in Translator, or a glossary in the prompt for a model. - Exam tip: “Translate 1 million messages cheaply and consistently” = Translator. “Keep a formal tone and keep numbers as digits” = LLM flow. “Brand name must not change” = dynamic dictionary. ## Sentiment Analysis vs Model Tone Labels vs Content Safety URL: https://azure.msdevbuild.com/ai-103/compare/sentiment-vs-tone-vs-content-safety/ Use sentiment analysis for cheap, steady scores at volume. Add a model tone label with an enum schema when sarcasm or anger matters. Use Content Safety to score harm, and Prompt Shields to catch attacks in prompts and documents. - Exam tip: “Which part of the review was negative?” = opinion mining. “Block violent comments” = Content Safety threshold. “Hidden instructions in a document” = Prompt Shields. ## Keyword vs Vector vs Hybrid vs Semantic Search in Azure AI Search URL: https://azure.msdevbuild.com/ai-103/compare/keyword-vs-vector-vs-hybrid-vs-semantic-search/ Use keyword search for exact words and codes, vector search for meaning, and hybrid to get both in one ranked list merged by Reciprocal Rank Fusion. Add the semantic ranker when the right passage is in the top 50 but not first, or when you want captions. For agents, a knowledge base with agentic retrieval can plan several of these queries for you. - Exam tip: “Matches by meaning even with no shared words” = vector. “One request that combines full-text and vector results” = hybrid. “Reorders the top results and returns captions” = semantic ranker. The ranker never adds documents. ## Azure AI Search vs Content Understanding: Which Do You Need? URL: https://azure.msdevbuild.com/ai-103/compare/azure-ai-search-vs-content-understanding/ Azure AI Search (Foundry IQ) finds and ranks content across many documents. Content Understanding analyses one document or file at a time and returns clean Markdown and typed fields with confidence. They work well together: analyse with Content Understanding, then index the Markdown so an agent can search it. - Exam tip: “Extract fields with confidence from each invoice” = Content Understanding. “Search 40,000 policy pages with citations” = Azure AI Search. “Chunk by layout while indexing” = the Content Understanding skill in a skillset. ## Foundry guardrails and controls URL: https://azure.msdevbuild.com/ai-103/services/foundry-guardrails-and-controls/ Named sets of controls that detect risks (hate, sexual, violence, self-harm, prompt attacks, indirect attacks, protected material, PII, task adherence) at user input, tool call, tool response and output, then annotate or block. ## Foundry observability and evaluations URL: https://azure.msdevbuild.com/ai-103/services/foundry-observability-and-evaluations/ Built-in and custom evaluators (groundedness, relevance, task adherence, tool call accuracy, safety), the AI red teaming agent, continuous evaluation of live traffic, and OpenTelemetry traces in Application Insights. ## Provisioned throughput (PTUs) in Foundry URL: https://azure.msdevbuild.com/ai-103/services/foundry-provisioned-throughput/ Model deployments with a fixed number of provisioned throughput units, billed hourly or through a reservation, giving steady latency. Spillover sends overflow to a standard deployment instead of returning 429. ## Memory in Foundry Agent Service URL: https://azure.msdevbuild.com/ai-103/services/foundry-agent-memory/ Managed memory stores that extract user profile facts, chat summaries and procedures from conversations, consolidate them and retrieve them in later sessions, with item-level create, update and delete and a default retention TTL. ## Foundry Agent Service URL: https://azure.msdevbuild.com/ai-103/services/foundry-agent-service/ Hosts agents built from a model, instructions and tools. It stores conversations, runs tool calls, supports file search, Azure AI Search, MCP, functions and memory, and versions every change to an agent. ## Microsoft Agent Framework URL: https://azure.msdevbuild.com/ai-103/services/microsoft-agent-framework/ An open-source SDK for Python and .NET to build agents and workflows, with orchestration builders for sequential, concurrent, handoff, group chat and Magentic patterns, tools with approval modes, and a Foundry chat client. ## Foundry SDK (azure-ai-projects) URL: https://azure.msdevbuild.com/ai-103/services/foundry-sdk-azure-ai-projects/ AIProjectClient connects an app to a Foundry project with one endpoint and Microsoft Entra ID. It returns an OpenAI-compatible client and gives access to deployments, connections, agents, evaluations and telemetry. ## gpt-image models in Foundry URL: https://azure.msdevbuild.com/ai-103/services/foundry-image-generation/ Deployments that generate images from prompts and edit existing ones, with size, quality, count, format, transparent background, masks and input fidelity as request settings. Images come back as base64 and carry content credentials. ## Sora 2 in Foundry URL: https://azure.msdevbuild.com/ai-103/services/foundry-video-generation/ Asynchronous text-to-video and image-to-video jobs: create, poll, download. Sizes 720x1280 and 1280x720, durations of 4, 8 or 12 seconds, optional input reference, and remix of finished videos. ## Content Understanding for images and video URL: https://azure.msdevbuild.com/ai-103/services/content-understanding-media/ Analyzers that turn photos and videos into structured fields. Start from prebuilt-imageSearch or prebuilt-videoSearch, or build a custom analyzer with classify and generate fields; video can be segmented with key frames and transcripts. ## Azure Language in Foundry Tools URL: https://azure.msdevbuild.com/ai-103/services/azure-language-foundry/ Prebuilt text features such as named entity recognition, PII detection, sentiment with opinion mining, key phrases and summarization, plus custom NER and classification trained on your own labelled data. ## Azure Translator in Foundry Tools URL: https://azure.msdevbuild.com/ai-103/services/azure-translator-foundry/ Text and document translation with language detection, several targets per call, dynamic dictionaries and Custom Translator for your domain terms. ## Azure Speech in Foundry Tools URL: https://azure.msdevbuild.com/ai-103/services/azure-speech-foundry/ Real-time and batch speech to text, neural text to speech with SSML, speech translation, custom speech models and Voice Live for low-latency speech agents. ## Azure Content Safety text moderation URL: https://azure.msdevbuild.com/ai-103/services/azure-content-safety-text/ Scores text for Hate, Sexual, Violence and Self-harm at severity levels, and Prompt Shields detects user prompt attacks and indirect attacks in documents. ## Azure AI Search (Foundry IQ) URL: https://azure.msdevbuild.com/ai-103/services/azure-ai-search-foundry-iq/ A search service with indexers, skillsets, keyword, vector, hybrid and semantic queries, and knowledge bases with agentic retrieval that plan queries, run them in parallel and return grounded passages with citations. ## Azure Content Understanding in Foundry Tools URL: https://azure.msdevbuild.com/ai-103/services/content-understanding-for-agents/ A Foundry Tool that turns documents, images, audio and video into Markdown and user-defined fields by using analyzers, with confidence scores and grounding for each value. # GH-300: GitHub Copilot answers Course: https://azure.msdevbuild.com/gh-300/ · Skills measured as of August 7, 2026: https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/gh-300 # GH-300 Domain 1: Use GitHub Copilot responsibly (15–20%) ## Generative AI Risks and Limitations URL: https://azure.msdevbuild.com/gh-300/responsible-ai/generative-ai-risks-and-limitations/ Generative AI tools like GitHub Copilot predict the most likely next code from patterns, so they can be confidently wrong. The main risks are hallucinations (invented APIs or packages), insecure or outdated code, bias, non-deterministic output and a limited context window. The model can't run, test or truly understand your code, which is why every suggestion is a draft you review and test. Key points: - Copilot predicts likely code from patterns. It doesn't run, test or understand it. - Hallucinations: invented functions, packages, flags or settings that look plausible. - The knowledge cut-off means suggestions can be outdated or miss recent security fixes. - Output can be insecure, biased or simply wrong, and still look confident. - The same prompt can give different answers (non-deterministic). - The context window is limited, so Copilot only knows what fits in the prompt. - Rare languages and unusual code get weaker suggestions. Exam tips: - "Suggests a method that does not exist" = hallucination. - "Unaware of a library released recently" = knowledge cut-off. - "Same prompt, different result" = non-deterministic output. - "Misses code in a large project" = limited context window. Quick Q&A: - Q: Does Copilot execute code to check its suggestions? A: No. It predicts code; you run and test it. - Q: What's a hallucination? A: Plausible-looking output that's made up, like an API that doesn't exist. - Q: Why might Copilot suggest a deprecated API? A: Its training data has a cut-off and older patterns are common in it. - Q: Why does Copilot miss code in files it can't see? A: The context window is limited to what's in the prompt. - Q: What's the general fix for all these limits? A: Human review plus tests, linting and scanning. ## Responsible AI: Principles, Harms and Mitigations URL: https://azure.msdevbuild.com/gh-300/responsible-ai/responsible-ai-principles/ Responsible AI means using AI in a way that's fair, safe and accountable. Microsoft's six principles are fairness, reliability and safety, privacy and security, inclusiveness, transparency and accountability. With Copilot, the harms to watch are hallucinated or insecure code, bias, licensing questions, privacy leaks and over-reliance, and you reduce them with human review, tests, code scanning, content exclusions, the public code filter, fake sample data and being open about AI use. Key points: - Six principles: fairness, reliability and safety, privacy and security, inclusiveness, transparency, accountability. - Harms with AI coding tools: hallucinated or insecure code, bias, IP and licensing questions, privacy leaks, over-reliance. - Each harm has a matching mitigation, and human review sits under all of them. - Accountability stays with the people who accept and ship the code, never with the tool. - Transparency means telling people when AI helped and being clear about its limits. - Use fake sample data, never real personal data or secrets, in prompts. Exam tips: - "Who is responsible for AI-generated code" = the developer and team (accountability). - "Disclose that AI helped write this" = transparency. - "Works for users of all abilities and backgrounds" = inclusiveness. - "Keep sensitive files out of Copilot" = content exclusions (privacy and security). Quick Q&A: - Q: Which principle says people stay responsible for AI results? A: Accountability. - Q: Which principle covers biased output against a group? A: Fairness. - Q: Which mitigation fits the harm of matching public code? A: The public code filter (Block, or Allow with code references) plus a licence check. - Q: Which mitigation fits privacy leaks in prompts? A: Don't paste secrets or personal data, use fake data and content exclusions. - Q: What mitigation applies to every harm? A: Human review, backed by tests and scanning. ## Validate Copilot Output and Use It Responsibly URL: https://azure.msdevbuild.com/gh-300/responsible-ai/validate-copilot-output/ You validate Copilot output because it predicts code and can't check it, so a suggestion can look right and still be wrong, insecure or outdated. Read it until you understand it, run tests with edge cases, lint it, let code scanning and dependency review check it, and keep human pull request review before merge. Operating Copilot responsibly also means giving it good context, keeping secrets and personal data out of prompts, and owning what you accept. Key points: - AI output is a draft. It can be wrong, insecure, outdated or biased while looking confident. - Understand the code before you accept it. - Test it, with edge cases, and run the linter and type checks. - Code scanning and dependency review catch security problems tests miss. - Human pull request review stays, and Copilot code review doesn't count as an approval. - Responsible operation: good context, no secrets or personal data in prompts, feedback, transparency, ownership. Exam tips: - "Best way to confirm a suggestion is correct" = run tests (with edge cases), not "ask Copilot if it is correct". - "Find vulnerabilities in AI-generated code" = code scanning. - "Who decides to merge" = a person, after review and checks. Quick Q&A: - Q: Does passing tests prove a suggestion is safe? A: No. Tests cover only what you thought of; add scanning and review. - Q: Which chat command drafts tests for selected code? A: /tests. - Q: Does Copilot code review count toward required approvals? A: No. It leaves comments; a person approves. - Q: What should never go into a prompt? A: Secrets and real personal data. - Q: What's the first validation step? A: Read the suggestion until you understand it. # GH-300 Domain 2: Use GitHub Copilot features (25–30%) ## GitHub Copilot Plans: Free, Pro, Business and Enterprise URL: https://azure.msdevbuild.com/gh-300/copilot-features/copilot-plans/ GitHub Copilot has five plans. Copilot Free, Pro and Pro+ are for individuals, with Free capped by monthly limits. Copilot Business is bought by an organization per seat and adds central seat management, policies, content exclusions and the audit log, and Copilot Enterprise adds more on top for companies on GitHub Enterprise Cloud. Premium models use a monthly premium request allowance, and extra usage is either paid for or blocked by a budget. Key points: - Individual plans: Copilot Free (monthly limits), Pro and Pro+. - Organization plans: Copilot Business (per seat) and Copilot Enterprise (GitHub Enterprise Cloud). - Business and Enterprise add seat management, policies, content exclusions and audit log events. - On Business and Enterprise, your code isn't used to train GitHub's models. - Premium models use a monthly premium request allowance; extra usage is billed or blocked by a budget. - With an org seat, Copilot settings come from the organization's policies. Exam tips: - "Organization needs to manage who gets Copilot and set policies" = Copilot Business (or Enterprise). - "Company already on GitHub Enterprise Cloud wants the full feature set" = Copilot Enterprise. - "Exclude files from Copilot" = a Business or Enterprise feature. Quick Q&A: - Q: Which plans are for individuals? A: Copilot Free, Pro and Pro+. - Q: Which plans support content exclusions? A: Copilot Business and Copilot Enterprise. - Q: What does Copilot Enterprise require? A: GitHub Enterprise Cloud. - Q: What happens when the premium request allowance runs out? A: Extra requests are billed or blocked, depending on the budget. - Q: How is Copilot Business billed? A: Per assigned seat, per month. ## Set Up GitHub Copilot in Your IDE URL: https://azure.msdevbuild.com/gh-300/copilot-features/enable-copilot-in-the-ide/ To enable Copilot in VS Code, install the GitHub Copilot Chat extension, sign in with GitHub using an account that has Copilot access (Copilot Free, a paid plan or a seat from your organization), and check the Copilot icon in the status bar. The github.copilot.enable setting turns completions on or off per language. Visual Studio, JetBrains IDEs, Xcode, Eclipse and Vim/Neovim have their own Copilot extension with the same GitHub sign-in. Key points: - VS Code: install the GitHub Copilot Chat extension, which brings chat, inline suggestions and agents. - Sign in with a GitHub account that has Copilot Free, a paid plan or an organization seat. - The status bar icon shows Copilot's state and opens quick settings. - github.copilot.enable turns completions on or off per language. - Keys: Tab accept, Esc dismiss, Alt+] / Alt+[ next or previous, Ctrl+I inline chat, Ctrl+Alt+I Chat view. - Visual Studio, JetBrains, Xcode, Eclipse and Vim/Neovim have their own Copilot extensions. Exam tips: - "Turn off Copilot for Markdown files only" = github.copilot.enable with that language set to false. - "Installed and signed in, still no Copilot" = check the seat (licence) first. - "Where to see Copilot errors in VS Code" = Output › GitHub Copilot or GitHub Copilot: Open Logs. Quick Q&A: - Q: Which VS Code extension provides Copilot chat and inline suggestions? A: GitHub Copilot Chat. - Q: Which key accepts a ghost text suggestion? A: Tab. - Q: Which shortcut opens inline chat in VS Code? A: Ctrl+I. - Q: Which setting disables Copilot completions for one language? A: github.copilot.enable. - Q: Does the IDE decide which Copilot plan you have? A: No. Your GitHub account's plan or seat does. ## Inline Suggestions, Chat, Edit and Agent Mode URL: https://azure.msdevbuild.com/gh-300/copilot-features/inline-suggestions-chat-and-modes/ You trigger GitHub Copilot in four main ways. Inline suggestions appear as grey ghost text while you type (Tab accepts, Esc dismisses, Alt+] shows the next one). Inline chat (Ctrl+I) changes the code in front of you. The Chat view (Ctrl+Alt+I) has three modes: Ask answers without editing, Edit changes the files you pick for you to Keep or Undo, and Agent plans, edits, runs commands after your approval and iterates until the task is done. In the terminal, Copilot CLI does the same agent work. Key points: - Inline suggestions: Tab accept, Esc dismiss, Alt+] / Alt+[ next and previous (Option on macOS), Ctrl+Right Arrow next word, Ctrl+Enter completions panel. - Next edit suggestions (NES) predict your next edit, not only the next characters. - Inline chat is Ctrl+I and changes code in place; the Chat view is Ctrl+Alt+I. - Ask answers, Edit changes the files you choose, Agent does the whole task and runs commands after approval. - github.copilot.enable turns completions on or off per language. - Copilot CLI brings agent-style work to the terminal with the copilot command. Exam tips: - "Answer only, no file changes" = Ask mode. - "Change these three files and let me review each diff" = Edit mode. - "Implement the feature, run the tests and fix failures" = Agent mode. Quick Q&A: - Q: Which key accepts a whole inline suggestion? A: Tab - Q: Which shortcut opens inline chat in VS Code? A: Ctrl+I - Q: Which chat mode can run terminal commands? A: Agent mode - Q: Which setting turns completions off for one language? A: github.copilot.enable - Q: What does Ctrl+Right Arrow do with a suggestion? A: Accepts the next word only. ## Copilot Chat: Slash Commands, Participants and Limits URL: https://azure.msdevbuild.com/gh-300/copilot-features/copilot-chat-commands-and-limits/ In Copilot Chat, slash commands run common jobs (/explain, /fix, /tests, /doc, /new, /clear, /help), participants starting with @ bring in a domain expert (@workspace, @vscode, @terminal, @github), and # adds context (#file, #selection, #codebase, #terminalLastCommand, #changes). The model picker (including Auto) chooses the model your plan and organization allow, 👍 / 👎 sends feedback, and prompt files (.github/prompts/*.prompt.md, run as /name) reuse a good prompt. Chat only sees the context you give it in a finite context window, and its answers can be wrong. Key points: - Slash commands: /explain, /fix, /tests, /doc, /new, /clear, /help. - Participants (@): @workspace, @vscode, @terminal, @github. - Context (#): #file, #selection, #codebase, #terminalSelection, #terminalLastCommand, #changes. You can also drag in files and images. - The model picker includes Auto; your plan and organization decide which models appear, and premium models use your premium-request allowance. - 👍 / 👎 sends feedback; "Used n references" shows which context Copilot used. - Prompt files in .github/prompts/*.prompt.md run with /name and can take ${input:name} variables. - Limits: finite context window, history counts against it, answers can be wrong or outdated. Exam tips: - "Generate unit tests for the selected function" = /tests. - "Ask about the whole project" = @workspace (or #codebase). - "Reuse the same prompt across the team" = a prompt file in .github/prompts. Quick Q&A: - Q: Which slash command starts a fresh conversation? A: /clear - Q: Which participant answers questions about VS Code itself? A: @vscode - Q: Which variable adds the output of the last terminal command? A: #terminalLastCommand - Q: Where do prompt files live? A: .github/prompts/ with the .prompt.md extension - Q: Where can you see which files Copilot used for an answer? A: The "Used n references" list under the answer. ## GitHub Copilot CLI: Install and Key Commands URL: https://azure.msdevbuild.com/gh-300/copilot-features/copilot-cli-install-and-commands/ GitHub Copilot CLI is an AI agent in your terminal, run with the copilot command. It reads the repo you're in, answers questions, edits files and runs commands after asking you. Install it with npm install -g @github/copilot (Node.js 22+), brew install --cask copilot-cli, winget install GitHub.Copilot or the install script. On first run it asks you to trust the folder, then you sign in with /login (or a fine-grained token in COPILOT_GITHUB_TOKEN, GH_TOKEN or GITHUB_TOKEN). Inside a session, slash commands like /model, /mcp, /usage and /help control it, @path adds a file and !cmd runs a shell command. Key points: - Copilot CLI is the copilot command: an agent in the terminal that asks before it edits or runs anything new. - Install: npm install -g @github/copilot (Node.js 22+), brew install --cask copilot-cli, winget install GitHub.Copilot, or curl -fsSL https://gh.io/copilot-install | bash. - copilot update and copilot version keep it current. - First run asks you to trust the folder; then /login with the device flow. - Tokens go in COPILOT_GITHUB_TOKEN, GH_TOKEN or GITHUB_TOKEN; fine-grained PAT with Copilot Requests, no classic PATs. - Key slash commands: /model, /mcp, /agent, /delegate, /usage, /context, /compact, /clear, /help, /exit. - @path adds a file, !cmd runs a shell command. Config lives in ~/.copilot/. Exam tips: - "Install Copilot CLI with npm" = npm install -g @github/copilot. - "Sign in without a browser" = fine-grained PAT with Copilot Requests in COPILOT_GITHUB_TOKEN. - "Switch the model in a session" = /model. Quick Q&A: - Q: Which command starts Copilot CLI? A: copilot - Q: Which Node.js version does the npm install need? A: 22 or later - Q: Which slash command shows usage for the session? A: /usage - Q: How do you add src/cart.js to a prompt? A: Type @src/cart.js in the prompt. - Q: Where does Copilot CLI keep its configuration? A: In ~/.copilot/ (for example mcp-config.json and agents/). ## Copilot CLI Sessions, Scripts and Files URL: https://azure.msdevbuild.com/gh-300/copilot-features/copilot-cli-sessions-and-scripts/ GitHub Copilot CLI runs two ways. An interactive session (copilot, or copilot -i "…" to start with a prompt) asks before each new tool, and a yes can last for the session; /exit saves it and copilot --continue or --resume brings it back. A non-interactive run (copilot -p "…") does one prompt and exits, so it can't ask: it only uses tools you pre-approve with --allow-tool (such as 'write' or 'shell(git)'), and --deny-tool always wins. Use it to generate scripts and tidy files, then read the result before you run it. Key points: - copilot starts an interactive session; copilot -i "prompt" starts one with a first prompt. - copilot -p "prompt" runs once and exits; it can only use pre-approved tools. - --allow-tool and --deny-tool take patterns: 'write', 'shell', 'shell(git)', '(tool)'. Deny wins. - --allow-all-tools approves everything. Use it only where you trust the task and the environment. - In a session, approve a tool once or for the rest of the session. - /exit saves the session; --continue resumes the latest, --resume picks one; /resume and /session work inside. - /context and /compact manage the context window. - Generated scripts and file moves are drafts. Read and test them. Exam tips: - "Run Copilot CLI in a script with no prompts" = copilot -p plus --allow-tool. - "Block a command even if other tools are allowed" = --deny-tool (deny wins). - "Pick up yesterday's conversation" = copilot --continue or --resume. Quick Q&A: - Q: Which flag runs a single prompt non-interactively? A: -p (or --prompt) - Q: Which wins, --allow-tool or --deny-tool? A: --deny-tool - Q: Which tool pattern allows only git commands? A: shell(git) - Q: How do you resume the most recent session? A: copilot --continue - Q: Which slash command summarises history to free context space? A: /compact ## Agent Mode, MCP Servers and Sub-Agents URL: https://azure.msdevbuild.com/gh-300/copilot-features/agent-mode-mcp-and-subagents/ Agent mode lets Copilot take a whole task: it plans, finds and edits files, runs terminal commands after you approve them, reads the output and iterates until the task is done. Copilot Edits (Edit mode) only changes the files you choose. MCP (Model Context Protocol) servers give the agent extra tools, such as the GitHub MCP server at https://api.githubcopilot.com/mcp/, configured in .vscode/mcp.json and allowed or blocked by an organization's MCP policy. Agent sessions keep separate pieces of work apart, and a sub-agent does a side task in its own context and returns only a summary, so the main conversation's context window stays focused. Key points: - Agent mode plans, edits files, runs terminal commands after approval and iterates until done. - Copilot Edits (Edit mode) changes only the files you add and shows diffs to Keep or Undo. - MCP servers add tools. VS Code reads .vscode/mcp.json with a "servers" object; the CLI uses /mcp and ~/.copilot/mcp-config.json. - The GitHub MCP server's remote URL is https://api.githubcopilot.com/mcp/. - Organizations control MCP with the "MCP servers in Copilot" policy. - Agent sessions keep work separate; sub-agents run side tasks in their own context and return a summary. - You can approve a command once or for the session; review every diff either way. Exam tips: - "Connect Copilot to an external tool or data source" = MCP server. - "Multi-file change you review, no commands" = Copilot Edits. - "Do a side task without filling the main context" = sub-agent. Quick Q&A: - Q: Which file configures MCP servers for a VS Code workspace? A: .vscode/mcp.json - Q: Which top-level key holds the servers in that file? A: "servers" - Q: What is the GitHub MCP server's remote URL? A: https://api.githubcopilot.com/mcp/ - Q: Which chat mode can run npm test? A: Agent mode - Q: What does a sub-agent return to the main agent? A: A summary of its result, not its whole context. ## Custom Instructions and Prompt Files URL: https://azure.msdevbuild.com/gh-300/copilot-features/custom-instructions-and-prompt-files/ Custom instructions are standing rules that Copilot adds to requests for you. Repository-wide rules go in .github/copilot-instructions.md, which Copilot Chat, the coding agent and code review all read; path-specific rules go in .github/instructions/*.instructions.md with an applyTo glob; agents also read AGENTS.md. A prompt file (.github/prompts/*.prompt.md) is a reusable prompt you run with /name in chat, with front matter for mode, description, tools and model and ${input:name} variables, so everyone on the team sends the same request. Key points: - .github/copilot-instructions.md holds repository-wide rules. Copilot Chat, the coding agent and code review read it. - Path-specific rules go in .github/instructions/*.instructions.md with an applyTo glob in front matter. - Agents also read AGENTS.md. Personal and organization instructions can exist too. - Prompt files are .github/prompts/.prompt.md and run with /name in chat. - Prompt file front matter can set the mode or agent, a description, tools and the model. ${input:name} adds variables. - Custom agents live in .github/agents/*.agent.md (repo) or ~/.copilot/agents/ (CLI, personal). Exam tips: - "Rules for the whole repository, used by chat, coding agent and code review" = .github/copilot-instructions.md. - "Rules only for some files" = .instructions.md with applyTo. - "Reuse the same prompt for consistent responses" = prompt file run with /name. Quick Q&A: - Q: Which file holds repository-wide custom instructions? A: .github/copilot-instructions.md. - Q: Which front matter field limits an .instructions.md file to certain paths? A: applyTo, with a glob. - Q: How do you run .github/prompts/new-endpoint.prompt.md in chat? A: Type /new-endpoint. - Q: How do you add a variable to a prompt file? A: With ${input:name}, for example ${input:resource}. - Q: Does Copilot code review read repository custom instructions? A: Yes, it uses them as the team's review standards. ## Copilot Code Review on Pull Requests URL: https://azure.msdevbuild.com/gh-300/copilot-features/copilot-code-review/ Copilot code review reads a pull request and leaves review comments, often with a suggested change you can commit in one click. You add Copilot under Reviewers (or ask for a review in your IDE), or a ruleset requests it automatically on new pull requests. Its review is always a Comment: it never approves or requests changes and doesn't count toward required approvals, so a person still approves and merges. It follows your team's standards from .github/copilot-instructions.md and path-specific .instructions.md files, and it's part of the paid Copilot plans. Key points: - Request Copilot under Reviewers on a pull request, or ask for a review from the IDE. - A ruleset can request a Copilot review on every new pull request automatically. - Copilot leaves Comment reviews with suggested changes you can commit. - It never approves or requests changes and doesn't count toward required approvals. - It reads .github/copilot-instructions.md and .instructions.md files for review standards. - Admins enable Copilot code review through Copilot policies. It's a paid-plan feature. Exam tips: - "Review every new PR automatically" = a ruleset that requests a Copilot review. - "Does Copilot's review satisfy required approvals?" = No, it only leaves Comment reviews. - "Make reviews follow team standards" = .github/copilot-instructions.md. Quick Q&A: - Q: Which review type does Copilot leave? A: Comment. Never Approve or Request changes. - Q: Does a Copilot review count toward required approvals? A: No. - Q: How do you get automatic Copilot reviews on new pull requests? A: With a ruleset rule that requests a Copilot review. - Q: Which file sets review standards for Copilot code review? A: .github/copilot-instructions.md, plus path-specific .instructions.md files. - Q: What can you do with a suggested change in a Copilot comment? A: Commit it straight from the comment, after reviewing it. ## Copilot Spaces, Spark and Pull Request Summaries URL: https://azure.msdevbuild.com/gh-300/copilot-features/spaces-spark-and-pr-summaries/ Three Copilot features on github.com solve three different problems. A pull request summary comes from the Copilot button in the PR description box: it describes what changed and which files, and you edit in the *why*. Copilot Spaces collect curated context (files, issues, notes and instructions) for a topic, so every question asked in that space is grounded in the same sources and the team can share it. GitHub Spark turns a plain-language description into a working micro app you can refine and publish; it's available on Copilot Pro+ and Copilot Enterprise. Key points: - The Copilot button in the pull request description box writes a summary of the changes. - Edit the summary. Add the why, the risk and how to test, which a diff can't tell Copilot. - Copilot Spaces gather files, issues, notes and instructions so answers are grounded in the same sources. - Spaces can be shared with a team or organization. - GitHub Spark builds and hosts micro apps from a description. It needs Copilot Pro+ or Enterprise. - Review code from any of these like any other Copilot output. Exam tips: - "Describe the changes in a pull request quickly" = Copilot PR summary in the description box. - "Share curated context so everyone's questions use the same sources" = Copilot Spaces. - "Build a small app from a natural-language description" = GitHub Spark. Quick Q&A: - Q: Where do you generate a pull request summary? A: With the Copilot button in the pull request description box. - Q: What can you add to a Copilot Space? A: Files, issues, notes and instructions. - Q: Which plans include GitHub Spark? A: Copilot Pro+ and Copilot Enterprise. - Q: Which feature grounds team questions in the same curated sources? A: Copilot Spaces. - Q: What should you add to a Copilot PR summary before opening the PR? A: The why, the risks and how to test, then check the summary is accurate. ## Copilot Policies for Organizations and Enterprises URL: https://azure.msdevbuild.com/gh-300/copilot-features/organization-policies/ Copilot policies decide what members with a Copilot seat can use. In Organization settings › Copilot, Access sets who gets a seat (all members, selected members and teams, or nobody), Policies switch features on or off (Copilot Chat in the IDE and on github.com, Copilot CLI, Copilot code review, Copilot coding agent, MCP servers in Copilot and suggestions matching public code), and Models chooses which models appear in the picker. An enterprise can enforce a policy for all its organizations, which they can't override, or leave it at No policy so each organization decides. Key points: - Organization settings › Copilot › Access: seats for all members, selected members and teams, or nobody. - Policies switch features: Copilot in the IDE, Copilot Chat on github.com, Copilot CLI, code review, coding agent, MCP servers, suggestions matching public code. - Models controls which models members can pick. A disabled model disappears from the picker. - An enterprise can enforce a policy that organizations can't override, or choose No policy so each org decides. - Org policies apply to members who get Copilot through that org. - Policy changes appear in the audit log. Exam tips: - "Organizations can't change this setting" = the enterprise enforces the policy. - "Let each organization decide" = enterprise No policy. - "Turn on Copilot code review for the org" = Copilot › Policies, often with a ruleset for automatic review. - "Limit which models members can use" = Copilot › Models. Quick Q&A: - Q: Which settings page decides who gets a Copilot seat? A: Organization settings › Copilot › Access. - Q: Name three features you can switch on or off under Policies. A: Any three of Copilot Chat in the IDE, Copilot Chat on github.com, Copilot CLI, code review, coding agent, MCP servers, suggestions matching public code. - Q: What happens when an enterprise enforces a Copilot policy? A: All its organizations get that setting and can't override it. - Q: What does No policy mean at enterprise level? A: Each organization decides for itself. - Q: How do you hide a model from members' model picker? A: Turn it off under Copilot › Models. ## Audit Log Events and Managing Seats with the REST API URL: https://azure.msdevbuild.com/gh-300/copilot-features/audit-log-and-seats-api/ Every Copilot admin change leaves a trail in the organization's audit log: events start with copilot. (seats added or cancelled, policy changes, content exclusion changes) and you find them by searching action:copilot. To manage the subscription in code, use the Copilot user management REST API: GET /orgs/{org}/copilot/billing for the settings, GET /orgs/{org}/copilot/billing/seats for every seat with last_activity_at and last_activity_editor, and POST or DELETE /orgs/{org}/copilot/billing/selected_users (or /selected_teams) to add or cancel seats. The token needs the manage_billing:copilot scope, and a cancelled seat stays active until the end of the billing cycle. Key points: - Copilot audit log events start with copilot. Search action:copilot. - Logged events include seats added or cancelled, policy changes and content exclusion changes. - GET /orgs/{org}/copilot/billing shows the subscription settings and seat counts. - GET /orgs/{org}/copilot/billing/seats lists seats with last_activity_at and last_activity_editor. - POST or DELETE /orgs/{org}/copilot/billing/selected_users (selected_usernames) or /selected_teams (selected_teams) add or cancel seats. - Token scope manage_billing:copilot. A cancelled seat lasts until the end of the billing cycle. - /orgs/{org}/copilot/metrics returns usage metrics. Exam tips: - "Who changed a Copilot policy?" = audit log, search action:copilot. - "Find inactive seats" = GET .../copilot/billing/seats and last_activity_at. - "Give a team Copilot by API" = POST .../copilot/billing/selected_teams. - "Scope for the token" = manage_billing:copilot. Quick Q&A: - Q: Which search finds Copilot events in the audit log? A: action:copilot - Q: Which field shows when a seat was last used? A: last_activity_at. - Q: Which HTTP method cancels seats for users? A: DELETE on /orgs/{org}/copilot/billing/selected_users. - Q: When does a cancelled seat stop working? A: At the end of the current billing cycle. - Q: Which token scope do the seat endpoints need? A: manage_billing:copilot. # GH-300 Domain 3: Understand GitHub Copilot data and architecture (10–15%) ## How GitHub Copilot Handles Your Data URL: https://azure.msdevbuild.com/gh-300/data-and-architecture/copilot-data-flow/ When you use GitHub Copilot, the IDE extension collects context (code around your cursor, the file name and language, related open tabs), builds a prompt and sends it encrypted over HTTPS to the GitHub Copilot proxy. The proxy authenticates you and runs pre-filters, the large language model generates a reply, and post-processing checks it before it reaches your editor. With Copilot Business and Enterprise, your code isn't used to train the models. Per the GitHub Copilot Trust Center at the time of writing, prompts and suggestions from IDE code completions aren't retained once the response is returned, while other features such as chat and the CLI may keep them for up to 28 days. Engagement data (accepts, rejects, errors) is kept to run the service and power usage metrics. Key points: - Flow: IDE extension gathers context → builds a prompt → HTTPS → Copilot proxy (auth, pre-filters) → model → post-processing → editor. - Only the context the extension picks is sent for a completion, not your whole repository. - Copilot Business and Enterprise data isn't used to train GitHub's models. - Per the Trust Center at the time of writing, IDE completion prompts and suggestions aren't retained after the response; chat and CLI may keep them up to 28 days. - Engagement data (accepts, rejects, errors) is kept to operate the service and power metrics. - Individual plans have a personal setting about using data for product improvements. Exam tips: - "Is our code used to train the model on Copilot Business?" = No. - "What is kept for metrics?" = engagement data (accepted, dismissed, errors). - "Which component authenticates and filters requests before the model?" = the Copilot proxy. Quick Q&A: - Q: How is data protected on its way to GitHub? A: Encrypted in transit over HTTPS (TLS). - Q: What sits between the IDE and the model? A: The GitHub Copilot proxy. - Q: Does Copilot Business use your code to train models? A: No. - Q: What kind of data powers Copilot usage metrics? A: Engagement data, such as accepted and dismissed suggestions. - Q: Where do you check current retention numbers? A: The GitHub Copilot Trust Center. ## How GitHub Copilot Builds a Prompt from Context URL: https://azure.msdevbuild.com/gh-300/data-and-architecture/prompt-building-and-context/ Copilot never sees "your project" as a whole. For an inline suggestion, the IDE extension gathers the code before and after your cursor, the file name and language, and related snippets from open tabs, then ranks and trims them into a prompt that fits the model's limited context window. In chat, the prompt also includes your question, the active file or selection, anything you attach (#file, #selection, #codebase, #terminalLastCommand, images), custom instructions and earlier turns of the conversation. Content exclusions remove files from that context, and Used n references shows what was really sent. Key points: - Inline suggestion context: code before and after the cursor, file name and language, related snippets from open tabs. - The context window is limited, so context is ranked and trimmed before it's sent. - Chat adds: your question, active file or selection, # variables, @ participants, custom instructions and chat history. - #file, #selection, #codebase, #changes, #terminalSelection and #terminalLastCommand attach specific context. - Content exclusions remove files from context in supported IDEs. - Used n references shows what context a chat answer really used. Exam tips: - "Improve inline suggestions with related code" = open the related file in a tab. - "Ask chat about one specific file" = #file (or select the code). - "Search the whole workspace from chat" = #codebase or @workspace. Quick Q&A: - Q: Name two things the extension includes for an inline suggestion. A: Code around the cursor and the file name or language (also open tabs). - Q: Why does context have to be trimmed? A: The model's context window is limited. - Q: Which chat variable attaches the code you've highlighted? A: #selection - Q: Where do you see which files a chat answer used? A: Used n references, under the answer. - Q: Does an excluded file get used as context? A: No, not in supported IDEs. ## GitHub Copilot Proxy Filtering and Post-Processing URL: https://azure.msdevbuild.com/gh-300/data-and-architecture/proxy-filtering-and-post-processing/ Every Copilot request passes through a GitHub-hosted proxy. On the way in, the proxy authenticates you (signed in, with Copilot access) and runs pre-filters that catch harmful or offensive content and prompt injection attempts before the model sees the prompt. On the way out, post-processing checks the model's reply for code quality and common insecure patterns, offensive content, and, when the Suggestions matching public code policy is set to Block, matches of about 150 characters with public code. A blocked suggestion simply isn't shown; with Allow, matches come with a code reference. Filters reduce risk, but you still review, test and scan everything you accept. Key points: - Every Copilot request goes through a GitHub-hosted proxy over HTTPS. - Inbound: authentication, then pre-filters for harmful or offensive content and prompt injection. - Outbound: post-processing for quality, common insecure patterns, offensive content and public code matches. - Public code filter Block hides matches of about 150 characters; Allow shows them with a code reference. - Filters reduce risk; they don't replace review, tests and code scanning. Exam tips: - "Which component checks prompts for offensive content before the model?" = the proxy pre-filters. - "Which step removes a suggestion that matches public code?" = post-processing with the policy set to Block. - "Do filters remove the need for code review?" = No. Quick Q&A: - Q: Name one thing the proxy pre-filters for. A: Harmful or offensive content, or prompt injection. - Q: About how long a match does the public code filter look for? A: About 150 characters. - Q: What do you see with the public code policy set to Allow? A: The suggestion plus a code reference (repository and licence). - Q: Does the proxy run on your machine? A: No, GitHub hosts it. - Q: What should still check Copilot code for vulnerabilities? A: Your review, tests and code scanning in CI. ## The Copilot Code Suggestion Lifecycle and LLM Limits URL: https://azure.msdevbuild.com/gh-300/data-and-architecture/suggestion-lifecycle-and-limits/ A Copilot inline suggestion has a lifecycle: you pause typing, the IDE extension gathers context and checks content exclusions, builds a prompt that fits the context window, and sends it over HTTPS to the Copilot proxy (auth and pre-filters). The LLM predicts tokens, post-processing filters the reply, and it appears as grey ghost text. You Tab to accept, Esc to dismiss, Alt+] / Alt+[ to cycle alternatives, Ctrl+→ to accept word by word, and engagement data records what you chose. LLM limits still apply: a knowledge cut-off, hallucinated APIs or packages, insecure or outdated code, bias, non-deterministic output, a limited context window, weaker results for rare languages, and no real understanding or execution of your code. Key points: - Lifecycle: pause → gather context → exclusions → prompt → HTTPS → proxy (auth, pre-filters) → LLM → post-processing → ghost text → accept or reject → engagement data. - Keys: Tab accept, Esc dismiss, Alt+] / Alt+[ cycle (Option on macOS), Ctrl+→ next word, Ctrl+Enter completions panel. - Next edit suggestions predict your next edit based on recent changes. - LLM limits: knowledge cut-off, hallucinations, insecure or outdated code, bias, non-determinism, limited context window, weaker for rare languages, no real understanding or execution. - Every accepted suggestion is a draft you review and test. Exam tips: - "See an alternative suggestion" = Alt+] (next) or Alt+[ (previous). - "Accept only part of a suggestion" = Ctrl+→ (next word). - "Suggested package doesn't exist" = hallucination; verify before installing. Quick Q&A: - Q: Which key accepts a whole suggestion? A: Tab - Q: Which shortcut opens the completions panel? A: Ctrl+Enter - Q: Why can Copilot suggest outdated APIs? A: Its training data has a knowledge cut-off. - Q: Does the model run your code before suggesting it? A: No. - Q: What triggers an inline suggestion? A: Pausing while you type (or an explicit trigger). # GH-300 Domain 4: Apply prompt engineering and context crafting (10–15%) ## Prompt Structure and Context for GitHub Copilot URL: https://azure.msdevbuild.com/gh-300/prompt-engineering/prompt-structure-and-context/ A good Copilot prompt has three parts: a goal (what you want and why), context (which code, framework or data it applies to) and constraints (style, edge cases, what not to change). Copilot only knows what reaches the prompt. In the editor, context comes from the current file, code around the cursor and open tabs. In chat, it comes from the active file or selection, what you attach with #file, #selection, #codebase or images, @ participants such as @workspace, custom instructions in .github/copilot-instructions.md, and earlier chat history. Be specific, point at the right code, and check Used n references to see what was used. Key points: - Prompt structure: goal + context + constraints. Add examples when the format matters. - Copilot only knows what reaches the prompt. - Editor context: current file, code around the cursor, open tabs. Comments steer inline suggestions. - Chat context: active file or selection, # variables, @ participants, custom instructions, chat history. - Repository instructions in .github/copilot-instructions.md travel with chat, agent and review requests. - Check Used n references to see what context was used. Exam tips: - "Improve a vague prompt" = add the goal, the context (file, function) and constraints. - "Make Copilot use a specific file" = #file or select the code. - "Apply team rules to every chat request in a repo" = .github/copilot-instructions.md. Quick Q&A: - Q: Name the three parts of a well-structured prompt. A: Goal, context and constraints. - Q: Which chat variable searches your whole workspace? A: #codebase - Q: Where do repository-wide custom instructions live? A: .github/copilot-instructions.md - Q: What steers inline suggestions in the editor? A: Nearby code, comments, the file name and open tabs. - Q: How do you check which files a chat answer used? A: Expand Used n references. ## Zero-Shot and Few-Shot Prompting with GitHub Copilot URL: https://azure.msdevbuild.com/gh-300/prompt-engineering/zero-shot-and-few-shot-prompting/ A zero-shot prompt gives Copilot only the instruction ("write a log line for a failed payment"), so it falls back to the most common pattern it knows. A few-shot prompt adds one or more examples of the input and output you want, then asks, so Copilot copies your format, naming and style. Use zero-shot for common, well-known tasks and few-shot when your format is unusual or house-specific. In the editor, a couple of example lines above the cursor work as few-shot for inline suggestions too. Best practice: be specific, give examples, keep each prompt to one task, and iterate on the answer. Key points: - Zero-shot is the instruction only; Copilot uses the most common pattern it has seen. - Few-shot adds examples of the output you want before the request; Copilot follows them. - Few-shot wins for unusual or house-specific formats, naming and styles. - Example lines above the cursor act as few-shot context for inline suggestions. - Best practices: be specific, give examples, one task per prompt, keep it short, iterate. Exam tips: - "Copilot ignores our custom format" = add examples (few-shot). - "A prompt with no examples" = zero-shot. "With one example" = one-shot, a kind of few-shot. - "Make the format apply to every chat in the repo" = custom instructions, not repeating examples each time. Quick Q&A: - Q: What do you add to turn a zero-shot prompt into a few-shot prompt? A: Examples of the input and output you want. - Q: When is zero-shot usually enough? A: For common, well-known tasks with a standard answer. - Q: How do you few-shot an inline suggestion? A: Write one or two example lines above the cursor and let Copilot continue the pattern. - Q: What is a one-shot prompt? A: A few-shot prompt with exactly one example. - Q: Name two prompt best practices. A: Be specific and iterate (also give examples, one task per prompt, keep it short). ## Prompt Engineering Principles and Chat History in Copilot URL: https://azure.msdevbuild.com/gh-300/prompt-engineering/prompt-engineering-and-chat-history/ Prompt engineering means shaping what you send Copilot so it can act on it: one clear task, specific details, short and relevant context, examples when the format matters, then refine. Microsoft Learn sums it up as the 4 S's: single, specific, short and surround (keep related files open, use clear names). When you send a chat message, the IDE adds your selection, the active file, any # references, custom instructions and the earlier messages in the same chat, sends that prompt over HTTPS through the Copilot proxy to the model, and filters the reply before you see it. Chat history makes follow-ups like "now add tests" work, but old or unrelated turns can confuse answers and use up the context window, so start a new chat or type /clear when the topic changes. Key points: - Principles: one task, specific details, short and relevant context, examples, iterate. - Microsoft Learn's 4 S's: single, specific, short, surround. - Prompt flow: your words + selection/active file + # references + instructions + chat history → proxy (auth, filters) → model → post-processing → chat. - Chat history is sent with each message in the same conversation; that's what makes follow-ups work. - Old or off-topic history confuses answers and uses context window. Start a new chat or /clear. - Copilot doesn't remember other conversations. Standing rules belong in custom instructions. Exam tips: - "Answers reference something from earlier in the conversation" = chat history is part of the prompt. - "Responses became confused after switching topics" = start a new chat or /clear. - "Rules must apply to every conversation" = custom instructions, not chat history. Quick Q&A: - Q: What are the 4 S's? A: Single, specific, short, surround. - Q: Which slash command clears the current chat? A: /clear - Q: Does a new chat include the previous conversation? A: No. It starts without that history. - Q: Name two things besides your message that go into a chat prompt. A: The active file or selection and the chat history (also - Q: Why can a very long chat give worse answers? A: Old turns compete for the limited context window and can steer answers off topic. # GH-300 Domain 5: Improve developer productivity with GitHub Copilot (10–15%) ## Generate, Refactor and Document Code with GitHub Copilot URL: https://azure.msdevbuild.com/gh-300/developer-productivity/generate-refactor-and-document/ Copilot speeds up three everyday jobs. Generate: describe what you want in a comment or a chat prompt and accept the inline suggestion or code block. Refactor: select code and ask, usually in Edit mode, for a change that keeps the behaviour the same; review the diff, run the tests, then Keep or Undo. Document: /doc writes doc comments, and chat can draft README sections or explain a file. It also cuts context switching: /explain, @workspace and #codebase answer questions about unfamiliar code inside the IDE instead of a browser search. Every result is a draft you review and test. Key points: - Generate: comments, signatures or chat prompts; accept with Tab or insert from chat. - Refactor: select the code, use Edit mode, say the behaviour must not change, review the diff, run tests, Keep or Undo. - Document: /doc for doc comments; chat can draft README sections and explain code. - /explain, @workspace and #codebase answer questions inside the IDE, reducing context switching. - Next edit suggestions (NES) predict the next edit after a change, handy for repetitive refactors. - Everything Copilot produces is a draft you review and test. Exam tips: - "Restructure code without changing behaviour" = refactor, review the diff and run tests. - "Generate documentation comments" = /doc. "Understand unfamiliar code" = /explain. - "Reduce time spent searching outside the editor" = ask Copilot Chat in the IDE (context switching). Quick Q&A: - Q: Which slash command writes documentation comments? A: /doc - Q: Which chat mode applies changes to files and shows diffs to Keep or Undo? A: Edit mode. - Q: What should you do before choosing Keep on a refactor? A: Review the diff and run the tests. - Q: Which participant asks questions about the whole workspace? A: @workspace - Q: What does reducing context switching mean here? A: Getting answers inside the IDE instead of leaving for search or docs. ## Generate Sample Data and Modernize Legacy Code with Copilot URL: https://azure.msdevbuild.com/gh-300/developer-productivity/sample-data-and-legacy-code/ For sample data, ask Copilot for the exact shape you need (JSON, CSV, SQL inserts) with clearly fake values such as example.com emails and "Test Customer" names, and never paste real customer data into a prompt. For legacy code, start with /explain so you understand what it does, add tests that pin the current behaviour, then ask Copilot to modernize it in small steps that keep the same output. Agent mode can update callers and run the tests for you after you approve. Copilot can also translate between languages, but it's weaker on rare or old languages, so review and test every change. Key points: - Ask for sample data in an exact shape, pointing Copilot at the schema or type. - Use clearly fake values (example.com, test names); never put real personal data in a prompt. - Legacy first step: /explain, then characterization tests that pin current behaviour. - Modernize in small steps that keep the same output, reviewing each diff. - Agent mode can update callers and run tests after you approve commands. - Copilot is weaker on rare or old languages, so translations need careful testing. Exam tips: - "Create test data without exposing personal information" = ask for fake/synthetic data. - "Understand old code before changing it" = /explain. - "Make sure the modernized code behaves the same" = tests first, small steps, review diffs. Quick Q&A: - Q: Which slash command helps you understand a legacy file? A: /explain - Q: What kind of email domain should fake data use? A: example.com (a reserved example domain). - Q: What tests should you write before modernizing? A: Characterization tests that capture current behaviour. - Q: Which chat mode can update callers and run tests? A: Agent mode. - Q: Why test translations from older languages extra carefully? A: Copilot is less reliable on rare or older languages. ## Unit Tests, Integration Tests and Edge Cases with Copilot URL: https://azure.msdevbuild.com/gh-300/developer-productivity/unit-and-integration-tests/ Select the code and run /tests in Copilot Chat (or ask agent mode) to generate unit tests, which check one function in isolation. Name the edge cases you care about (unknown input, missing values, zero, empty lists, very large numbers, boundaries) and ask Copilot to suggest ones you missed. Check every test has a clear assertion of one behaviour with an exact expected value. Integration tests check pieces working together, such as an API route calling the discount module; ask Copilot for the setup and teardown too. Run the tests: when a generated test fails, decide whether the code has a bug or the test is wrong, then fix the right one. Key points: - /tests on a selection generates tests in the project's framework; agent mode can also write and run them. - Unit tests check one function in isolation; integration tests check parts working together. - Name edge cases in the prompt and ask Copilot for the ones you missed. - Strong assertions: one behaviour, exact expected value. Weak: only 'is defined'. - A failing generated test means a bug in the code or in the test. Decide which, don't just delete it. - Tests from Copilot are code you review; a passing test can still check the wrong thing. Exam tips: - "Generate tests for selected code" = /tests. - "Make sure tests cover unusual inputs" = ask Copilot to identify edge cases. - "Verify the API and the business logic work together" = integration test. Quick Q&A: - Q: Which slash command generates tests? A: /tests - Q: What does a unit test isolate? A: One small piece of code, such as a single function. - Q: Give two edge cases for applyDiscount(total, code). A: An unknown code and no code (also a zero or very large total). - Q: What makes an assertion strong? A: It checks one behaviour against an exact expected value. - Q: A generated test fails. What are the two possibilities? A: The code has a bug, or the test is wrong. ## Security Improvements and Performance Fixes with GitHub Copilot URL: https://azure.msdevbuild.com/gh-300/developer-productivity/security-and-performance-fixes/ GitHub Copilot can review code for security and performance when you ask. Select the code and ask in Chat ("Is this safe?", "Find vulnerabilities", "This runs in a loop, can it be faster?") or use /fix. It spots common problems such as SQL injection, hard-coded secrets, missing input validation, N+1 queries and repeated work in loops, then proposes a fix. Copilot's filters also block some insecure patterns in suggestions, but not all. Treat its advice as a starting point: confirm with tests, code scanning (CodeQL), dependency checks and a human review. Key points: - Ask Copilot directly to review for security or performance, and name the risk you care about. - Common security finds include SQL injection, hard-coded secrets, missing input validation and unsafe deserialisation. - Common performance finds include N+1 queries, repeated work inside loops, selecting more data than needed and missing caching. - Copilot's post-processing filters catch some insecure patterns in suggestions, not all. - Confirm every fix with tests, code scanning, dependency checks and human review. - Never paste secrets or real personal data into prompts to get help. Exam tips: - "Use Copilot to find vulnerabilities in selected code" = select it and ask Chat (or /fix for a known problem). - "Ensure a Copilot security fix actually works" = tests plus code scanning, not more prompts. - "One query per item in a loop" = N+1; the fix is a single batched query. - "Copilot filters insecure code, so review is optional" is always false. Quick Q&A: - Q: What's the usual fix for SQL injection? A: A parameterised query with placeholders instead of string concatenation. - Q: Name a performance problem Copilot can spot in loops. A: An N+1 query, or repeating the same work on every pass. - Q: Do Copilot's filters block all insecure code? A: No, only some common patterns. - Q: Which GitHub feature runs CodeQL on pull requests? A: Code scanning. - Q: Which slash command asks Copilot to propose a fix? A: /fix. # GH-300 Domain 6: Configure privacy, content exclusions, and safeguards (10–15%) ## GitHub Copilot Content Exclusions and Editor Settings URL: https://azure.msdevbuild.com/gh-300/privacy-and-safeguards/content-exclusions/ Content exclusions stop GitHub Copilot from using chosen files. A repository admin lists paths under Settings › Copilot › Content exclusion; an organization admin writes YAML that maps repositories (or "*" for all) to paths; enterprises can set them too. In supported IDEs an excluded file gets no inline suggestions and isn't used as context for other files. Exclusions need Copilot Business or Enterprise, can take up to 30 minutes to reach an open IDE, show up in the audit log, and don't apply to every Copilot feature. Separately, the github.copilot.enable editor setting turns completions on or off per language for you only. Key points: - Content exclusions are a Copilot Business and Enterprise feature. - Repository level is a list of paths; organization level is YAML mapping a repository (or "*") to paths; enterprises can also set them. - Excluded files get no inline suggestions and aren't used as context in supported IDEs. - Changes can take up to 30 minutes to reach an open IDE. Reloading the window helps. - Exclusions don't apply to every Copilot feature, so check the docs for the ones you rely on. - Exclusion changes are recorded in the audit log. - github.copilot.enable switches completions per language for one user. It isn't a security control. Exam tips: - "Stop Copilot using one folder in one repository" = repository settings › Copilot › Content exclusion. - "Same rule for every repository in the org" = organization YAML with "*". - "Excluded but still suggesting" = wait up to 30 minutes or reload the window. - "Turn off completions for Markdown just for me" = github.copilot.enable. Quick Q&A: - Q: Which plans support content exclusions? A: Copilot Business and Copilot Enterprise. - Q: What does "*" mean in an organization exclusion? A: Apply the listed paths to every repository in the organization. - Q: How long can an exclusion change take to reach an open IDE? A: Up to 30 minutes. - Q: Where can you see who changed an exclusion? A: In the audit log, as a copilot event. - Q: Which VS Code setting turns completions off for one language? A: github.copilot.enable. ## Who Owns GitHub Copilot Output, and Its Limits URL: https://azure.msdevbuild.com/gh-300/privacy-and-safeguards/output-ownership-and-limits/ GitHub doesn't claim ownership of Copilot's suggestions. Once you accept a suggestion it's part of your code, and you're responsible for it: whether it's correct, secure, and allowed under the licences involved. Copilot's output has limits: it can be wrong, insecure, outdated (the model has a training cut-off), it can invent APIs or packages, it may match public code under a licence, and it can't run or truly understand your code. Business and Enterprise terms include IP indemnity, so know what your plan's terms say. In practice: review, test, scan and check licences before anything ships. Key points: - GitHub doesn't claim ownership of Copilot suggestions. - The developer who accepts a suggestion is responsible for its correctness, security and licensing. - Output can be wrong, insecure, outdated or invented, and may match public code. - Copilot predicts code; it doesn't run, test or understand it. - Code references show the repository and licence when a suggestion matches public code (policy Allow). - Business and Enterprise terms include IP indemnity. Know your plan's terms. Exam tips: - "Who is responsible for code accepted from Copilot?" = the developer (and their organization). - "Does GitHub claim ownership of suggestions?" = No. - "Copilot used an API that doesn't exist" = a limitation (hallucination); validate output. - "See the licence of matching public code" = code references with the policy set to Allow. Quick Q&A: - Q: Does GitHub claim ownership of Copilot suggestions? A: No. - Q: Who answers for a bug in accepted Copilot code? A: The developer and organization that shipped it. - Q: Why might Copilot not know a library released last month? A: The model's training data has a cut-off date. - Q: What does a code reference show? A: The matching public repository and its licence. - Q: Which plans' terms include IP indemnity? A: Copilot Business and Copilot Enterprise (check the terms for conditions). ## Public Code Matching in Copilot: Block or Show References URL: https://azure.msdevbuild.com/gh-300/privacy-and-safeguards/public-code-filter-and-references/ When a Copilot suggestion matches code in a public GitHub repository (a match of about 150 characters or more), the "Suggestions matching public code" policy decides what happens. Block hides the matching suggestion. Allow shows it and adds a code reference: the matching repositories and their licences, in VS Code's Output › GitHub Copilot Log (Code References) and in chat answers. Organization owners set it for Business and Enterprise seats (an enterprise can enforce it); individuals on Free, Pro or Pro+ set it in their own Copilot settings. Either way, you're responsible for what you accept. Key points: - The policy is "Suggestions matching public code" with values Block and Allow. - A match is about 150 characters or more of code that matches a public repository. - Block hides matching suggestions; Allow shows them with code references (repository and licence). - Inline matches appear in Output › GitHub Copilot Log (Code References); chat lists references in the answer. - Organization owners set it for org seats; enterprises can enforce it; individuals set it for Free, Pro and Pro+. - Whatever the setting, the developer is responsible for accepted code. Exam tips: - "Prevent suggestions that match public code" = set the policy to Block. - "See the licence of matching code" = Allow plus code references. - "Where are inline code references in VS Code?" = Output › GitHub Copilot Log (Code References). - "All organizations must use the same setting" = enforce it at the enterprise. Quick Q&A: - Q: What are the two values of the public code policy? A: Block and Allow. - Q: About how long is a match? A: About 150 characters. - Q: What does a code reference show? A: The matching repository and its licence. - Q: Who sets the policy for Copilot Business users? A: The organization owner, unless the enterprise enforces it. - Q: Does a code reference mean you can use the code freely? A: No. You must follow the licence it shows. ## Troubleshoot GitHub Copilot Suggestions and Content Exclusions URL: https://azure.msdevbuild.com/gh-300/privacy-and-safeguards/troubleshoot-copilot/ When Copilot goes quiet, start with the status bar icon and work outward. Are you signed in with an account that has a seat? Is the file excluded by a content exclusion? Are completions disabled for that language in github.copilot.enable? Is the public code filter (Block) hiding a match? Is a proxy or firewall blocking Copilot's endpoints? Is the extension up to date, and does an organization policy turn the feature off? Read Output › GitHub Copilot (or run GitHub Copilot: Open Logs) for the real error. For exclusions, remember changes can take up to 30 minutes to reach an open IDE; reload the window. Key points: - Start with the status bar icon, then the seat and sign-in. - One file only? Check content exclusions and the per-language github.copilot.enable setting. - Missing one suggestion with Block set? The public code filter may be hiding a match. - Network errors mean a proxy or firewall is blocking Copilot's endpoints. - Update the extension and check organization policies for disabled features. - Logs live in Output › GitHub Copilot, or run GitHub Copilot - Open Logs. - Exclusion changes can take up to 30 minutes; reload the window. Exam tips: - "No suggestions in any file" = sign-in / seat first, then network. - "No suggestions in one file" = content exclusion or language disabled. - "Exclusion added but suggestions continue" = wait up to 30 minutes or reload the window. - "Find the error details" = Output › GitHub Copilot logs. Quick Q&A: - Q: Where's the first place to look when Copilot stops? A: The Copilot status bar icon. - Q: Which setting turns completions off for a language? A: github.copilot.enable. - Q: What does a proxy error in the logs point to? A: A proxy or firewall blocking Copilot's endpoints. - Q: How long can an exclusion change take to reach an open IDE? A: Up to 30 minutes. - Q: Which command opens the Copilot logs? A: GitHub Copilot - Open Logs (or Output › GitHub Copilot). ## Ask vs Edit vs Agent mode URL: https://azure.msdevbuild.com/gh-300/compare/ask-vs-edit-vs-agent-mode/ Use Ask to understand code or get an answer; it changes nothing by itself. Use Edit when you know which files should change and want to review each diff. Use Agent when you want Copilot to work out the files, make the changes, run commands and tests and iterate until the task is done. - Exam tip: “Copilot should run the tests and fix failures without being told which files to change” = Agent mode. “Explain this regex” = Ask. “Apply this rename to these three files and review each diff” = Edit. ## Inline suggestions vs Chat vs Copilot CLI vs coding agent URL: https://azure.msdevbuild.com/gh-300/compare/inline-vs-chat-vs-cli-vs-coding-agent/ Inline suggestions finish the code you are typing. Copilot Chat answers and edits in the IDE (Ask, Edit, Agent). Copilot CLI brings the agent to your terminal, interactively or with copilot -p. Copilot coding agent works on its own in a GitHub Actions environment and opens a pull request. - Exam tip: “Work on an issue in the background and open a pull request” = Copilot coding agent. “Run a prompt in a CI script with only write access” = copilot -p --allow-tool 'write'. ## Copilot Free vs Pro vs Pro+ vs Business vs Enterprise URL: https://azure.msdevbuild.com/gh-300/compare/copilot-plans-compared/ Free, Pro and Pro+ are personal plans you buy (or get) yourself. Business is bought by an organization per seat and adds central policies, content exclusions, the audit log and IP indemnity terms. Enterprise builds on Business for GitHub Enterprise Cloud with extra enterprise features. - Exam tip: “Exclude files from Copilot for everyone in the company” or “manage seats with the REST API” point to Business or Enterprise. Personal plans don’t have organization policies. ## Custom instructions vs prompt files vs custom agents URL: https://azure.msdevbuild.com/gh-300/compare/instructions-vs-prompt-files-vs-agents/ Custom instructions are rules Copilot adds to requests automatically (.github/copilot-instructions.md, or .instructions.md files with applyTo). A prompt file (.github/prompts/*.prompt.md) is a reusable request you run on demand with /name. A custom agent (.agent.md) is a named persona with its own instructions and tools. - Exam tip: “Make Copilot code review apply our standards on every PR” = put them in .github/copilot-instructions.md. “A reusable prompt the whole team runs with a slash command” = a prompt file. ## Copilot code completion URL: https://azure.msdevbuild.com/gh-300/services/copilot-inline-suggestions/ Grey ghost-text suggestions as you type, from a single line to a whole function, plus next edit suggestions that predict your next change. Tab accepts, Esc dismisses. ## Copilot Chat URL: https://azure.msdevbuild.com/gh-300/services/copilot-chat/ A chat assistant in your IDE and on github.com. Ask questions, use slash commands (/explain, /fix, /tests, /doc), add context with # and @, and pick a model. ## Copilot agent mode URL: https://azure.msdevbuild.com/gh-300/services/copilot-agent-mode/ A Chat mode where Copilot plans a task, edits the files it needs, runs commands and tests (after asking), reads errors and iterates until the task is done. Extended with MCP tools. ## Copilot coding agent URL: https://azure.msdevbuild.com/gh-300/services/copilot-coding-agent/ Assign an issue to Copilot, or delegate from the IDE or CLI. It works in a GitHub Actions environment on its own branch and opens a draft pull request for you to review. ## GitHub Copilot CLI URL: https://azure.msdevbuild.com/gh-300/services/copilot-cli/ The copilot command: an agent in your terminal. Interactive sessions with slash commands, or copilot -p for one prompt, with --allow-tool and --deny-tool to control what it may run. ## Copilot code review URL: https://azure.msdevbuild.com/gh-300/services/copilot-code-review/ Request Copilot as a reviewer on a pull request (or in the IDE). It leaves comments, often with suggested changes, following the standards in your custom instructions. Its review is always a comment, not an approval. ## Custom instructions and prompt files URL: https://azure.msdevbuild.com/gh-300/services/custom-instructions/ Markdown files that steer Copilot: .github/copilot-instructions.md for every request in a repo, .instructions.md files with applyTo for some paths, and .prompt.md files for reusable prompts. ## MCP servers for Copilot URL: https://azure.msdevbuild.com/gh-300/services/mcp-servers/ Model Context Protocol servers give Copilot tools: the GitHub MCP server for issues, PRs and Actions, others for browsers, docs or your own APIs. Configured in mcp.json or with /mcp; orgs can restrict them. ## Copilot Spaces and Spark URL: https://azure.msdevbuild.com/gh-300/services/copilot-spaces/ Copilot Spaces collect files, issues, notes and instructions about a topic so questions are grounded in the same sources. Spark builds small full-stack apps from a description. Copilot also writes pull request summaries. ## Content exclusion URL: https://azure.msdevbuild.com/gh-300/services/content-exclusion/ Repository, organization and enterprise admins list paths Copilot must ignore. Excluded files aren’t used as context and get no inline suggestions in supported IDEs. Changes can take up to 30 minutes to reach editors. ## Public code filter and code references URL: https://azure.msdevbuild.com/gh-300/services/public-code-filter/ Decides what happens when a suggestion matches public code (about 150 characters): Block hides it; Allow shows it with a code reference listing the repositories and licences. ## Copilot policies, seats and audit log URL: https://azure.msdevbuild.com/gh-300/services/copilot-policies/ Enterprise and organization owners switch Copilot features and models on or off, assign seats (also with the REST API) and see Copilot events in the audit log and metrics.