exam questions

Exam AWS Certified SysOps Administrator - Associate All Questions

View all questions & answers for the AWS Certified SysOps Administrator - Associate exam

Exam AWS Certified SysOps Administrator - Associate topic 1 question 120 discussion

A company has an application that is running on Amazon EC2 instances in a VPC. The application needs access to download software updates from the internet. The VPC has public subnets and private subnets. The company’s security policy requires all EC2 instances to be deployed in private subnets.

What should a SysOps administrator do to meet these requirements?

  • A. Add an internet gateway to the VPC. In the route table for the private subnets, add a route to the internet gateway.
  • B. Add aNAT gateway to a private subnet. In the route table for the private subnets, add a route to the NAT gateway.
  • C. Add a NAT gateway to public subnet. In the route table for the private subnets, add a route to the NAT gateway.
  • D. Add two internet gateways to the VPC. In the route tables for the private subnets and public subnets, add a route to each internet gateway.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
sxti
Highly Voted 1 year, 10 months ago
Selected Answer: C
The correct answer is C. Add a NAT gateway to a public subnet. In the route table for the private subnets, add a route to the NAT gateway. The application needs to be able to download updates from the internet, but it's running on EC2 instances in a private subnet. Private subnets do not have direct access to the internet. A NAT gateway allows instances in a private subnet to connect to the internet or other AWS services but prevent the internet from initiating a connection with those instances.
upvoted 6 times
...
OlehKom
Most Recent 4 months, 1 week ago
Selected Answer: C
Internet Gateway: Public access (e.g., web server). NAT Gateway: Private access to the internet (e.g., backend or database servers)
upvoted 1 times
...
10cc6ba
9 months, 2 weeks ago
Selected Answer: C
C is correct
upvoted 1 times
...
Rabbit117
1 year, 1 month ago
Selected Answer: C
C is correct. The NAT Gateway is deployed in the Public subnet and the route table for the private subnet points all internet bound traffic to the NAT GW.
upvoted 2 times
...
stoy123
1 year, 1 month ago
Selected Answer: C
C, NAT Gateway must be created in a public subnet
upvoted 3 times
...
JamesF92
1 year, 8 months ago
Selected Answer: C
https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-scenarios.html This one is definitely C.
upvoted 4 times
...
fazlur21
1 year, 10 months ago
B why? because a public subnet don't need nat gateway, only private subnets need a nat gateway to connect to the internet
upvoted 1 times
wookchan
1 year, 9 months ago
No. The NAT gateway must be deployed in a public subnet, because it needs to be connected to the Internet Gateway.
upvoted 3 times
...
...
vinothc
2 years ago
To enable the EC2 instances in private subnets to download software updates from the internet, a SysOps administrator should add a NAT gateway to a private subnet, and in the route table for the private subnets, add a route to the NAT gateway. Therefore, option B is the correct answer. Option A is incorrect because adding an internet gateway to the VPC and a route to the internet gateway in the private subnet's route table would not work since the private subnet does not have a public IP address. Option C is incorrect because adding a NAT gateway to the public subnet and a route to the NAT gateway in the private subnet's route table would not work because the private subnet requires outbound traffic to traverse the NAT gateway, which would be difficult to implement in a security perspective. Option D is incorrect because having two internet gateways is not practical and would not resolve the issue of allowing private instances to download software updates from the internet.
upvoted 2 times
henryford
1 year, 11 months ago
This is why I'm not afraid that ChatGPT will replace us soon. Option B is clearly wrong as your NAT gateway must have a public IP. The reasoning behind why Option C is also clearly incorrect as a route in the routing table would obviously cause the traffic to be routed through the NAT gateway.
upvoted 5 times
...
...
Gomer
2 years ago
Selected Answer: C
Can't be D. Can have only one IGW per VPC. Need IGW and route to a NAT Gateway from private subnet.
upvoted 2 times
...
skywalker
2 years, 3 months ago
Selected Answer: C
CCCCCCCCC
upvoted 4 times
...
jessbase2022
2 years, 4 months ago
Selected Answer: C
C https://aws.amazon.com/premiumsupport/knowledge-center/nat-gateway-vpc-private-subnet/
upvoted 4 times
...
MrMLB
2 years, 4 months ago
Selected Answer: B
To meet the requirements of the company's security policy, the SysOps administrator should choose option B: Add a NAT gateway to a private subnet. In the route table for the private subnets, add a route to the NAT gateway. In this scenario, the EC2 instances in the private subnets need access to the internet to download software updates, but they cannot be directly connected to the internet. A NAT gateway allows the EC2 instances to connect to the internet indirectly by routing their traffic through the NAT gateway, which is located in a public subnet. The NAT gateway has a direct connection to the internet, so it can access the internet on behalf of the EC2 instances. To set this up, the SysOps administrator should create a NAT gateway in a private subnet and then add a route to the NAT gateway in the route table for the private subnets. This will allow the EC2 instances in the private subnets to access the internet through the NAT gateway.
upvoted 3 times
henryford
1 year, 11 months ago
You can't use a NAT gateway in a private subnet as it needs a public IP address to work.
upvoted 4 times
...
...
michaldavid
2 years, 4 months ago
Selected Answer: C
cccccccc
upvoted 3 times
...
tts1234
2 years, 4 months ago
Selected Answer: C
A Nat Gateway enables instances in private subnets to connect to the internet. The Nat gateway must be deployed in the public subnet with an Elastic IP. Once the resource is created, a route table associated with the the private subnet needs to point internet-bound traffic to the NAT gateway. https://towardsdatascience.com/connecting-to-an-ec2-instance-in-a-private-subnet-on-aws-38a3b86f58fb
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago