Lesson 11 of 28 · see all lessons
  1. Start here: cloud concepts (skill area 1, 25-30%)

    1. 1. Start here: the AZ-900 exam, the plan and what you already know
    2. 2. What cloud computing is: shared responsibility and cloud models
    3. 3. Paying for the cloud: the consumption-based model, pricing models and serverless
    4. 4. Why the cloud: availability, scalability, reliability, security and manageability
    5. 5. IaaS, PaaS and SaaS: cloud service types and when to use each
  2. Azure architecture, compute and networking (skill area 2, 35-40%)

    1. 6. Azure global infrastructure: regions, region pairs, sovereign regions and availability zones
    2. 7. Organizing Azure: resources, resource groups, subscriptions and management groups
    3. 8. Azure virtual machines: VM options, scale sets, availability sets and Azure Virtual Desktop
    4. 9. Containers, Azure Functions and app hosting: choosing a compute type
    5. 10. Azure networking: virtual networks, subnets, peering and Azure DNS
    6. 11. Connecting to Azure: VPN Gateway, ExpressRoute, and public and private endpoints
  3. Storage and migration (skill area 2)

    1. 12. Azure Storage services and storage accounts
    2. 13. Storage tiers and redundancy options
    3. 14. Moving files and migrating to Azure: AzCopy, Storage Explorer, File Sync, Azure Migrate and Data Box
  4. Identity, access and security (skill area 2)

    1. 15. Microsoft Entra ID, Entra Domain Services and external identities
    2. 16. Signing in securely: single sign-on, MFA, passwordless and Conditional Access
    3. 17. Azure role-based access control: who can do what, where
    4. 18. Zero Trust, defense in depth and Microsoft Defender for Cloud
  5. Management and governance (skill area 3, 30-35%)

    1. 19. Azure costs: cost factors, the pricing calculator, Cost Management and tags
    2. 20. Governance and compliance: Microsoft Purview, Azure Policy and resource locks
    3. 21. Managing Azure: the portal, Cloud Shell, Azure CLI, PowerShell and Azure Arc
    4. 22. Infrastructure as code: Azure Resource Manager and ARM templates
    5. 23. Monitoring Azure: Advisor, Service Health, Azure Monitor, Log Analytics, alerts and Application Insights
  6. Final review and four mock exams

    1. 24. Final review and exam day: every decision on one page
    2. 25. Mock exam 1
    3. 26. Mock exam 2
    4. 27. Mock exam 3
    5. 28. Mock exam 4
See the leaderboard

18 min

Connecting to Azure: VPN Gateway, ExpressRoute, and public and private endpoints

Choose between VPN Gateway and ExpressRoute for on-premises links, and define public and private endpoints.

By the end of this lesson you can

  • Tell site-to-site, point-to-site and network-to-network VPN connections apart
  • Explain how ExpressRoute differs from a VPN, and when to choose it
  • Define public and private endpoints and the role of Azure Private Link

From earlier lessons · 1 of 2

Two Copperleaf virtual networks, one in the US and one in Europe, must exchange data privately. Which option keeps the traffic on the Microsoft backbone?

Pick one answer.

From earlier lessons · 2 of 2

Which Azure feature allows or blocks traffic between subnets based on IP address, port and protocol?

Pick one answer.

Copperleaf's apps live in Azure now, but its nine depots and head office don't. Each depot needs a secure link for the driver tablets' data. Head office sends large route files every night. Auditors add one rule: customer data must not travel over the public internet. And a sales rep wants to reach a test server from home.

[1]

VPN Gateway: an encrypted tunnel over the internet

Exam depth: know it cold.

A virtual private network (VPN) is an encrypted tunnel inside another network. It joins trusted private networks across an untrusted one, usually the public internet. Encryption stops anyone reading the traffic on the way.

An Azure VPN Gateway is a type of virtual network gateway. It sits in its own dedicated subnet of a virtual network. It supports three connections.

  • Site-to-site: links an on-premises datacenter or office to a virtual network, through the office's VPN device.
  • Point-to-site: links one device, such as a laptop, to a virtual network. The device starts the connection.
  • Network-to-network: links one virtual network to another.

All traffic is encrypted inside a private tunnel as it crosses the internet. Each virtual network can have only one VPN gateway, but it can connect to many locations.

[54][55]

Three VPN connections into one VPN gatewaySite-to-site: depot office VPN devicePoint-to-site: sales rep's laptopNetwork-to-network: another virtual networkPublic internet (traffic encrypted)VPN gateway in its own subnetCopperleaf virtual networkOne VPN gateway per virtualnetwork, many connectionsEncrypted tunnel, but it stillcrosses the internet

[54][55]

A sales rep needs an encrypted connection from a laptop at home to a VM in an Azure virtual network. No office VPN device is involved. What should you set up?

Pick one answer.

[54][55][58]

VPN types and high availability

Exam depth: recognize it.

When you set up a VPN gateway, you pick a VPN type:

  • Policy-based: you list the IP addresses whose traffic goes through each tunnel.
  • Route-based: routing decides which tunnel each packet uses. It's the preferred type. You need it for point-to-site, network-to-network and multisite connections, and to run alongside ExpressRoute.

For high availability, Azure offers four setups:

  • Active/standby (the default): two instances, and the standby takes over if the active one fails.
  • Active/active: both instances carry traffic, each with its own public IP address.
  • ExpressRoute failover: a VPN gateway as a backup path if an ExpressRoute circuit fails.
  • Zone-redundant gateways: gateways spread across availability zones, to survive a zone failure.

[55]

[54][55]

ExpressRoute: a private line to Microsoft

