Interview Prep/AWS/IAM, Organizations and Multi-Account

Two accounts need private access to each other's APIs, with overlapping CIDRs. What do you build?

AdvancedScenarioIAM, Organizations and Multi-Account
Answer

Situation read → Overlapping CIDRs rule out VPC peering and Transit Gateway routing, so expose services rather than networks.

What I'd do →

  1. In the provider account put the service behind an NLB and create a VPC endpoint service with aws ec2 create-vpc-endpoint-service-configuration --network-load-balancer-arns ...
  2. Whitelist the consumer account principal and require acceptance
  3. In the consumer account create an interface endpoint to the service name
  4. Consumer calls the endpoint's private DNS name, unaffected by CIDR overlap

Why → PrivateLink is one-directional and NAT-less at the packet level, so address overlap never matters.

Interview tip → Contrast: peering and TGW share routes, PrivateLink shares a service.

aws All AWS questions Roadmap: AWS core services

More on IAM, Organizations and Multi-Account