Network Flashcards
f
How to connect two VPCs together
VPC PEERING
A VPC peering connection is a networking connection between two VPCs that enables you to route traffic between them using private IPv4 addresses or IPv6 addresses. Instances in either VPC can communicate with each other as if they are within the same network.
Max VPCs per account/region
you can have up to 5 VPCs per region per AWS account.
How are NACL rules evaluated
In Order. Rules are given a number and first rule to apply (Allow or Deny) is applied and no subsequent rules considered.
so to block a single IP, you would make this a low RULE number to get considered first.
NACL RULES ARE STATELESS. You must define both incoming and outgoing rules.
VPC ENDPOINT
Some services (like S3) live in AWS Public VPC. To access those, you need to go over the internet.
If you don’t want to use the internet due to sensitive data, you can use VPC END POINTS which allows your private subnets to talk direct to AWS Public Services like S3.
THere are two types of VPC endpoint - EndPoint Gateway or Endpoint Interface. DynamoDB and S3 can use either - everything else must use Endpoint Interface. Gateway is FREE but has restrictions (cant use private ip, cant access from another region).
How would you connect On Prem to VPC
THere are TWO ways to do this:
Site To Site VPN -> Encrypted conncetion but goes over public internet.
DIrect Connect (DX) -> Physical connection between your DC and AWS. PRIVATE & FAST.
How would you connect VPC to VPC?
Using VPC Peering. There must be no overlapping IPs.
Default SG rules
all subnets come with a default SG which allows NO inbound traffic but ALL outbound traffic. SG can only have ALLOW rules.
If VPC Region or Global?
Within each region, you can have multiple Virtual Private Clouds (VPCs). Each VPC exists within a single region and cannot span multiple regions.
Is VPC Global or Regional ?
REGIONAL.
This means that a VPC exists within a specific AWS region and is isolated from VPCs in other regions.
Within a region, a VPC can span multiple Availability Zones (AZs),
How to connect VPC across Regions
Inter-Region Connectivity:
If you need to connect VPCs in different regions, you can use AWS services like VPC Peering, AWS Transit Gateway, or AWS VPN.
These services allow for secure connections between VPCs, even across regions,
Transit Gateway (Hub And Spoke) is a more powerful and flexible solution for connecting VPCs, but it is also more complex to set up and manage.
VPC peering is simpler to set up and manage but has more limitations (max 125 connections, complex at scale)
How many VPCs per region can you create by default ?
5
What type of subnets does deault VPC have
public