Interview Prep/DevSecOps/Cloud Security Posture

How do you design network security for production workloads in a VPC?

IntermediateProductionCloud Security Posture
Answer
  • Three tiers of subnets: public (only load balancers and NAT), private (apps), isolated (databases, no internet route).
  • Security groups reference other security groups, not CIDRs, so rules follow the workload.
  • VPC endpoints for AWS services (S3, ECR, STS, Secrets Manager), with endpoint policies restricting access to our organisation.
  • Centralised egress through AWS Network Firewall or a proxy with domain allowlists for sensitive workloads.
  • No SSH or RDP from the internet; access through SSM Session Manager.
  • VPC Flow Logs and Route 53 Resolver query logs to the log archive.
All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Cloud Security Posture