Some AWS networking services work outside your VPC: the ones that bring users to your application and the ones that join your own network with AWS. Amazon Route 53 tells users where to connect, Amazon CloudFront brings the content closer to them, and AWS Site-to-Site VPN, AWS Client VPN and AWS Direct Connect connect your network or your employees with your resources on AWS. For example, when someone visits an online store, Route 53 tells them where the store is, CloudFront quickly delivers the product photos, and a VPN joins the store's offices with its systems on AWS.
Amazon Route 53
When you type an address such as ejemplo.com, your computer doesn't yet know where to connect, because it needs the server's IP address. DNS (Domain Name System) is the system that translates the name into that address, and Amazon Route 53 is the AWS DNS service. AWS describes it as highly available, that is, it almost never stops working, and scalable, that is, it can handle as many queries as come in. For example, when someone types the store's name in their browser, which is the program they use to go on the internet, DNS answers with the IP address where the store is.

A DNS query, which is the question of where a name goes, follows three steps. First the browser asks Route 53 where ejemplo.com is, and Route 53 looks up the record in the hosted zone, which is where you keep your domain's records. A record is the line that ties a name to an address, and the domain is your site's name, such as ejemplo.com. Then Route 53 answers with the address of the load balancer, and the browser connects directly to the application, so Route 53 no longer sits in the path of the traffic.
Route 53 does three jobs, and you can use one, two or all three:
- Domain registration, which lets you register a name such as ejemplo.com, that is, reserve it so it is yours. For example, the store registers its name so nobody else can use it.
- Traffic routing, which consists of answering DNS queries to send people to your resources. For example, Route 53 answers each of the store's customers with the address of its load balancer.
- Health checking, which it does with health checks, which are tests Route 53 runs on each resource to see whether it responds, and which alerts you if one stops responding. For example, if the store's website goes down in the middle of the night, the health check detects it and alerts you.
Routing policies
Each Route 53 record has a routing policy, which decides what Route 53 answers when someone asks for that name. That decision matters when you have your application in more than one place, because the policy chooses which of them to send each person to. Besides the IP-based policy and the multivalue answer policy, Route 53 has six policies that you need to tell apart:

- The simple policy, which is used for a single resource. For example, the store has its website in a single place, so Route 53 always answers with the same address.
- The weighted policy, which distributes the traffic in the proportions you choose. For example, the store sends a small share of its visits to the new version of the site to test it, and the rest to the usual one.
- The latency policy, which sends each user to the Region that responds to them the fastest. For example, if the store has copies of its site in two Regions, each customer goes to the one that answers them first.
- The failover policy, which sends traffic to the backup resource, that is, to a copy ready to be used, if the primary one fails. For example, if the store's primary site goes down, Route 53 sends customers to the backup copy.
- The geolocation policy, which decides based on where the user is. For example, the store sends customers who connect from Mexico to the version of the site with prices in pesos.
- The geoproximity policy, which decides based on where your resources are and how close they are to the user. For example, the store has resources in two places and each customer goes to the one closest to them.
Amazon CloudFront
Once the user knows where to go, the content has to travel to them, and the farther away the server is, the longer it takes to arrive. That waiting time is called latency. Amazon CloudFront, the AWS content delivery network (CDN), shortens that distance by keeping copies of your content in edge locations, which are AWS data centers spread around the world. When someone requests a file, CloudFront delivers it from the location with the lowest latency for that person.

For example, when a user in Lima requests the photo of one of the store's products, the edge location delivers it right there if it already has it, and if it doesn't, it requests it from the origin, which is the place where you keep the original and which can be an S3 bucket or your own server. In that second case, the edge location keeps a copy for the next person who requests it, and keeping copies like this is called caching.
CloudFront is used to deliver websites, video, files and APIs, which are the doors through which one application requests data from another. That is why, on the exam, phrases such as "users all over the world", "low latency" or "caching at edge locations" point to CloudFront. For example, if a school wants its class videos to load fast for students in several countries, the answer is CloudFront.
How do you connect your data center to AWS?

Many companies have part of their systems on AWS and another part in their own data center, and they need the two parts to communicate. For example, the store has its website on AWS, but its warehouse system is still on a server in its office, and the two have to share the inventory. To join them, AWS offers two paths: Site-to-Site VPN, which travels over the internet, and Direct Connect, which reaches AWS through a dedicated connection that doesn't go through internet providers.

AWS Site-to-Site VPN
AWS Site-to-Site VPN creates tunnels encrypted with IPsec, which is a security standard for networks, between your network and a virtual private gateway, which is the entry door on your VPC's side. A tunnel is a private connection that travels inside the internet without anyone outside being able to read what goes through it. Each connection comes with two tunnels, so if one fails the other remains, and a standard tunnel reaches up to 1.25 Gbps (gigabits per second, the measure of how much data goes through each second). For example, the store joins its warehouse's network with its VPC using Site-to-Site VPN, and even though the data travels over the internet, nobody else can read it.
AWS Direct Connect
AWS Direct Connect is a fiber cable, which carries data with light, from your network to a Direct Connect location, and from there to AWS. According to AWS, this connection can lower network costs and provide more bandwidth and a more consistent network experience than an internet connection, because the traffic doesn't go through internet providers. For example, a bank that moves large amounts of data between its data center and AWS every day uses Direct Connect so the speed doesn't depend on how the internet is doing that day.
AWS Client VPN
When the exam guide says AWS VPN, it refers to two services: Site-to-Site VPN, which joins entire networks such as your office or your data center with your VPC, and AWS Client VPN, which connects people. With Client VPN, each employee uses an OpenVPN-based client on their computer, which is a program they install to connect, and with it they reach the resources on AWS or on your network. For example, a store employee who works from home opens that program and gets into the warehouse system without being at the office.
On the exam
In questions about DNS and content, "register a domain", "DNS" or "route based on latency" point to Route 53. If the question also says "by law, users in a country must go to a certain Region", the answer is the geolocation policy, and if it says "deliver content with low latency all over the world", it is CloudFront.
In questions about connections, what decides the answer is where the traffic travels and whom it connects. For example, if the question says that a school's teachers have to get into a system on AWS from home, the answer is Client VPN, because it connects people and not networks. These phrases point to each service:
- "Encrypted connection over the internet" between your network and AWS, which points to Site-to-Site VPN.
- "Dedicated", "private", "without going over the internet" or "consistent performance", which point to Direct Connect.
- "Employees who work from home", which points to Client VPN.
cloud path tip: if you use an account with the new AWS experience, Route 53 and CloudFront are included in the free plan, but Site-to-Site VPN, Client VPN and Direct Connect are not available until you turn on the advanced features, so study those three in theory.