Cloud Networking Basics

Learn how networks work inside the cloud. Build a picture of virtual networks and subnets, see how route tables, internet gateways and NAT gateways decide what can reach the internet, and reach cloud services through public or private endpoints. Filter traffic with security groups and network ACLs, direct users with cloud DNS and speed up delivery with a content delivery network. Finally, connect offices and data centers to the cloud with VPN gateways and dedicated private connections, and choose the right option for a business. Examples come from AWS, Microsoft Azure and Google Cloud side by side.

BeginnerLesson 5 of 7 in Cloud Computing Fundamentals Course

What you will learn

  1. Explain what a cloud virtual network is, divide it into subnets, follow traffic with route tables and gateways, and reach cloud services through public or private endpoints.
    • Explain virtual networks, address ranges and subnets
      Describe what a virtual network is, how its private address range is split into subnets, how its reach differs between AWS, Azure and Google Cloud, and how peering joins two networks.
    • Route traffic through public and private subnets
      Use route tables, internet gateways and NAT gateways to decide which subnets the internet can reach and which can only send traffic out.
    • Reach cloud services through public and private endpoints
      Distinguish public endpoints from private endpoints, explain how private connectivity keeps service traffic off the internet, and recognize the related options each provider offers.
  2. Write and read rules that allow or block traffic, compare stateful filters on resources with stateless filters on subnets, and combine them in layers.
    • Control traffic to resources with security groups
      Explain how a stateful security group filters traffic to a resource, build rules from protocol, port and source, and compare AWS security groups with Azure network security groups and Google Cloud firewall rules.
    • Protect subnets with network ACLs and layered defenses
      Explain how a stateless network ACL filters a whole subnet, read ordered allow and deny rules, and combine network ACLs, security groups and other controls in layers.
  3. Use cloud DNS to turn names into the right addresses and a content delivery network to serve content quickly from locations near users.
    • Resolve names with cloud DNS
      Explain how DNS turns names into addresses, manage zones and records in a cloud DNS service, and use TTLs, routing policies, health checks and private zones.
    • Speed up delivery with a content delivery network
      Explain how a CDN caches content at edge locations close to users, reason about cache hits, expiry and invalidation, and decide when a CDN helps.
  4. Link offices and data centers to virtual networks with encrypted VPN tunnels or dedicated private connections, and choose the connection that fits a business's needs.
    • Connect sites and users with VPN gateways
      Explain how site-to-site and point-to-site VPNs create encrypted tunnels over the internet, name the parts on each side, and recognize their strengths and limits.
    • Use dedicated private connections
      Explain how AWS Direct Connect, Azure ExpressRoute and Google Cloud Interconnect provide private, consistent links that avoid the public internet, and what they require.
    • Choose the right hybrid connection
      Compare internet access, VPNs and dedicated connections on bandwidth, consistency, setup time, cost, security and resilience, and justify a choice for a given business situation.

Cloud Networking study guide

4 chapters

1

Describe virtual networks and how traffic moves through them

A private cloud application depends on several connected choices: an address range, a subnet, a route and a service endpoint. Start by locating resources inside virtual networks, then follow their traffic toward another subnet or the internet. Provider names differ, and so do the reach of their networks and their default settings. A clear picture of the path helps you decide which components an application needs and which resources should be reachable from outside.

1.1 Build a private network with subnets

A cloud application needs a network as well as computers. A virtual network is a private network defined in software. You choose its addresses and connections without installing switches or cables. Separate networks can keep production work apart from testing.

Read the addresses

AWS calls its network an Amazon VPC; Microsoft uses Azure Virtual Network, or VNet; Google Cloud uses VPC network. An AWS VPC or Azure VNet has an overall address range. Its subnets take smaller ranges from it. A Google Cloud VPC has no overall range: each subnet gets its own.

The notation 10.0.0.0/16 is CIDR notation. The number after the slash counts the fixed leading address bits. A smaller number means a larger range. This /16 covers 10.0.0.0 through 10.0.255.255: 65,536 addresses. The private blocks are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. The public internet does not route these private addresses.

A subnet supplies addresses to one part of a network. For example, 10.0.3.0/24 covers 10.0.3.0 through 10.0.3.255. A database in it might receive 10.0.3.20. Separate web, application and database subnets let teams apply different routes and security rules. Subnet ranges in one network must not overlap. Providers reserve addresses for network services: AWS and Azure reserve five per subnet; Google Cloud reserves four in a primary subnet range. A 256-address subnet therefore leaves 251 addresses on AWS or Azure.

Place resources across zones
ProviderVirtual network reachSubnet reach
AWSOne region, across availability zonesOne availability zone
AzureOne regionAcross the region's availability zones
Google CloudGlobalOne region

Consider an AWS shop using 10.0.0.0/16. In zone A it puts web servers in 10.0.1.0/24, application servers in 10.0.2.0/24, and its database in 10.0.3.0/24. To keep serving during a zone outage, it repeats the tiers in zone B using 10.0.11.0/24, 10.0.12.0/24 and 10.0.13.0/24. The subnets separate roles; using two zones separates failure locations. Creating several subnets in one zone alone would not do that.

Connect networks deliberately

Virtual networks provide logical isolation from other customers and other networks. Communication needs a network path and permission. A peering connection lets two networks communicate by private address over the provider's network. Peering can cross regions and account, subscription or project boundaries, but the address ranges must not overlap.

Check office and partner ranges before choosing cloud ranges. If both an office and a VPC use 10.0.0.0/16, a destination such as 10.0.3.20 could belong to either side. Choosing 10.1.0.0/16 for the cloud avoids that conflict. Fixing an address plan after deploying servers can disrupt them.

Peering is not transitive. If A peers with B and B peers with C, A still needs its own connection to C. Also, a private path does not encrypt data: use encryption for that purpose. Creating the virtual network itself is free on these providers; gateways, public IPv4 addresses and data transfer can add charges.

Key Takeaways

  • A virtual network supplies networking; virtual machines are resources placed inside it.
  • AWS and Azure subnets draw from a network range; Google Cloud assigns ranges directly to subnets.
  • An AWS subnet occupies one zone, an Azure subnet spans zones, and a Google Cloud subnet is regional.
  • Choose non-overlapping ranges before connecting networks.
  • Peering provides private communication between two networks and is not transitive.

1.2 Follow a route to the internet

A destination address tells a network where traffic is trying to go. A route table tells it the next place to send that traffic. Routing supplies a path; security rules decide whether traffic may use it.

Choose the matching route

Each route pairs a destination range with a target. A local route connects subnets inside the same virtual network. The IPv4 default route, 0.0.0.0/0, matches every address, but a more specific matching route takes priority. A larger prefix number after the slash means a more specific range.

Suppose an AWS application subnet uses these routes:

DestinationTarget
10.0.0.0/16Local network
0.0.0.0/0NAT gateway

A request from 10.0.2.15 to database 10.0.3.20 matches both ranges. The /16 is more specific than /0, so the request stays local. A request to update server 203.0.113.50 matches only the default route and goes to the NAT gateway. Security rules must allow each connection.

Allow public access deliberately

On AWS, an internet gateway joins a VPC to the internet. A subnet with a default route to that gateway is a public subnet. Its address range may still be a private range such as 10.0.1.0/24. “Public” describes its routing, not its address notation.

To reach a server from the internet, three things must line up: an internet path, a public IP address on the server or a load balancer in front of it, and security rules allowing the connection. An AWS subnet can be public while a particular server in it has no direct public access.

Azure and Google Cloud provide built-in internet paths without an AWS-style internet gateway that you create. Their security rules and public addressing still matter. A private subnet, in the general sense, gives internet users no direct path to its resources. That makes it useful for databases and internal application servers.

Give private servers outbound access

A NAT gateway lets a private server start an internet connection. It replaces the private source address with a public address, tracks the connection, and delivers the reply to the correct server. It does not accept a new connection started by an internet user toward that private server.

On AWS, a public NAT gateway sits in a public subnet. The private application's default route points to it, and the NAT gateway's subnet has a route to the internet gateway. The application can fetch updates while its database subnet, with only a local route, has no internet path. Azure NAT Gateway attaches to a subnet; Google Cloud offers Cloud NAT. NAT services have running-time and data-processing charges.

Check the provider's defaults

AWS default VPC subnets are public and normally assign public addresses to new instances. A VPC you create yourself needs an internet gateway added. Reserved static public addresses keep a stable address; AWS calls one an Elastic IP. Automatically assigned addresses can change after stopping and starting a machine. Since February 2024, AWS charges for every public IPv4 address, including ones in use.