Exam depth: know it cold.

Azure ExpressRoute extends your on-premises network into the Microsoft cloud over a private connection, with the help of a connectivity provider, a telecom partner. Each connection is called an ExpressRoute circuit, and each location gets its own.

ExpressRoute connections don't go over the public internet. So they offer more reliability, faster speeds, consistent latency and higher security than typical internet links. They reach Azure services and also Microsoft 365 and Dynamics 365.

ExpressRoute Global Reach connects your own sites to each other through their ExpressRoute circuits. Copperleaf's head office and a European warehouse could exchange data without touching the public internet.

ExpressRoute uses the routing protocol BGP for dynamic routing and has built-in redundancy at every peering location.

[58]

Match

Match each situation to its ExpressRoute connectivity model

Pick an item on the left, then its match on the right.

[59]

[58][60]

VPN: an armored truck on the public highway. ExpressRoute: your own private road. Picture: Classic two-panel reaction meme layout, cartoon style.

A bank must connect its datacenter to Azure. Compliance rules say the traffic must not travel over the public internet, and latency must be consistent. What should it use?

Pick one answer.

[54][55][58]

VPN Gateway vs ExpressRoute

Exam depth: know it cold.

VPN GatewayExpressRoute
Path.Over the public internet.Private connection through a connectivity provider.
Encryption.Always encrypted (IPsec tunnel).Not encrypted by default.
Speed and latency.Depends on the internet.Faster, with consistent latency.
Connects.Offices, single devices, other virtual networks.Offices and datacenters, plus Microsoft 365.
Setup.A gateway in your virtual network.A circuit ordered with a provider.

Decision rule: "encrypted over the internet" or "one laptop" means VPN Gateway. "Private connection", "not over the internet" or "consistent latency" means ExpressRoute. "Backup path for ExpressRoute" means a VPN gateway too.

[55][58][60]

For the statement, select Yes if it is true. Otherwise, select No. Traffic over an Azure ExpressRoute connection is encrypted by default.

Pick one answer.

[60]

Public and private endpoints

Exam depth: know it cold.

An endpoint is the address you use to reach a resource.

  • A public endpoint has a public IP address. It can be reached from anywhere in the world.
  • A private endpoint is a network interface with a private IP address from your virtual network. It connects you privately to a service powered by Azure Private Link, such as Azure Storage or Azure SQL Database. In effect, it brings the service into your virtual network.

Traffic to a private endpoint travels the Microsoft backbone, so the service no longer needs to face the internet. Peered networks and on-premises sites linked by VPN or ExpressRoute can use the private endpoint too.

Decision rule: "reach an Azure service such as storage without the public internet" means a private endpoint.

[54][61][62]

Rendering diagram…
The private endpoint gives the storage account a private address inside the virtual network.

[61][62]

Copperleaf's app in a virtual network must reach an Azure Storage account. The traffic must use a private IP address from the virtual network, not the storage account's public address. What should Copperleaf create?

Pick one answer.

[54][61]

Exam-style practice

A clinic chain wants to link each of its 12 branch offices to an Azure virtual network. The connections must be encrypted, and using the internet is acceptable. The solution must keep costs low. What should it use?

Pick one answer.

[54][55][58]

A company has ExpressRoute circuits at its offices in Singapore and Frankfurt. It wants the two offices to exchange data through Microsoft's network instead of the public internet. What should it enable?

Pick one answer.

[58]

A company uses ExpressRoute and wants a backup path to Azure if its ExpressRoute circuit has an outage. What should you add?

Pick one answer.

[55]

FlashcardsIndex cardsFlashcards ⚡

Card 1 of 16

[54][55][58][59][60][61]

Worth keeping

  1. VPN Gateway sends encrypted traffic over the internet: site-to-site, point-to-site or network-to-network.
  2. ExpressRoute is a private connection through a provider that never uses the public internet.
  3. ExpressRoute isn't encrypted by default; private and encrypted aren't the same thing.
  4. Global Reach links your own sites through their ExpressRoute circuits.
  5. A private endpoint gives an Azure service a private IP in your virtual network, via Azure Private Link.

On the job

Sales teams hear the question "does our data go over the internet?" all the time. Now you can answer it. With a site-to-site VPN, yes, but encrypted. With ExpressRoute, no; it's a private circuit, and you add encryption if the rules need it.

Finance will notice the difference too. A VPN uses your existing internet link. ExpressRoute needs a circuit from a provider, so it's the option to budget for when compliance or steady performance demands it.

[55][58][60]

The depots are connected. Now the file servers in the rented room must move, with years of shared folders and thousands of delivery photos. Where does each kind of data belong? Next lesson: Azure Storage services and storage accounts.

Leaderboard

Loading…

50 XP for each lesson you finish, 10 for each right answer. Names show only for learners who turn on Show me on leaderboards.

Embed this practice on your site

Free for classrooms, blogs and study groups. Paste this into any page that accepts HTML.

Report a copyright problem with this lesson

Sources for this lesson (8)

Each fact in the lesson is marked with the number of the page it comes from.

  1. [1]Microsoft Learn: Study guide for Exam AZ-900: Microsoft Azure Fundamentals
  2. [54]Microsoft Learn: Describe Azure virtual networking
  3. [55]Microsoft Learn: Describe Azure virtual private networks
  4. [58]Microsoft Learn: Describe Azure ExpressRoute
  5. [59]Microsoft Learn: ExpressRoute connectivity models
  6. [60]Microsoft Learn: About encryption for Azure ExpressRoute
  7. [61]Microsoft Learn: What is a private endpoint?
  8. [62]Microsoft Learn: What is Azure Private Link?