Home > Blog > Microsoft Microsoft Azure Fundamentals > Azure Hub-and-Spoke Topology: AZ-900 Deep Dive

Azure Hub-and-Spoke Topology: AZ-900 Deep Dive

Deep Dive Cert Sensei Team 2038-03-21 8 min read

The Azure hub-and-spoke topology is a network architecture that uses a central VNet (the hub) to connect to multiple isolated VNets (the spokes). This design centralizes shared services like Azure Firewall and VPN gateways, reducing costs and improving security by controlling all traffic flow through a single point of management.

#AZ-900 #Azure Networking #Hub and Spoke #VNet Peering #Azure Firewall

What Exactly is the Azure Hub-and-Spoke Topology?

When you're studying for the AZ-900, you'll encounter various ways to organize your virtual networks (VNets). The hub-and-spoke model is the gold standard for enterprise-scale deployments. Think of the 'Hub' as your central headquarters—a VNet that acts as the connectivity point for your entire environment. The 'Spokes' are like satellite offices; they are separate VNets that house your actual workloads, such as web apps, databases, or development environments.

By separating your infrastructure this way, you avoid the chaos of a single, massive VNet where one configuration error could bring down every single service. For the exam, remember that this topology is primarily about scalability and management. You aren't just connecting computers; you're creating a structured hierarchy that allows your network to grow without becoming an unmanageable web of connections.

Why Should You Centralize Shared Services in the Hub?

One of the biggest mistakes beginners make is putting a VPN Gateway or a Firewall in every single VNet. That is a recipe for a budget disaster. In a hub-and-spoke model, we place these 'shared services' exclusively in the Hub VNet. This means you only pay for and manage one Azure VPN Gateway or one ExpressRoute circuit to connect your on-premises data center to the cloud.

Beyond the cost savings, centralizing services simplifies your governance. If you need to update a security rule or change a routing table, you do it in one place—the hub—rather than hunting through ten different spoke VNets. This 'single pane of glass' approach to connectivity is a key concept that Microsoft tests on the AZ-900, as it demonstrates an understanding of operational efficiency and cost optimization.

How Do Spoke VNets Provide Workload Isolation?

Isolation is the name of the game when it comes to security. In a hub-and-spoke architecture, each spoke VNet is logically isolated from the others. For example, you can put your Production environment in Spoke A and your Development environment in Spoke B. Because they are separate VNets, a developer accidentally running a destructive script in the Dev spoke cannot accidentally wipe out your Production database in the other spoke.

This isolation limits the 'blast radius' of any potential security breach or technical failure. If a workload in one spoke is compromised, the attacker doesn't have an open door to every other part of your network. You control exactly how these spokes communicate, ensuring that your most sensitive data remains walled off from less secure environments.

How Does VNet Peering Make This Connection Possible?

You might be wondering how these separate VNets actually talk to each other. The answer is VNet Peering. Peering connects two VNets over the Azure backbone network, meaning the traffic never hits the public internet. It's fast, low-latency, and highly secure. In this topology, you peer each Spoke VNet to the Hub VNet.

Here is a critical tip for the AZ-900: VNet peering is non-transitive. This means if Spoke A is peered with the Hub, and Spoke B is peered with the Hub, Spoke A cannot talk to Spoke B directly through the hub. To make that happen, you would need a Network Virtual Appliance (NVA) or Azure Firewall in the hub to route the traffic. Understanding this nuance is often the difference between a pass and a fail on the networking portion of the exam.

How Do You Implement a Central Azure Firewall?

To truly secure a hub-and-spoke network, you place an Azure Firewall in the Hub VNet. This acts as the 'security guard' for all traffic entering or leaving your environment. By using User Defined Routes (UDRs), you can force all traffic from the spoke VNets to flow through the hub's firewall before it goes anywhere else—whether that's to another spoke or out to the internet.

This setup allows you to implement strict filtering rules across your entire organization from one central location. Instead of managing a dozen different Network Security Groups (NSGs) across multiple VNets, you have a centralized point of inspection. This ensures that no matter where a workload lives, it must adhere to your corporate security policies before a single packet is sent.

How Can You Master These Concepts for the AZ-900 Exam?

Reading about topology is one thing; recognizing the right answer in a high-pressure exam is another. The AZ-900 tests your ability to choose the most cost-effective and secure architecture for a given scenario. You need to be able to distinguish between a simple peered VNet and a full hub-and-spoke deployment instantly.

To get there, we recommend rigorous practice. At Cert Sensei, we provide 1,000 expert-curated Microsoft Azure Fundamentals (AZ-900) practice questions. We don't just tell you if you're wrong; we provide detailed expert reasoning for every answer so you understand the 'why' behind the architecture. Plus, our domain-level analytics will show you exactly where you're struggling—whether it's VNet peering or Azure Firewall—so you can stop wasting time on what you already know and focus on your weak spots.

❓ Frequently Asked Questions

Is a hub-and-spoke topology necessary for every Azure project?

Not at all. For small projects or simple applications, a single VNet is often sufficient. Hub-and-spoke is designed for enterprise environments that require strict isolation, centralized security, and the ability to scale to dozens or hundreds of workloads.


Can I connect two spoke VNets without going through the hub?

Yes, you can peer two spokes directly. However, this creates a 'mesh' network, which quickly becomes a management nightmare as you add more VNets. Sticking to the hub-and-spoke model keeps your architecture clean and manageable.


What is the main cost advantage of using a hub for VPN Gateways?

The primary advantage is avoiding the cost of deploying multiple gateways. Since Azure charges per gateway instance, centralizing your VPN or ExpressRoute in the hub allows all spokes to share one connection, significantly reducing your monthly spend.

More from Microsoft Microsoft Azure Fundamentals

🧠

Test Your Knowledge

Ready to practice Microsoft Azure Fundamentals? Put what you've learned to the test.

Try 10 Free Questions

⭐ 1,000 expert-curated questions available with Premium

Upgrade Premium
📖 Browse the Glossary

Join thousands of certification students

Sign Up Free