Virtual Private Cloud Basics Flashcards
What is the minimum size of a VPC
/28 = 16 IPs
What is the maximum size of a VPC
/16 = 65356 IPs
What do services use with regards to VPCs
Subnets, not VPCs
Should you use Bastion hosts
No, they are frowned upon
What type of service is VPC
Regional
Can data move in and out of VPC
Only with explicit config, otherwise no
How many subnets does the default VPC have
One per AZ
What is a dedicated tenancy
Uses dedicated hardware
What happens if you pick dedicated at VPC level
All ressources in VPC must be on dedicated hardware
What happens if you enabble DNS hostnames
Instances with public IPs have DNS names
What happens if you enable DNS support
Enables DNS resolution in VPC
What is the address of the DNS in a VPC
Base + 2 (e.g. if VPC is 10.0.0.0, it would be 10.0.0.2)
What is the nuber-to-number relationship between subnets and AZs
Subnet only has one AZ
AZ has 0 or more subnets
Can subnets overlap
No
How many IPs in every subnet is reserved
5
What is the first address in a subnet
The network address, it cannot be used
What is the second address in a subnet
Network + 1 - VPC router, it moves data between subnets and in and out of VPC if configured to allow it
What is the third address in a subnet
Network + 2 - Reserved for DNS. Technivally, it<s the 2nd adress ovf VPC and not subnet which is used, but this address is reserved in every subnet
What is the 4th address in a subnet
Network + 3 - Reserved for future use
What is the last address in a subnet
It is the network broadcast address, it is reserved even if broadcast is not supported in VPCs
What does DHCP stand for
Dynamic Host Configuration Protocol
What is DHCP
It is how computing devices receive IPs automatically
What has a route table
Each subnet, and the VPC, the VPC route table is used as default
What is the number relationship between route tables and subnets
Each subnet has one route table, each route table can be associated with many subnets
What are the options for route tables of a subnet
Either the main VPC one, ort a custom one
To what data does a route table apply
To the data leaving the subnet
Can local routes in a route tbale be edited
No, they are always there and uneditable
How do you know if something is a local route
It matches the VPC IPv$ or 6 CIDR range
How does a route table handle priorities
More specific (higher prefix value) = priority
When is the default route used
When nothing else matches
What resiliency does an Internet Gateway have
Regional
What is the number relationship between an internet gateway and a VPC
One to one
Where does an internet gateway run
From the AWS public zone
What does an internet gateway do
It is a gateway for traffic between the vpc and the internet or aws public zone
What type of service is an internet gateway
AWS-managed - AWS handles the performance
What are the steps to configure an internet gateway
1 : Create IG
2 : Attach IG to VPC (will make it available to route table)
3 : Create a custom route table
4 : Associate the route table to the dubnet
5 : Make the default route the IGW
6 : Configure the subnet to allocation public IPv4
Then the subnet is a public sbnet