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?
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.
Suggested Answer:B🗳️
A virtual private cloud (VPC) is a virtual network dedicated to your AWS account. It is logically isolated from other virtual networks in the AWS cloud. You can launch your AWS resources, such as Amazon EC2 instances, into your VPC. You can configure your VPC: you can select its IP ad-dress range, create subnets, and configure route tables, network gateways, and security settings. A subnet is a range of IP addresses in your VPC. You can launch AWS resources into a subnet that you select. Use a public subnet for resources that must be connected to the internet, and a private subnet for resources that won't be connected to the Internet. If a subnet's traffic is routed to an in-ternet gateway, the subnet is known as a public subnet. If a subnet doesn't have a route to the Inter-net gateway, the subnet is known as a private subnet. If a subnet doesn't have a route to the internet gateway, but has its traffic routed to a virtual private gateway, the subnet is known as a VPN-only subnet. Reference: http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html
When a subnet's traffic is routed to an internet gateway, instances within that subnet can send and receive traffic directly to and from the internet. This enables connectivity with resources outside of the VPC, such as accessing the internet, interacting with external APIs, or allowing incoming traffic from the internet.
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.
albert_kuo
10 months, 1 week agoablazleon
2 years, 1 month ago