Module 3 - Networking Flashcards
What is a CIDR block?
This is how you tell the network how many IP addresses to allocate. Go for more so you don’t run out of addresses.
What is Amazon VPC?
Amazon Virtual Private Cloud (VPC) is a service that lets you launch AWS resources in a logically isolated virtual network. You deploy into ONE of the Regions and can host resources from any Availability Zone within its Region. It’s like your own personal data center.
What is a subnet?
A range of IP addresses in your VPC. It lives in one AZ. It must be associated with only ONE route table but subnets can share a route table.
What is CIDR?
Classless Inter-Domain Routing. It’s a method of allocating IP addresses and IP routing.
What does an Internet Gateway do?
Allows instances in your VPC to talk to the internet. It has 2 jobs:
- Provides a target in your VPC route tables for internet-routable traffic
- Performs network address translation (NAT) for instances that have been assigned public IPv4 addresses
How does a subnet get on a route table?
Every subnet in your network must be on a route table. (and only one route table). It will be on the main one if you don’t specify.
How would you set up multiple environments, like dev, qa, prod?
Create multiple VPCs. For extra security, use multiple accounts also.
How do you make an instance publicly accessible within a VPC?
1) Attach an internet gateway to the VPC (this creates a public subnet)
2) Update the public route table pointing to the gateway.
3) Assign the instance a public IP address.
What is an Elastic IP address?
An IP address that you can move around to any instance. You access it through the Internet Gateway.
What’s the point of an Elastic IP?
You can mask the failure of an instance by rapidly remapping the address to another instance in your VPC.
What are the limitations of an Elastic IP?
Does not work on VPN (because there is no Internet Gateway), limited to 5 addresses.
What is an Elastic Network Interface?
An interface you can attach to an instance, then detach and attach to a different instance, all the while keeping its Elastic IP, private IP, elastic address and MAC address.
What is the purpose of NAT?
Network Address Translation is for conserving IP addresses. This lets your private IP networks connect to the internet. Not needed for IPv6.
What is a NAT gateway?
A one-way (outbound) connection between private subnet instances and the internet. The NAT gateway uses its Elastic IP address as the source IP for traffic from the private subnet. Not needed for IPv6.
What is a network ACL?
Network Access Control List. It’s an optional layer of security for your VPC that acts as a firewall for controlling traffic in and out of one or more SUBNETS. It contains a list of rules evaluated in order to determine if traffic is allowed.