VPC Flashcards
Does VPC only exist in one region?
Yes.
What components in traditional network do not exist in VPC?
- Routers
- Switches
- VLANs
These components are abstracted into software functions and called by different names.
Can VPC hold AWS resource directly?
No, VPC must be divided into subnets that hold your AWS resources.
What is the range of CIDR prefix length allowed in VPC?
VPC CIDR can range from /16 to /28.
/16 => 65,536 addresses
/28 => 16 addresses
What is CIDR prefix and prefix length?
The CIDR block (e.g. 172.16.0.0) is referred to as an IP prefix. The /16 portion of the CIDR is the prefix length.
E.g. 172.16.0.0/16
What are the recommended IPv4 range by RFC 1918, to avoid conflict with public Internet address?
- 10.0.0.0 - 10.255.255.255 (10.0.0.0/8)
- 172.16.0.0 - 172.31.255.255 (172.16.0.0/12)
- 192.168.0.0 - 192.168.255.255 (192.168.0.0/16)
Can you change the primary CIDR block of a VPC after creation?
No, but you can attach a secondary CIDR blocks to VPC.
The secondary CIDR block must come from the same address range as the primary. For example, if the VPC’s primary CIDR is 172.16.0.0/16, the secondary CIDR can be 172.17.0.0/16.
What is CIDR block?
A CIDR block is a notation to represent an IPv4 address range.
Can you specify IPv6 CIDR?
No, instead AWS assigns one to your VPC at request. The prefix length of an IPv6 VPC CIDR is always /56.
What is the prefix length of IPv6 CIDR?
56.
Is IPv6 CIDR publicly routable?
Yes, the IPv6 CIDR will be a publicly routable prefix from the global unicast IPv6 address space, so all IPv6 addresses are reachable from the Internet.
How many IP addresses are reverved by AWS in a subnet?
5.
Is it possible for a subnet and VPC to share the same CIDR?
Yes, but you cannot define another subnet in the same VPC, as all the IP addresses are taken.
Can a subnet have multiple CIDRs?
No.
Can a subnet span availability zones?
No, a subnet can only exist within a single availability zone.
What is a Elastic Network Interface (ENI)?
ENI performs the same basic function as a network interface on a physical server.
Every ENI can only connect to a single subnet.
Can you assign secondary private IP addresses to the primary ENI?
Yes, any secondary address must come from the same subnet that ENI is attached to.
Can ENI exist independently of an EC2 instance?
Yes. If you disable the Delete On Termination attribute of the ENI, you can terminate the instance without deleting the ENI.
Can an EC2 instance have more than one ENI?
Yes, any additional ENI attached to EC2 instance must be in the same subnet as the primary ENI.
You can also take an existing ENI that’s not attached to an instance and attach it to an existing instance as a secondary ENI.
This lets you redirect traffic from a failed instance to a working instance by detaching the ENI from the failed instance and reattaching it to the working instance.
How to improve network throughput speeds and lower latency than ENIs?
Use Elastic Network Adapter, which supports throughput speeds up to 100 Gbps.
ENA uses SR-IOV, which bypass the hypervisor, resulting in lower CPU utilization and better network performance.
Does custom VPC come with an Internet Gateway?
No, you must create one and associate it with a VPC manually.
You can associate only one Internet Gateway with a VPC.
How to use Internet Gateway in VPC to access Internet?
A default route in route table needs to be created that points to the Internet Gateway as a target.
Can a subnet exist without a route table?
No.