AWS Certified Solutions Architect – Associate (SAA-C02) — Question 426
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?
Answer options
- 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.
Correct answer: A
Explanation
Attaching an internet gateway to the VPC and updating the route table to route default traffic (0.0.0.0/0) through it directly enables the outbound connectivity required to download security updates. Other options, such as placing a NAT gateway or NAT instance directly in the private subnet without an associated public subnet and internet gateway route, will fail to provide internet access. This approach ensures a direct path to the external vendor, satisfying the connectivity requirement.