VPC Flashcards
What is VPC ?
Amazon Virtual Private Cloud (Amazon VPC) enables you to launch AWS resources into a virtual network that you’ve defined.
What is NAT ?
Network address translation (NAT) is a method of remapping one IP address space into another by modifying network address information in Internet Protocol (IP) datagram packet headers while they are in transit across a traffic routing device.
What is the two different NAT in AWS ?
NAT instance, NAT Gateway
What need to be done on creation of NAT instance ?
Disable source/destination check
Does NAT instance need to be in a private subnet ?
It need to be in a public subnet
What minimum you need from a private subnet to work with a NAT instance in a public subnet ?
Need at least a route from the private subnet to the NAT instance.
What can cause a bottlenecking NAT instance ?
The instance size is too small.
How to create High avaibility for NAT instance ?
Use autoscalling Groups in multiple subnet in different AZ and script to automate failover. If you have to do this just use NAT Gateway =)
Does a NAT instance need to seat behing a security group ?
Yes
What the automatic scale up bandwith limit for NAT Gateways
10 Gbps
What is the benefit of using NAT Gateways ? (5)
Auto scalling, No need for patch or antivirus, not assoicated with security groups, no need to disable source/check destination, more secure
What you need to do after creating NAT Gateways ?
Update route tables (10/15mn).
What is Network ACL ? what’s for ?
A network access control list (ACL) is an optional layer of security for your VPC that acts as a firewall for controlling traffic in and out of one or more subnets. You might set up network ACLs with rules similar to your security groups in order to add an additional layer of security to your VPC.
What is the difference between Network ACL and Security group ? (5).
Security Group
- Operates at the instance level (first layer of defense)
- Supports allow rules only
- is stateful: Return traffic is automatically allowed, regardless of any rules
- We evaluate all rules before deciding whether to allow traffic
- Applies to an instance only if someone specifies the security group when launching the instance, or associates the security group with the instance later on
Network ACL
- Operates at the subnet level (second layer of defense)
- Supports allow rules and deny rules
- Is stateless: Return traffic must be explicitly allowed by rules
- We process rules in number order when deciding whether to allow traffic
- Automatically applies to all instances in the subnets it’s associated with (backup layer of defense, so you don’t have to rely on someone specifying the security group)
By default when creating VPC what the status of outbound and inbound traffic?
allows all