AWS Certified Solutions Architect – Associate (SAA-C02) — Question 86

A company recently deployed a two-tier application in two Availability Zones in the us-east-1 Region. The databases are deployed in a private subnet while the web servers are deployed in a public subnet. An internet gateway is attached to the VPC. The application and database run on Amazon EC2 instances. The database servers are unable to access patches on the internet. A solutions architect needs to design a solution that maintains database security with the least operational overhead.
Which solution meets these requirements?

Answer options

Correct answer: A

Explanation

The correct answer is A because deploying a NAT gateway in the public subnet allows the database servers in the private subnet to access the internet for updates while maintaining security. Options B and D incorrectly place the NAT gateway or instances in the private subnet, which would not have internet access. Option C, while placing NAT instances in the public subnet, introduces unnecessary complexity and operational overhead compared to using a NAT gateway.