How do you design for DDoS resilience at the network edge?
AdvancedScenarioVPC & Cloud Network Design
Answer
Situation read → Layered defense: absorb at the edge, filter, then scale origin.
What I'd do →
- Front the app with CloudFront or a CDN and AWS Shield Advanced where justified
- Add AWS WAF rate-based rules and geo or ASN blocks
- Expose only the CDN to the origin (security group with the CloudFront managed prefix list)
- Use Global Accelerator or anycast for non-HTTP traffic
- Autoscale and set up alarms and a runbook with the provider's DRT contact
Why → Hiding the origin means attackers can only reach what the edge forwards.
Interview tip → Mention SYN cookies and conntrack limits on origin hosts.
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