AWS Certified SysOps Administrator – Associate (legacy) — Question 219
A user has created a VPC with public and private subnets using the VPC Wizard. The VPC has CIDR 20.0.0.0/16. The private subnet uses CIDR 20.0.0.0/24.
Which of the below mentioned entries are required in the main route table to allow the instances in VPC to communicate with each other?
Answer options
- A. Destination : 20.0.0.0/24 and Target : VPC
- B. Destination : 20.0.0.0/16 and Target : ALL
- C. Destination : 20.0.0.0/0 and Target : ALL
- D. Destination : 20.0.0.0/24 and Target : Local
Correct answer: D
Explanation
The correct answer is D because specifying 'Destination : 20.0.0.0/24 and Target : Local' allows instances within the same subnet to communicate with each other. Options A, B, and C do not provide the necessary local routing for subnet communication within the VPC.