what is the purpose of having both public and private subnets in a VPC?

Please login to ask, answer, share, like, and vote.