13. VPC Flashcards
What is a VPC in AWS?
A Virtual Private Cloud (VPC) is a private network for deploying resources in AWS, providing isolation and security.
What is the main purpose of a subnet in a VPC?
Subnets partition the network within a VPC, and each subnet is associated with a specific Availability Zone.
True or False: A private subnet can access the internet directly by default.
False
What is the role of an Internet Gateway in a VPC?
It enables internet access for instances in public subnets.
Define Elastic IP in the context of AWS.
An Elastic IP is a fixed public IPv4 address that can be attached to an EC2 instance and retained across reboots.
Why would you use a NAT Gateway?
To allow instances in a private subnet to access the internet without exposing them to incoming internet traffic.
Which IP protocol version is private only in AWS, IPv4 or IPv6?
IPv4
Fill in the blank: A _______ is a firewall for controlling traffic at the instance level in AWS.
Security Group
How does a Network ACL differ from a Security Group?
Network ACLs control traffic at the subnet level and allow both ALLOW and DENY rules, while Security Groups control traffic at the instance level and allow only ALLOW rules.
What is the main function of VPC Flow Logs?
To capture information about IP traffic entering and exiting network interfaces, helping monitor and troubleshoot connectivity.
True or False: VPC Peering connections are transitive.
False
What is required for a VPC Peering connection between two VPCs?
They must have non-overlapping CIDR (IP address) ranges.
Explain the purpose of VPC Endpoints.
They enable private connectivity to AWS services within a VPC, bypassing the public internet.
What is AWS PrivateLink used for?
To securely expose services to multiple VPCs without VPC peering or internet connectivity.
True or False: Direct Connect provides a secure, private connection between on-premises and AWS.
True
How does Site-to-Site VPN differ from Direct Connect?
Site-to-Site VPN uses an encrypted internet connection, while Direct Connect uses a private network connection.