AWS Certified SysOps Administrator – Associate (legacy) — Question 803
You are setting up a VPC and you need to set up a public subnet within that VPC. Which following requirement must be met for this subnet to be considered a public subnet?
Answer options
- A. Subnet's traffic is not routed to an internet gateway but has its traffic routed to a virtual private gateway.
- B. Subnet's traffic is routed to an internet gateway.
- C. Subnet's traffic is not routed to an internet gateway.
- D. None of these answers can be considered a public subnet.
Correct answer: B
Explanation
In AWS VPC, a subnet is classified as a public subnet if its associated route table contains a route that directs internet-bound traffic (0.0.0.0/0) to an internet gateway. If a subnet's traffic is not routed to an internet gateway, or is only routed to a virtual private gateway, it is considered private or VPN-only, respectively.