Interview Prep/AWS/VPC and Networking

Two VPCs peered, but the app in VPC A cannot reach VPC B's database. What is the routine?

IntermediateScenarioVPC and Networking
Answer

Situation read → Peering needs routes on both sides plus SG and DNS settings.

What I'd do →

  1. Check peering is active: aws ec2 describe-vpc-peering-connections
  2. Add routes in both VPC route tables to the peer CIDR
  3. Check the DB SG allows the source CIDR or the peer SG reference (cross-account SG references work only in the same region)
  4. Check NACLs
  5. Enable DNS resolution over peering if using private hostnames

Why → Peering creates a path only; routing and filtering are still your job.

Interview tip → Peering never routes through a third VPC.

aws All AWS questions Roadmap: AWS core services

More on VPC and Networking