VPC Flashcards
How many IP addresses does AWS reserve in a subnet
First 4 and last 1 IP address in each subnet’s CIDR block
How many IP addresses are available in /28 CIDR Block range?
16
How to allow instances in Private Subnet to be able to connect to the internet
Attach a NAT Gateway in Public Subnet
& add path in Route Table to internet to point to NAT Gateway
Scalability of NAT Gateway
5 Gbps - 45 Gbps
Outside traffice hits what items in VPC first
Internet Gateway or VPN
Router
Route Table
ACL
Security Group
Instances
Security Groups are Stateful or Stateless
Stateful (allows communication back and forth outbound open by default)
Max number of NACLs can a subnet be associated with at a time
1
NACLs are Stateful or Stateless
Stateless (have to set both inbound and outbound)
Here are my NACL rules
100 Port 80 Allow
200 Port 443 Allow
300 Port 80 Deny
* All. 0.0.0.0/0 Deny
What will happen with Port 80 access
Still will have access since Allow is lowest #
Lowest #s evaluated first
How to connect to AWS services without an internet gateway or NAT Gateway
VPC Endpoints
TRUE or FALSE VPC peering allows transitive peering
FALSE, hub and spoke model only
TRUE or FALSE VPC peering can be done across regions AND AWS accounts
TRUE
TRUE or FALSE VPC Peering must be done over overlapping CIDR ranges
FALSE, Cannot overlap CIDR ranges
3 options to share applications across VPCs
- Open VPC up to Internet
- big security no-no
- lots to manage - VPC Peering
- manage all the peering relationships
- whole network will be accessible, even if you have multiple apps on VPC - PrivateLink
- no internet tables or nat gateways
- only expose application to 100s or 1000 of customer VPCs
AWS resources needed for Private Link
Network Load Balancer in service VPC
ENI on customer VPC