Azure uses “private subnet” specifically for a subnet with default outbound access turned off. It needs an explicit outbound method, such as NAT or an assigned public IP, and that setting alone does not block inbound traffic. The portal defaults to private subnets. For the API version released after March 31, 2026, new virtual networks also default to private subnets; earlier API versions retain the old behavior, and existing networks are unchanged.

Key Takeaways

  • The most specific matching destination route wins; the default route is the fallback.
  • Public access needs a route, public addressing and permission from security rules.
  • On AWS, a public subnet routes directly to an internet gateway.
  • NAT lets private resources start outbound connections and receive replies.
  • Azure private subnets disable default outbound access and need an explicit outbound method.
  • Public addressing and NAT can incur charges.

1.3 Reach a managed service privately

A managed service may run outside your virtual network. An endpoint is the address clients use to reach it, usually through a DNS name. The endpoint's network path and the service's data permissions solve different problems.

Separate public reach from data access

A public endpoint resolves to a public IP address. Internet clients can try to connect, but that does not make the stored data public. Credentials and permissions normally control access. Some services also allow anonymous access when configured to do so; an object storage permission mistake can expose files.

Use HTTPS, which uses TLS encryption, for service traffic. Where supported, require HTTPS and restrict which addresses or networks may connect. Public reachability, access permission and encryption are separate settings. An authorized application can use a public endpoint securely, while a poorly configured service can still leak data on a private network.

Add a private address

A private endpoint gives a supported service a private address inside your network. The provider creates a network interface in a subnet, and traffic to that address stays on its network.

ProviderPrivate connectivity serviceExample behavior
AWSAWS PrivateLinkAn interface endpoint reaches a regional service; an interface is created in each selected zone
AzureAzure Private LinkA private endpoint connects to a particular resource, such as one storage account
Google CloudPrivate Service ConnectAn endpoint provides private access to supported services

Office systems can also reach private endpoints through a VPN or dedicated connection. Peered networks can reach them when routing, DNS and security settings support the path.

Make the service name find the endpoint

Applications usually connect using a service name, not a hard-coded IP address. Private DNS makes that name resolve to the endpoint's private address inside the network. For example, an internal client might resolve its storage service name to 10.0.2.40. Outside clients may still receive the public address.

Creating the endpoint alone does not change every client's DNS answer. If an internal client keeps resolving the public address, it keeps taking the public path. Link the private DNS zone to the network and provide DNS forwarding for on-premises clients. To require private access, also disable or restrict the service's public endpoint. Creating a private endpoint leaves public access settings in place.

Recognize related options

An AWS gateway endpoint reaches S3 or DynamoDB through a route-table entry. It does not create the private network interface used by an interface endpoint, and it has no additional endpoint charge. An Azure service endpoint identifies an allowed subnet and carries its service traffic over Microsoft's network, but the service still has a public IP address. Private Google Access lets machines with internal addresses reach Google APIs and services.

Consider an analytics server reading 500 GB of regional object storage each day. Sending those reads through NAT makes the NAT service process all 500 GB. On AWS, a suitable S3 gateway endpoint takes that service traffic through the endpoint route with no additional gateway endpoint fee. Interface and private endpoints have their own fees, so compare the complete path and its charges. The endpoint changes connectivity; TLS still supplies encryption in transit.

Key Takeaways

  • A public endpoint can protect data with permissions and HTTPS.
  • A private endpoint exposes a supported service through a private network address.
  • Private DNS must direct clients to the private endpoint.
  • Disable or restrict public access separately when private-only access is required.
  • Gateway endpoints, Azure service endpoints and Private Google Access use different mechanisms.
  • A private network path still needs encryption and access controls.
2

Filter network traffic with security groups and network ACLs

Network access rules turn an available path into controlled access. Read each rule by its source, protocol and port, then check what happens to the reply. AWS separates resource security groups from subnet network ACLs; Azure and Google Cloud organize the same protection goals differently. Comparing their behavior helps you avoid applying a rule from one provider to another and shows why an allowed connection must pass every relevant filtering layer.

2.1 Allow only the connections a resource needs

A server may have a route to another network and still reject its traffic. A security group acts as a virtual firewall for resources. Inbound rules control traffic arriving at a resource; outbound rules control traffic leaving it.

Read a rule

For TCP or UDP, read the protocol, port and source or destination together. The rule “allow TCP 443 from 198.51.100.7/32” allows HTTPS traffic from one address. The source 0.0.0.0/0 means every IPv4 address. An inbound source can also identify a security group, so access follows a server's role when its IP address changes.

Useful ports include SSH 22, RDP 3389, HTTP 80, HTTPS 443, DNS 53, MySQL 3306, PostgreSQL 5432 and Microsoft SQL Server 1433. ICMP, used by ping, has message types instead of TCP or UDP ports.

Understand stateful filtering

A stateful filter remembers allowed connections. If an inbound rule allows a new HTTPS connection, replies are allowed back out without a separate outbound rule for them. This does not allow the server to start any unrelated outbound connection. New connections still need their own permission.

AWS security groups attach to network interfaces. Several resources can share a group, and a resource can have several groups. Their allow rules combine: traffic passes if an applicable rule allows it. Rule order has no effect, and there is no explicit deny rule to override a broad allow. A newly created group allows no inbound traffic and permits outbound traffic until changed.

Build a chain of allowed roles

For a three-tier application, give each tier only its required inbound connections:

  1. The load balancer allows TCP 443 from internet users.
  2. The web servers allow TCP 443 from the load balancer's group. Administration on TCP 22 is limited to the administrator's office address.
  3. The MySQL database allows TCP 3306 from the web-server group.

When a replacement web server joins the web-server group, it gains the intended database access without a new address-based rule. A direct internet request to the database fails because its source is not allowed. If a second attached group broadly allows the same database port, however, the broad permission still applies; there is no narrower deny in the first group to cancel it.

Compare provider filters
FilterTracks connections?Rule decisionsOrder
AWS security groupYesAllow onlyAll applicable allows combine
Azure NSGYesAllow and denyFirst match, lower priority number first
Google Cloud VPC firewall ruleYesAllow and denyLower priority numbers take precedence

An Azure network security group, or NSG, can attach to a subnet, a network interface or both. Custom priorities run from 100 to 4096, ahead of built-in defaults at 65000, 65001 and 65500. Default inbound rules permit virtual-network traffic and Azure load-balancer traffic, then deny other inbound traffic. Google Cloud selects target machines using tags or service accounts; its implied rules deny inbound traffic and allow outbound traffic.

Apply least privilege: allow only the required ports from the smallest useful source set. Opening SSH or RDP to the entire internet exposes administrative login services to automated attacks. Managed access options include AWS Systems Manager Session Manager, Azure Bastion and Google Cloud Identity-Aware Proxy. A port filter cannot recognize an attack hidden inside allowed HTTPS traffic; application defenses and sign-in controls protect that layer.

Key Takeaways

  • An inbound TCP or UDP rule combines a protocol, destination port and allowed source.
  • Stateful filters allow replies to permitted connections without separate reply rules.
  • AWS security groups combine allow rules; a broad allow cannot be canceled by a narrower group.
  • Azure NSGs and Google Cloud firewall rules support allow and deny decisions with priorities.
  • Least privilege limits access to the ports and sources a resource actually needs.

2.2 Check subnet filters in both directions

An AWS network access control list, or network ACL, filters traffic crossing a subnet boundary. It applies to every resource in that subnet. Each subnet has one network ACL, and the same ACL can serve several subnets.

Follow the first matching rule

Network ACL rules can allow or deny traffic. AWS checks them from the lowest rule number upward and stops at the first match. A final * rule denies unmatched traffic. The VPC's default ACL allows inbound and outbound traffic; a newly created custom ACL denies traffic until you add allow rules.

Suppose rule 100 allows TCP 443 from every IPv4 address, while rule 110 denies traffic from 203.0.113.0/24. A request from 203.0.113.77 to port 443 matches rule 100 first and passes. The later deny never gets a turn. Move that deny to rule 90 to block the range before the broad HTTPS allow.

Trace the reply as a separate packet

An ACL is stateless: it does not remember that a connection was allowed. A web request uses the server's destination port 443, but the reply returns to the client's temporary, or ephemeral, port. That can be a high number such as 50432.

For a website with a working route and security group:

  1. A client sends a request from its temporary port to server port 443.
  2. The subnet ACL admits the inbound packet using its HTTPS rule.
  3. The server replies to the client's temporary port.
  4. The outbound ACL checks that destination port independently.

