VPC Flashcards
Regions
Separate physical locations in the world where AWS has cloud infrastructure
Each region consist of multiple AZs
There are many regions around the world
regions are connected by AWS global network
network across regions do not offer low latency, usually regions are far apart
Availability Zone
one or more data centers
each AZ has redundant power sources and networking (within and between AZ)
low latency between and within AZs
AZs can contain public and/or private subnets
AWS Outpost
Subset of AWS services (e.g EC2) that can be run in a corporate data center that has connectivity to an AWS region
AWS Local Zone
Like AZ in metropolitan areas, connected to a region, so that resources are closer to where you are to offer lower latency but they are more expensive than AZs
offer increase performance for your app
AWS Wavelength Zone
For 5g and lower latency for mobile with connectivity back to the region
offer increase performance for your mobile app
Cloud Front
content delivery network where resources can be cached at locations around the world for better performance
allows for global deployment
Amazon Global Infrastructure
Cloud Front
VPC
AZ
Region
How are IP addresses structured
4 numerals that represent a binary octets with decimals in between
What numbers do the bits represent in a binary octet
2^7=128
2^6=64
2^5=32
2^4=16
2^3=8
2^2=4
2^1=2
2^0=1
What is the Network ID of an IP
Represents the network, so each computer (host) on the network will have the same Network ID
What is the Host ID of an IP
Represents the unique host number for each host/computer on the network
What is the subnet mask of an IP address
give example
used to define the network and host id
If subnet mask is 255.255.255.0, network id is first 3 octets and host id is last octect
What is the network id and subnet mask of 192.168.0.0/24
Explain
Network ID is 192.168.0.0
Subnet mask is 255.255.255.0
Subnet mask has 24 bits which represents 255.255.255.0
so the first 3 octets of the CIDR IP are the network ID with appending the 0 to represent first host so 192.168.0.0
What private IP addresses
Who designates
10 network 10.0.0.0 - 10.255.255.255
172.16.0.0 - 172.31.255.255
192.168.0.0 - 192.168.255.255
these addresses are reserved for private use according to IETF RFC-1918
not routable outside the network, e.g. internet
What can you do with private IP addresses, what are constraints?
Use private IPs as internal IPs
VPC
Virtual Private Cloud
logically isolated portion of the AWS cloud within a region
each VPC has unique CIDR block that is used to assign a subset of IP
addresses again expressed in CIDR to each subnet within the VPC
spans all AZs in region
Where do subnets live in AWS?
A subnet is configured in one AZ and can’t span AZs
VPC Router
How do we configure it?
takes care of routing within and outside of the VPC
interconnects subnets and directs traffic between Internet Gateways, Virtual Private Gateways, NAT Gateways and subnets
configure it by configuring route tables
Route Table
configures routing traffic in and out of your VPC
Internet Gateway
How is it configured?
IGW VPC attached connection to the public internet for IPv4
Only one per VPC and attached to the VPC
used to connect to the internet
need to configure target or destination of IGW id in the route table
What is the default limit of VPCs per region
5
What is a subnet in the context of a VPC
A segment of a VPC’s IP address range (usually expressed in CIDR notation) where you can place groups of isolated resources
What components are within a VPC
- Subnets
Internet Gateway
VPC Router/Route Table
Peering Connections
VPC Endpoints
NAT Instances
NAT Gateways
Virtual Private Gateways
Customer Gateway
AWS Direct Connect
Security Group - Network ACL
Peering Connection
Direct connection between 2 VPCs
NAT Instance
Enables Internet access for EC2 instances in private subnets
NAT Instances are managed by you
NAT Gateway
Enables Internet access for EC2 instances in private subnet
NGW is managed by AWS
Virtual Private Gateway
The VPC side of a VPN connection
Customer Gateway
The customer side of a VPN connection that is connected on the other end to AWS VPC
AWS Direct Connect
High speed, high bandwidth private network connection from customer to AWS