AWS VPC Flashcards
What is AWS VPC?
AWS VPC (Virtual Private Cloud) is a logically isolated virtual network that resembles a traditional data center network.
Are VPCs region-specific, and can they connect across regions?
Yes, VPCs are region-specific but can be connected across regions using VPC Peering.
How many VPCs can you create per region by default?
By default, you can create up to 5 VPCs per region.
How many subnets are allowed per VPC?
Up to 200 subnets per VPC.
How many CIDR blocks can a VPC have per IPv4/6?
Up to 5 CIDR blocks per VPC per IPv4/6.
What is the default IPv4 CIDR block for a default VPC?
172.31.0.0/16
What is included in the default VPC configuration?
One subnet per Availability Zone, Internet Gateway (IGW), Default Security Group (SG), Network Access Control List (NACL), DHCP options set, and Route Table with a route to the internet via IGW.
Can the default VPC be deleted and restored?
The default VPC can be deleted, but it cannot be restored; it must be recreated through AWS CLI.
How does the AWS Management Console handle VPC deletion?
The AWS Management Console will automatically delete the VPC along with its resources.
What is a Default Route or Catch-All-Route?
It represents all possible IP addresses, essentially allowing access from anywhere or to the internet without restriction.
What is AWS RAM, and how does it relate to VPCs?
AWS RAM (Resource Access Manager) allows sharing of resources across AWS Accounts. Shared VPCs help reduce the number of VPCs and separate accounts for billing and access control.
How do you share VPCs with other AWS Accounts using AWS RAM?
Share VPCs by sharing only non-default subnets, creating a resource share in RAM for what you are sharing, and creating shared principals in RAM for who you are sharing with.
What type of firewall is a Network Access Control List (NACL)?
Stateless
At what level does a Network Access Control List (NACL) operate?
Subnet level
What rules/actions do NACL support?
Allow
and Deny
How are NACL rules evaluated?
Based on their number, from lowest to highest
At what level does a Security Group (SG) operate?
Instance level
By what are Security Groups bound?
By a VPC
Are there exceptions from filtering in Security Groups?
YES
For Example:
Amazon DNS, Amazon DHCP, License activation for Windows instances, Reserved IP addresses used by the default VPC route
What does it mean if a firewall is stateful?
Which one is stateful Security Group or NACL?
It tracks the state of connections and automatically manages return traffic.
Security Group is stateful.
What does it mean if a firewall is stateless?
Which one is stateless Security Group or NACL?
It does not track the state of connections; each packet is evaluated independently. Explicit rules are needed for both directions.
NACL is stateless.
What is the function of a Route Table in a VPC?
To determine where network traffic is directed.
What must each subnet in a VPC be associated with?
A Route Table
Can one Route Table be associated with multiple subnets?
Yes
What does a local target in a Route Table signify?
Traffic remains within the VPC
What is an example of a target in a Route Table for public subnet traffic?
What does a Target
mean?
igw-abc123
(Internet Gateway) can be used as a target.
Target means next hop from a source (e.g. a subnet or EC2 instance) to which traffic needs to be directed in order to reach Destination
When is the Main Route Table
created?
Can it be deleted?
It is created with VPC and it cannot be deleted.
What is a Gateway in networking?
A Gateway is a networking service that sits between two different networks.
What is the function of an Internet Gateway (IGW)?
An Internet Gateway handles inbound and outbound traffic for IPv4 and IPv6.
What does an Egress-Only Internet Gateway do?
It handles outbound-only private traffic for IPv6.