An outbound rule allowing only destination port 443 does not cover that reply. The reply needs an outbound allow covering its destination port; TCP 1024–65535 is a commonly used broad ephemeral range. The required range depends on the clients and traffic being supported. A stateful security group's permission does not bypass the ACL's separate decision.

Compare the two AWS layers
PropertySecurity groupNetwork ACL
Applied toResource network interfacesSubnet boundary
Remembers connectionsStatefulStateless
DecisionsAllow rules onlyAllow and deny rules
EvaluationApplicable allows combineFirst matching numbered rule
Reply trafficAutomatically allowed for tracked connectionsNeeds its own matching allow

Inbound internet traffic must pass both layers. Traffic between two resources in the same subnet does not cross the subnet boundary, so that subnet's ACL does not filter it. Resource security groups still apply.

Use independent layers

Defense in depth limits the damage from one mistaken setting. Security groups give each application role precise permissions. ACLs add subnet-wide guardrails, such as denying a known malicious range. Operating-system firewalls, managed network firewalls, web application firewalls, TLS and identity checks address other parts of the path. Flow logs record allowed and rejected network flows; Amazon Inspector helps identify workload vulnerabilities and unintended exposure.

Azure has no separate AWS-style network ACL: subnet and interface NSGs provide those layers, and both are stateful. For inbound Azure traffic, the subnet NSG and then the interface NSG must allow it. Google Cloud uses stateful VPC firewall rules and broader firewall policies, including organization and folder policies.

Key Takeaways

  • AWS network ACLs filter traffic crossing subnet boundaries.
  • The first matching ACL rule wins; unmatched traffic reaches the final deny.
  • Stateless ACLs check requests and replies independently.
  • HTTPS replies return to client ephemeral ports, not the server listening port.
  • Both the subnet ACL and the resource security group must allow inbound traffic.
  • Same-subnet traffic is controlled by resource filters, not the subnet ACL.
  • Azure subnet NSGs remain stateful; the AWS ACL behavior does not transfer to them.
3

Direct users to applications with cloud DNS and content delivery

An application name, an address and a delivered file belong to different stages of a user request. Follow DNS from a question about a name to a cached address, then follow content from an origin to a nearby CDN edge. Caching speeds up both stages but also affects when changes become visible. These connections explain why moving a DNS record, replacing a file and balancing requests need different controls even when users see only one website.

3.1 Turn service names into addresses

People remember names such as www.example.com; computers send traffic to IP addresses. DNS, the Domain Name System, connects the two. Cloud providers host records through Amazon Route 53, Azure DNS and Google Cloud DNS.

Follow a name lookup

A client asks a resolver for an address. If the resolver has no cached answer, it asks a root server where to find the servers for .com. Those servers identify the domain's authoritative name servers. An authoritative server holds the domain's records and returns the answer, which the resolver caches for later clients. Route 53 assigns four authoritative name servers to a public hosted zone. The client then connects to the returned address. DNS does not carry the website's application traffic.

A zone is the managed collection of records for a domain. To use a new provider's public zone, set that provider's name servers at the domain registrar. Zone hosting and domain registration are separate services: Route 53 offers both, while Azure DNS hosts zones without selling domain registrations.

Choose the record
RecordPurpose
AName to IPv4 address
AAAAName to IPv6 address
CNAMEName to another name
MXMail-server information
TXTText, often used to verify domain ownership
NSZone name servers
SOAZone administrative information

The zone apex is the bare domain, such as example.com. A standard CNAME cannot sit there because the apex also needs NS and SOA records. Route 53 alias records and Azure alias record sets can point supported apex records at cloud resources and follow changes to their addresses.

Allow for cached answers

A record's TTL, or time to live, states how many seconds a resolver can cache the answer. Suppose a resolver caches a 3,600-second answer at 9:55. Changing the record at 10:00 does not erase that copy: it can remain valid until 10:55. Lower a TTL to 300 seconds at least one old TTL before a planned move, so the old long-lived copies have time to expire. Lowering it at the instant of the move cannot shorten copies already cached.

DNS routing policies influence the answers to lookups. Simple routing gives a straightforward answer. Weighted routing gives answers in chosen proportions, such as 90% for the current version and 10% for a new version; latency routing favors the lowest measured latency; geolocation routing selects by user location; failover routing switches from a primary to a standby when health checks show a failure. Each Route 53 health checker normally sends a check every 30 seconds. Azure Traffic Manager and Google Cloud DNS offer DNS-based routing options too.

In a shop with a primary in Frankfurt and a standby in Ireland, a failed primary health check changes new answers toward the standby. Existing cached answers still last until expiry; a short TTL such as 60 seconds reduces that delay. Weighted routing likewise distributes DNS answers, not exact numbers of users or application requests: one cached answer can serve many users. A load balancer acts on incoming traffic at a different layer.

Resolve internal names

A private DNS zone supplies answers to linked virtual networks. It can map db.internal.example.com to a private database address or direct a service name to a private endpoint. On-premises clients need a suitable DNS forwarding path across their VPN or dedicated connection, using options such as Route 53 Resolver endpoints or Azure DNS Private Resolver. A working network tunnel alone does not teach an office resolver where to ask for the cloud's private names.

Route 53 and Azure DNS publish 100% availability SLAs for their DNS services. An SLA is a contractual service commitment; a cached answer can still point at an application server that is unavailable.

Key Takeaways

  • DNS returns an address; the client then connects to the application.
  • Zones hold records, while registrar delegation identifies the authoritative name servers.
  • TTL controls cached-answer lifetime, so record changes and failover take time to reach users.
  • Weighted routing splits DNS answers and gives only an approximate traffic split.
  • Private zones and DNS forwarding let connected internal clients resolve private names.
  • Alias records support suitable cloud targets at a zone apex where a CNAME cannot go.

3.2 Serve content from a nearby edge

A content delivery network, or CDN, keeps temporary copies of content near users. Its origin holds the original files or produces the application responses. Amazon CloudFront, Azure Front Door and Google Cloud CDN provide this service through edge locations around the world.

Follow a request

The browser resolves the CDN name and connects to a nearby edge location. CloudFront can steer users with DNS answers; Azure Front Door and Google Cloud CDN use anycast addressing, where several locations announce the same IP address and routing brings users to a nearby one. An edge location is not a full cloud region, and providers operate many more edge locations than regions.

A cache hit occurs when the edge has a fresh usable copy and serves it. On a cache miss, the edge fetches content from the origin, returns it, and can cache it for later requests. Images, scripts, style sheets, downloads and video often work well because many users request the same content.

Measure the benefit

Long-distance requests take more time for each network round trip. A page viewed from Sydney needs four sequential round trips to its Frankfurt origin. At 250 ms per trip, it spends 1,000 ms waiting for those trips. At a Sydney edge taking 15 ms per trip, the four trips take 60 ms. This example measures the round-trip delay, not the complete page-loading time.

The cache hit ratio is:

hit ratio=cache hitstotal requests

With 9,200 hits out of 10,000 requests, the ratio is 92%. In this simple example, the 800 misses reach the origin. A high hit ratio reduces origin work and the data it sends, which helps during a sudden rise in visitors.

Control freshness

A CDN TTL controls how long content can be reused. The origin can send Cache-Control: max-age=86400, allowing one day of caching, or CDN settings can control the lifetime. Changing a file at the origin does not immediately replace fresh cached copies.

To publish an urgent correction, invalidate or purge the cached path. Another approach publishes a new filename, such as app.v2.js, and updates the page to request it. The new name identifies a different object. Keep personalized pages, such as an account page or shopping cart, from being shared as public cached content. Even when a response cannot be cached, the edge may improve delivery by ending TLS nearby and reusing connections toward the origin.

Separate caching from other network services
ServiceMain job
DNSReturn an address for a name
CDNCache and deliver content near users
Load balancerSpread traffic among available servers
AWS Global AcceleratorCarry TCP or UDP traffic over AWS's network without caching

Load balancers can be regional or global. Global Accelerator supplies fixed anycast addresses and can suit game or voice traffic that does not benefit from web-content caching.

The edge can also apply HTTPS certificates and web application firewall rules. Its large network absorbs many DDoS attacks; CloudFront includes AWS Shield Standard. Origin restrictions, such as CloudFront origin access control for S3, can keep users from bypassing the CDN. Charges mainly follow delivered data and request counts. Users already close to the origin, or applications with almost entirely unique responses, gain less from caching. Edge copies are temporary and can be evicted, so the origin still needs its own reliable storage and backup.

