Quibank app: now on the App Store — free, works offline. Get the app ↗

24 Azure: Compute & Networking Practice Questions & Answers

Every Azure: Compute & Networking practice question from the AZ-900 Azure Fundamentals Practice Test, with the correct answer and a short explanation.

Start practice test →
  1. 1. A company is moving a legacy accounting app to Azure. The app needs a custom driver installed in the operating system, and the IT team wants to control OS patching itself. Which compute option fits best?

    • A.Azure Container Instances
    • B.Azure App Service
    • C.Azure Functions
    • D.Azure Virtual Machines✓ Answer

    Azure Virtual Machines are infrastructure as a service: you get full control of the guest operating system, so you can install custom drivers and manage patching yourself. Container Instances, Functions and App Service are managed platforms where you do not control the underlying OS.

    Ref QB-2BVGX5Source: Microsoft Learn, Azure Virtual Machines overview (what you need to create a VM: size, OS disk and data disks, virtual network, NIC, public IP, NSG)Report a problem with this question

  2. 2. A developer needs to run a single containerized job in Azure as quickly and simply as possible, without managing virtual machines or adopting an orchestration platform. Which service should the developer use?

    • A.Azure Virtual Desktop
    • B.Azure Kubernetes Service
    • C.Azure Virtual Machines
    • D.Azure Container Instances✓ Answer

    Azure Container Instances runs a container directly in Azure without any virtual machines to manage and without a higher-level orchestrator, which makes it the simplest and fastest option. Azure Kubernetes Service adds orchestration for many containers, and a VM means managing the OS yourself.

    Ref QB-GTBZ64Source: Microsoft Learn, What is Azure Container Instances? (fastest and simplest way to run a container in Azure without managing virtual machines)Report a problem with this question

  3. 3. An online shop wants code to run automatically each time a customer uploads a photo to Blob Storage, and it wants to pay only while that code is running. Which service fits best?

    • A.Azure Functions✓ Answer
    • B.Azure Kubernetes Service
    • C.Azure Virtual Machine Scale Sets
    • D.Azure App Service

    Azure Functions is event-driven serverless compute: a Blob Storage trigger runs the function when a file is uploaded, and on the Consumption plan you pay only for execution while instances scale automatically. App Service, AKS and scale sets keep compute allocated whether or not an event arrives.

    Ref QB-ZAH6S4Source: Microsoft Learn, Azure Functions overview (event-driven triggers such as Blob Storage uploads; serverless hosting)Report a problem with this question

  4. 4. Which statement correctly describes how containers differ from virtual machines (VMs)?

    • A.Containers each carry a full guest OS, while VMs share the host's kernel
    • B.Containers virtualize the hardware, while VMs virtualize the operating system
    • C.Containers run only on Linux hosts, while VMs can run Windows or Linux
    • D.Containers virtualize the operating system, while VMs virtualize the hardware✓ Answer

    A VM virtualizes hardware and runs its own full guest operating system, while containers virtualize the operating system: they share the host kernel and package only the app and its dependencies, which is why they are lightweight, portable and start quickly. Azure supports both Linux and Windows containers.

    Ref QB-FTYNZ2Source: Microsoft Learn, What is Azure Container Instances? (fastest and simplest way to run a container in Azure without managing virtual machines)Report a problem with this question

  5. 5. A company runs three web-tier VMs in a region that doesn't offer availability zones. It wants the VMs spread across separate power and network racks and restarted in groups during planned maintenance, at no extra charge beyond the VMs. What should it use?

    • A.A network security group
    • B.An availability set✓ Answer
    • C.A resource group
    • D.A virtual network subnet

    An availability set places VMs in different fault domains (separate power and network) and update domains (restarted at different times during planned maintenance). It costs nothing beyond the VMs themselves. Network security groups filter traffic, subnets divide address space, and resource groups only organize resources.

    Ref QB-YA6UK3Source: Microsoft Learn, Availability sets overview (fault domains share power source and network switch; update domains restart together during planned maintenance)Report a problem with this question

  6. 6. In an Azure availability set, what does an update domain represent?

    • A.VMs that share a common power source and network switch
    • B.VMs that can be restarted together for planned maintenance✓ Answer
    • C.VMs placed in a different availability zone of the region
    • D.VMs built from one image that scale out together on demand

    Update domains group VMs and underlying hardware that can be restarted at the same time; during planned maintenance only one update domain is restarted at a time. A shared power source and network switch defines a fault domain instead, and identical VMs that scale out describe a scale set.

    Ref QB-ETMBUZSource: Microsoft Learn, Availability sets overview (fault domains share power source and network switch; update domains restart together during planned maintenance)Report a problem with this question

  7. 7. A top-of-rack network switch fails in an Azure datacenter. Which availability set concept is designed to keep all of an app's VMs from going down together in this case?

    • A.Fault domains✓ Answer
    • B.Update domains
    • C.Scale-in policies
    • D.Deployment slots

    A fault domain is a group of VMs that share a common power source and network switch, so spreading VMs across fault domains limits the impact of a hardware, network or power failure. Update domains address planned maintenance reboots, not unplanned hardware failures.

    Ref QB-XATGE2Source: Microsoft Learn, Availability sets overview (fault domains share power source and network switch; update domains restart together during planned maintenance)Report a problem with this question

  8. 8. A retailer's web tier must run identical, load-balanced VMs and automatically add instances when CPU use climbs during holiday sales, then remove them afterward. Which option meets this need?

    • A.Azure Virtual Machine Scale Sets✓ Answer
    • B.Resizing one VM to a larger size
    • C.Azure Virtual Desktop host pools
    • D.An availability set of identical VMs

    Virtual Machine Scale Sets manage a group of load-balanced VMs whose instance count increases or decreases automatically in response to demand or a schedule. An availability set improves resiliency but does not autoscale, and resizing a single VM is vertical scaling that does not add instances.

    Ref QB-DT9ZNYSource: Microsoft Learn, What are Virtual Machine Scale Sets? (group of load-balanced VMs that scale automatically on demand or a schedule)Report a problem with this question

  9. 9. A firm wants staff to open a full Windows 11 desktop from their personal laptops, with several users sharing each session host VM and company data kept off the laptops. Which service fits?

    • A.Azure Virtual Machine Scale Sets
    • B.Azure Container Instances
    • C.Azure Virtual Desktop✓ Answer
    • D.Azure App Service

    Azure Virtual Desktop is a desktop and app virtualization service that delivers full Windows desktops from Azure, including Windows 11 and Windows 10 Enterprise multi-session so several users can share one VM. Because the desktop runs in Azure, company data stays off the user's device.

    Ref QB-WAF69ZSource: Microsoft Learn, What is Azure Virtual Desktop? (Windows 11/10 Enterprise multi-session, full desktops and RemoteApp)Report a problem with this question

  10. 10. When you create an Azure VM, which resource attaches the VM to a subnet of a virtual network so it can communicate?

    • A.A public IP address
    • B.A managed data disk
    • C.A network security group
    • D.A network interface (NIC)✓ Answer

    A network interface card (NIC) connects a VM to a virtual network and its subnet, and it holds the VM's private IP address. A public IP address is optional and only enables internet reachability, a network security group filters traffic, and a data disk provides storage.

    Ref QB-9Z2PPRSource: Microsoft Learn, Azure Virtual Machines overview (what you need to create a VM: size, OS disk and data disks, virtual network, NIC, public IP, NSG)Report a problem with this question

  11. 11. A team stops and deallocates a development VM every Friday evening and starts it again on Monday. Which charge continues over the weekend?

    • A.Storage for its managed disks✓ Answer
    • B.Compute time for its vCPUs and memory
    • C.Hourly fees for its network interface
    • D.License fees for its Windows OS

    A deallocated VM releases its underlying hardware, so compute (including the bundled OS license) stops billing, but its managed disks still exist and continue to incur storage charges. Network interfaces have no separate charge.

    Ref QB-RGVG4RSource: Microsoft Learn, States and billing status of Azure Virtual Machines (deallocated VMs aren't billed for compute; attached disks are still billed)Report a problem with this question

  12. 12. While creating an Azure VM, which choice determines how many virtual CPUs and how much memory the VM gets?

    • A.The OS image
    • B.The VM size✓ Answer
    • C.The managed disk type
    • D.The virtual network

    The VM size defines the compute resources (number of vCPUs and amount of memory) allocated to the VM, and it is a main factor in compute cost. The image sets the operating system, the virtual network handles connectivity, and the disk type affects storage performance.

    Ref QB-AZDZUSSource: Microsoft Learn, Azure Virtual Machines overview (what you need to create a VM: size, OS disk and data disks, virtual network, NIC, public IP, NSG)Report a problem with this question

  13. 13. A startup wants to host a Node.js website with built-in autoscale, deployment slots and custom domains, and it doesn't want to manage servers or the operating system. Which option requires the least management effort?

    • A.Azure App Service✓ Answer
    • B.Azure Kubernetes Service
    • C.Azure Virtual Desktop
    • D.Azure Virtual Machines

    Azure App Service is a managed platform for web apps, REST APIs and mobile back ends, with autoscale, deployment slots and custom domains built in, so you don't manage the underlying infrastructure. VMs require OS management, and AKS still requires you to run a Kubernetes cluster.

    Ref QB-SG8U9SSource: Microsoft Learn, App Service overview (run web apps, mobile back ends and REST APIs without managing infrastructure; autoscale, deployment slots, custom domains)Report a problem with this question

  14. 14. A team using Azure App Service wants to deploy a new version of its web app to a staging environment, test it, and then swap it into production. Which App Service feature supports this?

    • A.Fault domains
    • B.Update domains
    • C.Availability sets
    • D.Deployment slots✓ Answer

    Deployment slots are live App Service environments with their own host names; you deploy to a staging slot, validate it, and swap it with the production slot. Update domains, fault domains and availability sets are VM resiliency concepts, not App Service release features.

    Ref QB-7ZBZBPSource: Microsoft Learn, App Service overview (run web apps, mobile back ends and REST APIs without managing infrastructure; autoscale, deployment slots, custom domains)Report a problem with this question

  15. 15. A team wants to package a web API together with its runtime and libraries so it runs the same on a developer laptop and in Azure, and starts in seconds. Which hosting approach matches this goal?

    • A.A full VM image that includes its own guest OS
    • B.An Azure Functions timer trigger that runs the API code
    • C.A container image that bundles the app and its libraries✓ Answer
    • D.An App Service deployment slot that holds the app code

    A container image bundles the application with everything it depends on, so it runs consistently wherever a container runtime exists, and because containers share the host kernel instead of booting a guest OS, they start in seconds. A full VM image carries a whole operating system and boots far more slowly.

    Ref QB-PG6URNSource: Microsoft Learn, What is Azure Container Instances? (fastest and simplest way to run a container in Azure without managing virtual machines)Report a problem with this question

  16. 16. A small company wants its office network to connect to an Azure virtual network with the traffic encrypted, and it is fine with that traffic crossing the public internet. Which service fits?

    • A.Virtual network peering
    • B.Azure VPN Gateway✓ Answer
    • C.Azure DNS
    • D.Azure ExpressRoute

    Azure VPN Gateway sends encrypted traffic between an Azure virtual network and on-premises locations over the public internet, for example with a site-to-site connection. ExpressRoute uses a private connection that doesn't cross the public internet, and peering connects Azure virtual networks to each other.

    Ref QB-8ZPBHQSource: Microsoft Learn, What is Azure VPN Gateway? (encrypted traffic between a virtual network and on-premises locations over the public internet)Report a problem with this question

  17. 17. A bank needs a dedicated, private connection from its datacenter to Azure through a connectivity provider, with consistent latency and no traffic over the public internet. Which service fits?

    • A.Virtual network peering
    • B.Azure VPN Gateway
    • C.Azure Private Link
    • D.Azure ExpressRoute✓ Answer

    ExpressRoute extends an on-premises network into the Microsoft cloud over a private connection supplied by a connectivity provider. Because ExpressRoute connections don't go over the public internet, they offer more reliability, faster speeds and consistent latency than internet-based VPN connections.

    Ref QB-QGH6XPSource: Microsoft Learn, What is Azure ExpressRoute? (private connections through a connectivity provider that don't go over the public internet)Report a problem with this question

  18. 18. Virtual network A is peered with virtual network B, and B is peered with virtual network C. No gateways or network appliances are configured. Can resources in A communicate with resources in C?

    • A.No, A and C need their own peering connection✓ Answer
    • B.No, peering works only inside a single subscription
    • C.Yes, if all three networks are in the same region
    • D.Yes, traffic passes through network B automatically

    Virtual network peering is nontransitive: a peering connects only the two networks in it, so A and C cannot exchange traffic through B unless you peer A and C directly or route through a gateway or appliance in B. Peering works across regions and across subscriptions.

    Ref QB-5ZMBZKSource: Microsoft Learn, Hub-spoke network topology in Azure (virtual network peering connections are nontransitive) and Virtual network peering overviewReport a problem with this question

  19. 19. A company wants to use the new domain name contoso-shop.com and manage its DNS records in Azure DNS. It doesn't own the domain yet. What should it do?

    • A.Create an Azure DNS private zone, which registers it publicly
    • B.Buy it from a domain registrar, then host its zone in Azure DNS✓ Answer
    • C.Register the name in Microsoft Entra ID, then add records there
    • D.Buy the domain through Azure DNS, which registers and hosts it

    Azure DNS hosts DNS zones and records but doesn't support buying domain names, so the company must purchase the domain from a third-party domain name registrar and then delegate it to Azure DNS name servers. Private zones resolve names only inside virtual networks.

    Ref QB-MGF6EKSource: Microsoft Learn, Azure DNS FAQ (Azure DNS doesn't support buying domain names; use a third-party domain name registrar, then host the domain in Azure DNS)Report a problem with this question

  20. 20. What is the main purpose of creating subnets inside an Azure virtual network?

    • A.To stretch the virtual network across several regions
    • B.To connect the network privately to an on-premises site
    • C.To divide the network's address space into segments✓ Answer
    • D.To register public domain names for the network's resources

    Subnets segment a virtual network's address space into ranges, so you can group resources and apply controls such as network security groups per subnet. A virtual network can't span regions, private on-premises links come from ExpressRoute or VPN Gateway, and domain names are bought from a registrar.

    Ref QB-WQBT4ZSource: Microsoft Learn, Azure Virtual Network FAQ (a virtual network is limited to a single region but spans availability zones; subnets divide the address space)Report a problem with this question

  21. 21. Which statement about the scope of an Azure virtual network is correct?

    • A.It spans every region in its subscription by default
    • B.It spans every subscription in its management group
    • C.It stays in one region and can span that region's zones✓ Answer
    • D.It stays inside one availability zone of its region

    A virtual network is limited to a single region, but it does span the availability zones in that region. To connect virtual networks in different regions, you use global virtual network peering or a VPN gateway.

    Ref QB-E8HYPZSource: Microsoft Learn, Azure Virtual Network FAQ (a virtual network is limited to a single region but spans availability zones; subnets divide the address space)Report a problem with this question

  22. 22. A company wants VMs in its virtual network to reach an Azure SQL Database through a private IP address taken from the network's subnet, and it plans to turn off public network access to the database. What should it configure?

    • A.A service endpoint
    • B.A private endpoint✓ Answer
    • C.An Azure DNS zone
    • D.A public endpoint

    A private endpoint is a network interface with a private IP address from your virtual network that connects to a service powered by Azure Private Link, so traffic stays on the Microsoft network and public access can be disabled. A service endpoint secures access from the network but the service keeps its public endpoint.

    Ref QB-XQP5A2Source: Microsoft Learn, What is a private endpoint? (a network interface that uses a private IP address from your virtual network to connect to a Private Link service)Report a problem with this question

  23. 23. Which description matches an Azure private endpoint?

    • A.A dedicated circuit to Microsoft from a connectivity provider
    • B.A subnet setting that extends your network to a public service
    • C.A network interface using a private IP from your subnet✓ Answer
    • D.A public IP address that a PaaS service is given by default

    A private endpoint is a network interface that uses a private IP address from your virtual network's subnet to connect privately to a service powered by Azure Private Link, bringing that service into your network. Extending a subnet's identity to a public service describes a service endpoint, and a provider circuit describes ExpressRoute.

    Ref QB-F8VAV2Source: Microsoft Learn, What is a private endpoint? (a network interface that uses a private IP address from your virtual network to connect to a Private Link service)Report a problem with this question

  24. 24. A new storage account can be reached from anywhere on the internet through its default DNS name, which resolves to a public IP address. What kind of endpoint is this?

    • A.A private DNS zone
    • B.A private endpoint
    • C.A public endpoint✓ Answer
    • D.A service endpoint

    A public endpoint is reachable from the internet through a public IP address or DNS name, which is how a storage account is exposed by default. A private endpoint instead gives the service a private IP address inside your virtual network so it can be reached without public internet exposure.

    Ref QB-UQM5SWSource: Microsoft Learn, What is a private endpoint? (a network interface that uses a private IP address from your virtual network to connect to a Private Link service)Report a problem with this question

Other topics in this exam

Practice questions built from the skills measured in Microsoft's published AZ-900 study guide. Microsoft, Azure and Microsoft Certified: Azure Fundamentals are trademarks of the Microsoft group of companies; this site is not affiliated with or endorsed by Microsoft, and these are not real exam questions. Prices, scoring rules, exam languages, service names and features change over time — confirm the current details on Microsoft Learn before you book. The real exam also uses question formats such as yes/no statement sets and drag-and-drop, which this single-answer practice does not reproduce. Microsoft AZ-900 study guide →