Networking: Amazon Virtual Private Cloud Flashcards
Need to identify the instances that are generating the most traffic using a NAT gateway
Use VPC flow logs on the NAT gateway ENI and use CloudWatch insights to filter based on source IP address
Latency on a NAT instance has increased, need a solution that scales with demand cost-efficiently
Swap with a NAT gateway
NAT gateway is NOT highly available across AZs, only within an AZ
Use multiple NAT gateways for HA across AZs
NAT instance deployed but not working
Make sure to disable source/destination checks
Need to enable access to S3 without the instances using public IP addresses
Use a NAT gateway or VPC endpoint
EC2 instance in private subnet cannot reach the Internet. Route table has a route to a NAT gateway with a status of “Blackhole”
Indicates the NAT gateway has been deleted
Need to connect to S3 from EC2 using private network only. Must also ensure that only the instances can access the bucket
Create a VPC endpoint and a bucket policy with a Condition that limits S3 actions to the VPC endpoint as the source
VPC endpoint setup to allow private IP address connectivity to S3 bucket, permissions configured, but instances still can’t connect
Make sure the subnet has a target in the route table for the VPC endpoint
Need to manage EC2 instances in a private subnet from an office using SSH but instances cannot have internet access
Add a VGW and configure routing in the VPC and establish a VPN to the office
Need encryption in-transit and at-rest for hybrid environment
Use an AWS VPN and use KMS keys for data encryption
Network change was made that resulted in application to DB connection issues
Analyze using VPC Flow Logs
Inbound and outbound internet connectivity required for EC2 instances
Need to attach an internet gateway to the VPC and add an entry in the route table for the subnet that points to the internet gateway
Web application has EC2 with public IPs behind an ALB. EC2 instances cannot connect to external service
Need to create an attach an IGW to the VPC and update the route table
VPC peering connection setup between two different VPCs. Instances in private subnets still can’t communicate
Make sure the route tables are updated
A company has configured a VPC peering connection between two VPCs and needs to set up connectivity between instances in private subnets
Configure the VPC route tables with routes pointing to the address range of the other VPC