Key Takeaways

  • A CDN serves reusable content from edge caches close to users.
  • Cache hits reduce origin requests; the hit ratio is hits divided by total requests.
  • TTL controls freshness; invalidation or new filenames handle updates before expiry.
  • Personalized content needs suitable caching controls.
  • DNS, load balancing and traffic acceleration perform different jobs from content caching.
  • A CDN can add edge security, but temporary cached copies are not a backup.
4

Connect on-premises networks to the cloud

Private cloud resources can serve office systems and remote employees through several kinds of connection. VPNs encrypt traffic across the internet; dedicated links provide a private path to the provider. The useful choice depends on who connects, the amount of data, performance needs and the time available to install the link. Work through the path, estimate a transfer window, and check what remains available when a router, circuit or location fails.

4.1 Join a site or a remote user through a VPN

An office may need to use an application at a private cloud address. A hybrid network joins on-premises networks with cloud networks. A VPN, or virtual private network, carries that traffic in an encrypted tunnel across the public internet.

Choose what connects

A site-to-site VPN connects a whole office or data center network. A VPN-capable router or firewall handles the tunnel for that site. A point-to-site, or client, VPN connects an individual device running client software. AWS Client VPN and Azure VPN Gateway point-to-site connections support remote users.

Site-to-site VPNs use IPsec. The tunnel ends authenticate each other, often using a shared key or certificates. IKE, Internet Key Exchange, agrees on encryption keys; IPsec then protects packets through the tunnel. A VPN uses a shared internet path even though its contents are encrypted.

Identify both ends

On AWS, a virtual private gateway attaches to one VPC; a transit gateway can serve multiple VPCs. Azure deploys its VPN gateway into a dedicated subnet named GatewaySubnet. Google Cloud offers HA VPN gateways. At the office, a router or firewall with a public address provides the other end; AWS calls it the customer gateway device.

The gateways also need routes. These can be configured statically or learned with BGP, Border Gateway Protocol. BGP lets routers exchange the address ranges they can reach. An encrypted tunnel without the right routes does not give an application a usable end-to-end path.

Follow a private request

Take an office using 192.168.10.0/24 and an AWS VPC using 10.0.0.0/16:

  1. The team creates the cloud gateway and configures the office router for the VPN.
  2. The office route for 10.0.0.0/16 points into the tunnel.
  3. The cloud route for 192.168.10.0/24 points back through the VPN gateway.
  4. The application's security group permits the required office traffic.

Office device 192.168.10.25 can now connect to application 10.0.2.15. Its traffic is encrypted between the VPN ends. The non-overlapping ranges let each side tell local destinations from remote ones. Private service names additionally need DNS forwarding; the tunnel does not configure that automatically.

Remove single points of failure

An AWS Site-to-Site VPN connection supplies two tunnels to different AWS endpoints. Configure both so one can carry traffic during maintenance or failure. Azure supports active-active gateways. Google Cloud HA VPN can provide a 99.99% availability SLA with the required redundant tunnel configuration across both interfaces. A second office router and a second internet provider protect against failures that two cloud-side tunnels alone cannot fix.

VPNs can usually be set up in hours using existing internet access. Costs mainly include connection time and data transfer. Internet congestion and distance affect latency and throughput; a standard AWS tunnel supports up to 1.25 Gbps, not a guaranteed sustained transfer rate. A VPN often provides initial access while a dedicated circuit is being installed and later remains as an encrypted backup path. A public website already intended for internet users does not need a site-to-site VPN for those visitors.

Key Takeaways

  • Site-to-site VPNs connect networks; client VPNs connect individual devices.
  • IPsec VPN tunnels encrypt traffic across the public internet.
  • Routes in both directions, non-overlapping ranges and security permissions are still required.
  • Private names need DNS forwarding as well as connectivity.
  • Use redundant tunnels and remove office-side single points of failure.
  • VPN performance depends on the internet path and tunnel limits.

4.2 Use a private connection to the provider

Some organizations need a cloud link with steadier performance than an internet path offers. A dedicated private connection joins the organization's network to the provider without crossing the public internet. The services are AWS Direct Connect, Azure ExpressRoute and Google Cloud Interconnect.

Follow the physical path

Cloud providers meet customers and telecom networks at colocation facilities, data centers where many networks have equipment. If the customer's router is already there, a cross-connect, a short physical cable, joins it to the provider's equipment. Otherwise, a telecom or connectivity partner extends a circuit from the office or data center to that meeting point.

Buying the cloud-side port does not remove the need to reach that facility. Installation can involve a letter of authorization, a cross-connect order, a telecom circuit and coordinated testing. Expect weeks of preparation. Charges can include the port, the partner's service, the telecom circuit and transferred data.

Match the service to the capacity

A dedicated port comes in large fixed capacities. AWS Direct Connect offers 1, 10, 100 and 400 Gbps dedicated connections. Partner-provided options, such as AWS hosted connections and Google Partner Interconnect, offer smaller capacity steps, starting at about 50 Mbps. ExpressRoute is commonly supplied through a connectivity provider.

A hosted 50 Mbps link has less capacity than a standard AWS VPN tunnel with a 1.25 Gbps limit. The word “dedicated” describes the connectivity arrangement; it is not a promise to beat every VPN on bandwidth. Compare the actual purchased capacity and measured throughput.

Separate privacy from encryption

Avoiding the shared internet improves performance consistency and supplies a private path. High-capacity circuits support large regular transfers, and private paths can meet requirements that traffic stay off the public internet. AWS data transfer out over Direct Connect also has lower per-gigabyte rates than internet transfer out, although fixed circuit costs still matter.

A private circuit is not encrypted by default. If confidentiality requires encryption, choose a suitable method: TLS in the applications, an IPsec VPN over the private link, or MACsec on supported dedicated ports. TLS protects application sessions; IPsec protects tunneled IP traffic; MACsec encrypts frames on supported links. A requirement to use a private path and a requirement to encrypt traffic must each be met.

Plan for a broken link

One physical circuit can fail because of a cut cable, router failure or facility outage. An ExpressRoute circuit has two connections to two Microsoft edge routers, but critical workloads still benefit from connections through two locations. Two links through the same facility retain that facility as a shared failure point.

A site-to-site VPN can provide a lower-cost backup if the private link fails. Its routes and permissions must be ready, and its lower or more variable throughput must be sufficient for essential traffic. The backup's internet path may not meet a strict requirement that traffic always remain off the internet; availability and path requirements both affect the choice.

Dedicated links reach virtual-network resources through private addressing. With additional configuration, they can also reach supported public cloud services, such as through an AWS public virtual interface or ExpressRoute Microsoft peering. They are network links to the cloud; the organization's existing servers remain where they are.

Key Takeaways

  • Direct Connect, ExpressRoute and Interconnect avoid the public internet.
  • A cross-connect or partner circuit completes the physical path to a provider location.
  • Compare purchased capacity; a small hosted connection can be slower than a VPN.
  • Private circuits need a separate encryption method when encryption is required.
  • Use diverse locations for critical links and assess backup capacity and path requirements.

A connection choice begins with the work it must support. Identify who needs access, how much data moves, the deadline, the required consistency, the setup date, security requirements and the effect of an outage. Different answers lead to different links.

Narrow the choice
NeedSuitable starting pointMain trade-off
Visitors use a public websitePublic endpoint over HTTPSSecure and operate the public service
Individual remote staff use internal toolsClient VPNManage access for each device or user
An office needs modest private access soonSite-to-site VPNInternet performance varies
Frequent large transfers need a steady private pathDedicated connectionHigher fixed costs and longer setup

A company with 40 office staff and a next-week deadline can start with site-to-site VPN. For 300 employees working separately from home, client VPN gives each device access to internal tools. A bank moving terabytes daily may justify diverse dedicated connections and encryption. A manufacturer awaiting a circuit can use VPN initially and retain it as backup.

Check the transfer window

Bandwidth is link capacity; throughput is the rate actually achieved. Latency is the delay for a trip. A wide link can move a large file quickly while a long distance still makes each round trip slow.

Use decimal data units: 1 GB is one billion bytes and 1 TB is one trillion bytes. Each byte contains 8 bits. Keep the data amount and rate in matching bit units:

time in seconds=data in bitsthroughput in bits per second

A 2 TB backup contains 16 trillion bits. At an effective 500 Mbps, divide by 500 million bits per second to get 32,000 seconds, about 8.9 hours. That misses an 8-hour window. At a sustained 10 Gbps, the calculation gives 1,600 seconds, about 27 minutes. Use effective throughput for a practical estimate; an advertised port speed alone does not account for protocol overhead, contention or a slow source disk.

For an unusually large one-time migration, a network may take too long even when fully used. Sending 500 TB over 1 Gbps takes 4,000,000 seconds, about 46 days. Physical transfer services such as Azure Data Box can move bulk data by shipping a filled device. Compare the whole migration schedule, not just the network transfer.

