A user has created a VPC with CIDR 20.0.0.0/16. The user has created one subnet with CIDR 20.0.0.0/16 in this VPC. The user is trying to create another subnet with the same VPC for CIDR 20.0.0.1/24. What will happen in this scenario?
A.
The VPC will modify the first subnet CIDR automatically to allow the second subnet IP range
B.
The second subnet will be created
C.
It will throw a CIDR overlaps error
D.
It is not possible to create a subnet with the same CIDR as VPC
Suggested Answer:C🗳️
A Virtual Private Cloud (VPC) is a virtual network dedicated to the user's AWS account. A user can create a subnet with VPC and launch instances inside that subnet. The user can create a subnet with the same size of VPC. However, he cannot create any other subnet since the CIDR of the second subnet will conflict with the first subnet. Reference: http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html
C ,
Subnet sizing
The CIDR block of a subnet can be the same as the CIDR block for the VPC (for a single subnet in the VPC), or a subset of the CIDR block for the VPC (to create multiple subnets in the VPC). The allowed block size is between a /28 netmask and /16 netmask. If you create more than one subnet in a VPC, the CIDR blocks of the subnets cannot overlap
https://docs.aws.amazon.com/vpc/latest/userguide/configure-subnets.html
C.
D is correct, but it's a description of how VPC works, not a scenario that'll happen (as stated in the question).
One more way to look at it, the consol will show a UI error and will not permit the creation at all.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
amministrazione
8 months, 3 weeks agoSkyZeroZx
1 year, 10 months agoTigerInTheCloud
2 years, 4 months agouser0001
2 years, 12 months agoMechanic
3 years, 1 month agofbourdet
3 years agocldy
3 years, 5 months ago01037
3 years, 6 months ago