Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AWS Certified Solutions Architect - Associate SAA-C03 topic 1 question 251 discussion

An Amazon EC2 instance is located in a private subnet in a new VPC. This subnet does not have outbound internet access, but the EC2 instance needs the ability to download monthly security updates from an outside vendor.

What should a solutions architect do to meet these requirements?

  • A. Create an internet gateway, and attach it to the VPC. Configure the private subnet route table to use the internet gateway as the default route.
  • B. Create a NAT gateway, and place it in a public subnet. Configure the private subnet route table to use the NAT gateway as the default route.
  • C. Create a NAT instance, and place it in the same subnet where the EC2 instance is located. Configure the private subnet route table to use the NAT instance as the default route.
  • D. Create an internet gateway, and attach it to the VPC. Create a NAT instance, and place it in the same subnet where the EC2 instance is located. Configure the private subnet route table to use the internet gateway as the default route.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
mhmt4438
Highly Voted 1 year, 5 months ago
Selected Answer: B
B. Create a NAT gateway, and place it in a public subnet. Configure the private subnet route table to use the NAT gateway as the default route. This approach will allow the EC2 instance to access the internet and download the monthly security updates while still being located in a private subnet. By creating a NAT gateway and placing it in a public subnet, it will allow the instances in the private subnet to access the internet through the NAT gateway. And then, configure the private subnet route table to use the NAT gateway as the default route. This will ensure that all outbound traffic is directed through the NAT gateway, allowing the EC2 instance to access the internet while still maintaining the security of the private subnet.
upvoted 8 times
Manjunathkb
1 year, 2 months ago
NAT gateway does not allow internet on it's own. It needs internet gateway too. None of the answers make sense
upvoted 8 times
Manjunathkb
1 year, 2 months ago
refer below link https://aws.amazon.com/about-aws/whats-new/2021/06/aws-removes-nat-gateways-dependence-on-internet-gateway-for-private-communications/
upvoted 2 times
TOR_0511
7 months, 2 weeks ago
lol, thats for 'private connections'
upvoted 1 times
...
...
pentium75
6 months, 1 week ago
B says "place it in a public subnet", a public subnet needs an Internet Gateway so that is included in the answer.
upvoted 2 times
...
...
...
Uzbekistan
Most Recent 3 months, 1 week ago
Selected Answer: B
B. Create a NAT gateway, and place it in a public subnet. Configure the private subnet route table to use the NAT gateway as the default route. Explanation: NAT Gateway: NAT (Network Address Translation) gateway is a managed service provided by AWS that allows EC2 instances in private subnets to access the internet while preventing inbound traffic from directly accessing them. You place the NAT gateway in a public subnet with an associated internet gateway, allowing it to send traffic to the internet. Private Subnet Route Table: Configure the route table of the private subnet to route all outbound traffic (0.0.0.0/0) through the NAT gateway. This allows instances in the private subnet to access the internet through the NAT gateway while maintaining their private IP addresses and security.
upvoted 1 times
...
pentium75
6 months, 1 week ago
Selected Answer: B
A - if you "configure the private subnet route table to use the internet gateway" then it's no longer a private subnet B - Correct (you place NAT GW in a public subnet and add it to the private subnet's route table) C - NAT instance is deprecated, and it would still in a private subnet where it doesn't have Internet access D - NAT instance is deprecated, and in that answer it is created but not even used
upvoted 2 times
...
EtherealBagel
7 months ago
yes, the nat gateway on its own does not allow connection to the internet. But the question specifies that it has been placed in a public subnet. public subnets are public because they have access to the internet via an internet gateway.
upvoted 1 times
...
xdkonorek2
7 months, 2 weeks ago
Selected Answer: C
https://docs.aws.amazon.com/vpc/latest/userguide/configure-subnets.html Public subnet – The subnet has a direct route to an internet gateway. Resources in a public subnet can access the public internet. Private subnet – The subnet does not have a direct route to an internet gateway. Resources in a private subnet require a NAT device to access the public internet. Both B and C have caveats but are both viable: C - NAT Instance is used as a NAT device instead of NAT gateway, but it's still viable option B - Have 2 redundant components - IGW and public subnet, and NAT gateway still would route traffic to IGW, and if VPC is a custom VPC routing has to be set up
upvoted 1 times
pentium75
6 months, 1 week ago
"NAT instance in the same subnet where the EC2 instance is located", how would you "use the NAT instance as the default route" when it's in the same subnet?
upvoted 1 times
...
...
oluolope
8 months, 3 weeks ago
Selected Answer: D
A NAT Gateway should have one interface in each network it is connected to. I don't understand what it means when they say it is located either in the private or in the public network. It should be in both. Therefore, B and D do not really make sense. I choose D over B because there is a requirement to access the internet and although it is possible for the NAT to exist without an internet gateway, the later is still needed when internet access is required which is the case in this scenario.
upvoted 1 times
pentium75
6 months, 1 week ago
NAT Gateway must be in a public subnet as it needs Internet access. It can be specified in a private subnet's route table as a destination. D doesn't make sense because you created an (outdated) NAT instance but don't use it (you point the route table to the Internet Gateway).
upvoted 1 times
...
...
TariqKipkemei
9 months, 2 weeks ago
Selected Answer: B
Internet Gateway is required anyway to access the internet. Option B makes more sense: Create a NAT gateway, and place it in a public subnet. Configure the private subnet route table to use the NAT gateway as the default route.
upvoted 1 times
...
Guru4Cloud
9 months, 4 weeks ago
Selected Answer: B
B. Create a NAT gateway, and place it in a public subnet. Configure the private subnet route table to use the NAT gateway as the default route.
upvoted 1 times
...
cookieMr
1 year ago
A. provides direct internet access to the private subnet, which is not desired in this case as the goal is to restrict outbound internet access. B. allows the EC2 in the private subnet to access the internet through the NAT gateway, which acts as a proxy. It provides controlled outbound internet access while maintaining the security of the private subnet. C. is similar to using a NAT gateway, but it involves using a NAT instance. NAT instances require more manual configuration and management compared to NAT gateways, making them a less preferred option. D. combines the use of an internet gateway and a NAT instance, which is not necessary. It introduces unnecessary complexity and adds a NAT instance that requires additional management. Overall, option B is the most appropriate solution as it utilizes a NAT gateway placed in a public subnet to enable controlled outbound internet access for the EC2 instance in the private subnet. NAT Gateways are preferred over NAT Instances by AWS and in general.
upvoted 3 times
...
Bmarodi
1 year, 1 month ago
Selected Answer: B
Option B meets the reqiurements, hence B is right choice.
upvoted 1 times
...
Manjunathkb
1 year, 2 months ago
D would have been the answer if NAT gateway is installed in public subnet and not where EC2 is located. None of the answers are correct.
upvoted 1 times
...
AlessandraSAA
1 year, 3 months ago
why not C?
upvoted 1 times
UnluckyDucky
1 year, 3 months ago
Because NAT Gateways are preferred over NAT Instances by AWS and in general. I have yet to find a situation where a NAT Instance would be more applicable than NAT Gateway which is fully managed and is overall an easier solution to implement - both in AWS questions or the real world.
upvoted 2 times
...
...
TungPham
1 year, 4 months ago
Selected Answer: B
Require NAT gateway
upvoted 1 times
...
techhb
1 year, 5 months ago
Selected Answer: B
Answer explained here https://medium.com/@tshemku/aws-internet-gateway-vs-nat-gateway-vs-nat-instance-30523096df22
upvoted 1 times
...
techhb
1 year, 5 months ago
Selected Answer: B
NAT Gateway is right choice
upvoted 1 times
...
bamishr
1 year, 5 months ago
Selected Answer: B
https://www.examtopics.com/discussions/amazon/view/59966-exam-aws-certified-solutions-architect-associate-saa-c02/
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
ex Want to SAVE BIG on Certification Exam Prep?
close
ex Unlock All Exams with ExamTopics Pro 75% Off
  • arrow Choose From 1000+ Exams
  • arrow Access to 10 Exams per Month
  • arrow PDF Format Available
  • arrow Inline Discussions
  • arrow No Captcha/Robot Checks
Limited Time Offer
Ends in