How do you design a highly available 3-tier network in one region?
IntermediateScenarioVPC & Cloud Network Design
Answer
Situation read → The interviewer wants AZ redundancy per tier and a clear traffic flow.
What I'd do →
- Use a VPC with subnets in at least 3 AZs per tier: public (ALB, NAT), private app, private data
- Put one NAT gateway per AZ and route each AZ's private subnet to its own NAT
- Place the ALB across all public subnets and spread ASG instances across private app subnets
- Isolate data subnets with no default route, reachable only from the app security group
- Add flow logs and endpoints for S3, ECR and SSM
Why → A single NAT gateway is a hidden single point of failure and also adds cross-AZ data charges.
Interview tip → Draw the picture; interviewers reward seeing the flow ALB to app to DB.
More on VPC & Cloud Network Design
What makes a subnet public versus private in AWS?BeginnerExplain internet gateway versus NAT gateway and when you use each.BeginnerPrivate instances need to pull packages from the internet but must not be reachable from it. What do you set up?BeginnerWhy shouldn't production run in the default VPC?BeginnerPublic IP, Elastic IP and private IP: how do they differ on EC2?BeginnerWhy use SSM Session Manager instead of a bastion host?Beginner