Check security and failure behavior

A VPN supplies encrypted transport across the internet. A dedicated link supplies a private path and needs encryption added when required. A requirement for both properties calls for both controls. If a dedicated link fails, a VPN backup restores a path but may not move the same data within the original window. Decide which applications must continue and what the backup can carry.

Whatever the transport, check non-overlapping address ranges, routes in both directions, resource firewall permissions and DNS forwarding for private names. A larger circuit cannot fix an address conflict or a missing return route. Likewise, a working tunnel cannot make a private name resolve without the appropriate resolver path.

For the final decision, connect each choice to a stated need. “VPN because the office needs private access tomorrow and traffic is modest” is a usable explanation. “Dedicated because it is faster” leaves out the purchased capacity, the transfer window, the lead time and the failure plan.

Key Takeaways

  • Choose for users, volume, consistency, setup time, cost, security and availability.
  • A public website needs no hybrid link merely because it runs in the cloud.
  • Convert bytes to bits before dividing by a bit-per-second rate.
  • Use effective throughput to judge whether a transfer fits its window.
  • Check backup capacity as well as whether a backup connection exists.
  • Every hybrid path needs working addresses, routes, permissions and private-name resolution.

Cloud Networking examples

4 Walkthroughs

1

Trace an application’s network paths

13 steps
Place an application in subnets, follow its routes, and make a managed service resolve to a private endpoint.
  1. 1
    IntroductionStart with the path

    A cloud server needs an address, a route and permission before it can communicate. A service name adds another question: which address will the client use?

    Follow a small application from its private network, where subnets hold its tiers, to its database, an update server and managed storage. Each destination uses a different path even though the requests start at the same machine, using a NAT gateway or a private endpoint where needed.

  2. 2
    ExplanationGive each tier an address range

    A virtual network groups cloud resources into an isolated network defined in software. A subnet supplies addresses to one part of it.

    In an AWS VPC using 10.0.0.0/16, place the application in 10.0.2.0/24 and the database in 10.0.3.0/24. Application 10.0.2.15 and database 10.0.3.20 have distinct private addresses, while their subnet groups can have different routing and security rules.

  3. 3
    ConnectionPlace subnets across failure locations

    An AWS VPC spans a region, but each subnet occupies one availability zone. Repeat the application and database tiers in a second zone to avoid relying on one zone.

    Azure virtual networks are also regional, but their subnets span the region’s zones. Google Cloud uses global VPC networks and regional subnets, with address ranges assigned directly to those subnets.

  4. 4
    ChallengeCan a peering chain carry the traffic?

    Application network A peers with reporting network B. B peers with archive network C. Their ranges do not overlap. Can A reach C through those two peering links?

    ---reveal---

    No. Peering is not transitive. A needs its own connection to C. Non-overlapping ranges are necessary for ordinary peering, but they do not turn B into a transit network.

  5. 5
    ExampleChoose the local route first

    The application subnet has 10.0.0.0/16 → local and 0.0.0.0/0 → NAT gateway. The application sends a query to database 10.0.3.20.

    Both ranges match, but /16 is more specific than /0. The packet stays inside the VPC through the local route. A default route does not pull every packet toward the internet; it handles destinations without a more specific matching route.

  6. 6
    ExampleSend an update request outward

    Now application 10.0.2.15 requests an update from 203.0.113.50. That address is outside the VPC’s /16, so the default route sends it to the NAT gateway.

    The public NAT gateway is in a public subnet with an internet-gateway route. It translates the private source address to its public address. When the update server replies, NAT returns the response to the application that started the connection.

  7. 7
    Key InsightOutbound access does not invite new sessions

    NAT remembers which private resource started an outbound connection, so it can return the reply. That is different from accepting a new connection started by an internet user.

    The application can download updates while remaining private. A public website instead needs an internet-facing address and path, commonly on a load balancer, plus rules allowing users to connect.

  8. 8
    ChallengeDoes an allowing rule create an internet path?

    The database has only a private IP address and a local route. An administrator adds an inbound rule allowing TCP 5432 from every IPv4 address. Can an internet user now connect directly?

    ---reveal---

    No. The rule adds permission but supplies neither a public address nor an incoming internet path. Direct public access needs all those elements. The database rule should still be restricted to the application’s actual sources.

  9. 9
    ExplanationGive managed storage a private address

    Managed storage can sit outside the virtual network and expose a public endpoint. A private endpoint supplies a private address through which clients reach a supported service.

    Azure Private Link, AWS PrivateLink and Google Cloud Private Service Connect provide private connectivity options. An Azure endpoint identifies a particular resource; an AWS interface endpoint can reach a regional service through interfaces in chosen zones.

  10. 10
    ExampleCheck what the service name returns

    The application connects using a storage service name. A private endpoint exists at 10.0.2.40, but the client’s DNS lookup still returns the public service address. Its request therefore follows the public path.

    Configure and link the appropriate private DNS zone so the usual name returns 10.0.2.40 for internal clients. The application can keep its normal service name while changing the network path it uses.

  11. 11
    TipCheck public access separately

    Adding a private endpoint does not close the service’s public endpoint. For a private-only service, disable or restrict public network access in the service settings.

    Continue to use credentials and TLS encryption. The private address limits the network path; it does not decide which user may read a file or encrypt the application’s traffic. Azure service endpoints also retain public service addresses, unlike private endpoints.

  12. 12
    ChallengeFind the remaining storage path

    The application can download updates through NAT. A private storage endpoint exists, public storage access is disabled, and the client still resolves the storage name to its public address. What must change for storage requests to work privately?

    ---reveal---

    Make the service name resolve to the private endpoint through the linked private DNS setup, and ensure that private path is allowed. Working NAT proves outbound connectivity; it does not make the storage name choose its private endpoint.

  13. 13
    RecapReview a destination in order

    For each connection, identify the destination address, choose the most specific route, and check the applicable permissions. When a service name is involved, inspect the DNS answer too.

    Subnets organize resources; gateways and endpoints provide paths. NAT supports connections started inside. A private-only managed service also needs private name resolution and public access closed or restricted.

2

Find why an allowed web request times out

12 steps
Read a resource rule, trace the reply through a subnet ACL, and compare provider filtering behavior.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionFollow both halves of a connection
  2. 2
    ExplanationRead source, protocol and port together
  3. 3
    ExampleAllow a role to reach the database
  4. 4
    Key InsightA reply belongs to the existing session
  5. 5
    ChallengeWhat changes when rules are reordered?
  6. 6
    ExplanationApply the first matching ACL rule
  7. 7
    ExampleWrite down the request’s ports
  8. 8
    ExampleCheck the reply’s own destination
  9. 9
    ChallengeRepair the timeout
  10. 10
    ConnectionKeep the provider behavior straight
  11. 11
    ChallengeCan a subnet deny replace the resource rule?
  12. 12
    RecapLocate the decision that blocks traffic
3

Follow a name lookup and an edge request

13 steps
Work through DNS caching, a CDN cache miss, and the controls needed to publish a change.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionSeparate finding from fetching
  2. 2
    ExplanationFollow the resolver’s questions
  3. 3
    TipChoose a record that matches the answer
  4. 4
    ExampleTime the cached answer
  5. 5
    ChallengeWill a last-minute TTL change help?
  6. 6
    Key InsightRouting policies change answers
  7. 7
    ConnectionArrive at the CDN edge
  8. 8
    ExampleCount the origin fetches
  9. 9
    ExplanationGive cached content a lifetime
  10. 10
    ChallengePublish a correction at the same path
  11. 11
    ConnectionBring private names back to the office
  12. 12
    ChallengeChoose the cache to change
  13. 13
    RecapAsk what is cached
4

Choose and check a hybrid connection

14 steps
Connect an office, compare private circuits, and calculate whether a backup fits its transfer window.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionBegin with the work to be done
  2. 2
    ExplanationConnect a network or a device
  3. 3
    ExampleSend the office request into the tunnel
  4. 4
    ExampleGive the response a way back
  5. 5
    ChallengeWhat does an established tunnel prove?
  6. 6
    TipProtect the office end too
  7. 7
    ExplanationTrace a dedicated connection
  8. 8
    Key InsightPrivate transport still needs encryption
  9. 9
    ChallengeCan the backup meet the path rule?
  10. 10
    ConnectionChoose from requirements, not labels
  11. 11
    ExamplePut the data and rate in matching units
  12. 12
    ExampleCompare the result with the window
  13. 13
    ChallengeIs a working backup enough?
  14. 14
    RecapCheck the complete connection choice

