VPC Flashcards
What is a VPC and subnets?
VPC is a private network to deploy your resources (one per region)
Subnets allow to partition the network inside the VPC (AZ)
What is the difference between internet gateway and NAT gateway?
Internet gateway helps the instances on public subnets to connect to the internet
NAT gateway helps instances on a private subnet connect to the internet while remaining private
What is the difference between NACL and security groups?
NACL:
* controls traffic from and to a subnet
* can have allow and deny rules
* stateless: return traffic must be explicitly allowed by rules
EC2:
* controls traffic from and to an EC2 instance
* can have only allow rules
* stateful: return traffic is automatically allowed, regardless of any rules
What is VPC peering?
Is a way to connect two VPCs privately using AWS’ network, making them behave as if they were in the same network
VPC peering connection is not transitive, must be established for each VPC pair
What are VPC endpoints?
Allows to connect to AWS services using a private network instead of the public network
How can you establish connection between your on premises data center and your cloud VPC?
Site to site VPN:
* using encrypted traffic
* goes over the public internet
Direct connect:
* establish physical connection between the datacenter and AWS
What is the three tier solution architecture?
Public subnet: ELB, route 53
Private subnet: ASG, EC2
Data subnet: ElastiCache, RDS
What is the LAMP stack?
- Linux, apache, mysql, PHP
- Can add redis to include a caching
- EBS drive to store local data