Topic 1 Question 708
A company wants to use NAT gateways in its AWS environment. The company's Amazon EC2 instances in private subnets must be able to connect to the public internet through the NAT gateways.
Which solution will meet these requirements?
Create public NAT gateways in the same private subnets as the EC2 instances.
Create private NAT gateways in the same private subnets as the EC2 instances.
Create public NAT gateways in public subnets in the same VPCs as the EC2 instances.
Create private NAT gateways in public subnets in the same VPCs as the EC2 instances.
ユーザの投票
コメント(5)
- 正解だと思う選択肢: C
Should be C: Public NAT GW in Public Subnet to have access to internet. Private NAT GW is used for VPC or on-prem
👍 16anikolov2024/08/07 - 正解だと思う選択肢: C
I think the correct is C, because D would require more than just private NAT gateway.
Private – Instances in private subnets can connect to other VPCs or your on-premises network through a private NAT gateway. You can route traffic from the NAT gateway through a transit gateway or a virtual private gateway. You cannot associate an elastic IP address with a private NAT gateway. You can attach an internet gateway to a VPC with a private NAT gateway, but if you route traffic from the private NAT gateway to the internet gateway, the internet gateway drops the traffic.
https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html
👍 9mestule2024/08/06 - 正解だと思う選択肢: C
Public NAT Gateway in public subnets for the internet access https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html
👍 3Kezuko2024/09/19
シャッフルモード