Cloud Networking practice questions

30 Practice Questions in 3 sets

Set 1: Private services, rules and cached answers10 Practice Questions

Question 1 of 10

Network Cedar peers with Birch, and Birch peers with Elm. All ranges are distinct. Cedar now needs private access to Elm. What connection is missing?
  1. A new subnet inside Birch’s network.
  2. A direct Cedar–Elm peering connection.
  3. A public address on every Elm server.
  4. A DNS alias from Cedar to Birch’s gateway.
Show answerHide answer
Answer: B
Peering is not transitive, so the Cedar–Birch and Birch–Elm links do not create a Cedar–Elm path. Cedar needs its own peering with Elm for this direct peering arrangement. Adding subnets to Birch changes address organization but does not turn Birch into a transit path.

Question 2 of 10

An object storage service has a public endpoint and anonymous reads are disabled. What controls whether a client may read a protected object?
  1. The public endpoint’s DNS TTL and resolver location.
  2. The subnet prefix length and the object’s filename.
  3. The CDN cache lifetime and the service’s public address.
  4. The service’s access permissions and the client’s credentials.
Show answerHide answer
Answer: D
A public endpoint makes the service network-reachable, while credentials and permissions decide access to protected data. Public reachability alone does not grant read permission. A DNS TTL only controls how long a name lookup stays cached, not whether a request is authorized.

Question 3 of 10

An Azure storage account has a private endpoint, but a VM still resolves its usual storage name to a public address. How should the VM be directed to the private path while keeping the usual name?
  1. Configure and link private DNS for the endpoint.
  2. Create a NAT gateway for the VM’s subnet.
  3. Allow the public storage address in the VM’s NSG.
  4. Increase the TTL of the existing public DNS record.
Show answerHide answer
Answer: A
Private DNS must resolve the usual service name to the private endpoint’s address for that VM. The existence of a private endpoint alone does not make clients use it. A NAT gateway would support a public outbound path and would leave the name resolving to the public address.

Question 4 of 10

An AWS database has one security group allowing TCP 5432 from the application-server group and a second allowing TCP 5432 from 0.0.0.0/0. What must change to restrict that port to application servers?
  1. Attach the application-only group first.
  2. Add an application-only allow to the second group.
  3. Remove the broad allow from the second group.
  4. Add a deny for all other sources on port 5432.
Show answerHide answer
Answer: C
AWS combines the allow rules of all attached security groups, so the broad permission must be removed. The narrower permission does not cancel it, even if that group appears first. AWS security groups have no explicit deny rules to override an allow from another group.

Question 5 of 10

A public HTTPS server receives TCP traffic from client port 53120 at server port 443. Its security group permits the connection. The subnet ACL allows inbound 443 but outbound only destination 443. Routes are correct. What outbound ACL change permits this reply?
  1. Allow TCP to the client’s destination port 53120.
  2. Allow TCP to port 443 from more server addresses.
  3. Allow inbound TCP to destination port 53120.
  4. Rely on the security group to track the reply.
Show answerHide answer
Answer: A
The reply goes from server port 443 to client port 53120, and the stateless ACL must allow that outbound destination. An outbound allow for destination 443 covers a different packet direction. The stateful security group does not exempt the reply from the subnet ACL.

Question 6 of 10

At 16:20 a resolver caches an address with a TTL of 1,200 seconds. The authoritative record changes at 16:25. Until what time may that cached answer remain valid?
  1. 16:25.
  2. 16:40.
  3. 16:45.
  4. 16:20 the next day.
Show answerHide answer
Answer: B
The 1,200-second lifetime is 20 minutes starting when the resolver cached the answer, so it expires at 16:40. The authoritative change does not restart the old copy’s TTL at 16:25. It also does not erase that copy immediately.

Question 7 of 10

A weighted DNS policy sends 20% of answers to a new deployment. One company resolver caches an answer for hundreds of staff. Why might the new deployment receive much more or less than 20% of their requests?
  1. The policy counts bytes, so larger pages force more requests toward the new deployment.
  2. The TTL converts weighted routing into per-request balancing at the origin.
  3. The resolver applies the weights independently to every page request without a new lookup.
  4. Many staff reuse one cached answer, so answers and requests have different shares.
Show answerHide answer
Answer: D
The weights apply to DNS answers, while hundreds of staff can reuse one resolver’s cached answer for many requests. Request counts therefore need not match the answer percentages. A short TTL can lead to more lookups, but does not turn DNS into a load balancer deciding each application request.

Question 8 of 10

A product image is updated at its origin, but a CDN still has the old image with several hours of freshness left. The URL must stay the same and the correction is urgent. What should the team do?
  1. Lower the DNS TTL for the site’s domain.
  2. Restart the image’s origin server.
  3. Invalidate the image path in the CDN.
  4. Increase the CDN TTL for the image path.
Show answerHide answer
Answer: C
Invalidation removes the still-fresh cached copy so the CDN can fetch the corrected image at that path. Changing the origin alone does not expire the edge copy. Lowering a DNS TTL changes address caching, which is separate from the CDN’s cached image.

Question 9 of 10

A new dedicated private connection must also protect the application’s data from being read in transit. What property still needs a separate mechanism?
  1. Avoiding the public internet.
  2. Encryption of the traffic.
  3. Reaching the cloud provider.
  4. Purchased circuit capacity.
Show answerHide answer
Answer: B
A dedicated connection provides a private path but is not encrypted by default. TLS, IPsec or supported MACsec can supply encryption at their respective layers. Avoiding the public internet meets a path requirement; it does not itself make the transmitted data unreadable.

Question 10 of 10

A business needs private office-to-cloud access tomorrow for modest traffic. A dedicated circuit arrives in six weeks. Internet transport is allowed if encrypted, and the business wants a backup afterward. What rollout fits?
  1. Use site-to-site VPN now and retain it when the circuit arrives.
  2. Wait six weeks, then use a single dedicated circuit without backup.
  3. Use public service addresses now and treat their privacy as encryption.
  4. Use client VPN on one employee’s laptop as the permanent office gateway.
Show answerHide answer
Answer: A
A site-to-site VPN can use existing internet access quickly, encrypt the office traffic, and later remain as the circuit’s backup. Waiting for the circuit misses tomorrow’s requirement. A client VPN serves individual devices and does not supply the intended managed site-to-site arrangement for the office.
Set 2: Networks, traffic paths and access10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

An AWS application must keep servers in two availability zones. How must its subnets be placed?
  1. One subnet spanning both zones.
  2. Two subnets in the first zone.
  3. At least one subnet in each zone.
  4. One global subnet for both zones.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A private application server needs to download updates without accepting new connections from internet users. What network component provides this outbound access?
  1. A NAT gateway.
  2. An internet gateway.
  3. A DNS zone.
  4. A peering link.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

An AWS subnet has routes 10.60.0.0/16 → local and 0.0.0.0/0 → NAT gateway. Where does a packet to 10.60.8.19 go, and why?
  1. To the NAT gateway, because /0 matches every address.
  2. To the local network, because it was listed first.
  3. To the NAT gateway, because the destination is private.
  4. To the local network, because /16 is more specific.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

An AWS security group permits an inbound HTTPS connection. How does the group handle the server’s reply to that connection?
  1. It requires an outbound allow for destination port 443.
  2. It permits the reply as part of the tracked connection.
  3. It requires an outbound allow for every client address.
  4. It denies the reply until a subnet ACL tracks the connection.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

An AWS inbound ACL has rule 80 allowing TCP 443 from 0.0.0.0/0, rule 140 denying all traffic from 198.51.100.0/24, then the final deny. How does it handle HTTPS from 198.51.100.29?
  1. It denies it because rule 140 is more specific.
  2. It allows it because rule 80 matches first.
  3. It denies it because deny rules take priority.
  4. It allows it because the final deny is outbound.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A DNS record must map portal.example.com directly to an IPv4 address. What record type is needed?
  1. An AAAA record.
  2. A CNAME record.
  3. An MX record.
  4. An A record.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

An edge server has a fresh cached copy of a public image and serves that copy. What is this event called?
  1. A cache hit.
  2. A cache miss.
  3. A cache invalidation.
  4. An origin failover.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

An office can establish its cloud VPN tunnel and resolve the application’s private name. The cloud has a route back to the office, and security rules allow the application port. The office router has no route for the cloud range. What must be corrected?
  1. Add a public IP address to the private application server.
  2. Replace the application’s private DNS record with a public one.
  3. Add an office route for the cloud range through the VPN.
  4. Allow every outbound destination on the cloud security group.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

An office has one router, one internet provider and both tunnels of an AWS Site-to-Site VPN configured. It must survive failure of the office router or that internet provider. What additional arrangement addresses both failures?
  1. A second cloud tunnel on the existing router and provider.
  2. A second router using only the existing internet provider.
  3. A second internet circuit terminating on the existing router.
  4. A second router using an independent internet provider.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A nightly job sends 0.9 TB in a four-hour window. Its primary path sustains 1 Gbps and its VPN backup sustains 400 Mbps. Using decimal units and ignoring extra delay, which paths fit, and how long does each need?
  1. Both fit: 0.25 hours on primary and 0.625 hours on backup.
  2. Only the backup fits: 5 hours on primary and 2 hours on backup.
  3. Only the primary fits: 2 hours on primary and 5 hours on backup.
  4. Neither fits: 20 hours on primary and 50 hours on backup.
Show answerHide answer

Save this lesson to see this answer.

Set 3: Troubleshoot paths and choose resilient links10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

An office uses 10.70.0.0/16. A partner uses 10.71.0.0/16 and peers with another network using 10.72.0.0/16. An empty AWS VPC planned as 10.70.0.0/16 must connect to the office by VPN and to the partner by peering. What cloud range and peering plan supports both connections?
  1. Keep 10.70.0.0/16 and peer directly with the partner.
  2. Choose 10.73.0.0/16 and peer directly with the partner.
  3. Choose 10.71.0.0/16 and peer directly with the partner.
  4. Choose 10.73.0.0/16 and peer only with the partner’s other peered network.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

An AWS VM has no public IP and runs in a subnet whose default route points to a NAT gateway. The NAT gateway has a working internet path. Security rules allow inbound TCP 443. What change enables internet clients to start HTTPS sessions while the VM keeps only its private address?
  1. Reserve a public IP on the NAT gateway and keep it as the inbound HTTPS target.
  2. Replace the VM’s local route with an internet-gateway route and keep no public front end.
  3. Broaden the VM’s inbound source to every IPv4 address and keep the existing path.
  4. Add a public load balancer with an internet path and allow its traffic to the VM.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A company requires a managed database to be reachable only over private connectivity, using its normal service name. A private endpoint exists. What remaining checks establish that intended access?
  1. Public DNS resolves the name, NAT allows outbound traffic, and database credentials are required.
  2. Private DNS resolves the name, the endpoint has a route, and the public endpoint remains unrestricted.
  3. Private DNS resolves the name internally, the private path is allowed, and public access is disabled.
  4. Public access is disabled, the name keeps a public answer, and an internet gateway carries the traffic.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

An Azure subnet NSG allows inbound HTTPS at priority 200. The VM’s interface NSG denies the same inbound traffic at priority 150. What happens to a new HTTPS connection reaching that VM?
  1. It is allowed because the subnet NSG was checked first.
  2. It is allowed because any NSG allow overrides a deny.
  3. It is blocked because every reply needs an outbound NSG rule.
  4. It is blocked because the interface NSG denies it.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Two AWS VMs share one subnet. The team adds a subnet ACL deny to block traffic between them, but their security groups still allow it. Where should the team change the network permission?
  1. In the VMs’ security groups.
  2. In an earlier subnet ACL rule.
  3. In the subnet’s route table.
  4. In a NAT gateway port mapping.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A cacheable download receives 12,000 requests. The CDN records 10,800 hits, and each miss fetches once from the origin. If the same hit ratio holds for 30,000 requests, how many requests reach the origin?
  1. 27,000 requests.
  2. 1,200 requests.
  3. 3,000 requests.
  4. 2,700 requests.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Staff work independently from many homes and need access to internal cloud tools on their laptops. What type of VPN fits these individual connections?
  1. An office site-to-site VPN without individual laptop sessions.
  2. A client VPN with a separate session from each laptop.
  3. VPC peering between each laptop and the cloud network.
  4. Private service endpoints without a remote network connection.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A team compares a 100 Mbps hosted private connection with a VPN currently delivering 600 Mbps. What conclusion follows about moving a large file at those rates?
  1. The VPN transfers it faster, while the hosted link offers a private path.
  2. The hosted link transfers it faster because dedicated always means higher bandwidth.
  3. The VPN transfers it slower because encryption fixes throughput below 100 Mbps.
  4. Both finish together because private and encrypted links carry the same amount per second.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A workload must keep operating after a facility outage and must never carry its traffic over the public internet, including during failover. It currently has two private circuits through one facility. What change addresses these requirements?
  1. Keep both circuits and add an encrypted internet VPN as the sole facility backup.
  2. Replace one circuit with a faster port in the same facility.
  3. Keep both circuits and enable TLS while retaining that single facility.
  4. Provide redundant private connectivity through a different facility.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A backup contains 300 GB and has a two-hour window. A proposed backup path sustains 500 Mbps. Using decimal units, how long does the transfer take before any extra delays?
  1. 600 seconds, or 10 minutes.
  2. 9,600 seconds, or 160 minutes.
  3. 4,800 seconds, or 80 minutes.
  4. 2,400 seconds, or 40 minutes.
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

65 Key Terms, each with its definition

A

A record
An A record maps a DNS name directly to an IPv4 address, allowing clients to discover the address to which they should connect.
The team updates the portal’s A record when it moves the service to a new IPv4 address.
AAAA record
An AAAA record maps a DNS name directly to an IPv6 address, providing the IPv6 counterpart of an A record’s IPv4 mapping.
An IPv6-capable client looks up the service’s AAAA record before connecting over IPv6.
Address overlap
Address overlap occurs when connected networks use some of the same IP addresses, making the intended destination network ambiguous.
The office and cloud team choose different private ranges before establishing their hybrid link.
Anycast
Anycast lets several network locations announce the same IP address so internet routing carries a client toward a nearby location.
Azure Front Door directs users toward its edges with anycast instead of assigning every edge a unique user-facing IP.
Authoritative name server
An authoritative name server answers from the DNS records it holds for a zone, supplying the domain’s authoritative information.
After following referrals, the resolver asks the domain’s authoritative servers for its web address.

B

Bandwidth
Bandwidth is the data-carrying capacity of a link, measured in bits per second; actual throughput can be lower than that capacity.
A 1 Gbps port has enough rated capacity for a planned data transfer, but the team still measures its effective transfer rate.
BGP
BGP, Border Gateway Protocol, lets routers advertise reachable address ranges to one another so network routes can be learned dynamically.
The hybrid connection exchanges the office and cloud ranges through BGP instead of only static routes.

C

Cache hit
A cache hit occurs when a cache has a fresh usable copy of requested content and can answer without retrieving it from the origin.
Repeated requests for the same public logo are served at the edge while its copy remains fresh.
Cache hit ratio
A cache hit ratio is the number of requests served from cache divided by all requests, often expressed as a percentage.
A service with 4,500 hits from 5,000 requests has a 90% hit ratio and 500 misses.
Cache invalidation
Cache invalidation removes a cached object before its normal expiry so a later request can retrieve the updated content.
The team invalidates an image path to publish an urgent correction while keeping the same URL.
Cache miss
A cache miss occurs when an edge cannot serve a usable cached copy and must fetch the requested content from its origin.
The first request for a newly named script causes an origin fetch before later users receive edge copies.
CIDR notation
CIDR notation writes an IP address range with a slash and prefix length; more fixed prefix bits identify a smaller range.
The team recognizes that 10.0.0.0/16 is a larger address range than 10.0.1.0/24.
Client VPN
A client VPN connects an individual device to a private network through VPN software, commonly giving remote workers internal access.
A remote employee starts a client VPN session before opening a private cloud reporting tool.
CNAME record
A CNAME record makes one DNS name an alias for another name and cannot coexist with the other required records at a zone apex.
The team points www.example.com to another hostname but uses a supported alias at the bare domain.
Colocation facility
A colocation facility is a data center where organizations and network providers place equipment and can interconnect their networks.
The connectivity partner extends a circuit from the office to the facility where it meets the provider.
Content delivery network
A content delivery network caches and delivers content through distributed edge servers, bringing reusable files closer to users.
A training provider uses a CDN to serve the same course images to learners across many regions.
Cross-connect
A cross-connect is a physical cable joining two parties’ network equipment within a facility, completing a local interconnection.
A technician connects the customer’s router to the provider’s router at the shared meeting location.

D

Dedicated private connection
A dedicated private connection links an organization to a cloud provider without traversing the public internet, usually through a provider location.
The company uses ExpressRoute for consistent private connectivity to its Azure resources.
Default route
A default route is a fallback path used when no more specific destination route matches; its IPv4 destination range is 0.0.0.0/0.
A packet for an external server follows the default route because no narrower range matches it.
Defense in depth
Defense in depth combines independent protective layers so an error in one control does not leave the entire application exposed.
Security groups, subnet filters and application sign-in controls protect different parts of a request.
DNS failover
DNS failover changes new DNS answers from a primary endpoint to a standby after health checks detect a problem with the primary.
Some users keep reaching the old region until their previously cached DNS answers expire.
DNS resolver
A DNS resolver finds answers for clients, using cached records when available and querying DNS servers when it needs a new answer.
Many office browsers share the company resolver, so one cached answer can serve many users.
DNS TTL
A DNS TTL is the lifetime, in seconds, for which a resolver may cache an answer before obtaining updated information.
A resolver can keep its old answer until the original TTL expires after a server move.
DNS zone
A DNS zone is a managed collection of records for a domain or part of its namespace, hosted by authoritative name servers.
The company creates a public zone with a DNS provider and updates its registrar to delegate to that provider.

E

Endpoint
An endpoint is the network address clients use to connect to a service, commonly obtained by resolving the service’s DNS name.
The analytics application connects to object storage using its configured service endpoint.
Ephemeral port
An ephemeral port is a temporary client port used for a connection; the server sends its response to that port on the client.
A browser sends from port 54810 to server port 443, and the response returns to port 54810.

F

Failover path
A failover path is an alternative network route used after the primary path fails; its capacity and security must fit the required workload.
The VPN backup keeps essential services running while the private circuit is repaired.
Flow log
A flow log records information about network flows, including whether traffic was accepted or rejected by the recorded network controls.
The team examines rejected flows while investigating why an allowed application cannot connect.

G

Gateway endpoint
An AWS gateway endpoint adds service routes for S3 or DynamoDB without creating private-addressed network interfaces or an additional endpoint fee.
The analytics subnet reaches S3 using a gateway endpoint instead of sending those reads through NAT.

H

Hosted connection
An AWS hosted connection supplies Direct Connect capacity through a connectivity partner, often in smaller sizes than a dedicated port.
A small organization buys partner-provided capacity without operating its own equipment at the provider location.
Hybrid network
A hybrid network connects on-premises networks with cloud networks, allowing systems on both sides to communicate through planned paths.
An office inventory system exchanges data with an application using private addresses in the cloud.

I

Inbound traffic
Inbound traffic arrives at the resource being considered; an inbound rule can limit its source, protocol and destination port.
A web server’s inbound HTTPS rule allows users to start encrypted sessions on TCP port 443.
Internet gateway
An AWS internet gateway connects a VPC to the internet; resources also need suitable addressing and security permission for public access.
The load balancer’s public subnet sends its default route to the VPC’s internet gateway.
IPsec
IPsec is a set of protocols that authenticates and protects IP traffic, commonly providing encryption for site-to-site VPN tunnels.
The company carries private-addressed traffic inside IPsec across its existing internet connection.

L

Latency
Latency is the time taken for data to make a network trip; round-trip latency includes the outward trip and the response.
A faraway service can respond slowly even when its connection has enough bandwidth for large files.
Least privilege
Least privilege permits only the access needed for a task, restricting the ports and source or destination ranges in network rules.
Administrator access is limited to the office address instead of every address on the internet.
Longest-prefix match
Longest-prefix match selects the matching route with the most fixed address bits, giving a more specific destination priority.
A local /16 route wins over a /0 default for a destination inside the virtual network.

M

MACsec
MACsec encrypts network frames on supported links, providing a separate encryption layer for compatible dedicated private connections.
The company enables supported MACsec to protect frames carried across its private physical link.

N

NAT gateway
A public NAT gateway translates private source addresses for outbound internet connections and returns replies to the initiating resources.
Private application servers download updates through NAT without accepting new internet sessions.
Network ACL
An AWS network ACL is a subnet-boundary filter that evaluates numbered allow and deny rules for inbound and outbound traffic.
The team adds a low-numbered deny to block a malicious range before the subnet’s broad web allow.
Network peering
Network peering links two non-overlapping virtual networks so their resources can communicate privately over the provider’s network.
The reporting network peers directly with the application network to read approved internal data.
Network security group
An Azure network security group is a stateful filter with prioritized allow and deny rules, attached to a subnet, an interface or both.
The VM’s connection must pass both the subnet NSG and its network-interface NSG.

O

Origin
A CDN’s origin is the source that stores the original content or generates responses, such as a storage bucket or application server.
On a cache miss, the edge retrieves the requested file from the configured origin.
Outbound traffic
Outbound traffic leaves the resource being considered; an outbound rule can limit its destination, protocol and destination port.
An application’s outbound rule permits it to open a connection to the database’s listening port.

P

Port
A TCP or UDP port is a numbered communication endpoint that helps a network rule distinguish the service being contacted.
A rule permits PostgreSQL connections on TCP 5432 without opening every port on the database.
Private DNS zone
A private DNS zone holds records available to linked private networks, including records that direct service names to private endpoints.
A linked private zone lets the application find storage through its internal endpoint address.
Private endpoint
A private endpoint provides a private network address for reaching a supported service through the provider’s private connectivity.
The storage name resolves to the endpoint’s private address for clients inside the virtual network.
Private IP address
A private IP address belongs to an internal address range that the public internet does not route between public networks.
An office device reaches the cloud server’s private address through the company’s VPN tunnel.
Public endpoint
A public endpoint uses an internet-reachable address; the service’s authentication and permissions still control access to protected data.
The storage endpoint is public, but the application must authenticate before reading private files.
Public subnet
An AWS public subnet has a route to an internet gateway; a resource in it still needs public addressing and allowing rules for inbound internet access.
A subnet using private-range addresses is public when its default route leads to the internet gateway.

R

Route table
A route table is a collection of destination ranges and next targets that determines where a network forwards outgoing packets.
A subnet sends local database traffic within the VPC and update downloads toward a NAT gateway.

S

Security group
An AWS security group is a stateful resource firewall whose allow rules determine which new connections may reach or leave its network interfaces.
The database group allows its listening port only from the application-server security group.
Service endpoint
An Azure service endpoint lets a service recognize and restrict access to a subnet while the service retains its public IP address.
A team distinguishes its subnet-based service endpoint from a Private Link endpoint’s private address.
Site-to-site VPN
A site-to-site VPN joins whole networks through gateways, using encrypted tunnels to carry traffic over an underlying network.
The branch router sends cloud application traffic into the encrypted tunnel to the cloud VPN gateway.
Stateful filtering
Stateful filtering remembers allowed connections and permits their replies without requiring separate rules for each reply direction.
An AWS security group permits the response to an allowed HTTPS request even without a reply rule.
Stateless filtering
Stateless filtering evaluates each packet independently, so an allowed request does not automatically permit a reply in the opposite direction.
The website times out when its outbound ACL does not allow replies to clients’ temporary ports.
Static public IP address
A static public IP address is a reserved internet-routable address retained for continued use, unlike an automatically assigned address that may change.
The company reserves a stable address for an external system that allows traffic from known IPs.
Subnet
A subnet is an address range assigned to one part of a virtual network, often grouping resources that need similar routing and access rules.
The database subnet supplies private addresses to the company’s database servers.

T

Throughput
Throughput is the rate at which data is actually transferred, affected by the link, protocols, congestion and the systems sending and receiving it.
An estimate for a backup over a network port uses measured throughput instead of assuming the port always runs at its full rated speed.
Transfer window
A transfer window is the time available to finish moving a data set, used with its size and effective throughput to judge whether a link is sufficient.
An overnight backup must finish inside six hours before staff begin using the application again.
Transitive connectivity
Transitive connectivity is the ability to reach a third network through an intermediate one; ordinary cloud network peering does not provide it.
Peering from A to B and from B to C leaves A needing its own path to C.

V

Virtual network
A virtual network is a logically isolated network defined in software, giving cloud resources private addresses and controlled connections.
A business keeps its production application and its testing servers in separate virtual networks.
VPN gateway
A VPN gateway is the network endpoint that establishes and handles VPN tunnels between a cloud network and a remote site or device.
The office firewall establishes its tunnel with the cloud VPN gateway’s public endpoint.

W

Weighted DNS routing
Weighted DNS routing returns answers in chosen proportions; caching means those proportions need not equal application-request shares.
A 10% new-version weight is a rollout starting point, not a count of exactly one in ten web requests.

Z

Zone apex
The zone apex is the root name of a DNS zone, such as example.com, where required NS and SOA records are also held.
A supported cloud alias directs the bare domain to a load balancer without using a standard CNAME.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started